1.Admin.java
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class Admin {
private Long id;
private String nickname;
private String account;
private String password;
private String avatar;
private String salt;
}
2. History.java
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class History {
private Long id;
private Long userId;
private Integer credits;
private LocalDateTime creditsTime;
private Long adminId;
private LocalDateTime opTime;
private String reason;
public History(Long userId, Integer credits, LocalDateTime creditsTime, Long adminId, LocalDateTime opTime, String reason) {
this.userId = userId;
this.credits = credits;
this.creditsTime = creditsTime;
this.adminId = adminId;
this.opTime = opTime;
this.reason = reason;
}
}
3.User.java
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class User {
private Long id;
private String name;
private String avatar;
private Boolean gender;
private String email;
private String tel;
private Integer credits;
private Integer status;
public User(String name, Boolean gender, String email, String tel, Integer credits, Integer status) {
this.name = name;
this.gender = gender;
this.email = email;
this.tel = tel;
this.credits = credits;
this.status = status;
}
}



