修改消息已读接口传参方式
This commit is contained in:
@@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/app/notice")
|
||||
@@ -47,10 +48,11 @@ public class AppNoticeInfoController extends BaseController {
|
||||
}
|
||||
|
||||
@ApiOperation("通知已读")
|
||||
@PutMapping("/read/noticeRead/{id}")
|
||||
@BussinessLog(title = "通知标记已读")
|
||||
public AjaxResult noticeRead(@PathVariable String id)
|
||||
@PostMapping("/read/noticeRead")
|
||||
@BussinessLog(title = "系统通知标记已读")
|
||||
public AjaxResult noticeRead(@RequestBody Map<String, String> request)
|
||||
{
|
||||
String id = request.get("id");
|
||||
if(StringUtils.isBlank(id)){
|
||||
return error("参数为空!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user