package org.dromara.system.domain.bo;

import org.dromara.system.domain.TblTaxiOrder;
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_taxi_order
 *
 * @author Lion Li
 * @date 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TblTaxiOrder.class, reverseConvertGenerate = false)
public class TblTaxiOrderBo extends BaseEntity {

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

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

    /**
     * 乘客
     */
    private Long fromUserId;

    /**
     * 司机
     */
    private Long toUserId;

    /**
     * 0-待接单 1-已接单 2-取消 3-完成
     */
    private Long status;

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

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

    /**
     * 乘车人数
     */
    private Long peoNum;

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

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

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


}
