package com.dy.pipIrrSell.activeCard;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.*;
|
import lombok.*;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2023/12/6 20:49
|
* @LastEditTime 2023/12/6 20:49
|
* @Description
|
*/
|
|
@Data
|
@Builder
|
@ToString
|
@NoArgsConstructor
|
@AllArgsConstructor
|
@Schema(name = "开卡/补卡传入对象")
|
public class DtoActiveCard {
|
public static final long serialVersionUID = 20231191728001L;
|
|
/**
|
* 水卡地址
|
*/
|
@Schema(description = "水卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@NotBlank
|
private String cardAddr;
|
|
/**
|
* 农户ID
|
*/
|
@Schema(description = "农户ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "农户ID必须为大于0的整数")
|
private Long clientId;
|
|
/**
|
* 卡片费用
|
*/
|
@Schema(description = "卡片费用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "卡片费用必须为大于0的整数")
|
private Integer cardCost;
|
|
/**
|
* 补卡金额
|
*/
|
@Schema(description = "补卡金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Min(value = 0, message="补卡金额不能小于0")
|
private Double reissueAmount;
|
|
/**
|
* 支付方式编号
|
*/
|
@Schema(description = "支付方式编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "支付方式编号必须为大于0的整数")
|
private Long paymentId;
|
|
/**
|
* 备注信息
|
*/
|
@Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private String remarks;
|
|
/**
|
* 操作人编号
|
*/
|
@Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "操作人编号必须为大于0的整数")
|
private Long operator;
|
}
|