package org.dromara.system.domain.bo;

import org.dromara.system.domain.TblGoodsOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 寄货订单业务对象 tbl_goods_order
 *
 * @author Lion Li
 * @date 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TblGoodsOrder.class, reverseConvertGenerate = false)
public class TblGoodsOrderBo extends BaseEntity {

    /**
     * 编号
     */
    private Long id;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 货主
     */
    private Long fromUserId;

    /**
     * 货物类型
     */
    private Long goodsType;

    /**
     * 0-待支付 1-待上车 2-运输中 3-完成 4-取消
     */
    private Long status;

    /**
     * 出发地
     */
    private String fromAddr;

    /**
     * 出发时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gotime;

    /**
     * 货物重量
     */
    private String goodsWeight;

    /**
     * 目的地
     */
    private String toAddr;

    /**
     * 1-线下支付 2-微信支付
     */
    private String payType;

    /**
     * 货物描述
     */
    private String goodsDes;

    /**
     * 扩展1
     */
    private String ext1;

    /**
     * 扩展2
     */
    private String ext2;


}
