package com.gxwebsoft.shop.param;

import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 查询参数
 *
 * @author 科技小王子
 * @since 2025-01-11 10:45:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopUsersParam对象", description = "查询参数")
public class ShopUsersParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "用户唯一小程序id")
    private String openId;

    @Schema(description = "小程序用户秘钥")
    private String sessionKey;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "头像地址")
    private String avatarUrl;

    @Schema(description = "1男，2女")
    @QueryField(type = QueryType.EQ)
    private Boolean gender;

    @Schema(description = "国家")
    private String country;

    @Schema(description = "省份")
    private String province;

    @Schema(description = "城市")
    private String city;

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

    @Schema(description = "积分")
    @QueryField(type = QueryType.EQ)
    private BigDecimal integral;

    @Schema(description = "余额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal money;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    private String idCard;

    private String realName;

    @Schema(description = "是否管理员：1是；2否")
    @QueryField(type = QueryType.EQ)
    private Boolean isAdmin;

}
