package com.ltgk.port.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Add;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 渔港设备请求参数对象
 *
 * @author Qi ChengBin
 * @date 2024/12/11 13:41:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "渔港设备请求参数对象")
public class DsPortEquDTO extends BasePage {

    @ApiModelProperty(value = "渔港设备主键")
    @NotNull(message = "渔港设备主键不能为空", groups = {Update.class, Detail.class})
    private String id;

    @ApiModelProperty(value = "渔港主键")
    @NotNull(message = "渔港主键不能为空", groups = {Update.class, Add.class})
    private String portId;

    @ApiModelProperty(value = "渔港名称")
    @NotNull(message = "渔港名称不能为空", groups = {Update.class, Add.class})
    private String portName;

    @ApiModelProperty(value = "设备编码")
    @NotNull(message = "设备编码不能为空", groups = {Update.class, Add.class})
    private String equCode;

    @ApiModelProperty(value = "设备名称")
    @NotNull(message = "设备名称不能为空", groups = {Update.class, Add.class})
    private String equName;

    /**
     * 设备类型：
     * 视频监控设备：video
     * 消防设备：fireFighting
     * 基站设备：baseStation
     * 广播设备：broadcast
     * 网络设备: net
     */
    @ApiModelProperty(value = "设备类型【视频监控设备、消防设备、基站设备、广播设备、网络设备等】")
    private String equType;

    @ApiModelProperty(value = "设备状态【在用、闲置】")
    private String equState;

    @ApiModelProperty(value = "健康状态")
    private String healthState;

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

    @ApiModelProperty(value = "设备图片")
    private String equImage;

    @ApiModelProperty(value = "设备资料")
    private String equData;

    @ApiModelProperty(value = "设备位置")
    private String equAddr;

    @ApiModelProperty(value = "设备所属单位")
    private String equCorp;

    @ApiModelProperty(value = "设备型号")
    private String equModel;

    @ApiModelProperty(value = "设备最大值")
    private String equMax;

    @ApiModelProperty(value = "设备最小值")
    private String equMin;

    @ApiModelProperty(value = "设备质保期[月]")
    private String equWarrantyPeriod;

    @ApiModelProperty(value = "计量单位")
    private String equUnit;

    @ApiModelProperty(value = "净值")
    private BigDecimal netValue;

    @ApiModelProperty(value = "原值")
    private BigDecimal originalValue;

    @ApiModelProperty(value = "设备厂商")
    private String equManufacturer;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "生产日期")
    private Date equManufactureDate;

    @ApiModelProperty(value = "厂商联系信息")
    private String equManufactureTel;

    @ApiModelProperty(value = "售后维修")
    private String equAfterSale;

    @ApiModelProperty(value = "责任人")
    private String principal;

    @ApiModelProperty(value = "责任人联系方式")
    private String principalPhone;

    @ApiModelProperty(value = "行政区域编码")
    @NotNull(message = "行政区域编码不能为空", groups = {Update.class, Add.class})
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @NotNull(message = "行政区域名称不能为空", groups = {Update.class, Add.class})
    private String areaName;

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

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

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

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

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

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

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