通知中心调整
This commit is contained in:
parent
0253aaeaed
commit
1ebd686a22
|
|
@ -62,11 +62,21 @@ public class SyncNoticeController {
|
|||
* 清空已读
|
||||
* @return 是否成功
|
||||
*/
|
||||
@DeleteMapping
|
||||
@DeleteMapping("/clear")
|
||||
public CzgResult<Boolean> clear() {
|
||||
return CzgResult.success(syncNoticeService.remove(new QueryWrapper().eq(SyncNotice::getShopId, StpKit.USER.getShopId()).eq(SyncNotice::getIsRead, 1)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param id id
|
||||
* @return 是否成功
|
||||
*/
|
||||
@DeleteMapping
|
||||
public CzgResult<Boolean> delete(@RequestParam Long id) {
|
||||
return CzgResult.success(syncNoticeService.remove(new QueryWrapper().eq(SyncNotice::getShopId, StpKit.USER.getShopId()).eq(SyncNotice::getId, id)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 消息统计
|
||||
|
|
|
|||
Loading…
Reference in New Issue