loyalty points
This commit is contained in:
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user