koishi-plugin-pointmintmarket-pic
Version:
使用积分兑换图片?用这个插件就对了。支持多个api接入,通过pointmarket实现积分兑换。
33 lines (32 loc) • 946 B
TypeScript
import { Context, Schema } from 'koishi';
import { MarketService } from 'koishi-plugin-pointmintmarket';
export interface Config {
/** http请求超时时间 */
timeout: number;
/** API配置 */
apiList: Array<{
/** API对应的商品名称 */
name: string;
/** 商品详细描述 */
description: string;
/** 商品展示图URL */
tags: string[];
/** API的URL */
url: string;
/** API的请求方法 */
method: "GET" | "POST";
/** API的响应数据路径 */
response: string;
}>;
/** 是否启用调试日志 */
debug: boolean;
}
export declare const Config: Schema<Config>;
declare module 'koishi' {
interface Context {
market: MarketService;
}
}
export declare const name = "pointmintmarket-pic";
export declare const inject: string[];
export declare function apply(ctx: Context, config: Config): void;