实装 getDeviceFp

close #58
This commit is contained in:
BTMuli
2023-11-16 14:19:18 +08:00
parent 13e9440c6f
commit 712a09131e
11 changed files with 274 additions and 46 deletions

32
src/types/App/Device.d.ts vendored Normal file
View File

@@ -0,0 +1,32 @@
/**
* @file types/App/Device.d.ts
* @description App 设备信息类型定义文件
* @since Beta v0.3.6
*/
/**
* @description App 设备信息类型 namespace
* @since Beta v0.3.6
* @namespace TGApp.App.Device
* @memberof TGApp.App
*/
declare namespace TGApp.App.Device {
/**
* @description 设备信息
* @since Beta v0.3.6
* @interface DeviceInfo
* @property {string} device_id - 设备 ID
* @property {string} model - 设备型号
* @property {string} seed_id - 种子 ID
* @property {string} seed_time - 种子时间
* @property {string} device_fp - 设备指纹
* @return DeviceInfo
*/
interface DeviceInfo {
device_id: string;
model: string;
seed_id: string;
seed_time: string;
device_fp: string;
}
}

View File

@@ -182,4 +182,22 @@ declare namespace TGApp.BBS.Response {
account_info: TGApp.BBS.Account.getActionTicketBySTokenInfo;
};
}
/**
* @description 获取 deviceFp 的返回类型
* @interface getDeviceFp
* @since Beta v0.3.6
* @extends BaseWithData
* @property {string} data.device_fp - deviceFp 值
* @property {number} data.code - code 值
* @property {string} data.msg - msg 值
* @return getDeviceFp
*/
interface getDeviceFp extends BaseWithData {
data: {
device_fp: string;
code: number;
msg: string;
};
}
}