package com.yc.ship.module.trade.controller.admin.smsSendconfig.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 SmsSendconfigPageReqVO extends PageParam {

    @Schema(description = "短信标题", example = "李四")
    private String smsName;

    @Schema(description = "模板类型", example = "2")
    private Integer smsType;

    @Schema(description = "模板ID", example = "29269")
    private Long smsTemplateId;

    private Long smsConfigId;
    private String travelDate;
    private String contact;

    @Schema(description = "模板内容")
    private String smsContent;

    @Schema(description = "模板参数数组类型")
    private String smsParms;

    @Schema(description = "1.立即发送 2.定时发送 立即发送：当天的关联产品的所有订单联系人发送短信；针对后续订单，订单创建后立即发送短信；		定时发送：发送时间点（出发前1天17点）对关联产品的订单联系人发送短信；针对后续订单，订单创建后立即发送短信", example = "1")
    private Integer sendType;

    @Schema(description = "1.出行前一天  2.出行当天", example = "2")
    private Integer sendDateType;

    @Schema(description = "发送时间 17:30")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String[] sendTime;

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

    @Schema(description = "是否启用")
    private Boolean isUse;

}