| | |
| | | package com.ruoyi.basic.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.basic.pojo.StandardMethod; |
| | | import com.ruoyi.basic.service.StandardMethodService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | private StandardMethodService standardMethodService; |
| | | |
| | | @ApiOperation(value = "获取标准方法列表") |
| | | @PostMapping("/selectStandardMethodList") |
| | | public Result selectStandardMethodList(Page page,StandardMethod standardMethod) throws Exception { |
| | | @GetMapping("/selectStandardMethodList") |
| | | public Result selectStandardMethodList(Page page, StandardMethod standardMethod) throws Exception { |
| | | return Result.success(standardMethodService.selectStandardMethodList(page, standardMethod)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "删除标准方法") |
| | | @PostMapping("/delStandardMethod") |
| | | @DeleteMapping("/delStandardMethod") |
| | | public Result<?> delStandardMethod(Integer id) { |
| | | return Result.success(standardMethodService.delStandardMethod(id)); |
| | | } |