Browse Source

Merge remote-tracking branch 'origin/master'

tags/24080901
liuxinxin 1 year ago
parent
commit
56cc748066
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java

+ 6
- 6
pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java View File

@@ -3,12 +3,12 @@ package com.ningdatech.pmapi.sys.controller;
import com.ningdatech.basic.model.IdVo; import com.ningdatech.basic.model.IdVo;
import com.ningdatech.basic.model.PageVo; import com.ningdatech.basic.model.PageVo;
import com.ningdatech.log.annotation.WebLog; import com.ningdatech.log.annotation.WebLog;
import com.ningdatech.pmapi.sys.manage.NoticeManage;
import com.ningdatech.pmapi.sys.model.req.NoticeListReq; import com.ningdatech.pmapi.sys.model.req.NoticeListReq;
import com.ningdatech.pmapi.sys.model.req.NoticeSaveReq; import com.ningdatech.pmapi.sys.model.req.NoticeSaveReq;
import com.ningdatech.pmapi.sys.model.req.NoticeStatusModifyReq; import com.ningdatech.pmapi.sys.model.req.NoticeStatusModifyReq;
import com.ningdatech.pmapi.sys.model.vo.NoticeDetailVO; import com.ningdatech.pmapi.sys.model.vo.NoticeDetailVO;
import com.ningdatech.pmapi.sys.model.vo.NoticeListItemVO; import com.ningdatech.pmapi.sys.model.vo.NoticeListItemVO;
import com.ningdatech.pmapi.sys.manage.NoticeManage;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@@ -18,7 +18,7 @@ import javax.validation.Valid;


/** /**
* <p> * <p>
* 系统通知 前端控制器
* 系统公告 前端控制器
* </p> * </p>
* *
* @author WendyYang * @author WendyYang
@@ -33,21 +33,21 @@ public class NoticeController {
private final NoticeManage noticeManage; private final NoticeManage noticeManage;


@PostMapping("/save") @PostMapping("/save")
@ApiOperation("新增通知")
@ApiOperation("新增公告")
@WebLog("新增公告") @WebLog("新增公告")
public IdVo<Long> save(@Valid @RequestBody NoticeSaveReq req) { public IdVo<Long> save(@Valid @RequestBody NoticeSaveReq req) {
return noticeManage.saveOrModify(req); return noticeManage.saveOrModify(req);
} }


@GetMapping("/detail/{id}") @GetMapping("/detail/{id}")
@ApiOperation("通知详情")
@ApiOperation("公告详情")
public NoticeDetailVO save(@PathVariable Long id) { public NoticeDetailVO save(@PathVariable Long id) {
return noticeManage.detail(id); return noticeManage.detail(id);
} }


@PostMapping("/enabled") @PostMapping("/enabled")
@ApiOperation("启用禁用")
@WebLog("启用禁用")
@ApiOperation("启用/禁用")
@WebLog("启用/禁用")
public Boolean save(@Valid @RequestBody NoticeStatusModifyReq req) { public Boolean save(@Valid @RequestBody NoticeStatusModifyReq req) {
return noticeManage.changeEnabled(req); return noticeManage.changeEnabled(req);
} }


Loading…
Cancel
Save