实装 authKey 获取

This commit is contained in:
BTMuli
2023-09-04 14:54:05 +08:00
parent 4b80de3f24
commit 4fef4d94e1
4 changed files with 71 additions and 8 deletions

26
src/types/Game/Gacha.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
/**
* @file types Game Gacha.d.ts
* @description 游戏抽卡相关类型定义文件
* @author BTMuli<bt-muli@outlook.com>
* @since Beta v0.3.0
*/
declare namespace TGApp.Game.Gacha {
/**
* @description 获取 authkey 返回类型
* @interface AuthkeyResponse
* @since Beta v0.3.0
* @extends TGApp.BBS.Response.Base
* @property {number} data.sign_type - 签名类型
* @property {number} data.authkey_ver - authkey 版本
* @property {string} data.authkey - authkey
* @return AuthkeyResponse
*/
export interface AuthkeyResponse extends TGApp.BBS.Response.Base {
data: {
sign_type: number;
authkey_ver: number;
authkey: string;
};
}
}