import { Context } from "koa";
import { ChannelHandler, LoginResult, PaymentResult } from "../interfaces/ChannelHandler";
import { ChannelConfig } from "../../config/channelConfig";
import { ZeroOneChannelHandler } from "./ZeroOneChannelHandler";

/**
 * 1折-神将降魔（渠道26）
 * 逻辑复用 QuickSDK 通用实现（参考渠道24）
 */
export class OneZheShenjiangJiangmoChannelHandler implements ChannelHandler {
  private readonly quick = new ZeroOneChannelHandler();

  async handleLogin(ctx: Context, config: ChannelConfig): Promise<LoginResult> {
    return this.quick.handleLogin(ctx, config);
  }

  async handlePayment(ctx: Context, config: ChannelConfig): Promise<PaymentResult> {
    return this.quick.handlePayment(ctx, config);
  }
}

