🔧 更新 AppData 类型定义,简化插入数据逻辑

This commit is contained in:
BTMuli
2026-03-25 15:15:45 +08:00
parent 99a87cc2ac
commit e01c6cf474
2 changed files with 15 additions and 41 deletions

View File

@@ -1,34 +1,16 @@
/**
* AppData 表类型定义文件
* @since Beta v0.4.1
* @since Beta v0.9.9
*/
declare namespace TGApp.Sqlite.AppData {
/**
* AppData 表键值
* @since Beta v0.4.1
* @TODO 枚举
*/
enum DBKey {
/** 应用版本 */
APP_VERSION = "appVersion",
/** 数据库更新时间 */
DATA_UPDATED = "dataUpdated",
/** 当前用户 Cookie */
COOKIE = "cookie",
/** 设备信息 */
DEVICE_INFO = "deviceInfo",
/** 数据目录 */
USER_DIR = "userDir",
}
/**
* AppData 行数据
* @since Beta v0.3.3
* @since Beta v0.9.9
*/
type Item = {
/** 键 */
key: DBKey;
key: string;
/** 值 */
value: string;
/** 更新时间 */