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

import com.github.microservice.auth.security.type.AuthType;
import com.zhongshu.card.client.model.base.SuperSearch;
import com.zhongshu.card.client.type.OrganizationUserType;
import com.zhongshu.card.client.type.Sex;
import com.zhongshu.card.client.type.UserState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author TRX
 * @date 2024/5/31
 */
@Data
public class OrganizationUserSearch extends SuperSearch {

    @Schema(description = "关键字")
    private String keyWord;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "登录名")
    private String loginName;

    @Schema(description = "工号")
    private String code;

    @Schema(description = "用户手机号")
    private String phone;

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

    @Schema(description = "性别")
    private Sex sex;

    @Schema(description = "用户状态")
    private UserState state;

    @Schema(description = "是否是企业管理员")
    private Boolean isAdmin;

    @Schema(description = "企业类型")
    private AuthType authType;

    @Schema(description = "用户在机构的类型")
    private OrganizationUserType userType;

    @Schema(description = "职位ID")
    private String positionId;

    @Schema(description = "部门ID集合")
    private List<String> departmentIds;

    @Schema(description = "人员类型-角色ID集合")
    private List<String> roleIds;

    @Schema(description = "是否是搜索项目的用户")
    private Boolean isSearchProject = Boolean.FALSE;

    @Schema(description = "机构类型")
    private AuthType notAuthType;

    @Schema(description = "是否是机构类型")
    private Boolean isOrg;
}
