package com.panzhihua.service_community.model.dos; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import java.io.Serializable; import java.util.Date; /** * @auther lyq * @create 2021-08-23 10:33:11 * @describe 预约登记表实体类 */ @Data @TableName("com_act_reserve") public class ComActReserveDO implements Serializable { private static final long serialVersionUID = 1L; /** * 主键id */ @TableId(type = IdType.ASSIGN_ID) private Long id; /** * 社区id */ private Long communityId; /** * 类型(1.预约 2.登记) */ private Integer type; /** * 主题 */ private String title; /** * 浏览量 */ private Integer viewNum; /** * 总参加人数 */ private Integer joinAllCount; /** * 参加人数 */ private Integer joinCount; /** * 图标类型(1.预设1 2.预设2 3.预设3 4.预设4 5.用户自定义图片) */ private Integer imgType; /** * 图标url(当img_type为5时,此字段的值为图标url地址) */ private String imgUrl; /** * 状态(1.待发布 2.进行中 3.已停止) */ private Integer status; /** * 发布时间 */ private Date publishTime; /** * 是否可重复提交(1.是 2.否) */ private Integer isRepeat; /** * 备注 */ private String remark; /** * 组件json数据 */ private String jsonObject; /** * 是否是首页顶部(1.是 2.否) */ private Integer adverPositionTop; /** * 是否是首页应用(1.是 2.否) */ private Integer adverPositionApplication; /** * 创建时间 */ private Date createAt; /** * 创建人 */ private Long createBy; /** * 修改时间 */ private Date updateAt; /** * 修改人 */ private Long updateBy; /** * 结束时间 */ @TableField(value = "end_time", updateStrategy = FieldStrategy.IGNORED) private Date endTime; /** * 是否已删除(1.是 2.否) */ private Integer isDel; /** * 默认是否枚举(1.是 2.否) */ public interface isOk{ int yes = 1; int no = 2; } /** * 预约登记状态枚举(1.待发布 2.进行中 3.已停止) */ public interface status{ int dfb = 1; int jxz = 2; int ytz = 3; } @Override public String toString() { return "ComActReserveDO{" + "id=" + id + ", communityId=" + communityId + ", type=" + type + ", title=" + title + ", viewNum=" + viewNum + ", joinAllCount=" + joinAllCount + ", joinCount=" + joinCount + ", imgType=" + imgType + ", imgUrl=" + imgUrl + ", status=" + status + ", publishTime=" + publishTime + ", isRepeat=" + isRepeat + ", remark=" + remark + ", jsonObject=" + jsonObject + ", adverPositionTop=" + adverPositionTop + ", adverPositionApplication=" + adverPositionApplication + ", createAt=" + createAt + ", createBy=" + createBy + ", updateAt=" + updateAt + ", updateBy=" + updateBy + "}"; } public interface isRepeat{ int yes=1; int no=2; } }