import { ApiCall } from "tsrpc";
import { GHManage } from '../../public/gonghui/manage';
import { ReqOpen, ResOpen } from "../../shared/protocols/gonghui/PtlOpen";

export default async function (call: ApiCall<ReqOpen, ResOpen>) {

    call.succ((await GHManage.getGH(call.conn.gud.ghId)).data);
}