package com.gxwebsoft.common.system.param;

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

import java.math.BigDecimal;

/**
 * 商户查询参数
 *
 * @author 科技小王子
 * @since 2024-04-05 00:03:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "MerchantParam对象", description = "商户查询参数")
public class MerchantParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

    @Schema(description = "商户标识")
    private String merchantCode;

    @Schema(description = "商户图标")
    private String image;

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

    @Schema(description = "商户姓名")
    private String realName;

    @Schema(description = "店铺类型")
    private String shopType;

    @Schema(description = "商户分类")
    private String category;

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

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

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

    @Schema(description = "手续费")
    @QueryField(type = QueryType.EQ)
    private BigDecimal commission;

    @Schema(description = "关键字")
    private String keywords;

    @Schema(description = "资质图片")
    private String files;

    @Schema(description = "是否自营")
    @QueryField(type = QueryType.EQ)
    private Integer ownStore;

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

    @Schema(description = "是否需要审核")
    @QueryField(type = QueryType.EQ)
    private Integer goodsReview;

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

    @Schema(description = "状态")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

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

}
