项目明细调整
This commit is contained in:
@ -61,10 +61,10 @@ public class FileInfoAddRequest implements Serializable {
|
||||
private String fileView;
|
||||
|
||||
/**
|
||||
* 文件业务类型(头像,项目,富文本,默认)
|
||||
* 文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]
|
||||
*/
|
||||
@FileEnumValue(enumClass = FileUploadBizEnum.class)
|
||||
@Schema(description = "文件业务类型(头像,项目,富文本,默认)", example = "avatar")
|
||||
@Schema(description = "文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]", example = "avatar")
|
||||
private String biz;
|
||||
|
||||
/**
|
||||
|
@ -68,10 +68,10 @@ public class FileInfoUpdateRequest implements Serializable {
|
||||
private String fileView;
|
||||
|
||||
/**
|
||||
* 文件业务类型(头像,项目,富文本,默认)
|
||||
* 文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]
|
||||
*/
|
||||
@FileEnumValue(enumClass = FileUploadBizEnum.class)
|
||||
@Schema(description = "文件业务类型(头像,项目,富文本,默认)", example = "avatar")
|
||||
@Schema(description = "文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]", example = "default")
|
||||
private String biz;
|
||||
|
||||
/**
|
||||
|
@ -13,10 +13,10 @@ import java.io.Serializable;
|
||||
public class UploadFileRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 文件业务类型(头像,项目,富文本,默认)
|
||||
* 文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]
|
||||
*/
|
||||
@FileEnumValue(enumClass = FileUploadBizEnum.class)
|
||||
@Schema(description = "文件业务类型(头像,项目,富文本,默认)", example = "avatar")
|
||||
@Schema(description = "文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]", example = "default")
|
||||
private String biz;
|
||||
|
||||
|
||||
|
@ -1,16 +1,21 @@
|
||||
package com.greenorange.promotion.model.dto.project;
|
||||
|
||||
import com.greenorange.promotion.annotation.UserEnumValue;
|
||||
import com.greenorange.promotion.annotation.ProjectStatusEnumValue;
|
||||
import com.greenorange.promotion.model.dto.projectDetail.ProjectDetailAddRequest;
|
||||
import com.greenorange.promotion.model.dto.projectDetail.ProjectDetailUpdateRequest;
|
||||
import com.greenorange.promotion.model.dto.projectNotification.ProjectNotificationAddRequest;
|
||||
import com.greenorange.promotion.model.entity.ProjectNotification;
|
||||
import com.greenorange.promotion.model.enums.ProjectStatusEnum;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.DecimalMin;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 项目添加请求体
|
||||
@ -19,13 +24,14 @@ import java.math.BigDecimal;
|
||||
@Schema(description = "项目添加请求体", requiredProperties = {
|
||||
"projectName",
|
||||
"projectImage",
|
||||
"projectSettlementCycle",
|
||||
"maxPromoterCount",
|
||||
"projectStatus",
|
||||
"projectDescription",
|
||||
"settlementDesc",
|
||||
"projectDesc",
|
||||
"projectFlow",
|
||||
"applyPromoCodeDesc",
|
||||
"projectSettlementCycle",
|
||||
"maxPromoterCount",
|
||||
})
|
||||
public class ProjectAddRequest implements Serializable {
|
||||
|
||||
@ -43,6 +49,27 @@ public class ProjectAddRequest implements Serializable {
|
||||
@Schema(description = "项目图片URL", example = "http://xxx.png")
|
||||
private String projectImage;
|
||||
|
||||
/**
|
||||
* 项目结算周期
|
||||
*/
|
||||
@Min(value = 1, message = "项目结算周期不能小于1")
|
||||
@Schema(description = "项目结算周期", example = "2")
|
||||
private Integer projectSettlementCycle;
|
||||
|
||||
/**
|
||||
* 最大推广人数
|
||||
*/
|
||||
@Min(value = 1, message = "最大推广人数不能小于1")
|
||||
@Schema(description = "最大推广人数", example = "200")
|
||||
private Integer maxPromoterCount;
|
||||
|
||||
/**
|
||||
* 项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]
|
||||
*/
|
||||
@ProjectStatusEnumValue(enumClass = ProjectStatusEnum.class)
|
||||
@Schema(description = "项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]", example = "running")
|
||||
private String projectStatus;
|
||||
|
||||
/**
|
||||
* 项目简介
|
||||
*/
|
||||
@ -78,20 +105,6 @@ public class ProjectAddRequest implements Serializable {
|
||||
@Schema(description = "申请推广码说明(富文本)", example = "富文本")
|
||||
private String applyPromoCodeDesc;
|
||||
|
||||
/**
|
||||
* 项目结算周期
|
||||
*/
|
||||
@Min(value = 1, message = "项目结算周期不能小于1")
|
||||
@Schema(description = "项目结算周期", example = "2")
|
||||
private Integer projectSettlementCycle;
|
||||
|
||||
/**
|
||||
* 最大推广人数
|
||||
*/
|
||||
@Min(value = 1, message = "最大推广人数不能小于1")
|
||||
@Schema(description = "最大推广人数", example = "200")
|
||||
private Integer maxPromoterCount;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
@ -0,0 +1,37 @@
|
||||
package com.greenorange.promotion.model.dto.project;
|
||||
|
||||
import com.greenorange.promotion.annotation.ProjectStatusEnumValue;
|
||||
import com.greenorange.promotion.model.enums.ProjectStatusEnum;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 项目状态更新请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "项目状态更新请求体", requiredProperties = {"id", "projectStatus"})
|
||||
public class ProjectStatusUpdateRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 项目 ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目 ID不能小于1")
|
||||
@Schema(description = "项目 ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
|
||||
/**
|
||||
* 项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]
|
||||
*/
|
||||
@ProjectStatusEnumValue(enumClass = ProjectStatusEnum.class)
|
||||
@Schema(description = "项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]", example = "running")
|
||||
private String projectStatus;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.greenorange.promotion.model.dto.projectCommission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 项目明细抽佣添加请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "项目明细抽佣添加请求体", requiredProperties = {
|
||||
"projectDetailId",
|
||||
"myUnitPrice",
|
||||
"currentCommissionRate",
|
||||
"projectId",
|
||||
"userId",
|
||||
})
|
||||
public class ProjectCommissionAddRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,65 @@
|
||||
package com.greenorange.promotion.model.dto.projectCommission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.greenorange.promotion.common.PageRequest;
|
||||
|
||||
/**
|
||||
* 项目明细抽佣查询请求体,继承自分页请求 PageRequest
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "项目明细抽佣查询请求体", requiredProperties = {"current", "pageSize"})
|
||||
public class ProjectCommissionQueryRequest extends PageRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "抽佣记录ID", example = "")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,69 @@
|
||||
package com.greenorange.promotion.model.dto.projectCommission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 项目明细抽佣更新请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "项目明细抽佣更新请求体", requiredProperties = {
|
||||
"id",
|
||||
"projectDetailId",
|
||||
"myUnitPrice",
|
||||
"currentCommissionRate",
|
||||
"projectId",
|
||||
"userId",
|
||||
})
|
||||
public class ProjectCommissionUpdateRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "抽佣记录ID", example = "")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -24,29 +24,29 @@ public class PromoCodeAddRequest implements Serializable {
|
||||
* 推广码信息key
|
||||
*/
|
||||
@NotBlank(message = "推广码信息key不能为空")
|
||||
@Schema(description = "推广码信息key", example = "")
|
||||
@Schema(description = "推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 推广码链接
|
||||
*/
|
||||
@NotBlank(message = "推广码链接不能为空")
|
||||
@Schema(description = "推广码链接", example = "")
|
||||
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 推广码状态
|
||||
* 推广码状态(true:占用,false:空闲)
|
||||
*/
|
||||
@NotBlank(message = "推广码状态不能为空")
|
||||
@Schema(description = "推广码状态", example = "")
|
||||
private String promoCodeStatus;
|
||||
@Schema(description = "推广码状态(true:占用,false:空闲)", example = "false")
|
||||
private Boolean promoCodeStatus;
|
||||
|
||||
|
||||
@Serial
|
||||
|
@ -20,36 +20,36 @@ public class PromoCodeQueryRequest extends PageRequest implements Serializable {
|
||||
* 推广码ID
|
||||
*/
|
||||
@Min(value = 1L, message = "推广码ID ID不能小于1")
|
||||
@Schema(description = "推广码ID", example = "")
|
||||
@Schema(description = "推广码ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 推广码信息key
|
||||
*/
|
||||
@NotBlank(message = "推广码信息key不能为空")
|
||||
@Schema(description = "推广码信息key", example = "")
|
||||
@Schema(description = "推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 推广码链接
|
||||
*/
|
||||
@NotBlank(message = "推广码链接不能为空")
|
||||
@Schema(description = "推广码链接", example = "")
|
||||
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 推广码状态
|
||||
* 推广码状态(true:占用,false:空闲)
|
||||
*/
|
||||
@NotBlank(message = "推广码状态不能为空")
|
||||
@Schema(description = "推广码状态", example = "")
|
||||
private String promoCodeStatus;
|
||||
@Schema(description = "推广码状态(true:占用,false:空闲)", example = "false")
|
||||
private Boolean promoCodeStatus;
|
||||
|
||||
|
||||
@Serial
|
||||
|
@ -25,36 +25,36 @@ public class PromoCodeUpdateRequest implements Serializable {
|
||||
* 推广码ID
|
||||
*/
|
||||
@Min(value = 1L, message = "推广码ID ID不能小于1")
|
||||
@Schema(description = "推广码ID", example = "")
|
||||
@Schema(description = "推广码ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 推广码信息key
|
||||
*/
|
||||
@NotBlank(message = "推广码信息key不能为空")
|
||||
@Schema(description = "推广码信息key", example = "")
|
||||
@Schema(description = "推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 推广码链接
|
||||
*/
|
||||
@NotBlank(message = "推广码链接不能为空")
|
||||
@Schema(description = "推广码链接", example = "")
|
||||
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 推广码状态
|
||||
* 推广码状态(true:占用,false:空闲)
|
||||
*/
|
||||
@NotBlank(message = "推广码状态不能为空")
|
||||
@Schema(description = "推广码状态", example = "")
|
||||
private String promoCodeStatus;
|
||||
@Schema(description = "推广码状态(true:占用,false:空闲)", example = "false")
|
||||
private Boolean promoCodeStatus;
|
||||
|
||||
|
||||
@Serial
|
||||
|
@ -0,0 +1,70 @@
|
||||
package com.greenorange.promotion.model.dto.subUserProjectCommission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 下级用户项目明细抽佣添加请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "下级用户项目明细抽佣添加请求体", requiredProperties = {
|
||||
"projectDetailId",
|
||||
"myUnitPrice",
|
||||
"currentCommissionRate",
|
||||
"subUserId",
|
||||
"projectId",
|
||||
"userId",
|
||||
})
|
||||
public class SubUserProjectCommissionAddRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户ID ID不能小于1")
|
||||
@Schema(description = "下级用户ID", example = "")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,72 @@
|
||||
package com.greenorange.promotion.model.dto.subUserProjectCommission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.greenorange.promotion.common.PageRequest;
|
||||
|
||||
/**
|
||||
* 下级用户项目明细抽佣查询请求体,继承自分页请求 PageRequest
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "下级用户项目明细抽佣查询请求体", requiredProperties = {"current", "pageSize"})
|
||||
public class SubUserProjectCommissionQueryRequest extends PageRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 下级用户抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "下级用户抽佣记录ID", example = "")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户ID ID不能小于1")
|
||||
@Schema(description = "下级用户ID", example = "")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
@ -0,0 +1,77 @@
|
||||
package com.greenorange.promotion.model.dto.subUserProjectCommission;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 下级用户项目明细抽佣更新请求体
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "下级用户项目明细抽佣更新请求体", requiredProperties = {
|
||||
"id",
|
||||
"projectDetailId",
|
||||
"myUnitPrice",
|
||||
"currentCommissionRate",
|
||||
"subUserId",
|
||||
"projectId",
|
||||
"userId",
|
||||
})
|
||||
public class SubUserProjectCommissionUpdateRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* 下级用户抽佣记录ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户抽佣记录ID ID不能小于1")
|
||||
@Schema(description = "下级用户抽佣记录ID", example = "")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目明细ID ID不能小于1")
|
||||
@Schema(description = "项目明细ID", example = "")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "下级用户ID ID不能小于1")
|
||||
@Schema(description = "下级用户ID", example = "")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Min(value = 1L, message = "项目ID ID不能小于1")
|
||||
@Schema(description = "项目ID", example = "")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Min(value = 1L, message = "用户ID ID不能小于1")
|
||||
@Schema(description = "用户ID", example = "")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -54,7 +54,7 @@ public class FileInfo implements Serializable {
|
||||
private String fileView;
|
||||
|
||||
/**
|
||||
* 文件业务类型(头像,项目,富文本,默认)
|
||||
* 文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]
|
||||
*/
|
||||
private String biz;
|
||||
|
||||
|
@ -37,6 +37,11 @@ public class Project implements Serializable {
|
||||
*/
|
||||
private String projectDescription;
|
||||
|
||||
/**
|
||||
* 项目价格
|
||||
*/
|
||||
private BigDecimal projectPrice;
|
||||
|
||||
/**
|
||||
* 结算说明(富文本)
|
||||
*/
|
||||
@ -73,7 +78,7 @@ public class Project implements Serializable {
|
||||
private Integer maxPromoterCount;
|
||||
|
||||
/**
|
||||
* 项目状态(项目运行|人数已满|项目暂停)
|
||||
* 项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]
|
||||
*/
|
||||
private String projectStatus;
|
||||
|
||||
|
@ -0,0 +1,67 @@
|
||||
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 project_commission
|
||||
*/
|
||||
@TableName(value ="project_commission")
|
||||
@Data
|
||||
public class ProjectCommission implements Serializable {
|
||||
/**
|
||||
* 抽佣记录ID
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDelete;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -39,7 +39,7 @@ public class PromoCode implements Serializable {
|
||||
/**
|
||||
* 推广码状态
|
||||
*/
|
||||
private Object promoCodeStatus;
|
||||
private Boolean promoCodeStatus;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
|
@ -0,0 +1,72 @@
|
||||
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 sub_user_project_commission
|
||||
*/
|
||||
@TableName(value ="sub_user_project_commission")
|
||||
@Data
|
||||
public class SubUserProjectCommission implements Serializable {
|
||||
/**
|
||||
* 下级用户抽佣记录ID
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Integer isDelete;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -16,7 +16,8 @@ public enum FileUploadBizEnum {
|
||||
|
||||
AVATAR("用户头像", "avatar"),
|
||||
PROJECT("项目", "project"),
|
||||
RICH_TEXT("富文本", "richText");
|
||||
RICH_TEXT("富文本", "richText"),
|
||||
DEFAULT("默认", "default");
|
||||
|
||||
private final String text;
|
||||
private final String value;
|
||||
|
@ -51,9 +51,9 @@ public class FileInfoVO implements Serializable {
|
||||
private String fileView;
|
||||
|
||||
/**
|
||||
* 文件业务类型(头像,项目,富文本,默认)
|
||||
* 文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]
|
||||
*/
|
||||
@Schema(description = "文件业务类型(头像,项目,富文本,默认)", example = "user_avatar")
|
||||
@Schema(description = "文件业务类型[头像(avatar)|项目(project)|富文本(richText)|默认(default))]", example = "default")
|
||||
private String biz;
|
||||
|
||||
/**
|
||||
|
@ -27,6 +27,12 @@ public class ProjectVO implements Serializable {
|
||||
@Schema(description = "项目名称", example = "美团省钱包")
|
||||
private String projectName;
|
||||
|
||||
/**
|
||||
* 项目价格
|
||||
*/
|
||||
@Schema(description = "项目价格", example = "0.72")
|
||||
private BigDecimal projectPrice;
|
||||
|
||||
/**
|
||||
* 项目图片URL
|
||||
*/
|
||||
@ -82,9 +88,9 @@ public class ProjectVO implements Serializable {
|
||||
private Integer maxPromoterCount;
|
||||
|
||||
/**
|
||||
* 项目状态(项目运行|人数已满|项目暂停)
|
||||
* 项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]
|
||||
*/
|
||||
@Schema(description = "项目状态", example = "项目运行")
|
||||
@Schema(description = "项目状态[项目运行(running)|人数已满(full)|项目暂停(paused)]", example = "running")
|
||||
private String projectStatus;
|
||||
|
||||
/**
|
||||
|
@ -0,0 +1,56 @@
|
||||
package com.greenorange.promotion.model.vo.projectCommission;
|
||||
|
||||
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 ProjectCommissionVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 项目明细抽佣ID
|
||||
*/
|
||||
@Schema(description = "项目明细抽佣ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Schema(description = "项目明细ID", example = "${field.example}")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "${field.example}")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "${field.example}")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Schema(description = "项目ID", example = "${field.example}")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(description = "用户ID", example = "${field.example}")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -23,26 +23,26 @@ public class PromoCodeVO implements Serializable {
|
||||
/**
|
||||
* 推广码信息key
|
||||
*/
|
||||
@Schema(description = "推广码信息key", example = "${field.example}")
|
||||
@Schema(description = "推广码信息key", example = "ykxy227")
|
||||
private String promoCodeInfoKey;
|
||||
|
||||
/**
|
||||
* 推广码链接
|
||||
*/
|
||||
@Schema(description = "推广码链接", example = "${field.example}")
|
||||
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
|
||||
private String promoCodeLink;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Schema(description = "项目ID", example = "${field.example}")
|
||||
@Schema(description = "项目ID", example = "1")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 推广码状态
|
||||
* 推广码状态(true:占用,false:空闲)
|
||||
*/
|
||||
@Schema(description = "推广码状态", example = "${field.example}")
|
||||
private String promoCodeStatus;
|
||||
@Schema(description = "推广码状态(true:占用,false:空闲)", example = "false")
|
||||
private Boolean promoCodeStatus;
|
||||
|
||||
|
||||
@Serial
|
||||
|
@ -0,0 +1,62 @@
|
||||
package com.greenorange.promotion.model.vo.subUserProjectCommission;
|
||||
|
||||
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 SubUserProjectCommissionVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 下级用户项目明细抽佣ID
|
||||
*/
|
||||
@Schema(description = "下级用户项目明细抽佣ID", example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 项目明细ID
|
||||
*/
|
||||
@Schema(description = "项目明细ID", example = "${field.example}")
|
||||
private Long projectDetailId;
|
||||
|
||||
/**
|
||||
* 我的单价
|
||||
*/
|
||||
@Schema(description = "我的单价", example = "${field.example}")
|
||||
private BigDecimal myUnitPrice;
|
||||
|
||||
/**
|
||||
* 当前抽佣比例
|
||||
*/
|
||||
@Schema(description = "当前抽佣比例", example = "${field.example}")
|
||||
private BigDecimal currentCommissionRate;
|
||||
|
||||
/**
|
||||
* 下级用户ID
|
||||
*/
|
||||
@Schema(description = "下级用户ID", example = "${field.example}")
|
||||
private Long subUserId;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
@Schema(description = "项目ID", example = "${field.example}")
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(description = "用户ID", example = "${field.example}")
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
Reference in New Issue
Block a user