package com.zhongshu.card.client.model.org.projectDict;

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

import java.util.ArrayList;
import java.util.List;

/**
 * @author TRX
 * @date 2024/12/19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProjectDictParam extends SuperParam {

    @Schema(description = "字典类型")
    private ProjectDictType dictType;

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

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

    @Schema(description = "状态")
    private DataState state;

    @Schema(description = "选择项")
    private List<ProjectDictListParam> list = new ArrayList<ProjectDictListParam>();
}
