用户信息相关
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.czg.account.dto.user.userinfo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Data
|
||||
public class UserInfoAssetsSummaryDTO {
|
||||
/**
|
||||
* 总余额
|
||||
*/
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 总积分
|
||||
*/
|
||||
private Integer points;
|
||||
/**
|
||||
* 可使用优惠券数量
|
||||
*/
|
||||
private Integer couponNum;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.czg.account.dto.user.userinfo;
|
||||
|
||||
import com.czg.account.entity.UserInfo;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class UserInfoDTO extends UserInfo {
|
||||
/**
|
||||
* 用户资产概述
|
||||
*/
|
||||
private UserInfoAssetsSummaryDTO assetsSummary;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.user.userinfo.UserInfoDTO;
|
||||
import com.czg.account.entity.UserInfo;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
|
||||
@@ -11,4 +12,5 @@ import com.mybatisflex.core.service.IService;
|
||||
*/
|
||||
public interface UserInfoService extends IService<UserInfo> {
|
||||
|
||||
UserInfoDTO getInfo(long userInfoId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user