package com.cpop.system.business.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author DB
 * @version 1.0.0
 * @since 2024-01-11 14:41
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "StoreRenewBo", description = "校区续费请求")
public class StoreRenewBo {

    /**
     * 校区id
     */
    @NotBlank(message = "校区id不能为空")
    @ApiModelProperty(value = "校区id", required = true)
    private String storeId;

    /**
     * 续费金额
     */
    @ApiModelProperty(value = "续费金额")
    private BigDecimal renewAmount = BigDecimal.ZERO;

    /**
     * 续费日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "续费日期")
    private LocalDate renewDate;

    /**
     * 续费描述
     */
    @NotBlank(message = "续费描述不能为空")
    @ApiModelProperty(value = "续费描述", required = true)
    private String renewDesc;

    /**
     * 附件
     */
    @NotBlank(message = "附件不能为空")
    @ApiModelProperty(value = "附件", required = true)
    private String annexUrl;

    /**
     * 类型(0:续费;1:延期;2:激活)
     */
    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型(0:续费;1:延期;2:激活)", required = true)
    private Integer renewType;
}
