| | |
| | | @RestController @RequestMapping("/mes/dv/spare") @Validated |
| | | public class MesDvSpareController { |
| | | @Resource private MesDvSpareService service; |
| | | @GetMapping("/page") @PreAuthorize("@ss.hasPermission('mes:dv-spare:query')") |
| | | @GetMapping("/page") |
| | | public CommonResult<PageResult<MesDvSparePartDO>> page(@Valid MesDvSparePageReqVO req) { return success(service.page(req)); } |
| | | @GetMapping("/get") @PreAuthorize("@ss.hasPermission('mes:dv-spare:query')") |
| | | @GetMapping("/get") |
| | | public CommonResult<MesDvSparePartDO> get(@RequestParam Long id) { return success(service.get(id)); } |
| | | @PostMapping("/create") @PreAuthorize("@ss.hasPermission('mes:dv-spare:create')") |
| | | public CommonResult<Long> create(@Valid @RequestBody MesDvSparePartSaveReqVO req) { |