Update DictionaryVO.java

王刚注释
pz2femycj 4 months ago
parent a1333e581b
commit 3c167bcf53

@ -1,209 +1,345 @@
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;
}
}
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.package com.entity.vo;
// 导入MyBatis Plus表名注解
import com.baomidou.mybatisplus.annotations.TableName;
// 导入MyBatis Plus字段映射注解
import com.baomidou.mybatisplus.annotations.TableField;
// 导入JSON时间格式化注解
import com.fasterxml.jackson.annotation.JsonFormat;
// 导入基础实体类
import com.entity.DictionaryEntity;
// 导入日期工具类
import java.util.Date;
// 导入Spring时间格式化注解
import org.springframework.format.annotation.DateTimeFormat;
// 实现序列化接口
import java.io.Serializable;
// 字典数据手机端接口返回VO精简非必要字段
@TableName("dictionary")
public class DictionaryVO implements Serializable {
// 序列化版本UID
private static final long serialVersionUID = 1L;
// 主键IDLong类型保证大数据量存储
@TableField(value = "id")
private Long id;
// 字典类型编码gender_type
@TableField(value = "dic_code")
private String dicCode;
// 字典类型名称(如:性别分类)
@TableField(value = "dic_name")
private String dicName;
// 具体选项编码值1/2/3
@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;
// 获取主键ID
public Long getId() {
return id;
}
// 设置主键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;
}
}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;
}
}

Loading…
Cancel
Save