|
@@ -1,15 +1,16 @@
|
|
|
package com.yonge.cooleshow.biz.dal.entity;
|
|
|
|
|
|
|
|
|
-import java.util.Date;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
-import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* 群公告(ImGroupNotice)表实体类
|
|
@@ -20,32 +21,36 @@ import java.io.Serializable;
|
|
|
@ApiModel(value = "im_group_notice-群公告")
|
|
|
public class ImGroupNotice implements Serializable {
|
|
|
@TableId(value = "id_", type = IdType.AUTO)
|
|
|
+ @NotNull(message = "公告编号不可为空")
|
|
|
@ApiModelProperty(value = "主键;")
|
|
|
private Long id;
|
|
|
|
|
|
- @TableField("groupId")
|
|
|
+ @TableField("group_id_")
|
|
|
+ @NotNull(message = "群编号不可为空")
|
|
|
@ApiModelProperty(value = "群编号;")
|
|
|
private Long groupId;
|
|
|
|
|
|
@TableField("title_")
|
|
|
+ @NotBlank(message = "公告标题不可为空")
|
|
|
@ApiModelProperty(value = "标题")
|
|
|
private String title;
|
|
|
|
|
|
@TableField("content_")
|
|
|
+ @NotBlank(message = "公告内容不可为空")
|
|
|
@ApiModelProperty(value = "内容")
|
|
|
private String content;
|
|
|
|
|
|
@TableField("is_top_")
|
|
|
@ApiModelProperty(value = "是否置顶")
|
|
|
- private Object isTop;
|
|
|
+ private Boolean isTop = false;
|
|
|
|
|
|
@TableField("is_sent_to_new_member_")
|
|
|
@ApiModelProperty(value = "是否发送给新人")
|
|
|
- private Object isSentToNewMember;
|
|
|
+ private Boolean isSentToNewMember = false;
|
|
|
|
|
|
@TableField("del_flag_")
|
|
|
@ApiModelProperty(value = "是否删除1是0否;")
|
|
|
- private Object delFlag;
|
|
|
+ private Boolean delFlag = false;
|
|
|
|
|
|
@TableField("operator_id_")
|
|
|
@ApiModelProperty(value = "操作人")
|
|
@@ -59,7 +64,6 @@ public class ImGroupNotice implements Serializable {
|
|
|
@ApiModelProperty(value = "修改时间;")
|
|
|
private Date updateTime;
|
|
|
|
|
|
-
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
@@ -92,27 +96,27 @@ public class ImGroupNotice implements Serializable {
|
|
|
this.content = content;
|
|
|
}
|
|
|
|
|
|
- public Object getIsTop() {
|
|
|
+ public Boolean getTop() {
|
|
|
return isTop;
|
|
|
}
|
|
|
|
|
|
- public void setIsTop(Object isTop) {
|
|
|
- this.isTop = isTop;
|
|
|
+ public void setTop(Boolean top) {
|
|
|
+ isTop = top;
|
|
|
}
|
|
|
|
|
|
- public Object getIsSentToNewMember() {
|
|
|
+ public Boolean getSentToNewMember() {
|
|
|
return isSentToNewMember;
|
|
|
}
|
|
|
|
|
|
- public void setIsSentToNewMember(Object isSentToNewMember) {
|
|
|
- this.isSentToNewMember = isSentToNewMember;
|
|
|
+ public void setSentToNewMember(Boolean sentToNewMember) {
|
|
|
+ isSentToNewMember = sentToNewMember;
|
|
|
}
|
|
|
|
|
|
- public Object getDelFlag() {
|
|
|
+ public Boolean getDelFlag() {
|
|
|
return delFlag;
|
|
|
}
|
|
|
|
|
|
- public void setDelFlag(Object delFlag) {
|
|
|
+ public void setDelFlag(Boolean delFlag) {
|
|
|
this.delFlag = delFlag;
|
|
|
}
|
|
|
|
|
@@ -139,6 +143,5 @@ public class ImGroupNotice implements Serializable {
|
|
|
public void setUpdateTime(Date updateTime) {
|
|
|
this.updateTime = updateTime;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|