TASK:新增订阅计划概念
This commit is contained in:
39
src/main/java/com/ai/da/model/dto/SubscriptionPlanDTO.java
Normal file
39
src/main/java/com/ai/da/model/dto/SubscriptionPlanDTO.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@ApiModel( value = "创建订阅计划入参")
|
||||
public class SubscriptionPlanDTO {
|
||||
|
||||
@ApiModelProperty("组织id")
|
||||
@NotNull(message = "Please select an organizationId.")
|
||||
private Long organizationId;
|
||||
|
||||
@ApiModelProperty("当前订阅开始时间")
|
||||
@NotNull(message = "Please set a subscription start time.")
|
||||
private Long currentPeriodStart;
|
||||
|
||||
@ApiModelProperty("当前订阅结束时间")
|
||||
@NotNull(message = "Please set a subscription end time.")
|
||||
private Long currentPeriodEnd;
|
||||
|
||||
@ApiModelProperty("当前订阅总的子账号数量")
|
||||
@NotNull(message = "Please set the sub-account number.")
|
||||
private Integer accountNum;
|
||||
|
||||
@ApiModelProperty("当前订阅可用积分上限")
|
||||
@NotNull(message = "Please set the credits limit.")
|
||||
private BigDecimal creditLimit;
|
||||
|
||||
@ApiModelProperty("管理员账户id")
|
||||
@NotNull(message = "Please assign an administrator account.")
|
||||
private Long adminAccId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel
|
||||
public class SubscriptionPlanPageQuery extends QueryPageByTimeDTO {
|
||||
|
||||
@ApiModelProperty("组织id")
|
||||
private Long organizationId;
|
||||
|
||||
@ApiModelProperty("管理id")
|
||||
private Long adminAccId;
|
||||
|
||||
@ApiModelProperty("状态 PENDING||ACTIVE||EXPIRED")
|
||||
private List<String> status;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@ApiModel
|
||||
public class UpdateSubscriptionPlanDTO {
|
||||
|
||||
@ApiModelProperty("id")
|
||||
@NotNull(message = "subscription plan id cannot be empty")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("当前订阅开始时间")
|
||||
private Long currentPeriodStart;
|
||||
|
||||
@ApiModelProperty("当前订阅结束时间")
|
||||
private Long currentPeriodEnd;
|
||||
|
||||
@ApiModelProperty("当前订阅总的子账号数量")
|
||||
private Integer accountNum;
|
||||
|
||||
@ApiModelProperty("当前订阅可用积分上限")
|
||||
private BigDecimal creditLimit;
|
||||
|
||||
@ApiModelProperty("管理员账户id")
|
||||
private Long adminAccId;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user