package com.zhongshu.card.client.model.school;

import com.zhongshu.card.client.model.base.SuperParam;
import com.zhongshu.card.client.utils.ITree;
import com.zhongshu.card.client.type.DataState;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * @author TRX
 * @date 2024/6/3
 */
@Data
public class AreaParam extends SuperParam {

    @NotEmpty
    @Schema(description = "区域名称")
    private String name;

    @Schema(description = "区域编码")
    private String code;

    @Schema(description = "区域状态")
    private DataState state = DataState.Enable;

    @Schema(description = "上级ID")
    private String parentId = ITree.ROOT_ID;

    @NotEmpty
    @Schema(description = "所属类型")
    private String dictInfoId;
}
