UNPKG

koishi-plugin-pointmintmarket-pic

Version:

使用积分兑换图片?用这个插件就对了。支持多个api接入,通过pointmarket实现积分兑换。

42 lines (41 loc) 1.13 kB
import { Context, Schema } from 'koishi'; import { MarketService } from 'koishi-plugin-pointmintmarket'; declare const typeMap: { image: string; video: string; text: string; }; type Type = keyof typeof typeMap; export interface Config { /** http请求超时时间 */ timeout: number; /** API配置 */ apiList: Array<{ /** API对应的商品名称 */ name: string; /** 商品详细描述 */ description: string; /** 商品展示图URL */ tags: string[]; /** API的URL */ url: string; /** API返回资源类型 */ type: Type; /** 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; export {};