package com.sqx.modules.order.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 订单通过商家完成dto
 *
 * @author : codingliang
 * @date : 2024-07-09 10:07
 */
@Data
@ApiModel("订单通过商家完成dto")
public class OrderFinishByShopDTO {

    @ApiModelProperty("订单id")
    @NotNull(message = "订单id不能为null")
    private Long orderId;

    @ApiModelProperty("图片")
    private String imgs;

    @ApiModelProperty("是否发送短信 0否、1是")
    @NotBlank(message = "是否发送短信不能为空")
    @Pattern(regexp = "(0|1)", message = "是否发送短信只能为0或1")
    private String sendSmsFlag;

    @ApiModelProperty("短信模板id")
    private Long smsTemplateId;
}
