package com.gxwebsoft.common.system.param;

import com.baomidou.mybatisplus.annotation.TableField;
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;

/**
 * 查询参数
 *
 * @author WebSoft
 * @since 2021-08-29 20:35:09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "角色查询参数")
public class AccessKeyParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "AccessKey")
    private String accessKey;

    @Schema(description = "AccessSecret")
    private String accessSecret;

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

    @Schema(description = "短信验证码")
    @TableField(exist = false)
    private String code;

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

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

    @Schema(description = "租户ID")
    private Integer tenantId;

}
