package com.agileboot.system.user.dto;

import com.agileboot.common.mybatis.core.page.PageQuery;
import com.agileboot.system.user.entity.SysUser;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 当出现复用Query的情况，我们需要把泛型加到类本身，通过传入类型 来进行复用
 *
 * @author valarchie
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SearchUserQuery extends PageQuery<SysUser> {

    protected Long userId;
    protected String username;
    protected Integer status;
    protected String phoneNumber;
    protected Long deptId;


    @Override
    public LambdaQueryWrapper<SysUser> toQueryWrapper() {
        return null;
    }
}
