TASK:添加接口说明
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
@@ -7,12 +9,16 @@ import javax.validation.constraints.Pattern;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@ApiModel
|
||||
public class EditReferralDTO {
|
||||
@NotNull(message = "referral id cannot be empty")
|
||||
@ApiModelProperty("指定需要修改的referral的id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("修改佣金金额")
|
||||
private BigDecimal amount;
|
||||
|
||||
@ApiModelProperty("referral状态 取值:Paid/Unpaid/Accept/Rejected")
|
||||
@Pattern(regexp = "Paid|Unpaid|Accept|Rejected", message = "状态必须是Paid/Unpaid/Accept/Rejected")
|
||||
private String status;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel
|
||||
public class ReferralPageQueryDTO extends TimeQueryBaseDTO {
|
||||
|
||||
@ApiModelProperty("推广者id")
|
||||
private Long affiliateId;
|
||||
|
||||
@ApiModelProperty("状态 取值Paid/Unpaid/Pending/Access/Rejected")
|
||||
private String status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user