package com.ltgk.catches.domain.dto;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆信息发布查询参数对象
 *
 * @author Qi ChengBin
 * @date 2025-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "车辆信息发布查询参数对象", description = "车辆信息发布查询参数对象")
public class TpVehiclePublishReq extends BasePage {

    @ApiModelProperty(value = "车辆信息发布主键")
    @NotNull(message = "车辆信息发布主键不能为空！", groups = {Detail.class})
    private String id;

    @ApiModelProperty(value = "发布类型")
    private Integer publishType;

    @ApiModelProperty(value = "发布标题")
    private String publishTitle;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "产品重量")
    private BigDecimal productWeight;

    @ApiModelProperty(value = "车型")
    private String vehicleType;

    @ApiModelProperty(value = "车辆载重")
    private BigDecimal vehicleLoad;

    @ApiModelProperty(value = "车辆数量")
    private Long vehicleNum;

    @ApiModelProperty(value = "运输起点")
    private String startingPoint;

    @ApiModelProperty(value = "运输终点")
    private String endingPoint;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "用车时间")
    private Date transportTime;

    @ApiModelProperty(value = "联系人")
    private String contacts;

    @ApiModelProperty(value = "联系方式")
    private String contactsPhone;

    @ApiModelProperty(value = "联系地址")
    private String contactsAddress;

    @ApiModelProperty(value = "发布人ID")
    private Long userId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "发布状态")
    private Integer publishStatus;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "营业执照")
    private String businessCertificate;

    @ApiModelProperty(value = "行驶证")
    private String drivingLicense;

    @ApiModelProperty(value = "驾驶证")
    private String driversLicense;

    @ApiModelProperty(value = "审核人")
    private String approveMan;

    @ApiModelProperty(value = "审核状态")
    private String approveStatus;

    @ApiModelProperty(value = "审核意见")
    private String approveDesc;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "审核时间")
    private Date approveDate;

    @TableLogic(delval = "1", value = "0")
    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    private String areaName;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;
}
