mirror of
https://github.com/lakaola/chat-flutter.git
synced 2026-05-07 22:15:44 +08:00
24 lines
446 B
Dart
24 lines
446 B
Dart
// 公共接口
|
|
class JsonCommon {
|
|
// 帮助中心
|
|
static Future<List<CommonModel>> getHelpList() async {
|
|
// 转换
|
|
return [
|
|
CommonModel('帮助1', '帮助内容1'),
|
|
CommonModel('帮助2', '帮助内容2'),
|
|
CommonModel('帮助3', '帮助内容3'),
|
|
CommonModel('帮助4', '帮助内容4'),
|
|
];
|
|
}
|
|
}
|
|
|
|
class CommonModel {
|
|
String label;
|
|
String value;
|
|
|
|
CommonModel(
|
|
this.label,
|
|
this.value,
|
|
);
|
|
}
|