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