| | |
| | | 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; |
| | |
| | | * 查询指标标签列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(HeLibraryTag heLibraryTag) { |
| | | startPage(); |
| | |
| | | //@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)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "指标标签", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | public AjaxResult edit(@RequestBody HeLibraryTag heLibraryTag) { |
| | | return toAjax(heLibraryTagService.updateHeLibraryTag(heLibraryTag)); |
| | | } |