/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.auth.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 系统用户查询条件
 *
 * @author lingee
 * @date 2023/11/14
 */
@Data
@NoArgsConstructor
@ApiModel(value = "SysUserQueryDTO", description = "系统用户查询条件")
public class SysUserQueryDTO implements Serializable {

    private static final long serialVersionUID = -4164799777443833642L;

    @ApiModelProperty("关键字")
    private String keyword;

    @ApiModelProperty("组织id")
    private Integer oid;

    @ApiModelProperty("角色id")
    private Integer roleId;

    @ApiModelProperty("是否绑定zzdId：0否，1是")
    private Integer flagBindZzd;

    @ApiModelProperty("应用code")
    private String appCode;

    @ApiModelProperty("是否禁用flagForbidden：0否，1是")
    private Integer flagForbidden;

    @ApiModelProperty("用户id列表")
    private List<Integer> uidList;

    public SysUserQueryDTO(String keyword,
                           Integer oid,
                           Integer roleId,
                           Integer flagBindZzd,
                           String appCode,
                           Integer flagForbidden) {
        this.keyword = keyword;
        this.oid = oid;
        this.roleId = roleId;
        this.flagBindZzd = flagBindZzd;
        this.appCode = appCode;
        this.flagForbidden = flagForbidden;
    }
}
