ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryTagController.java
@@ -18,6 +18,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.AddOrgId;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
@@ -41,6 +42,7 @@
     * 查询指标标签列表
     */
    //@PreAuthorize("@ss.hasPermi('system:tag:list')")
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @GetMapping("/list")
    public TableDataInfo list(HeLibraryTag heLibraryTag) {
        startPage();
@@ -75,9 +77,8 @@
    //@PreAuthorize("@ss.hasPermi('system:tag:add')")
    @Log(title = "指标标签", businessType = BusinessType.INSERT)
    @PostMapping
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    public AjaxResult add(@RequestBody HeLibraryTag heLibraryTag) {
        SysUser user = getLoginUser().getUser();
        heLibraryTag.setOrgid(user.getOrgid());
        return toAjax(heLibraryTagService.insertHeLibraryTag(heLibraryTag));
    }
@@ -86,7 +87,8 @@
     */
    //@PreAuthorize("@ss.hasPermi('system:tag:edit')")
    @Log(title = "指标标签", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    public AjaxResult edit(@RequestBody HeLibraryTag heLibraryTag) {
        return toAjax(heLibraryTagService.updateHeLibraryTag(heLibraryTag));
    }
@@ -96,7 +98,7 @@
     */
    //@PreAuthorize("@ss.hasPermi('system:tag:remove')")
    @Log(title = "指标标签", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    @GetMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(heLibraryTagService.deleteHeLibraryTagByIds(ids));
    }