文件名从 signature/src/main/java/com/gkhy/sign/controller/SignatureTypeController.java 修改 |
| | |
| | | package com.gkhy.sign.controller; |
| | | package com.gkhy.sign.controller.web; |
| | | |
| | | import com.gkhy.sign.entity.SignatureType; |
| | | import com.gkhy.sign.service.SignatureTypeService; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | |
| | | |
| | | |
| | | @RestController |
| | | @Api(value = "签署类型管理") |
| | | @Api(tags = "签署类型管理") |
| | | @RequestMapping("/type") |
| | | public class SignatureTypeController extends BaseController { |
| | | |
| | |
| | | * 查询签署类别列表 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询签署类别列表") |
| | | @ApiOperation("查询签署类别列表") |
| | | @Anonymous |
| | | public AjaxResult list(SignatureType signatureType) { |
| | | return success(signatureTypeService.selectTypeList(signatureType)); |
| | | } |
| | |
| | | * 新增签署类别 |
| | | */ |
| | | @PostMapping("/insert") |
| | | @ApiOperation(value = "新增签署类别") |
| | | @ApiOperation("新增签署类别") |
| | | public AjaxResult add(@Validated @RequestBody SignatureType signatureType) { |
| | | return toAjax(signatureTypeService.insertSignatureType(signatureType)); |
| | | } |
| | |
| | | * 修改签署类别 |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperation(value = "修改签署类别") |
| | | @ApiOperation("修改签署类别") |
| | | public AjaxResult edit(@RequestBody SignatureType signatureType) { |
| | | return toAjax(signatureTypeService.updateSignatureType(signatureType)); |
| | | } |
| | |
| | | /** |
| | | * 删除签署类别 |
| | | */ |
| | | @PostMapping("/delete") |
| | | @ApiOperation(value = "删除签署类别") |
| | | public AjaxResult remove(@RequestBody Long[] ids) { |
| | | return toAjax(signatureTypeService.deleteType(ids)); |
| | | @PostMapping("/delete/{id}") |
| | | @ApiOperation("删除签署类别") |
| | | public AjaxResult remove(@PathVariable("id") Integer id) { |
| | | return toAjax(signatureTypeService.deleteType(id)); |
| | | } |
| | | |
| | | |