package com.yc.ship.module.trade.controller.admin.billrule.vo;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 旅行社账单规则分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BillRulePageReqVO extends PageParam {

    @Schema(description = "账单规则名字", example = "王五")
    private String name;

    @Schema(description = "账单规则类型", example = "1")
    private Integer type;

    @Schema(description = "还款日")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] repaymentDate;

    @Schema(description = "还款日时间")
    private String repaymentTime;

    @Schema(description = "生成日")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] generationDate;

    @Schema(description = "生成日时间")
    private String generationTime;

    @Schema(description = "逾期类型")
    private Integer overdueType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}