package com.tofly.project.entity.dto;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.util.*;

import org.springframework.web.multipart.MultipartFile;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import org.hibernate.validator.constraints.*;

/**
 * 工程登记(ProjectRegistration)表实体类
 *
 * @author HaiQiu
 * @since 2022-11-14 16:32:22
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ProjectRegistration对象", description = "工程登记")
public class ProjectRegistrationDto implements Serializable {

    private static final long serialVersionUID = -88653081295548592L;

    /**
     * 主键ID
     */
    @Digits(integer = 20, fraction = 0, message = "主键ID长度不能超过20")
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 工程名称
     */
    @Size(max = 100, message = "工程名称长度不能超过100")
    @ApiModelProperty(value = "工程名称")
    private String name;

    /**
     * 工程地址
     */
    @Size(max = 200, message = "工程地址长度不能超过200")
    @ApiModelProperty(value = "工程地址")
    private String address;

    /**
     * 工程类型（字典取值）
     */
    @Digits(integer = 20, fraction = 0, message = "工程类型（字典取值）长度不能超过20")
    @ApiModelProperty(value = "工程类型（字典取值）")
    private Long dataType;

    /**
     * 联系人
     */
    @Size(max = 100, message = "联系人长度不能超过100")
    @ApiModelProperty(value = "联系人")
    private String contacts;

    /**
     * 联系人电话
     */
    @Size(max = 85, message = "联系人电话长度不能超过85")
    @ApiModelProperty(value = "联系人电话")
    private String contactsPhone;

    /**
     * 经度
     */
    @Size(max = 85, message = "经度长度不能超过85")
    @ApiModelProperty(value = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @Size(max = 85, message = "纬度长度不能超过85")
    @ApiModelProperty(value = "纬度")
    private String latitude;

    /**
     * 备注
     */
    @Size(max = 200, message = "备注长度不能超过200")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 登记人
     */
    @Size(max = 100, message = "登记人长度不能超过100")
    @ApiModelProperty(value = "登记人")
    private String register;

    /**
     * 登记时间
     */
    @ApiModelProperty(value = "登记时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date registerTime;

    /**
     * 附件
     */
    @Size(max = 1000, message = "附件长度不能超过1000")
    @ApiModelProperty(value = "附件")
    private String annex;

    /**
     * 排序
     */
    @Digits(integer = 20, fraction = 0, message = "排序长度不能超过20")
    @ApiModelProperty(value = "排序")
    private Long sort;

    /**
     * 逻辑删除，1删除，0不删除
     */
    @ApiModelProperty(value = "逻辑删除，1删除，0不删除")
    private Boolean deleted;

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

    /**
     * 创建人
     */
    @Digits(integer = 20, fraction = 0, message = "创建人长度不能超过20")
    @ApiModelProperty(value = "创建人")
    private Long createUser;

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

    /**
     * 修改人
     */
    @Digits(integer = 20, fraction = 0, message = "修改人长度不能超过20")
    @ApiModelProperty(value = "修改人")
    private Long updateUser;

    /**
     * 编号
     */
    @Size(max = 100, message = "编号长度不能超过100")
    @ApiModelProperty(value = "编号")
    private String numberNo;

}

