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 lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户记录表查询参数
 *
 * @author 科技小王子
 * @since 2026-02-10 00:37:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopUserParam对象", description = "用户记录表查询参数")
public class ShopUserParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "用户类型 0普通用户 1企业用户 2特殊用户")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "账号")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "昵称")
    private String nickname;

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

    @Schema(description = "性别 1男 2女")
    @QueryField(type = QueryType.EQ)
    private Integer sex;

    @Schema(description = "职务")
    private String position;

    @Schema(description = "注册来源客户端 (APP、H5、MP-WEIXIN等)")
    private String platform;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "邮箱是否验证, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer emailVerified;

    @Schema(description = "别名")
    private String alias;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "证件号码")
    private String idCard;

    @Schema(description = "出生日期")
    private String birthday;

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

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

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

    @Schema(description = "所在辖区")
    private String region;

    @Schema(description = "街道地址")
    private String address;

    @Schema(description = "经度")
    private String longitude;

    @Schema(description = "纬度")
    private String latitude;

    @Schema(description = "用户可用余额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal balance;

    @Schema(description = "已提现金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal cashedMoney;

    @Schema(description = "用户可用积分")
    @QueryField(type = QueryType.EQ)
    private Integer points;

    @Schema(description = "用户总支付的金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal payMoney;

    @Schema(description = "实际消费的金额(不含退款)")
    @QueryField(type = QueryType.EQ)
    private BigDecimal expendMoney;

    @Schema(description = "密码")
    private String payPassword;

    @Schema(description = "会员等级ID")
    @QueryField(type = QueryType.EQ)
    private Integer gradeId;

    @Schema(description = "行业分类")
    private String category;

    @Schema(description = "个人简介")
    private String introduction;

    @Schema(description = "机构id")
    @QueryField(type = QueryType.EQ)
    private Integer organizationId;

    @Schema(description = "会员分组ID")
    @QueryField(type = QueryType.EQ)
    private Integer groupId;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "背景图")
    private String bgImage;

    @Schema(description = "用户编码")
    private String userCode;

    @Schema(description = "是否已实名认证")
    @QueryField(type = QueryType.EQ)
    private Integer certification;

    @Schema(description = "年龄")
    @QueryField(type = QueryType.EQ)
    private Integer age;

    @Schema(description = "是否线下会员")
    @QueryField(type = QueryType.EQ)
    private Integer offline;

    @Schema(description = "关注数")
    @QueryField(type = QueryType.EQ)
    private Integer followers;

    @Schema(description = "粉丝数")
    @QueryField(type = QueryType.EQ)
    private Integer fans;

    @Schema(description = "点赞数")
    @QueryField(type = QueryType.EQ)
    private Integer likes;

    @Schema(description = "评论数")
    @QueryField(type = QueryType.EQ)
    private Integer commentNumbers;

    @Schema(description = "是否推荐")
    @QueryField(type = QueryType.EQ)
    private Integer recommend;

    @Schema(description = "微信openid")
    private String openid;

    @Schema(description = "微信公众号openid")
    private String officeOpenid;

    @Schema(description = "微信unionID")
    private String unionid;

    @Schema(description = "客户端ID")
    private String clientId;

    @Schema(description = "不允许办卡")
    @QueryField(type = QueryType.EQ)
    private Boolean notAllowVip;

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

    @Schema(description = "默认账号(适用于不同租户存在相同的手机号码)")
    @QueryField(type = QueryType.EQ)
    private Boolean isDefault;

    @Schema(description = "是否企业管理员")
    @QueryField(type = QueryType.EQ)
    private Boolean isOrganizationAdmin;

    @Schema(description = "累计登录次数")
    @QueryField(type = QueryType.EQ)
    private Integer loginNum;

    @Schema(description = "企业ID")
    @QueryField(type = QueryType.EQ)
    private Integer companyId;

    @Schema(description = "可管理的场馆")
    private String merchants;

    @Schema(description = "商户ID")
    @QueryField(type = QueryType.EQ)
    private Long merchantId;

    @Schema(description = "商户名称")
    private String merchantName;

    @Schema(description = "商户头像")
    private String merchantAvatar;

    @Schema(description = "第三方系统的用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer uid;

    @Schema(description = "专家角色")
    @QueryField(type = QueryType.EQ)
    private Boolean expertType;

    @Schema(description = "过期时间")
    @QueryField(type = QueryType.EQ)
    private Integer expireTime;

    @Schema(description = "最后结算时间")
    private String settlementTime;

    @Schema(description = "资质")
    private String aptitude;

    @Schema(description = "行业类型(父级)")
    private String industryParent;

    @Schema(description = "行业类型(子级)")
    private String industryChild;

    @Schema(description = "头衔")
    private String title;

    @Schema(description = "安装的产品ID")
    @QueryField(type = QueryType.EQ)
    private Integer templateId;

    @Schema(description = "插件安装状态(仅对超超管判断) 0未安装 1已安装 ")
    @QueryField(type = QueryType.EQ)
    private Integer installed;

    @Schema(description = "特长")
    private String speciality;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0在线, 1离线")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

}
