待阅已阅列表
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.yxt.messagecenter.api.messagelist.app;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author dimengzhe
|
||||
* @Date 2023/2/20 15:18
|
||||
* @Description
|
||||
*/
|
||||
@Data
|
||||
public class MessageReadListQuery implements Query {
|
||||
private static final long serialVersionUID = 2963827640039055901L;
|
||||
|
||||
@ApiModelProperty("用户sid")
|
||||
private String userSid;
|
||||
@ApiModelProperty("组织机构全路径")
|
||||
private String orgPath;
|
||||
@ApiModelProperty("0 待阅 1 已阅")
|
||||
private int state;
|
||||
|
||||
private String names;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.yxt.messagecenter.api.messagelist.app;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author dimengzhe
|
||||
* @Date 2023/2/20 16:35
|
||||
* @Description
|
||||
*/
|
||||
@Data
|
||||
public class MessageReadListVo implements Vo {
|
||||
private static final long serialVersionUID = -6064144224800959448L;
|
||||
|
||||
@ApiModelProperty("消息列表sid")
|
||||
private String sid;
|
||||
|
||||
@ApiModelProperty("消息体sid")
|
||||
private String msgSid;
|
||||
|
||||
@ApiModelProperty("0.内置Activity 1.内置WebView 2.RePlugin插件")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty("apk下载地址(type = 2有)")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty("RePlugin插件名称(type = 2有)")
|
||||
private String modulePluginName;
|
||||
|
||||
@ApiModelProperty("启动模块的动作(0.启动Activity的包名+类名 1.html地址 2.启动Activity的包名+类名)")
|
||||
private String moduleAction;
|
||||
|
||||
@ApiModelProperty("模块的版本(type = 2,3有)")
|
||||
private int moduleVersion;
|
||||
|
||||
@ApiModelProperty("插件Sid(type = 2有)")
|
||||
private String moduleSid;
|
||||
|
||||
@ApiModelProperty("参数(规则),json类型的传参(必须为 string、string)")
|
||||
private String json;
|
||||
|
||||
@ApiModelProperty("消息标题")
|
||||
private String msgTitle;
|
||||
|
||||
@ApiModelProperty("消息内容")
|
||||
private String msgContent;
|
||||
|
||||
@ApiModelProperty("状态(阅读状态,0未阅,1已阅)")
|
||||
private String state;
|
||||
|
||||
@ApiModelProperty("发送时间")
|
||||
private String sendTime;
|
||||
|
||||
//发起人
|
||||
private String senderName;
|
||||
//来源
|
||||
private String msgSource;
|
||||
//红点更新时间
|
||||
private String redTime;
|
||||
|
||||
}
|
||||
@@ -9,9 +9,7 @@ import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.messagecenter.api.message.Message;
|
||||
import com.yxt.messagecenter.api.messagelist.*;
|
||||
import com.yxt.messagecenter.api.messagelist.app.AppMessageListQuery;
|
||||
import com.yxt.messagecenter.api.messagelist.app.AppMessageListVo;
|
||||
import com.yxt.messagecenter.api.messagelist.app.AppMsgMainVo;
|
||||
import com.yxt.messagecenter.api.messagelist.app.*;
|
||||
import com.yxt.messagecenter.biz.message.MessageService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -216,4 +214,13 @@ public class MessageListRest implements MessageListFeign {
|
||||
}
|
||||
return new ResultBean().success();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<MessageReadListVo>> getAppReadListByUserSid(PagerQuery<MessageReadListQuery> pq) {
|
||||
if (StringUtils.isBlank(pq.getParams().getUserSid())) {
|
||||
return new ResultBean().fail().setMsg("用户sid不能为空");
|
||||
}
|
||||
PagerVo<MessageReadListVo> pagerVo = messageListService.getAppReadListByUserSid(pq);
|
||||
return new ResultBean<PagerVo<MessageReadListVo>>().success().setData(pagerVo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user