| | |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.pojo.PermitGroup; |
| | | import com.whyc.pojo.UserGroup; |
| | | import com.whyc.service.CategoryService; |
| | | import com.whyc.service.GroupService; |
| | | import com.whyc.service.PermitGroupService; |
| | | import com.whyc.service.PermitService; |
| | | import com.whyc.service.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private PermitService permitService; |
| | | |
| | | @Autowired |
| | | private DocUserService docUserService; |
| | | |
| | | |
| | | @Autowired |
| | | private CategoryService categoryService; |
| | |
| | | public Response updateGroup(@RequestParam String groupId,@RequestParam String groupName){ |
| | | return groupService.updateGroup(groupId,groupName); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有用户") |
| | | @GetMapping("getAllDocUser") |
| | | public Response getAllDocUser(){ |
| | | return docUserService.getAllDocUser(); |
| | | } |
| | | @ApiOperation(value = "权限组下加用户") |
| | | @PostMapping("addUserToGroup") |
| | | public Response addUserToGroup(@RequestBody List<UserGroup> users){ |