package com.yuchen.saas.parking.api.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 动态车分页
 * </p>
 *
 * @author cxj
 * @since 2023-05-26
 */
@Data
@Accessors(chain = true)
public class ParkingTeamInfoDetailVo {

    @ApiModelProperty(name = "id", value = "id")
    private Long id;


    @ApiModelProperty(name = "parkingId", value = "停车场id")
    private String parkingId;

    @ApiModelProperty(name = "parkingName", value = "停车场名称")
    private String parkingName;

    @ApiModelProperty(name = "teamName", value = "团队车名称")
    private String teamName;

    @ApiModelProperty(name = "companyId", value = "所属企业id")
    private Long companyId;

    @ApiModelProperty(name = "companyName", value = "所属企业")
    private String companyName;

    @ApiModelProperty(name = "shareCount", value = "共享车位数")
    private Integer shareCount;

    @ApiModelProperty(name = "fixedCount", value = "车辆限制数")
    private Integer fixedCount;


    @ApiModelProperty(name = "remark", value = "描述")
    private String remark;

    @ApiModelProperty(name = "placeList", value = "分配车位号")
    private List<Place> placeList;

    @NotNull
    @ApiModelProperty(name = "beginTime", value = "生效开始时间")
    private Date beginTime;
    @NotNull
    @ApiModelProperty(name = "endTime", value = "生效结束时间")
    private Date endTime;

    @Data
    public static class Place {
        @ApiModelProperty(value = "车位号id")
        private Long id;

        @ApiModelProperty(value = "车位号")
        private String placeNo;
    }


}
