package com.yongqi.xinrenli.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单业务对象 db_order
 *
 * @author zyf
 * @date 2023-03-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DbOrderBo extends BaseEntity {

    /**
     * 自增id
     */
    @NotNull(message = "自增id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String title;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String linkman;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String phone;

    /**
     * 维修时间
     */
    @NotNull(message = "维修时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date repairTime;

    /**
     * 维修地址
     */
    @NotBlank(message = "维修地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String repairAddress;

    /**
     * 预算金额
     */
    @NotNull(message = "预算金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal budget;

    /**
     * 备注说明
     */
    @NotBlank(message = "备注说明不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;

    /**
     * 订单状态：0 已发布；1 已驳回；2 待支付；3 已接单；4 已完成；5 退款中；6 已退款
     */
    private Integer status;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 修改人
     */
    private String modifyUser;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * 删除状态  0：未删除 1：删除
     */
    private Integer deleteStatus;

    @NotNull(message = "删除状态  0：未删除 1：删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private List<DbFileBo> fileBoList;


}
