opt: GroupPanel (#940)

* opt: GroupPanel

* mod: int? operator
This commit is contained in:
My-Responsitories
2025-08-05 20:52:11 +08:00
committed by GitHub
parent e2639b6951
commit 170b2aa6d9
7 changed files with 44 additions and 63 deletions

View File

@@ -466,17 +466,16 @@ class MemberHttp {
}
// 查询分组
static Future followUpTags() async {
static Future<LoadingState<List<MemberTagItemModel>>> followUpTags() async {
var res = await Request().get(Api.followUpTag);
if (res.data['code'] == 0) {
return {
'status': true,
'data': res.data['data']
.map<MemberTagItemModel>((e) => MemberTagItemModel.fromJson(e))
return Success(
(res.data['data'] as List)
.map((e) => MemberTagItemModel.fromJson(e))
.toList(),
};
);
} else {
return {'status': false, 'msg': res.data['message']};
return Error(res.data['message']);
}
}