初步完成小程序模块

This commit is contained in:
2025-05-12 21:05:52 +08:00
parent eab0a0f2a3
commit a2b2888e86
6 changed files with 118 additions and 52 deletions

View File

@ -1,6 +1,8 @@
package com.greenorange.promotion.model.dto.promoCode;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.AssertFalse;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;
import lombok.Data;
@ -44,7 +46,6 @@ public class PromoCodeAddRequest implements Serializable {
/**
* 推广码状态(true:占用false:空闲)
*/
@NotBlank(message = "推广码状态不能为空")
@Schema(description = "推广码状态(true:占用false:空闲)", example = "false")
private Boolean promoCodeStatus;

View File

@ -1,7 +1,8 @@
package com.greenorange.promotion.model.vo.project;
import com.greenorange.promotion.model.entity.ProjectNotification;
import com.greenorange.promotion.model.vo.projectDetail.ProjectDetailVO;
import com.greenorange.promotion.model.vo.projectNotification.ProjectNotificationVO;
import com.greenorange.promotion.model.vo.promoCodeApply.PromoCodeApplyVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@ -11,7 +12,7 @@ import java.math.BigDecimal;
import java.util.List;
@Data
public class ProjectDetailVO implements Serializable {
public class ProjectAllDetailVO implements Serializable {
/**
* 项目 ID
@ -79,7 +80,13 @@ public class ProjectDetailVO implements Serializable {
* 项目明细列表
*/
@Schema(description = "项目明细列表")
private List<ProjectDetailVO> projectDetailVOList;
private List<ProjectDetailVO> projectAllDetailVOList;
/**
* 申请的推广码列表
*/
@Schema(description = "申请的推广码列表")
private List<PromoCodeApplyVO> promoCodeApplyVOList;
@Serial