Skip to content

Commit

Permalink
refactor client info
Browse files Browse the repository at this point in the history
  • Loading branch information
Alikohd committed Dec 11, 2024
1 parent 78f33ca commit e6e0399
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package com.example.gym.model.user;

import java.time.LocalDateTime;
import java.util.List;

import com.example.gym.model.user.pojo.ClientInfo;
import com.example.gym.model.user.pojo.GenderType;
import com.example.gym.model.user.pojo.TrainerInfo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class ResponseUserDto {

private String id;
private String name;
private String surname;
private String password;
private String email;
private String phoneNumber;
private String comment;
private List<String> roles;
private GenderType gender;
private LocalDateTime birthday;
private TrainerInfo trainerInfo;
private ClientInfo clientInfo;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public class ClientInfo {

@Schema(name = "Баллы лояльности", description = "100")
private Integer loyaltyPoints;
private Integer loyaltyPoints = 0;
@ArraySchema(
schema = @Schema(name = "Абонементы", implementation = Subscription.class)
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example.gym.model.user.pojo;

public enum GenderType {
MALE, FEMALE
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.time.LocalDateTime;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down

0 comments on commit e6e0399

Please sign in to comment.