通知中心接口修改
This commit is contained in:
@@ -64,7 +64,7 @@ public class SyncNoticeController {
|
||||
* @return 消息记录数
|
||||
*/
|
||||
@PutMapping("/count")
|
||||
public CzgResult<Long> count(@RequestParam Integer isRead) {
|
||||
public CzgResult<Long> count(@RequestParam(required = false) Integer isRead) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper().eq(SyncNotice::getShopId, StpKit.USER.getShopId());
|
||||
queryWrapper.eq(SyncNotice::getIsRead, isRead);
|
||||
return CzgResult.success(syncNoticeService.count(queryWrapper));
|
||||
|
||||
Reference in New Issue
Block a user