Explorar el Código

公告管理修改

master
WendyYang hace 1 año
padre
commit
81b9b4b2c0
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  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 Ver fichero

@@ -3,12 +3,12 @@ package com.ningdatech.pmapi.sys.controller;
import com.ningdatech.basic.model.IdVo;
import com.ningdatech.basic.model.PageVo;
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.NoticeSaveReq;
import com.ningdatech.pmapi.sys.model.req.NoticeStatusModifyReq;
import com.ningdatech.pmapi.sys.model.vo.NoticeDetailVO;
import com.ningdatech.pmapi.sys.model.vo.NoticeListItemVO;
import com.ningdatech.pmapi.sys.manage.NoticeManage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
@@ -18,7 +18,7 @@ import javax.validation.Valid;

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

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

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

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


Cargando…
Cancelar
Guardar