| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import com.ycl.platform.domain.form.DefaultRuleSetForm; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | return defaultRuleService.update(form); |
| | | } |
| | | |
| | | @PostMapping("/set") |
| | | @ApiOperation(value = "启用/停用", notes = "启用/停用") |
| | | public Result set(@RequestBody DefaultRuleSetForm form) { |
| | | return defaultRuleService.set(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "ID删除", notes = "ID删除") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | |
| | | return defaultRuleService.remove(ids); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "分页", notes = "分页") |
| | | public Result page(DefaultRuleQuery query) { |
| | | public Result page(@RequestBody DefaultRuleQuery query) { |
| | | return defaultRuleService.page(query); |
| | | } |
| | | |