TASK:订阅计划相关
This commit is contained in:
@@ -14,4 +14,6 @@ public class SubAccountPageDTO extends PageQueryBaseVo {
|
||||
private List<String> email;
|
||||
|
||||
private List<String> userName;
|
||||
|
||||
private Long subscriptionPlanId;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@ package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Positive;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -14,18 +16,22 @@ public class SubscriptionPlanDTO {
|
||||
|
||||
@ApiModelProperty("组织id")
|
||||
@NotNull(message = "Please select an organizationId.")
|
||||
@Positive(message = "组织ID必须大于0")
|
||||
private Long organizationId;
|
||||
|
||||
@ApiModelProperty("当前订阅开始时间")
|
||||
@NotNull(message = "Please set a subscription start time.")
|
||||
@Min(value = 0, message = "开始时间不能小于0")
|
||||
private Long currentPeriodStart;
|
||||
|
||||
@ApiModelProperty("当前订阅结束时间")
|
||||
@NotNull(message = "Please set a subscription end time.")
|
||||
@Min(value = 0, message = "结束时间不能小于0")
|
||||
private Long currentPeriodEnd;
|
||||
|
||||
@ApiModelProperty("当前订阅总的子账号数量")
|
||||
@NotNull(message = "Please set the sub-account number.")
|
||||
@Min(value = 0, message = "子账号数量不能小于0")
|
||||
private Integer accountNum;
|
||||
|
||||
@ApiModelProperty("当前订阅可用积分上限")
|
||||
@@ -34,6 +40,10 @@ public class SubscriptionPlanDTO {
|
||||
|
||||
@ApiModelProperty("管理员账户id")
|
||||
@NotNull(message = "Please assign an administrator account.")
|
||||
@Positive(message = "管理员账号ID必须大于0")
|
||||
private Long adminAccId;
|
||||
|
||||
@ApiModelProperty("订阅计划命名")
|
||||
private String name;
|
||||
|
||||
}
|
||||
|
||||
@@ -30,4 +30,7 @@ public class UpdateSubscriptionPlanDTO {
|
||||
@ApiModelProperty("管理员账户id")
|
||||
private Long adminAccId;
|
||||
|
||||
@ApiModelProperty("订阅重命名")
|
||||
private String name;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user