| | |
| | | import com.fgkj.services.User_logService; |
| | | import com.fgkj.services.User_permitgroup_dataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("userPermitGroupData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "userPermitGroupData接口") |
| | | public class User_permitgroup_dataController{ |
| | | @Resource |
| | | private User_permitgroup_dataService service; |
| | |
| | | |
| | | //5.2添加(给权限组添加用户) |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="添加(给权限组添加用户)") |
| | | public ServiceModel add(@RequestBody List<User_permitgroup_data> list){ |
| | | ServiceModel model=service.addPro(list); |
| | | |
| | |
| | | } |
| | | |
| | | //5.2查询不存在权限组中的用户 |
| | | @GetMapping("byInfo") |
| | | @PostMapping("byInfo") |
| | | @ApiOperation(notes = "",value="查询不存在权限组中的用户") |
| | | public ServiceModel serchByInfo(@RequestBody User_permitgroup_data upd) { |
| | | ServiceModel model=service.serchByInfo(upd); |
| | | |
| | |
| | | |
| | | //5.2删除(给权限组删除用户) |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除(给权限组删除用户)") |
| | | public ServiceModel delete(@RequestBody User_permitgroup_data upd) { |
| | | ServiceModel model=service.delete(upd); |
| | | //System.out.println(upd); |