import { STATUS } from '@consts'; import { Controller } from 'egg'; import { PayCallback37Data } from '../domain/sdk'; export default class SdkController extends Controller { public async pay37Callback() { const { ctx } = this; const params: PayCallback37Data = ctx.request.body; ctx.body = await ctx.service.sdk.pay37Callback(params); return; } public async treatRoleName() { const { ctx } = this; ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, ''); return; } public async treatGuildName() { const { ctx } = this; ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, ''); return; } public async getGuildByUser() { const { ctx } = this; ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, ''); return; } }