diff --git a/src/main/java/com/lz/modules/app/controller/StaffRoleController.java b/src/main/java/com/lz/modules/app/controller/StaffRoleController.java index b9a685c6..c78686e8 100644 --- a/src/main/java/com/lz/modules/app/controller/StaffRoleController.java +++ b/src/main/java/com/lz/modules/app/controller/StaffRoleController.java @@ -17,6 +17,10 @@ import com.lz.modules.flow.service.StaffRoleDepartmentService; import com.lz.modules.flow.service.StaffRoleService; import com.lz.modules.sys.entity.SysMenuEntity; import com.lz.modules.sys.entity.SysRoleEntity; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -34,6 +38,7 @@ import java.util.stream.Collectors; */ @RestController @RequestMapping("user/lzstaffrole") +@Api(tags = "考评组管理员管理") public class StaffRoleController { @Autowired private StaffRoleService staffRoleService; @@ -63,9 +68,11 @@ public class StaffRoleController { } - @RequestMapping("/listByGroupId") - public R listByGroupId(Long id ) { - List staffRoles = staffRoleService.selectByGroupId(id); + @PostMapping("/listByGroupId") + @ApiOperation(value="根据groupId获取管理员列表") + @ApiImplicitParam(name = "groupId",value = "组id",defaultValue = "1",required = true, dataType = "Long",paramType = "query") + public R listByGroupId( Long groupId ) { + List staffRoles = staffRoleService.selectByGroupId(groupId); return R.ok().put("staffRoles", staffRoles); }