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

import com.zhongshu.card.client.model.base.SuperParam;
import com.zhongshu.card.client.type.DataState;
import com.zhongshu.card.client.utils.ITree;
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 DepartmentParam extends SuperParam {
    @Schema(description = "部门名称")
    @NotEmpty
    private String name;

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

    @Schema(description = "部门状态")
    private DataState state = DataState.Enable;

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

    @Schema(description = "机构oid", hidden = true)
    private String orgOid;
}
