package cn.iocoder.yudao.module.server.controller.admin.smsrecord.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.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 SmsRecordPageReqVO extends PageParam {

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "短信内容")
    private String content;

    @Schema(description = "发送状态：0-待发送，1-发送成功，2-发送失败", example = "2")
    private Integer sendStatus;

    @Schema(description = "错误信息")
    private String errorMessage;

    @Schema(description = "发送时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sendTime;

    @Schema(description = "业务类型", example = "2")
    private String businessType;

    @Schema(description = "业务ID", example = "30787")
    private Long businessId;

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

}