| | |
| | | * 查询服务方案库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SchemeLocallibrary schemeLocallibrary) |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | | startPage(); |
| | | List<SchemeLocallibrary> list = schemeLocallibraryService.selectSchemeLocallibraryList(schemeLocallibrary); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:add')") |
| | | @Log(title = "服务方案库", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | | return toAjax(schemeLocallibraryService.insertSchemeLocallibrary(schemeLocallibrary)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:edit')") |
| | | @Log(title = "服务方案库", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeLocallibrary schemeLocallibrary) |
| | | { |
| | | return toAjax(schemeLocallibraryService.updateSchemeLocallibrary(schemeLocallibrary)); |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:remove')") |
| | | @Log(title = "服务方案库", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(schemeLocallibraryService.deleteSchemeLocallibraryByIds(ids)); |