web端已基本完成
This commit is contained in:
@ -46,7 +46,7 @@ public class ProjectAddRequest implements Serializable {
|
||||
* 项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "项目图片URL不能为空")
|
||||
@Schema(description = "项目图片URL", example = "http://xxx.png")
|
||||
@Schema(description = "项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
|
@ -50,7 +50,7 @@ public class ProjectUpdateRequest implements Serializable {
|
||||
* 项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "项目图片URL不能为空")
|
||||
@Schema(description = "项目图片URL", example = "http://xxx.png")
|
||||
@Schema(description = "项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
|
@ -32,33 +32,33 @@ public class ProjectCommissionAddRequest implements Serializable {
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
@Schema(description = "项目明细ID", example = "1")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
@Schema(description = "我的单价", example = "0.45")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
@Schema(description = "当前抽佣比例", example = "5")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -22,40 +22,40 @@ public class ProjectCommissionQueryRequest extends PageRequest implements Serial
|
||||
* 抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "抽佣记录ID", example = "")
|
||||
@Schema(description = "抽佣记录ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
@Schema(description = "项目明细ID", example = "1")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
@Schema(description = "我的单价", example = "0.45")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
@Schema(description = "当前抽佣比例", example = "5")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -27,40 +27,40 @@ public class ProjectCommissionUpdateRequest implements Serializable {
|
||||
* 抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "抽佣记录ID", example = "")
|
||||
@Schema(description = "抽佣记录ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
@Schema(description = "项目明细ID", example = "1")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
@Schema(description = "我的单价", example = "0.45")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
@Schema(description = "当前抽佣比例", example = "5")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -23,21 +23,21 @@ public class ProjectNotificationAddRequest implements Serializable {
|
||||
* 通知标题
|
||||
*/
|
||||
@NotBlank(message = "通知标题不能为空")
|
||||
@Schema(description = "通知标题", example = "")
|
||||
@Schema(description = "通知标题", example = "美团试吃官-涨价通知")
|
||||
private String notificationTitle;
|
||||
|
||||
/**
|
||||
* 通知内容
|
||||
*/
|
||||
@NotBlank(message = "通知内容不能为空")
|
||||
@Schema(description = "通知内容", example = "")
|
||||
@Schema(description = "通知内容", example = "富文本")
|
||||
private String notificationContent;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
|
||||
|
@ -20,28 +20,28 @@ public class ProjectNotificationQueryRequest extends PageRequest implements Seri
|
||||
* 通知ID
|
||||
*/
|
||||
@Min(value = 1L, message = "通知ID ID不能小于1")
|
||||
@Schema(description = "通知ID", example = "")
|
||||
@Schema(description = "通知ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 通知标题
|
||||
*/
|
||||
@NotBlank(message = "通知标题不能为空")
|
||||
@Schema(description = "通知标题", example = "")
|
||||
@Schema(description = "通知标题", example = "美团试吃官-涨价通知")
|
||||
private String notificationTitle;
|
||||
|
||||
/**
|
||||
* 通知内容
|
||||
*/
|
||||
@NotBlank(message = "通知内容不能为空")
|
||||
@Schema(description = "通知内容", example = "")
|
||||
@Schema(description = "通知内容", example = "富文本")
|
||||
private String notificationContent;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
|
||||
|
@ -24,28 +24,28 @@ public class ProjectNotificationUpdateRequest implements Serializable {
|
||||
* 通知ID
|
||||
*/
|
||||
@Min(value = 1L, message = "通知ID ID不能小于1")
|
||||
@Schema(description = "通知ID", example = "")
|
||||
@Schema(description = "通知ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 通知标题
|
||||
*/
|
||||
@NotBlank(message = "通知标题不能为空")
|
||||
@Schema(description = "通知标题", example = "")
|
||||
@Schema(description = "通知标题", example = "美团试吃官-涨价通知")
|
||||
private String notificationTitle;
|
||||
|
||||
/**
|
||||
* 通知内容
|
||||
*/
|
||||
@NotBlank(message = "通知内容不能为空")
|
||||
@Schema(description = "通知内容", example = "")
|
||||
@Schema(description = "通知内容", example = "富文本")
|
||||
private String notificationContent;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
|
||||
|
@ -63,7 +63,7 @@ public class PromoCodeApplyAddRequest implements Serializable {
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目图片URL不能为空")
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
@Schema(description = "绑定的项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
|
@ -63,7 +63,7 @@ public class PromoCodeApplyQueryRequest extends PageRequest implements Serializa
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目图片URL不能为空")
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
@Schema(description = "绑定的项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
|
@ -71,7 +71,7 @@ public class PromoCodeApplyUpdateRequest implements Serializable {
|
||||
* 绑定的项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "绑定的项目图片URL不能为空")
|
||||
@Schema(description = "绑定的项目图片URL", example = "http://xxx.png")
|
||||
@Schema(description = "绑定的项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
|
@ -33,40 +33,40 @@ public class SubUserProjectCommissionAddRequest implements Serializable {
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
@Schema(description = "项目明细ID", example = "1")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
@Schema(description = "我的单价", example = "0.66")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
@Schema(description = "当前抽佣比例", example = "2")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户ID ID不能小于1")
|
||||
@Schema(description = "下级用户ID", example = "")
|
||||
@Schema(description = "下级用户ID", example = "1")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "2")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -22,47 +22,47 @@ public class SubUserProjectCommissionQueryRequest extends PageRequest implements
|
||||
* 下级用户抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "下级用户抽佣记录ID", example = "")
|
||||
@Schema(description = "下级用户抽佣记录ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
@Schema(description = "项目明细ID", example = "1")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
@Schema(description = "我的单价", example = "0.83")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
@Schema(description = "当前抽佣比例", example = "3")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户ID ID不能小于1")
|
||||
@Schema(description = "下级用户ID", example = "")
|
||||
@Schema(description = "下级用户ID", example = "2")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -28,47 +28,47 @@ public class SubUserProjectCommissionUpdateRequest implements Serializable {
|
||||
* 下级用户抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "下级用户抽佣记录ID", example = "")
|
||||
@Schema(description = "下级用户抽佣记录ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
@Schema(description = "项目明细ID", example = "1")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
@Schema(description = "我的单价", example = "0.24")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
@Schema(description = "当前抽佣比例", example = "4")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户ID ID不能小于1")
|
||||
@Schema(description = "下级用户ID", example = "")
|
||||
@Schema(description = "下级用户ID", example = "2")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -32,7 +32,7 @@ public class UserInfoAddRequest implements Serializable {
|
||||
* 用户头像URL
|
||||
*/
|
||||
@NotBlank(message = "用户头像URL不能为空")
|
||||
@Schema(description = "用户头像URL", example = "http://xxx.png")
|
||||
@Schema(description = "用户头像URL", example = "3E8U2AM8")
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
|
@ -39,7 +39,7 @@ public class UserInfoUpdateRequest implements Serializable {
|
||||
* 用户头像URL
|
||||
*/
|
||||
@NotBlank(message = "用户头像URL不能为空")
|
||||
@Schema(description = "用户头像URL", example = "http://xxx.png")
|
||||
@Schema(description = "用户头像URL", example = "3E8U2AM8")
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
|
@ -28,51 +28,51 @@ public class UserMainInfoAddRequest implements Serializable {
|
||||
/**
|
||||
* 团队人数(不包括自己)
|
||||
*/
|
||||
@Schema(description = "团队人数(不包括自己)", example = "")
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
@Schema(description = "给上级带来的收益", example = "")
|
||||
@Schema(description = "给上级带来的收益", example = "1.00")
|
||||
private BigDecimal parentEarnings;
|
||||
|
||||
/**
|
||||
* 当前余额
|
||||
*/
|
||||
@Schema(description = "当前余额", example = "")
|
||||
@Schema(description = "当前余额", example = "45.00")
|
||||
private BigDecimal currentBalance;
|
||||
|
||||
/**
|
||||
* 提现中的金额
|
||||
*/
|
||||
@Schema(description = "提现中的金额", example = "")
|
||||
@Schema(description = "提现中的金额", example = "20.00")
|
||||
private BigDecimal withdrawalAmount;
|
||||
|
||||
/**
|
||||
* 已提现的金额
|
||||
*/
|
||||
@Schema(description = "已提现的金额", example = "")
|
||||
@Schema(description = "已提现的金额", example = "25.00")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 累计收入
|
||||
*/
|
||||
@Schema(description = "累计收入", example = "")
|
||||
@Schema(description = "累计收入", example = "70.00")
|
||||
private BigDecimal totalIncome;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Min(value = 1L, message = "用户id ID不能小于1")
|
||||
@Schema(description = "用户id", example = "")
|
||||
@Schema(description = "用户id", example = "1")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 邀请二维码
|
||||
*/
|
||||
@NotBlank(message = "邀请二维码不能为空")
|
||||
@Schema(description = "邀请二维码", example = "")
|
||||
@Schema(description = "邀请二维码", example = "3E8U2AM8")
|
||||
private String inviteQrCode;
|
||||
|
||||
|
||||
|
@ -22,57 +22,57 @@ public class UserMainInfoQueryRequest extends PageRequest implements Serializabl
|
||||
* 主键ID
|
||||
*/
|
||||
@Min(value = 1L, message = "主键ID ID不能小于1")
|
||||
@Schema(description = "主键ID", example = "")
|
||||
@Schema(description = "主键ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 团队人数(不包括自己)
|
||||
*/
|
||||
@Schema(description = "团队人数(不包括自己)", example = "")
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
@Schema(description = "给上级带来的收益", example = "")
|
||||
@Schema(description = "给上级带来的收益", example = "0.88")
|
||||
private BigDecimal parentEarnings;
|
||||
|
||||
/**
|
||||
* 当前余额
|
||||
*/
|
||||
@Schema(description = "当前余额", example = "")
|
||||
@Schema(description = "当前余额", example = "45.00")
|
||||
private BigDecimal currentBalance;
|
||||
|
||||
/**
|
||||
* 提现中的金额
|
||||
*/
|
||||
@Schema(description = "提现中的金额", example = "")
|
||||
@Schema(description = "提现中的金额", example = "20.00")
|
||||
private BigDecimal withdrawalAmount;
|
||||
|
||||
/**
|
||||
* 已提现的金额
|
||||
*/
|
||||
@Schema(description = "已提现的金额", example = "")
|
||||
@Schema(description = "已提现的金额", example = "25.00")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 累计收入
|
||||
*/
|
||||
@Schema(description = "累计收入", example = "")
|
||||
@Schema(description = "累计收入", example = "70.00")
|
||||
private BigDecimal totalIncome;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Min(value = 1L, message = "用户id ID不能小于1")
|
||||
@Schema(description = "用户id", example = "")
|
||||
@Schema(description = "用户id", example = "1")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 邀请二维码
|
||||
*/
|
||||
@NotBlank(message = "邀请二维码不能为空")
|
||||
@Schema(description = "邀请二维码", example = "")
|
||||
@Schema(description = "邀请二维码", example = "3E8U2AM8")
|
||||
private String inviteQrCode;
|
||||
|
||||
|
||||
|
@ -30,57 +30,57 @@ public class UserMainInfoUpdateRequest implements Serializable {
|
||||
* 主键ID
|
||||
*/
|
||||
@Min(value = 1L, message = "主键ID ID不能小于1")
|
||||
@Schema(description = "主键ID", example = "")
|
||||
@Schema(description = "主键ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 团队人数(不包括自己)
|
||||
*/
|
||||
@Schema(description = "团队人数(不包括自己)", example = "")
|
||||
@Schema(description = "团队人数(不包括自己)", example = "10")
|
||||
private Integer teamSize;
|
||||
|
||||
/**
|
||||
* 给上级带来的收益
|
||||
*/
|
||||
@Schema(description = "给上级带来的收益", example = "")
|
||||
@Schema(description = "给上级带来的收益", example = "10.00")
|
||||
private BigDecimal parentEarnings;
|
||||
|
||||
/**
|
||||
* 当前余额
|
||||
*/
|
||||
@Schema(description = "当前余额", example = "")
|
||||
@Schema(description = "当前余额", example = "45.00")
|
||||
private BigDecimal currentBalance;
|
||||
|
||||
/**
|
||||
* 提现中的金额
|
||||
*/
|
||||
@Schema(description = "提现中的金额", example = "")
|
||||
@Schema(description = "提现中的金额", example = "20.00")
|
||||
private BigDecimal withdrawalAmount;
|
||||
|
||||
/**
|
||||
* 已提现的金额
|
||||
*/
|
||||
@Schema(description = "已提现的金额", example = "")
|
||||
@Schema(description = "已提现的金额", example = "25.00")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 累计收入
|
||||
*/
|
||||
@Schema(description = "累计收入", example = "")
|
||||
@Schema(description = "累计收入", example = "70.00")
|
||||
private BigDecimal totalIncome;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Min(value = 1L, message = "用户id ID不能小于1")
|
||||
@Schema(description = "用户id", example = "")
|
||||
@Schema(description = "用户id", example = "1")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 邀请二维码
|
||||
*/
|
||||
@NotBlank(message = "邀请二维码不能为空")
|
||||
@Schema(description = "邀请二维码", example = "")
|
||||
@Schema(description = "邀请二维码", example = "3E8U2AM8")
|
||||
private String inviteQrCode;
|
||||
|
||||
|
||||
|
@ -25,34 +25,34 @@ public class UserProjectAddRequest implements Serializable {
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@NotBlank(message = "项目名称不能为空")
|
||||
@Schema(description = "项目名称", example = "")
|
||||
@Schema(description = "项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "项目图片URL不能为空")
|
||||
@Schema(description = "项目图片URL", example = "")
|
||||
@Schema(description = "项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 项目结算周期
|
||||
*/
|
||||
@Schema(description = "项目结算周期", example = "")
|
||||
@Schema(description = "项目结算周期", example = "2")
|
||||
private Integer projectSettlementCycle;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -20,41 +20,41 @@ public class UserProjectQueryRequest extends PageRequest implements Serializable
|
||||
* 用户项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户项目ID ID不能小于1")
|
||||
@Schema(description = "用户项目ID", example = "")
|
||||
@Schema(description = "用户项目ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@NotBlank(message = "项目名称不能为空")
|
||||
@Schema(description = "项目名称", example = "")
|
||||
@Schema(description = "项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "项目图片URL不能为空")
|
||||
@Schema(description = "项目图片URL", example = "")
|
||||
@Schema(description = "项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 项目结算周期
|
||||
*/
|
||||
@Schema(description = "项目结算周期", example = "")
|
||||
@Schema(description = "项目结算周期", example = "2")
|
||||
private Integer projectSettlementCycle;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -26,41 +26,41 @@ public class UserProjectUpdateRequest implements Serializable {
|
||||
* 用户项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户项目ID ID不能小于1")
|
||||
@Schema(description = "用户项目ID", example = "")
|
||||
@Schema(description = "用户项目ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@NotBlank(message = "项目名称不能为空")
|
||||
@Schema(description = "项目名称", example = "")
|
||||
@Schema(description = "项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 项目图片URL
|
||||
*/
|
||||
@NotBlank(message = "项目图片URL不能为空")
|
||||
@Schema(description = "项目图片URL", example = "")
|
||||
@Schema(description = "项目图片URL", example = "3E8U2AM8")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 项目结算周期
|
||||
*/
|
||||
@Schema(description = "项目结算周期", example = "")
|
||||
@Schema(description = "项目结算周期", example = "2")
|
||||
private Integer projectSettlementCycle;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.greenorange.promotion.model.dto.withdrawalApply;
|
||||
|
||||
import com.greenorange.promotion.annotation.WithdrawStatusEnumValue;
|
||||
import com.greenorange.promotion.model.enums.WithdrawStatusEnum;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 提现申请记录添加请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "提现申请记录添加请求体", requiredProperties = {
|
||||
"withdrawnAmount",
|
||||
"withdrawalStatus",
|
||||
"userId",
|
||||
})
|
||||
public class WithdrawalApplyAddRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 提现金额
|
||||
*/
|
||||
@Schema(description = "提现金额", example = "1.00")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]
|
||||
*/
|
||||
@WithdrawStatusEnumValue(enumClass = WithdrawStatusEnum.class)
|
||||
@Schema(description = "提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]", example = "processing")
|
||||
private String withdrawalStatus;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
package com.greenorange.promotion.model.dto.withdrawalApply;
|
||||
|
||||
import com.greenorange.promotion.annotation.WithdrawStatusEnumValue;
|
||||
import com.greenorange.promotion.model.enums.WithdrawStatusEnum;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import com.greenorange.promotion.common.PageRequest;
|
||||
|
||||
/**
|
||||
* 提现申请记录查询请求体,继承自分页请求 PageRequest
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "提现申请记录查询请求体", requiredProperties = {"current", "pageSize"})
|
||||
public class WithdrawalApplyQueryRequest extends PageRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]
|
||||
*/
|
||||
@WithdrawStatusEnumValue(enumClass = WithdrawStatusEnum.class)
|
||||
@Schema(description = "提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]", example = "processing")
|
||||
private String withdrawalStatus;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,56 @@
|
||||
package com.greenorange.promotion.model.dto.withdrawalApply;
|
||||
|
||||
import com.greenorange.promotion.annotation.WithdrawStatusEnumValue;
|
||||
import com.greenorange.promotion.model.enums.WithdrawStatusEnum;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 提现申请记录更新请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "提现申请记录更新请求体", requiredProperties = {
|
||||
"id",
|
||||
"withdrawnAmount",
|
||||
"withdrawalStatus",
|
||||
"userId",
|
||||
})
|
||||
public class WithdrawalApplyUpdateRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 提现申请ID
|
||||
*/
|
||||
@Min(value = 1L, message = "提现申请ID ID不能小于1")
|
||||
@Schema(description = "提现申请ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 提现金额
|
||||
*/
|
||||
@Schema(description = "提现金额", example = "1.00")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]
|
||||
*/
|
||||
@WithdrawStatusEnumValue(enumClass = WithdrawStatusEnum.class)
|
||||
@Schema(description = "提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]", example = "processing")
|
||||
private String withdrawalStatus;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.greenorange.promotion.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 提现申请记录表
|
||||
* @TableName withdrawal_apply
|
||||
*/
|
||||
@TableName(value ="withdrawal_apply")
|
||||
@Data
|
||||
public class WithdrawalApply implements Serializable {
|
||||
/**
|
||||
* 提现申请ID
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 提现金额
|
||||
*/
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]
|
||||
*/
|
||||
private String withdrawalStatus;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDelete;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -7,7 +7,6 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* 文件上传业务类型枚举
|
||||
*/
|
||||
|
@ -0,0 +1,53 @@
|
||||
package com.greenorange.promotion.model.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 提现状态枚举
|
||||
*/
|
||||
@Getter
|
||||
public enum WithdrawStatusEnum {
|
||||
|
||||
PROCESSING("提现中", "processing"),
|
||||
SUCCESS("提现成功", "success"),
|
||||
FAILED("提现失败", "failed");
|
||||
|
||||
private final String text;
|
||||
|
||||
private final String value;
|
||||
|
||||
WithdrawStatusEnum(String text, String value) {
|
||||
this.text = text;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有状态的值列表
|
||||
*/
|
||||
public static List<String> getValues() {
|
||||
return Arrays.stream(values())
|
||||
.map(WithdrawStatusEnum::getValue)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 value 获取对应枚举
|
||||
*/
|
||||
public static WithdrawStatusEnum getEnumByValue(String value) {
|
||||
if (StringUtils.isBlank(value)) {
|
||||
return null;
|
||||
}
|
||||
for (WithdrawStatusEnum status : values()) {
|
||||
if (status.getValue().equals(value)) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.greenorange.promotion.model.vo.withdrawalApply;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 提现申请记录 视图对象
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "提现申请记录 视图对象")
|
||||
public class WithdrawalApplyVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 提现申请记录ID
|
||||
*/
|
||||
@Schema(description = "提现申请记录ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 提现金额
|
||||
*/
|
||||
@Schema(description = "提现金额", example = "")
|
||||
private BigDecimal withdrawnAmount;
|
||||
|
||||
/**
|
||||
* 提现状态[提现中(processing)|提现成功(success)|提现失败(failed)]
|
||||
*/
|
||||
@Schema(description = "提现状态", example = "processing")
|
||||
private String withdrawalStatus;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
Reference in New Issue
Block a user