getClasses static method

获取课堂列表 用于获取所有可用的课堂信息 通过HTTP请求与后端API交互

Implementation

static Future<TCICGetClassesRepModel?> getClasses(GetClassesBody body) async {
  var data = await HttpClient.post<TCICGetClassesRepModel, GetClassesBody>(
    api: "/v1/class/getClasses",
    body: body,
    fromJson: TCICGetClassesRepModel.fromJson,
  );

  return data;
}