消息管理封装

yun-zuoyi
yunhao.wang 7 years ago
parent e7f756efa7
commit 4229601ddb

@ -348,7 +348,7 @@ public class ImppEnumUtil {
* 2.UNREAD * 2.UNREAD
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_MESSAGE_STATUS{ public enum MESSAGE_STATUS {
READ(1,"已读","fa cell-fa fa-file-text"), READ(1,"已读","fa cell-fa fa-file-text"),
UNREAD(2,"未读","fa cell-fa fa-file-o"); UNREAD(2,"未读","fa cell-fa fa-file-o");
@ -357,10 +357,10 @@ public class ImppEnumUtil {
private String name; private String name;
private String description; private String description;
USER_MESSAGE_STATUS() { MESSAGE_STATUS() {
} }
USER_MESSAGE_STATUS(int value, String name, String description) { MESSAGE_STATUS(int value, String name, String description) {
this.value = value; this.value = value;
this.name = name; this.name = name;
this.description = description; this.description = description;
@ -415,7 +415,7 @@ public class ImppEnumUtil {
* 2.STATION_LETTER * 2.STATION_LETTER
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_MESSAGE_TYPE{ public enum MESSAGE_TYPE {
MAIL(1,"邮件","邮件"), MAIL(1,"邮件","邮件"),
LETTER(2,"站内信","站内信"); LETTER(2,"站内信","站内信");
@ -424,10 +424,10 @@ public class ImppEnumUtil {
private String name; private String name;
private String description; private String description;
USER_MESSAGE_TYPE() { MESSAGE_TYPE() {
} }
USER_MESSAGE_TYPE(int value, String name, String description) { MESSAGE_TYPE(int value, String name, String description) {
this.value = value; this.value = value;
this.name = name; this.name = name;
this.description = description; this.description = description;

@ -35,11 +35,11 @@ public class SysMessage extends BaseBean {
private String messageTitle; private String messageTitle;
@Column(name="MESSAGE_TYPE") @Column(name="MESSAGE_TYPE")
@ApiParam(value ="消息类型(枚举:1.通知2.站内信)" , example ="-1") @ApiParam(value ="消息类型(枚举:ImppEnumUtil.MESSAGE_TYPE)" , example ="-1")
private Integer messageType; private Integer messageType;
@Column(name="MESSAGE_CONTENT_TYPE") @Column(name="MESSAGE_CONTENT_TYPE")
@ApiParam(value ="消息内容类型(枚举:1.HTML2.TEXT)" , example ="-1") @ApiParam(value ="消息内容类型(枚举:ImppEnumUtil.MESSAGE_CONTENT_TYPE)" , example ="-1")
private Integer messageContentType; private Integer messageContentType;
@Column(name="MESSAGE_CONTENT") @Column(name="MESSAGE_CONTENT")

Loading…
Cancel
Save