package com.qqchen.deploy.backend.system.model.query;

import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserQuery extends BaseQuery {

    @QueryField(type = QueryType.LIKE)
    private String username;

    @QueryField(type = QueryType.LIKE)
    private String email;

    @QueryField(type = QueryType.LIKE)
    private String nickname;

    @QueryField(type = QueryType.LIKE)
    private String phone;

    @QueryField(type = QueryType.EQUAL)
    private Boolean enabled;

    @QueryField(type = QueryType.EQUAL)
    private Boolean deleted;

    @QueryField(type = QueryType.LIKE)
    private String createBy;

    @QueryField(type = QueryType.LIKE)
    private String updateBy;

    @QueryField(type = QueryType.EQUAL)
    private Integer version;

    // createTimeRange 和 updateTimeRange 已经在 BaseQuery 中定义
}
