package com.ylx.fareSetting.domian.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("车费计算请求DTO")
public class FareCalculateDTO implements Serializable {
    private static final long serialVersionUID = 1632111945634156891L;


    @ApiModelProperty("商户ID")
    @NotNull(message = "商户ID不能为空")
    private Long merchantId;

    @ApiModelProperty("项目/服务ID")
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @ApiModelProperty(value = "预约开始时间", example = "2024-01-07 15:30:00")
    @NotNull(message = "预约时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime appointmentStartTime;

    @ApiModelProperty("城市编码")
    @NotNull(message = "城市编码")
    private String cityCode;

    @ApiModelProperty("用户下单经度")
    @NotNull(message = "用户下单经度不能为空")
    private BigDecimal longitude;

    @ApiModelProperty("用户下单纬度")
    @NotNull(message = "用户下单纬度不能为空")
    private BigDecimal latitude;

}
