已完成小程序端的项目查询
This commit is contained in:
@ -15,6 +15,7 @@ import java.math.BigDecimal;
|
||||
@Data
|
||||
@Schema(description = "用户主要信息添加请求体", requiredProperties = {
|
||||
"teamSize",
|
||||
"teamEarnings",
|
||||
"parentEarnings",
|
||||
"currentBalance",
|
||||
"withdrawalAmount",
|
||||
@ -31,6 +32,12 @@ public class UserMainInfoAddRequest implements Serializable {
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 团队收益
|
||||
*/
|
||||
@Schema(description = "团队收益", example = "40.00")
|
||||
private BigDecimal teamEarnings;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
|
@ -31,6 +31,12 @@ public class UserMainInfoQueryRequest extends PageRequest implements Serializabl
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 团队收益
|
||||
*/
|
||||
@Schema(description = "团队收益", example = "40.00")
|
||||
private BigDecimal teamEarnings;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
|
@ -16,6 +16,7 @@ import java.math.BigDecimal;
|
||||
@Schema(description = "用户主要信息更新请求体", requiredProperties = {
|
||||
"id",
|
||||
"teamSize",
|
||||
"teamEarnings",
|
||||
"parentEarnings",
|
||||
"currentBalance",
|
||||
"withdrawalAmount",
|
||||
@ -39,6 +40,12 @@ public class UserMainInfoUpdateRequest implements Serializable {
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 团队收益
|
||||
*/
|
||||
@Schema(description = "团队收益", example = "40.00")
|
||||
private BigDecimal teamEarnings;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
|
@ -62,6 +62,11 @@ public class UserMainInfo implements Serializable {
|
||||
*/
|
||||
private String inviteQrCode;
|
||||
|
||||
/**
|
||||
* 团队收益
|
||||
*/
|
||||
private BigDecimal teamEarnings;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
|
@ -23,49 +23,55 @@ public class UserMainInfoVO implements Serializable {
|
||||
/**
|
||||
* 团队人数(不包括自己)
|
||||
*/
|
||||
@Schema(description = "团队人数(不包括自己)", example = "${field.example}")
|
||||
@Schema(description = "团队人数(不包括自己)", example = "8")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 团队收益
|
||||
*/
|
||||
@Schema(description = "团队收益", example = "25.00")
|
||||
private BigDecimal teamEarnings;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
@Schema(description = "给上级带来的收益", example = "${field.example}")
|
||||
@Schema(description = "给上级带来的收益", example = "8.00")
|
||||
private BigDecimal parentEarnings;
|
||||
|
||||
/**
|
||||
* 当前余额
|
||||
*/
|
||||
@Schema(description = "当前余额", example = "${field.example}")
|
||||
@Schema(description = "当前余额", example = "10.00")
|
||||
private BigDecimal currentBalance;
|
||||
|
||||
/**
|
||||
* 提现中的金额
|
||||
*/
|
||||
@Schema(description = "提现中的金额", example = "${field.example}")
|
||||
@Schema(description = "提现中的金额", example = "15.00")
|
||||
private BigDecimal withdrawalAmount;
|
||||
|
||||
/**
|
||||
* 已提现的金额
|
||||
*/
|
||||
@Schema(description = "已提现的金额", example = "${field.example}")
|
||||
@Schema(description = "已提现的金额", example = "20.00")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 累计收入
|
||||
*/
|
||||
@Schema(description = "累计收入", example = "${field.example}")
|
||||
@Schema(description = "累计收入", example = "100.00")
|
||||
private BigDecimal totalIncome;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Schema(description = "用户id", example = "${field.example}")
|
||||
@Schema(description = "用户id", example = "1")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 邀请二维码
|
||||
*/
|
||||
@Schema(description = "邀请二维码", example = "${field.example}")
|
||||
@Schema(description = "邀请二维码", example = "3KD3H8D7")
|
||||
private String inviteQrCode;
|
||||
|
||||
|
||||
|
@ -0,0 +1,60 @@
|
||||
package com.greenorange.promotion.model.vo.userMainInfo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class UserMemberInfoVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 下级用户id
|
||||
*/
|
||||
@Schema(description = "下级用户id", example = "5")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
@Schema(description = "用户昵称", example = "chenxinzhi")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@Schema(description = "手机号", example = "15888610253")
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 团队人数(不包括自己)
|
||||
*/
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
@Schema(description = "给上级带来的收益", example = "16.33")
|
||||
private BigDecimal parentEarnings;
|
||||
|
||||
/**
|
||||
* 注册时间
|
||||
*/
|
||||
@Schema(description = "注册时间", example = "2025-05-11 12:00:00")
|
||||
private Date registerTime;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -1,67 +1,58 @@
|
||||
package com.greenorange.promotion.model.vo.userMainInfo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Schema(description = "用户团队信息 视图对象")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class UserTeamInfoVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 用户主要信息ID
|
||||
*/
|
||||
@Schema(description = "用户主要信息ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 团队人数(不包括自己)
|
||||
*/
|
||||
@Schema(description = "团队人数(不包括自己)", example = "${field.example}")
|
||||
@Schema(description = "团队人数(不包括自己)", example = "8")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
* 直接代理人数
|
||||
*/
|
||||
@Schema(description = "给上级带来的收益", example = "${field.example}")
|
||||
private BigDecimal parentEarnings;
|
||||
@Schema(description = "直接代理人数", example = "5")
|
||||
private Integer directAgentSize;
|
||||
|
||||
/**
|
||||
* 当前余额
|
||||
* 团队收益
|
||||
*/
|
||||
@Schema(description = "当前余额", example = "${field.example}")
|
||||
private BigDecimal currentBalance;
|
||||
@Schema(description = "团队收益", example = "25.00")
|
||||
private BigDecimal teamEarnings;
|
||||
|
||||
/**
|
||||
* 提现中的金额
|
||||
* 邀请码
|
||||
*/
|
||||
@Schema(description = "提现中的金额", example = "${field.example}")
|
||||
private BigDecimal withdrawalAmount;
|
||||
|
||||
/**
|
||||
* 已提现的金额
|
||||
*/
|
||||
@Schema(description = "已提现的金额", example = "${field.example}")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 累计收入
|
||||
*/
|
||||
@Schema(description = "累计收入", example = "${field.example}")
|
||||
private BigDecimal totalIncome;
|
||||
|
||||
@Schema(description = "邀请码", example = "666999")
|
||||
private String invitationCode;
|
||||
|
||||
/**
|
||||
* 邀请二维码
|
||||
*/
|
||||
@Schema(description = "邀请二维码", example = "${field.example}")
|
||||
@Schema(description = "邀请二维码", example = "3KD3H8D7")
|
||||
private String inviteQrCode;
|
||||
|
||||
/**
|
||||
* 下级用户信息列表
|
||||
*/
|
||||
@Schema(description = "下级用户信息列表")
|
||||
private List<UserMemberInfoVO> userMemberInfoVOList;
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user