1、博客模块todo实体类创建

pull/254/head
xjs 4 years ago
parent eb10ad994d
commit c2d64fcb85

@ -0,0 +1,85 @@
package com.xjs.todo.domain;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author xiejs
* @since 2022-01-27
*/
@Data
public class BlogTodo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long id;
/**
*
*/
@Excel(name = "待办标题")
private String todoTitle;
/**
*
*/
@Excel(name = "待办内容")
private String todoContent;
/**
*
*/
@Excel(name = "待办程度")
private String todoLevel;
/**
* 1 2
*/
@Excel(name = "是否过期 ", readConverterExp = "1=未过期 2=已过期")
private Integer pastDue;
/**
*
*/
@Excel(name = "显示颜色")
private String todoColor;
/**
* id
*/
@Excel(name = "外键分类id")
private Long sortId;
/**
*
*/
@TableField(exist = false)
private BlogTodoSort blogTodoSort;
/**
*
*/
@Excel(name = "博客用户账号")
private String userName;
/**
*
*/
@TableField(exist = false)
private BlogUser blogUser;
@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT)
private Date createTime;
}

@ -0,0 +1,44 @@
package com.xjs.todo.domain;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
*
* @author xiejs
* @since 2022-01-27
*/
@Data
public class BlogTodoSort implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
private Long id;
/** 外键分类id */
@Excel(name = "外键分类id")
private Long sortId;
/** 分类名称 */
@Excel(name = "分类名称")
private String sortName;
/** 分类颜色(#999999这种 */
@Excel(name = "分类颜色")
private String sortColor;
/** 分类排序 */
@Excel(name = "分类排序")
private Long sort;
@Excel(name = "创建时间" ,dateFormat = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT)
private Date createTime;
}

@ -0,0 +1,94 @@
package com.xjs.todo.domain;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author xiejs
* @since 2022-01-27
*/
@Data
public class BlogUser implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
private Long id;
/**
*
*/
@Excel(name = "用户名称")
private String userName;
/**
*
*/
@Excel(name = "用户密码")
private String userPassword;
/**
*
*/
@Excel(name = "用户昵称")
private String userNick;
/**
*
*/
@Excel(name = "用户头像")
private String avatar;
/**
*
*/
@Excel(name = "手机号码")
private Long phoneNumber;
/**
*
*/
@Excel(name = "用户邮箱")
private String email;
/**
* 1 2
*/
@Excel(name = "用户性别", readConverterExp = "1=男,2=女")
private Integer sex;
/**
*
*/
@Excel(name = "登录次数")
private Long loginCount;
/**
* Ip
*/
@Excel(name = "最后登录Ip")
private String loginIp;
/**
*
*/
@Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date loginDate;
/**
*
*/
@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT)
private Date createTime;
}
Loading…
Cancel
Save