package com.zcloud.zcGbsServicer.dto;

import com.alibaba.cola.dto.Command;
import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class FireBrigadeAddCmd extends Command {

    @NotBlank
    @ApiModelProperty("消防队伍名称")
    private String name;

    @ApiModelProperty("负责人部门")
    private String leaderDept;

    @ApiModelProperty("所属机构")
    @JsonAlias("orgName")
    private String org;

    @ApiModelProperty("负责人用户ID")
    private Long leaderUserId;

    @NotBlank
    @ApiModelProperty("负责人姓名")
    private String leader;

    @NotBlank
    @ApiModelProperty("负责人电话")
    private String leaderPhone;

    @NotBlank
    @ApiModelProperty("地址")
    private String address;

    @NotBlank
    @ApiModelProperty("应急值班电话")
    private String dutyPhone;

    @NotNull
    @ApiModelProperty("成立日期")
    private LocalDate founded;

    @NotNull
    @ApiModelProperty("车辆数")
    private Integer vehicles;

    @NotBlank
    @ApiModelProperty("队伍信息")
    private String desc;
}
