| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.dto.Custom; |
| | | import com.yuanchu.mom.pojo.Custom; |
| | | import com.yuanchu.mom.dto.UserPageDto; |
| | | import com.yuanchu.mom.pojo.User; |
| | | import com.yuanchu.mom.service.CustomService; |
| | |
| | | return Result.success(customService.addCustom(custom)); |
| | | } |
| | | |
| | | @ValueClassify("客户管理") |
| | | @ApiOperation(value = "修改客户信息") |
| | | @PostMapping("/upCustom") |
| | | public Result<?> upCustom(@RequestBody Custom custom) { |
| | | return Result.success(customService.upCustom(custom)); |
| | | } |
| | | |
| | | //获取设备负责人 |
| | | @ValueAuth |
| | | @ApiOperation(value = "获取设备负责人") |
| | |
| | | return Result.success(userService.delUserDepardLimsId(id)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @GetMapping ("/selectCustomEnum") |
| | | @ApiOperation(value = "获取客户枚举") |
| | | public Result<?> selectCustomEnum(){ |
| | | return Result.success(customService.selectCustomEnum()); |
| | | } |
| | | |
| | | } |