| | |
| | | * 查询方案分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SchemeCategory schemeCategory) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | startPage(); |
| | | List<SchemeCategory> list = schemeCategoryService.selectSchemeCategoryList(schemeCategory); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')") |
| | | @Log(title = "方案分类", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | return toAjax(schemeCategoryService.insertSchemeCategory(schemeCategory)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')") |
| | | @Log(title = "方案分类", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeCategory schemeCategory) |
| | | { |
| | | return toAjax(schemeCategoryService.updateSchemeCategory(schemeCategory)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemecategory:remove')") |
| | | @Log(title = "方案分类", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(schemeCategoryService.deleteSchemeCategoryByIds(ids)); |