添加接口
This commit is contained in:
xcy 2023-12-22 18:04:56 +08:00
parent 753dd8decb
commit 4c9ad23bc1
3 changed files with 135 additions and 78 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 = {}

View File

@ -265,6 +265,7 @@ import { ReqBingo, ResBingo } from './PtlBingo';
import { ReqFightTest, ResFightTest } from './PtlFightTest';
import { ReqSyncBtn, ResSyncBtn } from './PtlSyncBtn';
import { ReqTest, ResTest } from './PtlTest';
import { ReqItemNoEnough, ResItemNoEnough } from './pushgift/PtlItemNoEnough';
import { ReqOpen as ReqOpen_48, ResOpen as ResOpen_48 } from './pushgift/PtlOpen';
import { ReqFight as ReqFight_9, ResFight as ResFight_9 } from './qjzzd/PtlFight';
import { ReqOpen as ReqOpen_49, ResOpen as ResOpen_49 } from './qjzzd/PtlOpen';
@ -1295,6 +1296,10 @@ export interface ServiceType {
req: ReqTest,
res: ResTest
},
"pushgift/ItemNoEnough": {
req: ReqItemNoEnough,
res: ResItemNoEnough
},
"pushgift/Open": {
req: ReqOpen_48,
res: ResOpen_48
@ -3085,126 +3090,131 @@ export const serviceProto: ServiceProto<ServiceType> = {
},
{
"id": 266,
"name": "pushgift/Open",
"name": "pushgift/ItemNoEnough",
"type": "api"
},
{
"id": 267,
"name": "qjzzd/Fight",
"name": "pushgift/Open",
"type": "api"
},
{
"id": 268,
"name": "qjzzd/Open",
"name": "qjzzd/Fight",
"type": "api"
},
{
"id": 269,
"name": "rank/Open",
"name": "qjzzd/Open",
"type": "api"
},
{
"id": 270,
"name": "shiwu/Concise",
"name": "rank/Open",
"type": "api"
},
{
"id": 271,
"name": "shiwu/Extract",
"name": "shiwu/Concise",
"type": "api"
},
{
"id": 272,
"name": "shiwu/GetList",
"name": "shiwu/Extract",
"type": "api"
},
{
"id": 273,
"name": "shiwu/LvUp",
"name": "shiwu/GetList",
"type": "api"
},
{
"id": 274,
"name": "shiwu/Recast",
"name": "shiwu/LvUp",
"type": "api"
},
{
"id": 275,
"name": "shiwu/TakeOff",
"name": "shiwu/Recast",
"type": "api"
},
{
"id": 276,
"name": "shiwu/Wear",
"name": "shiwu/TakeOff",
"type": "api"
},
{
"id": 277,
"name": "shootGame/Open",
"name": "shiwu/Wear",
"type": "api"
},
{
"id": 278,
"name": "shootGame/Rec",
"name": "shootGame/Open",
"type": "api"
},
{
"id": 279,
"name": "shop/Buy",
"name": "shootGame/Rec",
"type": "api"
},
{
"id": 280,
"name": "shop/Open",
"name": "shop/Buy",
"type": "api"
},
{
"id": 281,
"name": "shop/Refresh",
"name": "shop/Open",
"type": "api"
},
{
"id": 282,
"name": "sign/GetBoxPrize",
"name": "shop/Refresh",
"type": "api"
},
{
"id": 283,
"name": "sign/GetPrize",
"name": "sign/GetBoxPrize",
"type": "api"
},
{
"id": 284,
"name": "sign/Open",
"name": "sign/GetPrize",
"type": "api"
},
{
"id": 285,
"name": "slzd/Aim",
"name": "sign/Open",
"type": "api"
},
{
"id": 286,
"name": "slzd/BuyNum",
"name": "slzd/Aim",
"type": "api"
},
{
"id": 287,
"name": "slzd/Fight",
"name": "slzd/BuyNum",
"type": "api"
},
{
"id": 288,
"name": "slzd/FightLog",
"name": "slzd/Fight",
"type": "api"
},
{
"id": 289,
"name": "slzd/MyRank",
"name": "slzd/FightLog",
"type": "api"
},
{
"id": 290,
"name": "slzd/MyRank",
"type": "api"
},
{
"id": 291,
"name": "slzd/Open",
"type": "api",
"conf": {
@ -3214,77 +3224,77 @@ export const serviceProto: ServiceProto<ServiceType> = {
}
},
{
"id": 291,
"id": 292,
"name": "slzd/OpenFort",
"type": "api"
},
{
"id": 292,
"id": 293,
"name": "slzd/Rec",
"type": "api"
},
{
"id": 293,
"id": 294,
"name": "slzd/Refresh",
"type": "api"
},
{
"id": 294,
"id": 295,
"name": "slzd/Slot",
"type": "api"
},
{
"id": 295,
"id": 296,
"name": "tanxian/Event",
"type": "api"
},
{
"id": 296,
"id": 297,
"name": "tanxian/FastGuaJi",
"type": "api"
},
{
"id": 297,
"id": 298,
"name": "tanxian/Fight",
"type": "api"
},
{
"id": 298,
"id": 299,
"name": "tanxian/GuaJi",
"type": "api"
},
{
"id": 299,
"id": 300,
"name": "tanxian/Open",
"type": "api"
},
{
"id": 300,
"id": 301,
"name": "tanxian/Receive",
"type": "api"
},
{
"id": 301,
"id": 302,
"name": "task/AllFinsh",
"type": "api"
},
{
"id": 302,
"id": 303,
"name": "task/Finsh",
"type": "api"
},
{
"id": 303,
"id": 304,
"name": "task/Open",
"type": "api"
},
{
"id": 304,
"id": 305,
"name": "user/CDKEY",
"type": "api"
},
{
"id": 305,
"id": 306,
"name": "user/ChangeInfo",
"type": "api",
"conf": {
@ -3292,197 +3302,197 @@ export const serviceProto: ServiceProto<ServiceType> = {
}
},
{
"id": 306,
"id": 307,
"name": "user/ChangeName",
"type": "api"
},
{
"id": 307,
"id": 308,
"name": "user/Fight",
"type": "api"
},
{
"id": 308,
"id": 309,
"name": "user/GetInfo",
"type": "api"
},
{
"id": 309,
"id": 310,
"name": "user/InfoOpen",
"type": "api"
},
{
"id": 310,
"id": 311,
"name": "user/Login",
"type": "api"
},
{
"id": 311,
"id": 312,
"name": "user/Ping",
"type": "api"
},
{
"id": 312,
"id": 313,
"name": "user/Renown",
"type": "api"
},
{
"id": 313,
"id": 314,
"name": "user/RenownBuy",
"type": "api"
},
{
"id": 314,
"id": 315,
"name": "user/RenownGetPrize",
"type": "api"
},
{
"id": 315,
"id": 316,
"name": "user/RenownOpen",
"type": "api"
},
{
"id": 316,
"id": 317,
"name": "user/Tujian",
"type": "api"
},
{
"id": 317,
"id": 318,
"name": "weixiuchang/Decompose",
"type": "api"
},
{
"id": 318,
"id": 319,
"name": "weixiuchang/Exchange",
"type": "api"
},
{
"id": 319,
"id": 320,
"name": "weixiuchang/Open",
"type": "api"
},
{
"id": 320,
"id": 321,
"name": "weixiuchang/UpLv",
"type": "api"
},
{
"id": 321,
"id": 322,
"name": "weixiuchang/UpStar",
"type": "api"
},
{
"id": 322,
"id": 323,
"name": "wzry/AutoBaoMing",
"type": "api"
},
{
"id": 323,
"id": 324,
"name": "wzry/BaoMing",
"type": "api"
},
{
"id": 324,
"id": 325,
"name": "wzry/catFightLog",
"type": "api"
},
{
"id": 325,
"id": 326,
"name": "wzry/CatGroup",
"type": "api"
},
{
"id": 326,
"id": 327,
"name": "wzry/DldFight",
"type": "api"
},
{
"id": 327,
"id": 328,
"name": "wzry/DldRefre",
"type": "api"
},
{
"id": 328,
"id": 329,
"name": "wzry/JingCai",
"type": "api"
},
{
"id": 329,
"id": 330,
"name": "wzry/JingCaiOpen",
"type": "api"
},
{
"id": 330,
"id": 331,
"name": "wzry/Open",
"type": "api"
},
{
"id": 331,
"id": 332,
"name": "wzry/UpdateFight",
"type": "api"
},
{
"id": 332,
"id": 333,
"name": "wzry/Wzzd",
"type": "api"
},
{
"id": 333,
"id": 334,
"name": "wzry/ZuanShiOpen",
"type": "api"
},
{
"id": 334,
"id": 335,
"name": "xstask/AllGet",
"type": "api"
},
{
"id": 335,
"id": 336,
"name": "xstask/Get",
"type": "api"
},
{
"id": 336,
"id": 337,
"name": "xstask/LvUp",
"type": "api"
},
{
"id": 337,
"id": 338,
"name": "xstask/OnekeyReceive",
"type": "api"
},
{
"id": 338,
"id": 339,
"name": "xstask/Open",
"type": "api"
},
{
"id": 339,
"id": 340,
"name": "xstask/Receive",
"type": "api"
},
{
"id": 340,
"id": 341,
"name": "xstask/Refresh",
"type": "api"
},
{
"id": 341,
"id": 342,
"name": "yongbingzhuzhan/Handle",
"type": "api"
},
{
"id": 342,
"id": 343,
"name": "zhanqianbushu/ChangePos",
"type": "api"
},
{
"id": 343,
"id": 344,
"name": "zhanqianbushu/Select",
"type": "api"
},
{
"id": 344,
"id": 345,
"name": "zhanqianbushu/Up",
"type": "api"
}
@ -19029,6 +19039,37 @@ export const serviceProto: ServiceProto<ServiceType> = {
"PtlTest/ResTest": {
"type": "Any"
},
"pushgift/PtlItemNoEnough/ReqItemNoEnough": {
"type": "Interface",
"properties": [
{
"id": 0,
"name": "need",
"type": {
"type": "Interface",
"properties": [
{
"id": 0,
"name": "a",
"type": {
"type": "String"
}
},
{
"id": 1,
"name": "t",
"type": {
"type": "String"
}
}
]
}
}
]
},
"pushgift/PtlItemNoEnough/ResItemNoEnough": {
"type": "Interface"
},
"pushgift/PtlOpen/ReqOpen": {
"type": "Interface"
},