HJ_Server/src/api_s2c/conglinshoulie/ApiGetLog.ts
DESKTOP-15R5JU0\legu 97e070ea81 init
2023-11-17 12:02:12 +08:00

6 lines
286 B
TypeScript

import { ApiCall } from "tsrpc";
import { ReqGetLog, ResGetLog } from "../../shared/protocols/conglinshoulie/PtlGetLog";
export default async function (call: ApiCall<ReqGetLog, ResGetLog>) {
call.succ((await G.clientCross.callApi('clsl/Log', { uid: call.uid })).res?.logs || []);
}