FareCalculateDTO.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.ylx.fareSetting.domian.dto;
  2. import io.swagger.annotations.ApiModel;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import lombok.Data;
  5. import javax.validation.constraints.NotNull;
  6. import java.io.Serializable;
  7. import java.time.LocalDateTime;
  8. @Data
  9. @ApiModel("车费计算请求DTO")
  10. public class FareCalculateDTO implements Serializable {
  11. private static final long serialVersionUID = 1632111945634156891L;
  12. @ApiModelProperty(value = "商户ID", required = true)
  13. @NotNull(message = "商户ID不能为空")
  14. private Long merchantId;
  15. @ApiModelProperty(value = "项目/服务ID", required = true)
  16. @NotNull(message = "项目ID不能为空")
  17. private Long projectId;
  18. @ApiModelProperty(value = "预约开始时间", required = true, example = "2024-01-07 15:30:00")
  19. @NotNull(message = "预约时间不能为空")
  20. private LocalDateTime appointmentStartTime;
  21. @ApiModelProperty(value = "城市编码", required = true)
  22. @NotNull(message = "城市编码")
  23. private String cityCode;
  24. @ApiModelProperty(value = "用户下单经度", required = true)
  25. private Double longitude;
  26. @ApiModelProperty(value = "用户下单纬度", required = true)
  27. private Double latitude;
  28. }