package com.zcloud.basic.info.dto;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

/**
 * web-client
 *
 * @Author SondonYong
 * @Date 2025-10-31 17:24:03
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PostAddCmd extends Command {
    @ApiModelProperty(value = "部门id", name = "departmentId", required = true)
    @NotNull(message = "部门id不能为空")
    private Long departmentId;

    @ApiModelProperty(value = "岗位名称", name = "postName", required = true)
    @NotEmpty(message = "岗位名称不能为空")
    private String postName;

    @ApiModelProperty(value = "岗位职责", name = "remarks")
    private String remarks;

    @ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
    private Long corpinfoId;

    @ApiModelProperty(value = "企业名称", name = "corpinfoName", required = true)
    private String corpinfoName;

//    @ApiModelProperty(value = "是否监管岗位 0-否, 1-是", name = "supervisionFlag")
//    private Integer supervisionFlag;
//
//    @ApiModelProperty(value = "岗位-部门权限", name = "departmentIdsString")
//    private String[] departmentIdsString;
//    private Long[] departmentIds;

    @ApiModelProperty(value = "监管端/企业端标识,1-监管端, 2-企业端", name = "corpFlag", required = true)
    @NotNull(message = "监管端/企业端标识不能为空")
    private Integer corpFlag;
}

