Browse Source

查询全部角色

master
zy_Java 4 years ago
parent
commit
535a62e65e
  1. 1
      src/main/java/com/ccsens/carbasics/api/RoleController.java
  2. 4
      src/main/resources/application.yml

1
src/main/java/com/ccsens/carbasics/api/RoleController.java

@ -33,6 +33,7 @@ public class RoleController {
@ApiOperation(value = "根据项目id查找角色", notes = "")
@RequestMapping(value = "/show", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<CRoleVo.QueryRole> queryByProjectId(@ApiParam @Validated @RequestBody QueryDto<CRoleDto.QueryRoleById> params) {
params.getParam().setNum(0);
CRoleVo.QueryRole queryRole = roleService.queryShowRole(params.getParam(), params.getUserId());
return JsonResponse.newInstance().ok(queryRole);
}

4
src/main/resources/application.yml

@ -1,4 +1,4 @@
spring:
profiles:
active: prod
include: common, util-prod
active: test
include: common, util-test

Loading…
Cancel
Save