package com.pavis.admin.aigc.model.query;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;
import java.io.Serial;
import java.io.Serializable;
import java.time.*;

/**
 * 应用API密钥查询条件
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@Schema(description = "应用API密钥查询条件")
public class AppApiQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 关联应用ID
     */
    @Schema(description = "关联应用ID")
    @Query(type = QueryType.EQ)
    private Long appId;

    /**
     * 渠道类型:web/mobile/api/sdk
     */
    @Schema(description = "渠道类型:web/mobile/api/sdk")
    @Query(type = QueryType.EQ)
    private String channel;

    /**
     * API密钥
     */
    @Schema(description = "API密钥")
    @Query(type = QueryType.EQ)
    private String apiKey;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @Query(type = QueryType.EQ)
    private Long createUser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime createTime;
}