liusheng
2023-12-04 cde16e4d86afb08896a8eeaea8f22cf6f5a94aa5
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeCategoryController.java
@@ -2,6 +2,9 @@
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -27,6 +30,7 @@
 * @author smartor
 * @date 2023-03-04
 */
@Api("宣教分类(宣教类别)")
@RestController
@RequestMapping("/smartor/hecategory")
public class HeCategoryController extends BaseController
@@ -37,6 +41,7 @@
    /**
     * 查询宣教分类列表
     */
    @ApiOperation("查询患者档案列表")
    @PreAuthorize("@ss.hasPermi('smartor:hecategory:list')")
    @GetMapping("/list")
    public TableDataInfo list(HeCategory heCategory)
@@ -49,6 +54,7 @@
    /**
     * 导出宣教分类列表
     */
    @ApiOperation("导出宣教分类列表")
    @PreAuthorize("@ss.hasPermi('smartor:hecategory:export')")
    @Log(title = "宣教分类", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
@@ -62,6 +68,7 @@
    /**
     * 获取宣教分类详细信息
     */
    @ApiOperation("获取宣教分类详细信息")
    @PreAuthorize("@ss.hasPermi('smartor:hecategory:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
@@ -72,6 +79,7 @@
    /**
     * 新增宣教分类
     */
    @ApiOperation("新增宣教分类")
    @PreAuthorize("@ss.hasPermi('smartor:hecategory:add')")
    @Log(title = "宣教分类", businessType = BusinessType.INSERT)
    @PostMapping
@@ -83,6 +91,7 @@
    /**
     * 修改宣教分类
     */
    @ApiOperation("修改宣教分类")
    @PreAuthorize("@ss.hasPermi('smartor:hecategory:edit')")
    @Log(title = "宣教分类", businessType = BusinessType.UPDATE)
    @PutMapping
@@ -94,6 +103,7 @@
    /**
     * 删除宣教分类
     */
    @ApiOperation("删除宣教分类")
    @PreAuthorize("@ss.hasPermi('smartor:hecategory:remove')")
    @Log(title = "宣教分类", businessType = BusinessType.DELETE)
   @DeleteMapping("/{ids}")