loyalty points

This commit is contained in:
augmentedpotato
2026-04-15 01:34:49 -06:00
parent 3f5add59e8
commit da115fd824
5 changed files with 32 additions and 3 deletions

View File

@@ -267,7 +267,8 @@ public class AuthController {
user.getRole().name(),
customerId,
primaryStore != null ? primaryStore.getStoreId() : null,
primaryStore != null ? primaryStore.getStoreName() : null
primaryStore != null ? primaryStore.getStoreName() : null,
user.getLoyaltyPoints()
);
}

View File

@@ -15,11 +15,12 @@ public class UserInfoResponse {
private Long customerId;
private Long storeId;
private String storeName;
private Integer loyaltyPoints;
public UserInfoResponse() {
}
public UserInfoResponse(Long id, String username, String firstName, String lastName, String email, String fullName, String phone, String avatarUrl, String role, Long customerId, Long storeId, String storeName) {
public UserInfoResponse(Long id, String username, String firstName, String lastName, String email, String fullName, String phone, String avatarUrl, String role, Long customerId, Long storeId, String storeName, Integer loyaltyPoints) {
this.id = id;
this.username = username;
this.firstName = firstName;
@@ -32,6 +33,7 @@ public class UserInfoResponse {
this.customerId = customerId;
this.storeId = storeId;
this.storeName = storeName;
this.loyaltyPoints = loyaltyPoints;
}
public Long getId() {
@@ -131,6 +133,14 @@ public class UserInfoResponse {
this.storeName = storeName;
}
public Integer getLoyaltyPoints() {
return loyaltyPoints;
}
public void setLoyaltyPoints(Integer loyaltyPoints) {
this.loyaltyPoints = loyaltyPoints;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;