fix:
添加接口
This commit is contained in:
parent
9d5b36b223
commit
506785f360
9
src/api_s2c/pushgift/ApiItemNoEnough.ts
Normal file
9
src/api_s2c/pushgift/ApiItemNoEnough.ts
Normal 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({})
|
||||||
|
}
|
7
src/shared/protocols/pushgift/PtlItemNoEnough.ts
Normal file
7
src/shared/protocols/pushgift/PtlItemNoEnough.ts
Normal 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
Loading…
Reference in New Issue
Block a user