| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入字典") |
| | | @ApiOperation(value = "插入一条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleEntity", value = "字典实体类", dataType = "com.lf.server.entity.sys.RoleEntity", paramType = "body", example = "") |
| | | }) |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入多条字典") |
| | | @ApiOperation(value = "插入多条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleEntity", value = "字典实体类集合", dataType = "List<RoleEntity>", paramType = "body", example = "") |
| | | @ApiImplicitParam(name = "roleEntity", value = "实体类集合", dataType = "List<RoleEntity>", paramType = "body", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertRoles", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertRoles(@RequestBody List<RoleEntity> roleEntity) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除一条字典") |
| | | @ApiOperation(value = "删除一条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteRole") |
| | | public ResponseMsg<Integer> deleteRole(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除多条字典") |
| | | @ApiOperation(value = "删除多条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "字典ID集合", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @ApiImplicitParam(name = "ids", value = "ID集合", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteAuths") |
| | | public ResponseMsg<Integer> deleteRoles(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "更新一条字典") |
| | | @ApiOperation(value = "更新一条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleEntity", value = "字典ID集合", dataType = "RoleEntity", paramType = "body", example = "") |
| | | @ApiImplicitParam(name = "roleEntity", value = "ID集合", dataType = "RoleEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateRole", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据ID查询字典") |
| | | @ApiOperation(value = "根据ID查询") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectRole") |
| | | public ResponseMsg<RoleEntity> selectRole(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询所有字典") |
| | | @ApiOperation(value = "查询所有") |
| | | @GetMapping(value = "/selectRoleAll") |
| | | public ResponseMsg<List<RoleEntity>> selectRoleAll() { |
| | | try { |