23 lines
640 B
Java
23 lines
640 B
Java
|
|
package com.timeline.user.entity;
|
|||
|
|
|
|||
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|||
|
|
import lombok.Data;
|
|||
|
|
import java.time.LocalDateTime;
|
|||
|
|
|
|||
|
|
@Data
|
|||
|
|
public class User {
|
|||
|
|
private Long id;
|
|||
|
|
private String userId;
|
|||
|
|
private String username;
|
|||
|
|
private String password;
|
|||
|
|
private String nickname;
|
|||
|
|
private String email;
|
|||
|
|
private String phone;
|
|||
|
|
private Integer status; // 0-正常,1-禁用
|
|||
|
|
private Integer isDeleted; // 0-未删除,1-已删除
|
|||
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|||
|
|
private LocalDateTime createTime;
|
|||
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|||
|
|
private LocalDateTime updateTime;
|
|||
|
|
}
|