Files
timeline-server/timeline-user-service/src/main/java/com/timeline/user/entity/User.java
2025-08-12 19:01:26 +08:00

23 lines
640 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}