支持货币数据获取

This commit is contained in:
BTMuli
2025-12-28 15:19:34 +08:00
parent 002fb63df3
commit 5ecb46f1da
4 changed files with 95 additions and 18 deletions

View File

@@ -1,18 +1,18 @@
/**
* Yae 插件类型定义
* @since Beta v0.9.0
* @since Beta v0.9.1
*/
declare namespace TGApp.Plugins.Yae {
/**
* 后端返的事件数据
* @since Beta v0.9.0
* @since Beta v0.9.1
*/
type RsEvent = {
/** 数据序列化后的JSON */
data: string;
/** 类型,成就或背包 */
type: "achievement" | "store";
/** 类型,成就或背包或属性 */
type: "achievement" | "store" | "prop";
/** 存档UID需要预先输入 */
uid: string;
};
@@ -29,6 +29,12 @@ declare namespace TGApp.Plugins.Yae {
*/
type BagListRes = Array<BagItemUnion>;
/**
* 后端返回的属性数据
* @since Beta v0.9.1
*/
type PropRes = Record<number, number>;
/**
* 背包物品类型
* @since Beta v0.9.0