package com.sckw.manage.model.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author czh
 * @desc 根据企业查地址
 * @date 2023/7/19
 */
@Data
@Schema(description = "查询地址信息参数")
public class QueryByEntReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -5445012243242005520L;

    /**
     * 企业id
     */
    @Schema(description = "企业id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "企业id不能为空")
    private Long id;

    /**
     * 地址名称
     */
    @Schema(description = "地址名称")
    private String name;

    /**
     * 所属区域名称
     */
    @Schema(description = "所属区域名称")
    private String cityName;

    /**
     * 地址类型
     */
    @Schema(description = "地址类型")
    private Integer defaultType;
}
