diff --git a/ConfigEntity.java b/ConfigEntity.java new file mode 100644 index 0000000..05ef5e4 --- /dev/null +++ b/ConfigEntity.java @@ -0,0 +1,53 @@ +package com.entity; + +import java.io.Serializable;import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; + +/** +* @author yangliyuan +* @version 创建时间:2020年2月7日 下午8:36:05 +* 类说明 : +*/ +@TableName("config") +public class ConfigEntity implements Serializable{ +private static final long serialVersionUID = 1L; + + @TableId(type = IdType.AUTO) + private Long id; + + /** + * key + */ + private String name; + + /** + * value + */ + private String value; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + +} diff --git a/DictionaryEntity.java b/DictionaryEntity.java new file mode 100644 index 0000000..a4826d7 --- /dev/null +++ b/DictionaryEntity.java @@ -0,0 +1,239 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 字典 + * + * @author + * @email + */ +@TableName("dictionary") +public class DictionaryEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public DictionaryEntity() { + + } + + public DictionaryEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="bigint(20)") + @TableField(value = "id") + + private Long id; + + + /** + * 字段 + */ + @ColumnInfo(comment="字段",type="varchar(200)") + @TableField(value = "dic_code") + + private String dicCode; + + + /** + * 字段名 + */ + @ColumnInfo(comment="字段名",type="varchar(200)") + @TableField(value = "dic_name") + + private String dicName; + + + /** + * 编码 + */ + @ColumnInfo(comment="编码",type="int(11)") + @TableField(value = "code_index") + + private Integer codeIndex; + + + /** + * 编码名字 + */ + @ColumnInfo(comment="编码名字",type="varchar(200)") + @TableField(value = "index_name") + + private String indexName; + + + /** + * 父字段id + */ + @ColumnInfo(comment="父字段id",type="int(11)") + @TableField(value = "super_id") + + private Integer superId; + + + /** + * 备注 + */ + @ColumnInfo(comment="备注",type="varchar(200)") + @TableField(value = "beizhu") + + private String beizhu; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Long getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Long id) { + this.id = id; + } + /** + * 获取:字段 + */ + public String getDicCode() { + return dicCode; + } + /** + * 设置:字段 + */ + + public void setDicCode(String dicCode) { + this.dicCode = dicCode; + } + /** + * 获取:字段名 + */ + public String getDicName() { + return dicName; + } + /** + * 设置:字段名 + */ + + public void setDicName(String dicName) { + this.dicName = dicName; + } + /** + * 获取:编码 + */ + public Integer getCodeIndex() { + return codeIndex; + } + /** + * 设置:编码 + */ + + public void setCodeIndex(Integer codeIndex) { + this.codeIndex = codeIndex; + } + /** + * 获取:编码名字 + */ + public String getIndexName() { + return indexName; + } + /** + * 设置:编码名字 + */ + + public void setIndexName(String indexName) { + this.indexName = indexName; + } + /** + * 获取:父字段id + */ + public Integer getSuperId() { + return superId; + } + /** + * 设置:父字段id + */ + + public void setSuperId(Integer superId) { + this.superId = superId; + } + /** + * 获取:备注 + */ + public String getBeizhu() { + return beizhu; + } + /** + * 设置:备注 + */ + + public void setBeizhu(String beizhu) { + this.beizhu = beizhu; + } + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "Dictionary{" + + ", id=" + id + + ", dicCode=" + dicCode + + ", dicName=" + dicName + + ", codeIndex=" + codeIndex + + ", indexName=" + indexName + + ", superId=" + superId + + ", beizhu=" + beizhu + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/DictionaryVO.java b/DictionaryVO.java new file mode 100644 index 0000000..b72818f --- /dev/null +++ b/DictionaryVO.java @@ -0,0 +1,209 @@ +package com.entity.vo; + +import com.entity.DictionaryEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 字典 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("dictionary") +public class DictionaryVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Long id; + + + /** + * 字段 + */ + + @TableField(value = "dic_code") + private String dicCode; + + + /** + * 字段名 + */ + + @TableField(value = "dic_name") + private String dicName; + + + /** + * 编码 + */ + + @TableField(value = "code_index") + private Integer codeIndex; + + + /** + * 编码名字 + */ + + @TableField(value = "index_name") + private String indexName; + + + /** + * 父字段id + */ + + @TableField(value = "super_id") + private Integer superId; + + + /** + * 备注 + */ + + @TableField(value = "beizhu") + private String beizhu; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Long getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Long id) { + this.id = id; + } + /** + * 设置:字段 + */ + public String getDicCode() { + return dicCode; + } + + + /** + * 获取:字段 + */ + + public void setDicCode(String dicCode) { + this.dicCode = dicCode; + } + /** + * 设置:字段名 + */ + public String getDicName() { + return dicName; + } + + + /** + * 获取:字段名 + */ + + public void setDicName(String dicName) { + this.dicName = dicName; + } + /** + * 设置:编码 + */ + public Integer getCodeIndex() { + return codeIndex; + } + + + /** + * 获取:编码 + */ + + public void setCodeIndex(Integer codeIndex) { + this.codeIndex = codeIndex; + } + /** + * 设置:编码名字 + */ + public String getIndexName() { + return indexName; + } + + + /** + * 获取:编码名字 + */ + + public void setIndexName(String indexName) { + this.indexName = indexName; + } + /** + * 设置:父字段id + */ + public Integer getSuperId() { + return superId; + } + + + /** + * 获取:父字段id + */ + + public void setSuperId(Integer superId) { + this.superId = superId; + } + /** + * 设置:备注 + */ + public String getBeizhu() { + return beizhu; + } + + + /** + * 获取:备注 + */ + + public void setBeizhu(String beizhu) { + this.beizhu = beizhu; + } + /** + * 设置:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/EIException.java b/EIException.java new file mode 100644 index 0000000..a816ecd --- /dev/null +++ b/EIException.java @@ -0,0 +1,52 @@ + +package com.entity; + +/** + * 自定义异常 + */ +public class EIException extends RuntimeException { + private static final long serialVersionUID = 1L; + + private String msg; + private int code = 500; + + public EIException(String msg) { + super(msg); + this.msg = msg; + } + + public EIException(String msg, Throwable e) { + super(msg, e); + this.msg = msg; + } + + public EIException(String msg, int code) { + super(msg); + this.msg = msg; + this.code = code; + } + + public EIException(String msg, int code, Throwable e) { + super(msg, e); + this.msg = msg; + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + +} diff --git a/ForumEntity.java b/ForumEntity.java new file mode 100644 index 0000000..1cc6888 --- /dev/null +++ b/ForumEntity.java @@ -0,0 +1,312 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 健身论坛 + * + * @author + * @email + */ +@TableName("forum") +public class ForumEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public ForumEntity() { + + } + + public ForumEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="int(11)") + @TableField(value = "id") + + private Integer id; + + + /** + * 帖子标题 + */ + @ColumnInfo(comment="帖子标题",type="varchar(200)") + @TableField(value = "forum_name") + + private String forumName; + + + /** + * 用户 + */ + @ColumnInfo(comment="用户",type="int(11)") + @TableField(value = "yonghu_id") + + private Integer yonghuId; + + + /** + * 教练 + */ + @ColumnInfo(comment="教练",type="int(11)") + @TableField(value = "jiaolian_id") + + private Integer jiaolianId; + + + /** + * 管理员 + */ + @ColumnInfo(comment="管理员",type="int(11)") + @TableField(value = "users_id") + + private Integer usersId; + + + /** + * 发布内容 + */ + @ColumnInfo(comment="发布内容",type="longtext") + @TableField(value = "forum_content") + + private String forumContent; + + + /** + * 父id + */ + @ColumnInfo(comment="父id",type="int(11)") + @TableField(value = "super_ids") + + private Integer superIds; + + + /** + * 帖子状态 + */ + @ColumnInfo(comment="帖子状态",type="int(11)") + @TableField(value = "forum_state_types") + + private Integer forumStateTypes; + + + /** + * 发帖时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="发帖时间",type="timestamp") + @TableField(value = "insert_time",fill = FieldFill.INSERT) + + private Date insertTime; + + + /** + * 修改时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="修改时间",type="timestamp") + @TableField(value = "update_time",fill = FieldFill.UPDATE) + + private Date updateTime; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:帖子标题 + */ + public String getForumName() { + return forumName; + } + /** + * 设置:帖子标题 + */ + + public void setForumName(String forumName) { + this.forumName = forumName; + } + /** + * 获取:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + /** + * 设置:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 获取:教练 + */ + public Integer getJiaolianId() { + return jiaolianId; + } + /** + * 设置:教练 + */ + + public void setJiaolianId(Integer jiaolianId) { + this.jiaolianId = jiaolianId; + } + /** + * 获取:管理员 + */ + public Integer getUsersId() { + return usersId; + } + /** + * 设置:管理员 + */ + + public void setUsersId(Integer usersId) { + this.usersId = usersId; + } + /** + * 获取:发布内容 + */ + public String getForumContent() { + return forumContent; + } + /** + * 设置:发布内容 + */ + + public void setForumContent(String forumContent) { + this.forumContent = forumContent; + } + /** + * 获取:父id + */ + public Integer getSuperIds() { + return superIds; + } + /** + * 设置:父id + */ + + public void setSuperIds(Integer superIds) { + this.superIds = superIds; + } + /** + * 获取:帖子状态 + */ + public Integer getForumStateTypes() { + return forumStateTypes; + } + /** + * 设置:帖子状态 + */ + + public void setForumStateTypes(Integer forumStateTypes) { + this.forumStateTypes = forumStateTypes; + } + /** + * 获取:发帖时间 + */ + public Date getInsertTime() { + return insertTime; + } + /** + * 设置:发帖时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 获取:修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + /** + * 设置:修改时间 + */ + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "Forum{" + + ", id=" + id + + ", forumName=" + forumName + + ", yonghuId=" + yonghuId + + ", jiaolianId=" + jiaolianId + + ", usersId=" + usersId + + ", forumContent=" + forumContent + + ", superIds=" + superIds + + ", forumStateTypes=" + forumStateTypes + + ", insertTime=" + DateUtil.convertString(insertTime,"yyyy-MM-dd") + + ", updateTime=" + DateUtil.convertString(updateTime,"yyyy-MM-dd") + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/ForumVO.java b/ForumVO.java new file mode 100644 index 0000000..9eb34da --- /dev/null +++ b/ForumVO.java @@ -0,0 +1,282 @@ +package com.entity.vo; + +import com.entity.ForumEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 健身论坛 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("forum") +public class ForumVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 帖子标题 + */ + + @TableField(value = "forum_name") + private String forumName; + + + /** + * 用户 + */ + + @TableField(value = "yonghu_id") + private Integer yonghuId; + + + /** + * 教练 + */ + + @TableField(value = "jiaolian_id") + private Integer jiaolianId; + + + /** + * 管理员 + */ + + @TableField(value = "users_id") + private Integer usersId; + + + /** + * 发布内容 + */ + + @TableField(value = "forum_content") + private String forumContent; + + + /** + * 父id + */ + + @TableField(value = "super_ids") + private Integer superIds; + + + /** + * 帖子状态 + */ + + @TableField(value = "forum_state_types") + private Integer forumStateTypes; + + + /** + * 发帖时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 修改时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "update_time") + private Date updateTime; + + + /** + * 创建时间 show2 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:帖子标题 + */ + public String getForumName() { + return forumName; + } + + + /** + * 获取:帖子标题 + */ + + public void setForumName(String forumName) { + this.forumName = forumName; + } + /** + * 设置:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:教练 + */ + public Integer getJiaolianId() { + return jiaolianId; + } + + + /** + * 获取:教练 + */ + + public void setJiaolianId(Integer jiaolianId) { + this.jiaolianId = jiaolianId; + } + /** + * 设置:管理员 + */ + public Integer getUsersId() { + return usersId; + } + + + /** + * 获取:管理员 + */ + + public void setUsersId(Integer usersId) { + this.usersId = usersId; + } + /** + * 设置:发布内容 + */ + public String getForumContent() { + return forumContent; + } + + + /** + * 获取:发布内容 + */ + + public void setForumContent(String forumContent) { + this.forumContent = forumContent; + } + /** + * 设置:父id + */ + public Integer getSuperIds() { + return superIds; + } + + + /** + * 获取:父id + */ + + public void setSuperIds(Integer superIds) { + this.superIds = superIds; + } + /** + * 设置:帖子状态 + */ + public Integer getForumStateTypes() { + return forumStateTypes; + } + + + /** + * 获取:帖子状态 + */ + + public void setForumStateTypes(Integer forumStateTypes) { + this.forumStateTypes = forumStateTypes; + } + /** + * 设置:发帖时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:发帖时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:修改时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + + /** + * 获取:修改时间 + */ + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + /** + * 设置:创建时间 show2 + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show2 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/JianshenkechengCollectionEntity.java b/JianshenkechengCollectionEntity.java new file mode 100644 index 0000000..e6223c0 --- /dev/null +++ b/JianshenkechengCollectionEntity.java @@ -0,0 +1,195 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 课程收藏 + * + * @author + * @email + */ +@TableName("jianshenkecheng_collection") +public class JianshenkechengCollectionEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public JianshenkechengCollectionEntity() { + + } + + public JianshenkechengCollectionEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="int(11)") + @TableField(value = "id") + + private Integer id; + + + /** + * 健身课程 + */ + @ColumnInfo(comment="健身课程",type="int(11)") + @TableField(value = "jianshenkecheng_id") + + private Integer jianshenkechengId; + + + /** + * 用户 + */ + @ColumnInfo(comment="用户",type="int(11)") + @TableField(value = "yonghu_id") + + private Integer yonghuId; + + + /** + * 类型 + */ + @ColumnInfo(comment="类型",type="int(11)") + @TableField(value = "jianshenkecheng_collection_types") + + private Integer jianshenkechengCollectionTypes; + + + /** + * 收藏时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="收藏时间",type="timestamp") + @TableField(value = "insert_time",fill = FieldFill.INSERT) + + private Date insertTime; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:健身课程 + */ + public Integer getJianshenkechengId() { + return jianshenkechengId; + } + /** + * 设置:健身课程 + */ + + public void setJianshenkechengId(Integer jianshenkechengId) { + this.jianshenkechengId = jianshenkechengId; + } + /** + * 获取:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + /** + * 设置:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 获取:类型 + */ + public Integer getJianshenkechengCollectionTypes() { + return jianshenkechengCollectionTypes; + } + /** + * 设置:类型 + */ + + public void setJianshenkechengCollectionTypes(Integer jianshenkechengCollectionTypes) { + this.jianshenkechengCollectionTypes = jianshenkechengCollectionTypes; + } + /** + * 获取:收藏时间 + */ + public Date getInsertTime() { + return insertTime; + } + /** + * 设置:收藏时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "JianshenkechengCollection{" + + ", id=" + id + + ", jianshenkechengId=" + jianshenkechengId + + ", yonghuId=" + yonghuId + + ", jianshenkechengCollectionTypes=" + jianshenkechengCollectionTypes + + ", insertTime=" + DateUtil.convertString(insertTime,"yyyy-MM-dd") + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/JianshenkechengCollectionVO.java b/JianshenkechengCollectionVO.java new file mode 100644 index 0000000..9d007a6 --- /dev/null +++ b/JianshenkechengCollectionVO.java @@ -0,0 +1,165 @@ +package com.entity.vo; + +import com.entity.JianshenkechengCollectionEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 课程收藏 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("jianshenkecheng_collection") +public class JianshenkechengCollectionVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 健身课程 + */ + + @TableField(value = "jianshenkecheng_id") + private Integer jianshenkechengId; + + + /** + * 用户 + */ + + @TableField(value = "yonghu_id") + private Integer yonghuId; + + + /** + * 类型 + */ + + @TableField(value = "jianshenkecheng_collection_types") + private Integer jianshenkechengCollectionTypes; + + + /** + * 收藏时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 创建时间 show3 photoShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:健身课程 + */ + public Integer getJianshenkechengId() { + return jianshenkechengId; + } + + + /** + * 获取:健身课程 + */ + + public void setJianshenkechengId(Integer jianshenkechengId) { + this.jianshenkechengId = jianshenkechengId; + } + /** + * 设置:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:类型 + */ + public Integer getJianshenkechengCollectionTypes() { + return jianshenkechengCollectionTypes; + } + + + /** + * 获取:类型 + */ + + public void setJianshenkechengCollectionTypes(Integer jianshenkechengCollectionTypes) { + this.jianshenkechengCollectionTypes = jianshenkechengCollectionTypes; + } + /** + * 设置:收藏时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:收藏时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:创建时间 show3 photoShow + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show3 photoShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/JianshenkechengEntity.java b/JianshenkechengEntity.java new file mode 100644 index 0000000..933cde8 --- /dev/null +++ b/JianshenkechengEntity.java @@ -0,0 +1,356 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 健身课程 + * + * @author + * @email + */ +@TableName("jianshenkecheng") +public class JianshenkechengEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public JianshenkechengEntity() { + + } + + public JianshenkechengEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="int(11)") + @TableField(value = "id") + + private Integer id; + + + /** + * 教练 + */ + @ColumnInfo(comment="教练",type="int(11)") + @TableField(value = "jiaolian_id") + + private Integer jiaolianId; + + + /** + * 健身课程名称 + */ + @ColumnInfo(comment="健身课程名称",type="varchar(200)") + @TableField(value = "jianshenkecheng_name") + + private String jianshenkechengName; + + + /** + * 健身课程照片 + */ + @ColumnInfo(comment="健身课程照片",type="varchar(200)") + @TableField(value = "jianshenkecheng_photo") + + private String jianshenkechengPhoto; + + + /** + * 课程视频 + */ + @ColumnInfo(comment="课程视频",type="varchar(200)") + @TableField(value = "jianshenkecheng_video") + + private String jianshenkechengVideo; + + + /** + * 赞 + */ + @ColumnInfo(comment="赞",type="int(11)") + @TableField(value = "zan_number") + + private Integer zanNumber; + + + /** + * 踩 + */ + @ColumnInfo(comment="踩",type="int(11)") + @TableField(value = "cai_number") + + private Integer caiNumber; + + + /** + * 健身课程类型 + */ + @ColumnInfo(comment="健身课程类型",type="int(11)") + @TableField(value = "jianshenkecheng_types") + + private Integer jianshenkechengTypes; + + + /** + * 健身课程热度 + */ + @ColumnInfo(comment="健身课程热度",type="int(11)") + @TableField(value = "jianshenkecheng_clicknum") + + private Integer jianshenkechengClicknum; + + + /** + * 健身课程介绍 + */ + @ColumnInfo(comment="健身课程介绍",type="longtext") + @TableField(value = "jianshenkecheng_content") + + private String jianshenkechengContent; + + + /** + * 逻辑删除 + */ + @ColumnInfo(comment="逻辑删除",type="int(11)") + @TableField(value = "data_delete") + + private Integer dataDelete; + + + /** + * 录入时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="录入时间",type="timestamp") + @TableField(value = "insert_time",fill = FieldFill.INSERT) + + private Date insertTime; + + + /** + * 创建时间 homeMain + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:教练 + */ + public Integer getJiaolianId() { + return jiaolianId; + } + /** + * 设置:教练 + */ + + public void setJiaolianId(Integer jiaolianId) { + this.jiaolianId = jiaolianId; + } + /** + * 获取:健身课程名称 + */ + public String getJianshenkechengName() { + return jianshenkechengName; + } + /** + * 设置:健身课程名称 + */ + + public void setJianshenkechengName(String jianshenkechengName) { + this.jianshenkechengName = jianshenkechengName; + } + /** + * 获取:健身课程照片 + */ + public String getJianshenkechengPhoto() { + return jianshenkechengPhoto; + } + /** + * 设置:健身课程照片 + */ + + public void setJianshenkechengPhoto(String jianshenkechengPhoto) { + this.jianshenkechengPhoto = jianshenkechengPhoto; + } + /** + * 获取:课程视频 + */ + public String getJianshenkechengVideo() { + return jianshenkechengVideo; + } + /** + * 设置:课程视频 + */ + + public void setJianshenkechengVideo(String jianshenkechengVideo) { + this.jianshenkechengVideo = jianshenkechengVideo; + } + /** + * 获取:赞 + */ + public Integer getZanNumber() { + return zanNumber; + } + /** + * 设置:赞 + */ + + public void setZanNumber(Integer zanNumber) { + this.zanNumber = zanNumber; + } + /** + * 获取:踩 + */ + public Integer getCaiNumber() { + return caiNumber; + } + /** + * 设置:踩 + */ + + public void setCaiNumber(Integer caiNumber) { + this.caiNumber = caiNumber; + } + /** + * 获取:健身课程类型 + */ + public Integer getJianshenkechengTypes() { + return jianshenkechengTypes; + } + /** + * 设置:健身课程类型 + */ + + public void setJianshenkechengTypes(Integer jianshenkechengTypes) { + this.jianshenkechengTypes = jianshenkechengTypes; + } + /** + * 获取:健身课程热度 + */ + public Integer getJianshenkechengClicknum() { + return jianshenkechengClicknum; + } + /** + * 设置:健身课程热度 + */ + + public void setJianshenkechengClicknum(Integer jianshenkechengClicknum) { + this.jianshenkechengClicknum = jianshenkechengClicknum; + } + /** + * 获取:健身课程介绍 + */ + public String getJianshenkechengContent() { + return jianshenkechengContent; + } + /** + * 设置:健身课程介绍 + */ + + public void setJianshenkechengContent(String jianshenkechengContent) { + this.jianshenkechengContent = jianshenkechengContent; + } + /** + * 获取:逻辑删除 + */ + public Integer getDataDelete() { + return dataDelete; + } + /** + * 设置:逻辑删除 + */ + + public void setDataDelete(Integer dataDelete) { + this.dataDelete = dataDelete; + } + /** + * 获取:录入时间 + */ + public Date getInsertTime() { + return insertTime; + } + /** + * 设置:录入时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 获取:创建时间 homeMain + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 homeMain + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "Jianshenkecheng{" + + ", id=" + id + + ", jiaolianId=" + jiaolianId + + ", jianshenkechengName=" + jianshenkechengName + + ", jianshenkechengPhoto=" + jianshenkechengPhoto + + ", jianshenkechengVideo=" + jianshenkechengVideo + + ", zanNumber=" + zanNumber + + ", caiNumber=" + caiNumber + + ", jianshenkechengTypes=" + jianshenkechengTypes + + ", jianshenkechengClicknum=" + jianshenkechengClicknum + + ", jianshenkechengContent=" + jianshenkechengContent + + ", dataDelete=" + dataDelete + + ", insertTime=" + DateUtil.convertString(insertTime,"yyyy-MM-dd") + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/JianshenkechengLiuyanEntity.java b/JianshenkechengLiuyanEntity.java new file mode 100644 index 0000000..1430700 --- /dev/null +++ b/JianshenkechengLiuyanEntity.java @@ -0,0 +1,243 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 课程留言 + * + * @author + * @email + */ +@TableName("jianshenkecheng_liuyan") +public class JianshenkechengLiuyanEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public JianshenkechengLiuyanEntity() { + + } + + public JianshenkechengLiuyanEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="int(11)") + @TableField(value = "id") + + private Integer id; + + + /** + * 健身课程 + */ + @ColumnInfo(comment="健身课程",type="int(11)") + @TableField(value = "jianshenkecheng_id") + + private Integer jianshenkechengId; + + + /** + * 用户 + */ + @ColumnInfo(comment="用户",type="int(11)") + @TableField(value = "yonghu_id") + + private Integer yonghuId; + + + /** + * 留言内容 + */ + @ColumnInfo(comment="留言内容",type="longtext") + @TableField(value = "jianshenkecheng_liuyan_text") + + private String jianshenkechengLiuyanText; + + + /** + * 留言时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="留言时间",type="timestamp") + @TableField(value = "insert_time",fill = FieldFill.INSERT) + + private Date insertTime; + + + /** + * 回复内容 + */ + @ColumnInfo(comment="回复内容",type="longtext") + @TableField(value = "reply_text") + + private String replyText; + + + /** + * 回复时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="回复时间",type="timestamp") + @TableField(value = "update_time",fill = FieldFill.UPDATE) + + private Date updateTime; + + + /** + * 创建时间 listShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:健身课程 + */ + public Integer getJianshenkechengId() { + return jianshenkechengId; + } + /** + * 设置:健身课程 + */ + + public void setJianshenkechengId(Integer jianshenkechengId) { + this.jianshenkechengId = jianshenkechengId; + } + /** + * 获取:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + /** + * 设置:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 获取:留言内容 + */ + public String getJianshenkechengLiuyanText() { + return jianshenkechengLiuyanText; + } + /** + * 设置:留言内容 + */ + + public void setJianshenkechengLiuyanText(String jianshenkechengLiuyanText) { + this.jianshenkechengLiuyanText = jianshenkechengLiuyanText; + } + /** + * 获取:留言时间 + */ + public Date getInsertTime() { + return insertTime; + } + /** + * 设置:留言时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 获取:回复内容 + */ + public String getReplyText() { + return replyText; + } + /** + * 设置:回复内容 + */ + + public void setReplyText(String replyText) { + this.replyText = replyText; + } + /** + * 获取:回复时间 + */ + public Date getUpdateTime() { + return updateTime; + } + /** + * 设置:回复时间 + */ + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + /** + * 获取:创建时间 listShow + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 listShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "JianshenkechengLiuyan{" + + ", id=" + id + + ", jianshenkechengId=" + jianshenkechengId + + ", yonghuId=" + yonghuId + + ", jianshenkechengLiuyanText=" + jianshenkechengLiuyanText + + ", insertTime=" + DateUtil.convertString(insertTime,"yyyy-MM-dd") + + ", replyText=" + replyText + + ", updateTime=" + DateUtil.convertString(updateTime,"yyyy-MM-dd") + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/JianshenkechengLiuyanVO.java b/JianshenkechengLiuyanVO.java new file mode 100644 index 0000000..f64c316 --- /dev/null +++ b/JianshenkechengLiuyanVO.java @@ -0,0 +1,213 @@ +package com.entity.vo; + +import com.entity.JianshenkechengLiuyanEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 课程留言 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("jianshenkecheng_liuyan") +public class JianshenkechengLiuyanVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 健身课程 + */ + + @TableField(value = "jianshenkecheng_id") + private Integer jianshenkechengId; + + + /** + * 用户 + */ + + @TableField(value = "yonghu_id") + private Integer yonghuId; + + + /** + * 留言内容 + */ + + @TableField(value = "jianshenkecheng_liuyan_text") + private String jianshenkechengLiuyanText; + + + /** + * 留言时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 回复内容 + */ + + @TableField(value = "reply_text") + private String replyText; + + + /** + * 回复时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "update_time") + private Date updateTime; + + + /** + * 创建时间 show3 listShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:健身课程 + */ + public Integer getJianshenkechengId() { + return jianshenkechengId; + } + + + /** + * 获取:健身课程 + */ + + public void setJianshenkechengId(Integer jianshenkechengId) { + this.jianshenkechengId = jianshenkechengId; + } + /** + * 设置:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:留言内容 + */ + public String getJianshenkechengLiuyanText() { + return jianshenkechengLiuyanText; + } + + + /** + * 获取:留言内容 + */ + + public void setJianshenkechengLiuyanText(String jianshenkechengLiuyanText) { + this.jianshenkechengLiuyanText = jianshenkechengLiuyanText; + } + /** + * 设置:留言时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:留言时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:回复内容 + */ + public String getReplyText() { + return replyText; + } + + + /** + * 获取:回复内容 + */ + + public void setReplyText(String replyText) { + this.replyText = replyText; + } + /** + * 设置:回复时间 + */ + public Date getUpdateTime() { + return updateTime; + } + + + /** + * 获取:回复时间 + */ + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + /** + * 设置:创建时间 show3 listShow + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show3 listShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/JianshenkechengVO.java b/JianshenkechengVO.java new file mode 100644 index 0000000..035ec11 --- /dev/null +++ b/JianshenkechengVO.java @@ -0,0 +1,326 @@ +package com.entity.vo; + +import com.entity.JianshenkechengEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 健身课程 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("jianshenkecheng") +public class JianshenkechengVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 教练 + */ + + @TableField(value = "jiaolian_id") + private Integer jiaolianId; + + + /** + * 健身课程名称 + */ + + @TableField(value = "jianshenkecheng_name") + private String jianshenkechengName; + + + /** + * 健身课程照片 + */ + + @TableField(value = "jianshenkecheng_photo") + private String jianshenkechengPhoto; + + + /** + * 课程视频 + */ + + @TableField(value = "jianshenkecheng_video") + private String jianshenkechengVideo; + + + /** + * 赞 + */ + + @TableField(value = "zan_number") + private Integer zanNumber; + + + /** + * 踩 + */ + + @TableField(value = "cai_number") + private Integer caiNumber; + + + /** + * 健身课程类型 + */ + + @TableField(value = "jianshenkecheng_types") + private Integer jianshenkechengTypes; + + + /** + * 健身课程热度 + */ + + @TableField(value = "jianshenkecheng_clicknum") + private Integer jianshenkechengClicknum; + + + /** + * 健身课程介绍 + */ + + @TableField(value = "jianshenkecheng_content") + private String jianshenkechengContent; + + + /** + * 逻辑删除 + */ + + @TableField(value = "data_delete") + private Integer dataDelete; + + + /** + * 录入时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 创建时间 show1 show2 photoShow homeMain + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:教练 + */ + public Integer getJiaolianId() { + return jiaolianId; + } + + + /** + * 获取:教练 + */ + + public void setJiaolianId(Integer jiaolianId) { + this.jiaolianId = jiaolianId; + } + /** + * 设置:健身课程名称 + */ + public String getJianshenkechengName() { + return jianshenkechengName; + } + + + /** + * 获取:健身课程名称 + */ + + public void setJianshenkechengName(String jianshenkechengName) { + this.jianshenkechengName = jianshenkechengName; + } + /** + * 设置:健身课程照片 + */ + public String getJianshenkechengPhoto() { + return jianshenkechengPhoto; + } + + + /** + * 获取:健身课程照片 + */ + + public void setJianshenkechengPhoto(String jianshenkechengPhoto) { + this.jianshenkechengPhoto = jianshenkechengPhoto; + } + /** + * 设置:课程视频 + */ + public String getJianshenkechengVideo() { + return jianshenkechengVideo; + } + + + /** + * 获取:课程视频 + */ + + public void setJianshenkechengVideo(String jianshenkechengVideo) { + this.jianshenkechengVideo = jianshenkechengVideo; + } + /** + * 设置:赞 + */ + public Integer getZanNumber() { + return zanNumber; + } + + + /** + * 获取:赞 + */ + + public void setZanNumber(Integer zanNumber) { + this.zanNumber = zanNumber; + } + /** + * 设置:踩 + */ + public Integer getCaiNumber() { + return caiNumber; + } + + + /** + * 获取:踩 + */ + + public void setCaiNumber(Integer caiNumber) { + this.caiNumber = caiNumber; + } + /** + * 设置:健身课程类型 + */ + public Integer getJianshenkechengTypes() { + return jianshenkechengTypes; + } + + + /** + * 获取:健身课程类型 + */ + + public void setJianshenkechengTypes(Integer jianshenkechengTypes) { + this.jianshenkechengTypes = jianshenkechengTypes; + } + /** + * 设置:健身课程热度 + */ + public Integer getJianshenkechengClicknum() { + return jianshenkechengClicknum; + } + + + /** + * 获取:健身课程热度 + */ + + public void setJianshenkechengClicknum(Integer jianshenkechengClicknum) { + this.jianshenkechengClicknum = jianshenkechengClicknum; + } + /** + * 设置:健身课程介绍 + */ + public String getJianshenkechengContent() { + return jianshenkechengContent; + } + + + /** + * 获取:健身课程介绍 + */ + + public void setJianshenkechengContent(String jianshenkechengContent) { + this.jianshenkechengContent = jianshenkechengContent; + } + /** + * 设置:逻辑删除 + */ + public Integer getDataDelete() { + return dataDelete; + } + + + /** + * 获取:逻辑删除 + */ + + public void setDataDelete(Integer dataDelete) { + this.dataDelete = dataDelete; + } + /** + * 设置:录入时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:录入时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:创建时间 show1 show2 photoShow homeMain + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show1 show2 photoShow homeMain + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/JiaolianEntity.java b/JiaolianEntity.java new file mode 100644 index 0000000..4ab2c85 --- /dev/null +++ b/JiaolianEntity.java @@ -0,0 +1,333 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 教练 + * + * @author + * @email + */ +@TableName("jiaolian") +public class JiaolianEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public JiaolianEntity() { + + } + + public JiaolianEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="int(11)") + @TableField(value = "id") + + private Integer id; + + + /** + * 账户 + */ + @ColumnInfo(comment="账户",type="varchar(200)") + @TableField(value = "username") + + private String username; + + + /** + * 密码 + */ + @ColumnInfo(comment="密码",type="varchar(200)") + @TableField(value = "password") + + private String password; + + + /** + * 教练名称 + */ + @ColumnInfo(comment="教练名称",type="varchar(200)") + @TableField(value = "jiaolian_name") + + private String jiaolianName; + + + /** + * 教练手机号 + */ + @ColumnInfo(comment="教练手机号",type="varchar(200)") + @TableField(value = "jiaolian_phone") + + private String jiaolianPhone; + + + /** + * 教练头像 + */ + @ColumnInfo(comment="教练头像",type="varchar(200)") + @TableField(value = "jiaolian_photo") + + private String jiaolianPhoto; + + + /** + * 性别 + */ + @ColumnInfo(comment="性别",type="int(11)") + @TableField(value = "sex_types") + + private Integer sexTypes; + + + /** + * 教练邮箱 + */ + @ColumnInfo(comment="教练邮箱",type="varchar(200)") + @TableField(value = "jiaolian_email") + + private String jiaolianEmail; + + + /** + * 教练简介 + */ + @ColumnInfo(comment="教练简介",type="longtext") + @TableField(value = "jiaolian_content") + + private String jiaolianContent; + + + /** + * 逻辑删除 + */ + @ColumnInfo(comment="逻辑删除",type="int(11)") + @TableField(value = "data_delete") + + private Integer dataDelete; + + + /** + * 添加时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="添加时间",type="timestamp") + @TableField(value = "insert_time",fill = FieldFill.INSERT) + + private Date insertTime; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:账户 + */ + public String getUsername() { + return username; + } + /** + * 设置:账户 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 获取:密码 + */ + public String getPassword() { + return password; + } + /** + * 设置:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 获取:教练名称 + */ + public String getJiaolianName() { + return jiaolianName; + } + /** + * 设置:教练名称 + */ + + public void setJiaolianName(String jiaolianName) { + this.jiaolianName = jiaolianName; + } + /** + * 获取:教练手机号 + */ + public String getJiaolianPhone() { + return jiaolianPhone; + } + /** + * 设置:教练手机号 + */ + + public void setJiaolianPhone(String jiaolianPhone) { + this.jiaolianPhone = jiaolianPhone; + } + /** + * 获取:教练头像 + */ + public String getJiaolianPhoto() { + return jiaolianPhoto; + } + /** + * 设置:教练头像 + */ + + public void setJiaolianPhoto(String jiaolianPhoto) { + this.jiaolianPhoto = jiaolianPhoto; + } + /** + * 获取:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + /** + * 设置:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 获取:教练邮箱 + */ + public String getJiaolianEmail() { + return jiaolianEmail; + } + /** + * 设置:教练邮箱 + */ + + public void setJiaolianEmail(String jiaolianEmail) { + this.jiaolianEmail = jiaolianEmail; + } + /** + * 获取:教练简介 + */ + public String getJiaolianContent() { + return jiaolianContent; + } + /** + * 设置:教练简介 + */ + + public void setJiaolianContent(String jiaolianContent) { + this.jiaolianContent = jiaolianContent; + } + /** + * 获取:逻辑删除 + */ + public Integer getDataDelete() { + return dataDelete; + } + /** + * 设置:逻辑删除 + */ + + public void setDataDelete(Integer dataDelete) { + this.dataDelete = dataDelete; + } + /** + * 获取:添加时间 + */ + public Date getInsertTime() { + return insertTime; + } + /** + * 设置:添加时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "Jiaolian{" + + ", id=" + id + + ", username=" + username + + ", password=" + password + + ", jiaolianName=" + jiaolianName + + ", jiaolianPhone=" + jiaolianPhone + + ", jiaolianPhoto=" + jiaolianPhoto + + ", sexTypes=" + sexTypes + + ", jiaolianEmail=" + jiaolianEmail + + ", jiaolianContent=" + jiaolianContent + + ", dataDelete=" + dataDelete + + ", insertTime=" + DateUtil.convertString(insertTime,"yyyy-MM-dd") + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/JiaolianVO.java b/JiaolianVO.java new file mode 100644 index 0000000..2c272de --- /dev/null +++ b/JiaolianVO.java @@ -0,0 +1,303 @@ +package com.entity.vo; + +import com.entity.JiaolianEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 教练 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("jiaolian") +public class JiaolianVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 账户 + */ + + @TableField(value = "username") + private String username; + + + /** + * 密码 + */ + + @TableField(value = "password") + private String password; + + + /** + * 教练名称 + */ + + @TableField(value = "jiaolian_name") + private String jiaolianName; + + + /** + * 教练手机号 + */ + + @TableField(value = "jiaolian_phone") + private String jiaolianPhone; + + + /** + * 教练头像 + */ + + @TableField(value = "jiaolian_photo") + private String jiaolianPhoto; + + + /** + * 性别 + */ + + @TableField(value = "sex_types") + private Integer sexTypes; + + + /** + * 教练邮箱 + */ + + @TableField(value = "jiaolian_email") + private String jiaolianEmail; + + + /** + * 教练简介 + */ + + @TableField(value = "jiaolian_content") + private String jiaolianContent; + + + /** + * 逻辑删除 + */ + + @TableField(value = "data_delete") + private Integer dataDelete; + + + /** + * 添加时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 创建时间 show1 show2 photoShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:账户 + */ + public String getUsername() { + return username; + } + + + /** + * 获取:账户 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 设置:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 获取:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 设置:教练名称 + */ + public String getJiaolianName() { + return jiaolianName; + } + + + /** + * 获取:教练名称 + */ + + public void setJiaolianName(String jiaolianName) { + this.jiaolianName = jiaolianName; + } + /** + * 设置:教练手机号 + */ + public String getJiaolianPhone() { + return jiaolianPhone; + } + + + /** + * 获取:教练手机号 + */ + + public void setJiaolianPhone(String jiaolianPhone) { + this.jiaolianPhone = jiaolianPhone; + } + /** + * 设置:教练头像 + */ + public String getJiaolianPhoto() { + return jiaolianPhoto; + } + + + /** + * 获取:教练头像 + */ + + public void setJiaolianPhoto(String jiaolianPhoto) { + this.jiaolianPhoto = jiaolianPhoto; + } + /** + * 设置:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 获取:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 设置:教练邮箱 + */ + public String getJiaolianEmail() { + return jiaolianEmail; + } + + + /** + * 获取:教练邮箱 + */ + + public void setJiaolianEmail(String jiaolianEmail) { + this.jiaolianEmail = jiaolianEmail; + } + /** + * 设置:教练简介 + */ + public String getJiaolianContent() { + return jiaolianContent; + } + + + /** + * 获取:教练简介 + */ + + public void setJiaolianContent(String jiaolianContent) { + this.jiaolianContent = jiaolianContent; + } + /** + * 设置:逻辑删除 + */ + public Integer getDataDelete() { + return dataDelete; + } + + + /** + * 获取:逻辑删除 + */ + + public void setDataDelete(Integer dataDelete) { + this.dataDelete = dataDelete; + } + /** + * 设置:添加时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:添加时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:创建时间 show1 show2 photoShow + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show1 show2 photoShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/JiaolianYuyueVO.java b/JiaolianYuyueVO.java new file mode 100644 index 0000000..9d4ebb6 --- /dev/null +++ b/JiaolianYuyueVO.java @@ -0,0 +1,236 @@ +package com.entity.vo; + +import com.entity.JiaolianYuyueEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 教练预约申请 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("jiaolian_yuyue") +public class JiaolianYuyueVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 预约编号 + */ + + @TableField(value = "jiaolian_yuyue_uuid_number") + private String jiaolianYuyueUuidNumber; + + + /** + * 用户 + */ + + @TableField(value = "yonghu_id") + private Integer yonghuId; + + + /** + * 预约备注 + */ + + @TableField(value = "jiaolian_yuyue_text") + private String jiaolianYuyueText; + + + /** + * 预约时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "jiaolian_yuyue_time") + private Date jiaolianYuyueTime; + + + /** + * 预约状态 + */ + + @TableField(value = "jiaolian_yuyue_yesno_types") + private Integer jiaolianYuyueYesnoTypes; + + + /** + * 审核回复 + */ + + @TableField(value = "jiaolian_yuyue_yesno_text") + private String jiaolianYuyueYesnoText; + + + /** + * 申请时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 创建时间 show3 listShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:预约编号 + */ + public String getJiaolianYuyueUuidNumber() { + return jiaolianYuyueUuidNumber; + } + + + /** + * 获取:预约编号 + */ + + public void setJiaolianYuyueUuidNumber(String jiaolianYuyueUuidNumber) { + this.jiaolianYuyueUuidNumber = jiaolianYuyueUuidNumber; + } + /** + * 设置:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:预约备注 + */ + public String getJiaolianYuyueText() { + return jiaolianYuyueText; + } + + + /** + * 获取:预约备注 + */ + + public void setJiaolianYuyueText(String jiaolianYuyueText) { + this.jiaolianYuyueText = jiaolianYuyueText; + } + /** + * 设置:预约时间 + */ + public Date getJiaolianYuyueTime() { + return jiaolianYuyueTime; + } + + + /** + * 获取:预约时间 + */ + + public void setJiaolianYuyueTime(Date jiaolianYuyueTime) { + this.jiaolianYuyueTime = jiaolianYuyueTime; + } + /** + * 设置:预约状态 + */ + public Integer getJiaolianYuyueYesnoTypes() { + return jiaolianYuyueYesnoTypes; + } + + + /** + * 获取:预约状态 + */ + + public void setJiaolianYuyueYesnoTypes(Integer jiaolianYuyueYesnoTypes) { + this.jiaolianYuyueYesnoTypes = jiaolianYuyueYesnoTypes; + } + /** + * 设置:审核回复 + */ + public String getJiaolianYuyueYesnoText() { + return jiaolianYuyueYesnoText; + } + + + /** + * 获取:审核回复 + */ + + public void setJiaolianYuyueYesnoText(String jiaolianYuyueYesnoText) { + this.jiaolianYuyueYesnoText = jiaolianYuyueYesnoText; + } + /** + * 设置:申请时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:申请时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:创建时间 show3 listShow + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show3 listShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/NewsVO.java b/NewsVO.java new file mode 100644 index 0000000..8dadf20 --- /dev/null +++ b/NewsVO.java @@ -0,0 +1,188 @@ +package com.entity.vo; + +import com.entity.NewsEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 健身资讯 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("news") +public class NewsVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 资讯标题 + */ + + @TableField(value = "news_name") + private String newsName; + + + /** + * 资讯类型 + */ + + @TableField(value = "news_types") + private Integer newsTypes; + + + /** + * 资讯图片 + */ + + @TableField(value = "news_photo") + private String newsPhoto; + + + /** + * 添加时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 资讯详情 + */ + + @TableField(value = "news_content") + private String newsContent; + + + /** + * 创建时间 show1 show2 nameShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:资讯标题 + */ + public String getNewsName() { + return newsName; + } + + + /** + * 获取:资讯标题 + */ + + public void setNewsName(String newsName) { + this.newsName = newsName; + } + /** + * 设置:资讯类型 + */ + public Integer getNewsTypes() { + return newsTypes; + } + + + /** + * 获取:资讯类型 + */ + + public void setNewsTypes(Integer newsTypes) { + this.newsTypes = newsTypes; + } + /** + * 设置:资讯图片 + */ + public String getNewsPhoto() { + return newsPhoto; + } + + + /** + * 获取:资讯图片 + */ + + public void setNewsPhoto(String newsPhoto) { + this.newsPhoto = newsPhoto; + } + /** + * 设置:添加时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:添加时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:资讯详情 + */ + public String getNewsContent() { + return newsContent; + } + + + /** + * 获取:资讯详情 + */ + + public void setNewsContent(String newsContent) { + this.newsContent = newsContent; + } + /** + * 设置:创建时间 show1 show2 nameShow + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show1 show2 nameShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/SingleSeachVO.java b/SingleSeachVO.java new file mode 100644 index 0000000..f5beb2c --- /dev/null +++ b/SingleSeachVO.java @@ -0,0 +1,163 @@ +package com.entity.vo; + +import com.entity.SingleSeachEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 单页数据 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("single_seach") +public class SingleSeachVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 名字 + */ + + @TableField(value = "single_seach_name") + private String singleSeachName; + + + /** + * 数据类型 + */ + + @TableField(value = "single_seach_types") + private Integer singleSeachTypes; + + + /** + * 图片 + */ + + @TableField(value = "single_seach_photo") + private String singleSeachPhoto; + + + /** + * 内容 + */ + + @TableField(value = "single_seach_content") + private String singleSeachContent; + + + /** + * 创建时间 show2 nameShow + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:名字 + */ + public String getSingleSeachName() { + return singleSeachName; + } + + + /** + * 获取:名字 + */ + + public void setSingleSeachName(String singleSeachName) { + this.singleSeachName = singleSeachName; + } + /** + * 设置:数据类型 + */ + public Integer getSingleSeachTypes() { + return singleSeachTypes; + } + + + /** + * 获取:数据类型 + */ + + public void setSingleSeachTypes(Integer singleSeachTypes) { + this.singleSeachTypes = singleSeachTypes; + } + /** + * 设置:图片 + */ + public String getSingleSeachPhoto() { + return singleSeachPhoto; + } + + + /** + * 获取:图片 + */ + + public void setSingleSeachPhoto(String singleSeachPhoto) { + this.singleSeachPhoto = singleSeachPhoto; + } + /** + * 设置:内容 + */ + public String getSingleSeachContent() { + return singleSeachContent; + } + + + /** + * 获取:内容 + */ + + public void setSingleSeachContent(String singleSeachContent) { + this.singleSeachContent = singleSeachContent; + } + /** + * 设置:创建时间 show2 nameShow + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 show2 nameShow + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/YonghuEntity.java b/YonghuEntity.java new file mode 100644 index 0000000..9c3dfad --- /dev/null +++ b/YonghuEntity.java @@ -0,0 +1,356 @@ +package com.entity; + +import com.annotation.ColumnInfo; +import javax.validation.constraints.*; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; +import java.io.Serializable; +import java.util.*; +import org.apache.tools.ant.util.DateUtils; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.utils.DateUtil; + + +/** + * 用户 + * + * @author + * @email + */ +@TableName("yonghu") +public class YonghuEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public YonghuEntity() { + + } + + public YonghuEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @ColumnInfo(comment="主键",type="int(11)") + @TableField(value = "id") + + private Integer id; + + + /** + * 账户 + */ + @ColumnInfo(comment="账户",type="varchar(200)") + @TableField(value = "username") + + private String username; + + + /** + * 密码 + */ + @ColumnInfo(comment="密码",type="varchar(200)") + @TableField(value = "password") + + private String password; + + + /** + * 用户名称 + */ + @ColumnInfo(comment="用户名称",type="varchar(200)") + @TableField(value = "yonghu_name") + + private String yonghuName; + + + /** + * 用户手机号 + */ + @ColumnInfo(comment="用户手机号",type="varchar(200)") + @TableField(value = "yonghu_phone") + + private String yonghuPhone; + + + /** + * 用户身份证号 + */ + @ColumnInfo(comment="用户身份证号",type="varchar(200)") + @TableField(value = "yonghu_id_number") + + private String yonghuIdNumber; + + + /** + * 用户头像 + */ + @ColumnInfo(comment="用户头像",type="varchar(200)") + @TableField(value = "yonghu_photo") + + private String yonghuPhoto; + + + /** + * 性别 + */ + @ColumnInfo(comment="性别",type="int(11)") + @TableField(value = "sex_types") + + private Integer sexTypes; + + + /** + * 用户邮箱 + */ + @ColumnInfo(comment="用户邮箱",type="varchar(200)") + @TableField(value = "yonghu_email") + + private String yonghuEmail; + + + /** + * 现有余额 + */ + @ColumnInfo(comment="现有余额",type="decimal(10,2)") + @TableField(value = "new_money") + + private Double newMoney; + + + /** + * 逻辑删除 + */ + @ColumnInfo(comment="逻辑删除",type="int(11)") + @TableField(value = "data_delete") + + private Integer dataDelete; + + + /** + * 添加时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="添加时间",type="timestamp") + @TableField(value = "insert_time",fill = FieldFill.INSERT) + + private Date insertTime; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @ColumnInfo(comment="创建时间",type="timestamp") + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + /** + * 设置:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:账户 + */ + public String getUsername() { + return username; + } + /** + * 设置:账户 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 获取:密码 + */ + public String getPassword() { + return password; + } + /** + * 设置:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 获取:用户名称 + */ + public String getYonghuName() { + return yonghuName; + } + /** + * 设置:用户名称 + */ + + public void setYonghuName(String yonghuName) { + this.yonghuName = yonghuName; + } + /** + * 获取:用户手机号 + */ + public String getYonghuPhone() { + return yonghuPhone; + } + /** + * 设置:用户手机号 + */ + + public void setYonghuPhone(String yonghuPhone) { + this.yonghuPhone = yonghuPhone; + } + /** + * 获取:用户身份证号 + */ + public String getYonghuIdNumber() { + return yonghuIdNumber; + } + /** + * 设置:用户身份证号 + */ + + public void setYonghuIdNumber(String yonghuIdNumber) { + this.yonghuIdNumber = yonghuIdNumber; + } + /** + * 获取:用户头像 + */ + public String getYonghuPhoto() { + return yonghuPhoto; + } + /** + * 设置:用户头像 + */ + + public void setYonghuPhoto(String yonghuPhoto) { + this.yonghuPhoto = yonghuPhoto; + } + /** + * 获取:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + /** + * 设置:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 获取:用户邮箱 + */ + public String getYonghuEmail() { + return yonghuEmail; + } + /** + * 设置:用户邮箱 + */ + + public void setYonghuEmail(String yonghuEmail) { + this.yonghuEmail = yonghuEmail; + } + /** + * 获取:现有余额 + */ + public Double getNewMoney() { + return newMoney; + } + /** + * 设置:现有余额 + */ + + public void setNewMoney(Double newMoney) { + this.newMoney = newMoney; + } + /** + * 获取:逻辑删除 + */ + public Integer getDataDelete() { + return dataDelete; + } + /** + * 设置:逻辑删除 + */ + + public void setDataDelete(Integer dataDelete) { + this.dataDelete = dataDelete; + } + /** + * 获取:添加时间 + */ + public Date getInsertTime() { + return insertTime; + } + /** + * 设置:添加时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + /** + * 设置:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "Yonghu{" + + ", id=" + id + + ", username=" + username + + ", password=" + password + + ", yonghuName=" + yonghuName + + ", yonghuPhone=" + yonghuPhone + + ", yonghuIdNumber=" + yonghuIdNumber + + ", yonghuPhoto=" + yonghuPhoto + + ", sexTypes=" + sexTypes + + ", yonghuEmail=" + yonghuEmail + + ", newMoney=" + newMoney + + ", dataDelete=" + dataDelete + + ", insertTime=" + DateUtil.convertString(insertTime,"yyyy-MM-dd") + + ", createTime=" + DateUtil.convertString(createTime,"yyyy-MM-dd") + + "}"; + } +} diff --git a/YonghuVO.java b/YonghuVO.java new file mode 100644 index 0000000..a5226bd --- /dev/null +++ b/YonghuVO.java @@ -0,0 +1,326 @@ +package com.entity.vo; + +import com.entity.YonghuEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 用户 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + */ +@TableName("yonghu") +public class YonghuVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 账户 + */ + + @TableField(value = "username") + private String username; + + + /** + * 密码 + */ + + @TableField(value = "password") + private String password; + + + /** + * 用户名称 + */ + + @TableField(value = "yonghu_name") + private String yonghuName; + + + /** + * 用户手机号 + */ + + @TableField(value = "yonghu_phone") + private String yonghuPhone; + + + /** + * 用户身份证号 + */ + + @TableField(value = "yonghu_id_number") + private String yonghuIdNumber; + + + /** + * 用户头像 + */ + + @TableField(value = "yonghu_photo") + private String yonghuPhoto; + + + /** + * 性别 + */ + + @TableField(value = "sex_types") + private Integer sexTypes; + + + /** + * 用户邮箱 + */ + + @TableField(value = "yonghu_email") + private String yonghuEmail; + + + /** + * 现有余额 + */ + + @TableField(value = "new_money") + private Double newMoney; + + + /** + * 逻辑删除 + */ + + @TableField(value = "data_delete") + private Integer dataDelete; + + + /** + * 添加时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "insert_time") + private Date insertTime; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:账户 + */ + public String getUsername() { + return username; + } + + + /** + * 获取:账户 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 设置:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 获取:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 设置:用户名称 + */ + public String getYonghuName() { + return yonghuName; + } + + + /** + * 获取:用户名称 + */ + + public void setYonghuName(String yonghuName) { + this.yonghuName = yonghuName; + } + /** + * 设置:用户手机号 + */ + public String getYonghuPhone() { + return yonghuPhone; + } + + + /** + * 获取:用户手机号 + */ + + public void setYonghuPhone(String yonghuPhone) { + this.yonghuPhone = yonghuPhone; + } + /** + * 设置:用户身份证号 + */ + public String getYonghuIdNumber() { + return yonghuIdNumber; + } + + + /** + * 获取:用户身份证号 + */ + + public void setYonghuIdNumber(String yonghuIdNumber) { + this.yonghuIdNumber = yonghuIdNumber; + } + /** + * 设置:用户头像 + */ + public String getYonghuPhoto() { + return yonghuPhoto; + } + + + /** + * 获取:用户头像 + */ + + public void setYonghuPhoto(String yonghuPhoto) { + this.yonghuPhoto = yonghuPhoto; + } + /** + * 设置:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 获取:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 设置:用户邮箱 + */ + public String getYonghuEmail() { + return yonghuEmail; + } + + + /** + * 获取:用户邮箱 + */ + + public void setYonghuEmail(String yonghuEmail) { + this.yonghuEmail = yonghuEmail; + } + /** + * 设置:现有余额 + */ + public Double getNewMoney() { + return newMoney; + } + + + /** + * 获取:现有余额 + */ + + public void setNewMoney(Double newMoney) { + this.newMoney = newMoney; + } + /** + * 设置:逻辑删除 + */ + public Integer getDataDelete() { + return dataDelete; + } + + + /** + * 获取:逻辑删除 + */ + + public void setDataDelete(Integer dataDelete) { + this.dataDelete = dataDelete; + } + /** + * 设置:添加时间 + */ + public Date getInsertTime() { + return insertTime; + } + + + /** + * 获取:添加时间 + */ + + public void setInsertTime(Date insertTime) { + this.insertTime = insertTime; + } + /** + * 设置:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +}