| | |
| | | package com.whyc.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.*; |
| | | import org.apache.ibatis.type.Alias; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Alias("User") |
| | | @Data |
| | | @Builder |
| | | @ToString |
| | | @AllArgsConstructor |
| | | public class User { |
| | | private Integer id; |
| | | private String username; |
| | | private String name; |
| | | private String password; |
| | | @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | public User() { |
| | | } |
| | | |
| | | public User(Integer id, String name) { |
| | | this.id = id; |
| | | this.name = name; |
| | | } |
| | | |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getUsername() { |
| | | return username; |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setUsername(String username) { |
| | | this.username = username; |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getPassword() { |