class MemberNoticeManagerController {
    @Autowired
    private MemberNoticeService memberNoticeService;

    @ApiOperation(value = "获取详情")
    @GetMapping(value = "/{id}")
    public ResultMessage<MemberNotice> get(@PathVariable String id) {
        MemberNotice memberNotice = memberNoticeService.getById(id);
        return ResultUtil.data(memberNotice);
    }

    @ApiOperation(value = "分页获取站内信")
    @GetMapping(value = "/page")
    public ResultMessage<IPage<MemberNotice>> getByPage(
            PageVO page) {
        IPage<MemberNotice> data = memberNoticeService.page(PageUtil.initPage(page));
        return ResultUtil.data(data);
    }

    @ApiOperation(value = "阅读消息")
    @PostMapping("/read/{ids}")
    public ResultMessage<Object> read(@PathVariable List ids) {
        UpdateWrapper updateWrapper = new UpdateWrapper();
        updateWrapper.in("id", ids);
        updateWrapper.set("is_read", true);
        memberNoticeService.update(updateWrapper);
        return ResultUtil.success();
    }

    @ApiOperation(value = "阅读全部")
    @PostMapping("/read/all")
    public ResultMessage<Object> readAll() {<FILL_FUNCTION_BODY>}

    @ApiOperation(value = "批量删除")
    @DeleteMapping(value = "/{ids}")
    public ResultMessage<Object> delAllByIds(@PathVariable List ids) {
        memberNoticeService.removeByIds(ids);
        return ResultUtil.success();
    }

    @ApiOperation(value = "删除所有")
    @DeleteMapping
    public ResultMessage<Object> deleteAll() {
        QueryWrapper queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("member_id", UserContext.getCurrentUser().getId());
        memberNoticeService.remove(queryWrapper);
        return ResultUtil.success();
    }

}

        UpdateWrapper updateWrapper = new UpdateWrapper();
        updateWrapper.in("member_id", UserContext.getCurrentUser().getId());
        updateWrapper.set("is_read", true);
        memberNoticeService.update(updateWrapper);
        return ResultUtil.success();
    
<no_super_class>