import { Context } from 'koa';
import { ChannelConfig } from "../../config/channelConfig";

export interface LoginResult {
    code: number;
    msg: string;
    data?: any;
}

export interface PaymentResult {
    code: number;
    msg: string;
    data?: any;
}

export interface ChannelHandler {
    handleLogin(ctx: Context, config: ChannelConfig): Promise<LoginResult>;
    handlePayment(ctx: Context, config: ChannelConfig): Promise<PaymentResult>;
}