org.openea.eap.module.system.api.permission.RoleApiImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eap-module-system-api-impl Show documentation
Show all versions of eap-module-system-api-impl Show documentation
system 模块下,我们放通用业务,支撑上层的核心业务。
例如说:用户、部门、权限、数据字典等等
The newest version!
package org.openea.eap.module.system.api.permission;
import org.openea.eap.framework.common.pojo.CommonResult;
import org.openea.eap.module.system.service.permission.RoleService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.Collection;
import static org.openea.eap.framework.common.pojo.CommonResult.success;
@RestController // 提供 RESTful API 接口,给 Feign 调用
@Validated
public class RoleApiImpl implements RoleApi {
@Resource
private RoleService roleService;
@Override
public CommonResult validRoleList(Collection ids) {
roleService.validateRoleList(ids);
return success(true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy