| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package com.linkwechat.controller;
- import com.linkwechat.common.core.controller.BaseController;
- import com.linkwechat.common.core.domain.AjaxResult;
- import com.linkwechat.common.core.page.TableDataInfo;
- import com.linkwechat.domain.sop.vo.WeSopAddQueryVo;
- import com.linkwechat.domain.sop.vo.WeSopQueryListVo;
- import com.linkwechat.service.IWeSopBaseService;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.web.bind.annotation.*;
- import javax.annotation.Resource;
- /**
- * @author quchen
- * @date 2025/9/2 10:29
- */
- @Slf4j
- @RestController
- @RequestMapping(value = "sop")
- @Api(tags = "活动管理")
- public class WeSopBaseController extends BaseController {
- @Resource
- private IWeSopBaseService weSopBaseService;
- @PostMapping(value = "addSop")
- @ApiOperation(value = "新增活动", httpMethod = "POST")
- public AjaxResult addSop(@RequestBody WeSopAddQueryVo weSopAddQueryVo) {
- return AjaxResult.success(weSopBaseService.addSop(weSopAddQueryVo));
- }
- @PostMapping(value = "updateSop")
- public AjaxResult updateSop(@RequestBody WeSopAddQueryVo weSopAddQueryVo) {
- return AjaxResult.success(weSopBaseService.updateSop(weSopAddQueryVo));
- }
- @GetMapping(value = "deleteSop")
- public AjaxResult deleteSop(@RequestParam("id") String id) {
- return weSopBaseService.deleteSop(id);
- }
- @GetMapping(value = "disableStatus")
- public AjaxResult disableStatus(@RequestParam("id") String id) {
- return weSopBaseService.disableStatus(id);
- }
- @GetMapping(value = "getSop")
- public AjaxResult getSop(@RequestParam("id") String id) {
- return AjaxResult.success(weSopBaseService.getById(id));
- }
- @GetMapping(value = "copySop")
- public AjaxResult copySop(@RequestParam("id") String id) {
- return AjaxResult.success(weSopBaseService.copySop(id));
- }
- @GetMapping(value = "listSop")
- public TableDataInfo listSop(WeSopQueryListVo weSopQueryListVo) {
- startPage();
- return getDataTable(weSopBaseService.listSop(weSopQueryListVo));
- }
- }
|