添加接口
This commit is contained in:
xcy 2023-12-22 18:04:56 +08:00
parent 9d5b36b223
commit 506785f360
3 changed files with 671 additions and 1063 deletions

View File

@ -0,0 +1,9 @@
import {ApiCall} from "tsrpc";
import {ReqItemNoEnough, ResItemNoEnough} from "../../shared/protocols/pushgift/PtlItemNoEnough";
import {PushGiftFun} from "../../public/pushgift";
export default async function (call: ApiCall<ReqItemNoEnough, ResItemNoEnough>) {
// 物品不足 前端拦截的 通知后端 检测推送礼包
PushGiftFun.chkItemGift(call.uid, {a: call.req.need.a, t: call.req.need.t, n: 0})
call.succ({})
}

View File

@ -0,0 +1,7 @@
import {Gift} from "../../../module/collection_pushgift";
export type ReqItemNoEnough = {
need: { a: string, t: string }
}
export type ResItemNoEnough = {}

File diff suppressed because it is too large Load Diff