AI 接入 V0.1

This commit is contained in:
2026-09-23 17:23:59 +08:00
parent a83cda63f5
commit 34bc2e04b0
9 changed files with 1018 additions and 116 deletions
+7
View File
@@ -55,3 +55,10 @@ List<String> asStringList(Object? value) {
.where((e) => e.isNotEmpty)
.toList();
}
/// 后端给的是 `yyyy-MM-dd HH:mm:ss`,这里裁成 `yyyy-MM-dd HH:mm`。
/// 列表里显示到秒没有意义,还会把卡片撑宽。
String formatDateTime(Object? value) {
final text = asString(value);
return text.length >= 16 ? text.substring(0, 16) : text;
}