package com.sqx.modules.errand.dto;

import com.sqx.common.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 短信历史分页查询dto
 */
@Data
@ApiModel("SmsLogQueryDTO")
public class SmsLogQueryDTO extends PageQuery {

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("是否发送成功")
    private String successFlag;

    @ApiModelProperty("发送人电话")
    private String fromTo;

    @ApiModelProperty("发送店铺id")
    private Long shopId;

    @ApiModelProperty("接受人电话")
    private String sendTo;

    @ApiModelProperty("查询开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String startTime;

    @ApiModelProperty("查询结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String endTime;

    @ApiModelProperty("发送来源：1骑手、2商家，默认为1")
    private String sourceType = "1";
}
