| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | * 查询题目列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyTopic svyTopic) { |
| | | startPage(); |
| | | List<SvyTopic> list = svyTopicService.selectSvyTopicList(svyTopic); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:add')") |
| | | @Log(title = "题目", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTopic svyTopic) { |
| | | SysUser user = getLoginUser().getUser(); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:topic:edit')") |
| | | @Log(title = "题目", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTopic svyTopic) { |
| | | return toAjax(svyTopicService.updateSvyTopic(svyTopic)); |