feat: update
This commit is contained in:
parent
238efeca24
commit
6443ca41eb
|
|
@ -41,6 +41,14 @@ output:
|
|||
# 跳过的目录列表(这些目录下的文件将不会被生成)
|
||||
# 支持相对路径和绝对路径,支持目录名或完整路径
|
||||
ignored_directories:
|
||||
- "class_type_enum.dart"
|
||||
- "sys_role_enum.dart"
|
||||
- "sys_task_type_enums.dart"
|
||||
- "teaching_level_enum.dart"
|
||||
- "base_task_add_result.dart"
|
||||
- "school_tree.dart"
|
||||
- "sys_parameter.dart"
|
||||
- "task_checklist_cloud_school_result.dart"
|
||||
# - "api/v1" # 跳过 v1 版本的 API
|
||||
# - "api_models/request" # 跳过请求模型目录
|
||||
# - "./lib/generated/api/v2" # 跳过特定路径
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
**版本**: v1 + v2
|
||||
**基础URL**: /
|
||||
**生成时间**: 2025-11-05T17:55:54.662063
|
||||
**生成时间**: 2025-11-05T18:59:27.431721
|
||||
|
||||

|
||||

|
||||
|
|
@ -4275,84 +4275,6 @@ class ApiClient {
|
|||
|
||||
---
|
||||
|
||||
#### GET /api/v2/MobileManager/GetDataSummariz
|
||||
|
||||
**总部长获取数据统计**
|
||||
|
||||
**标签**: MobileManager
|
||||
|
||||
**参数**:
|
||||
|
||||
*查询参数*:
|
||||
|
||||
| 参数名 | 类型 | 必填 | 描述 | 示例 |
|
||||
|--------|------|------|------|------|
|
||||
| CloudSchoolId | integer | ❌ | 云校id | - |
|
||||
| SchoolId | integer | ❌ | - | - |
|
||||
| BeginTime | string | ❌ | - | - |
|
||||
| EndTime | string | ❌ | - | - |
|
||||
| FollowId | integer | ❌ | 学习官id【可能存在组长id,组长也是学习官】 | - |
|
||||
| TeamLeaderUserId | integer | ❌ | 组长id,查询该组所有人 | - |
|
||||
|
||||
**响应**:
|
||||
|
||||
*HTTP 200*:
|
||||
- OK
|
||||
|
||||
**示例**:
|
||||
|
||||
```bash
|
||||
curl -X GET //api/v2/MobileManager/GetDataSummariz
|
||||
```
|
||||
|
||||
```dart
|
||||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class ApiClient {
|
||||
static const String baseUrl = '/';
|
||||
String? _token;
|
||||
|
||||
void setToken(String token) {
|
||||
_token = token;
|
||||
}
|
||||
|
||||
Map<String, String> get _headers => {
|
||||
'Content-Type': 'application/json',
|
||||
if (_token != null) 'Authorization': 'Bearer $_token',
|
||||
};
|
||||
|
||||
Future<Map<String, dynamic>> get(String endpoint) async {
|
||||
final response = await http.get(
|
||||
Uri.parse('$baseUrl$endpoint'),
|
||||
headers: _headers,
|
||||
);
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
return jsonDecode(response.body);
|
||||
} else {
|
||||
throw Exception('Failed to load data: ${response.statusCode}');
|
||||
}
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> post(String endpoint, Map<String, dynamic> data) async {
|
||||
final response = await http.post(
|
||||
Uri.parse('$baseUrl$endpoint'),
|
||||
headers: _headers,
|
||||
body: jsonEncode(data),
|
||||
);
|
||||
|
||||
if (response.statusCode == 200 || response.statusCode == 201) {
|
||||
return jsonDecode(response.body);
|
||||
} else {
|
||||
throw Exception('Failed to post data: ${response.statusCode}');
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### GET /api/v2/MobileManager/GetManagerUserInfoDetailResult
|
||||
|
||||
**获取管理用户详情**
|
||||
|
|
@ -4714,6 +4636,84 @@ class ApiClient {
|
|||
|
||||
---
|
||||
|
||||
#### GET /api/v2/MobileManager/MinisterGetDataSummariz
|
||||
|
||||
**部长获取数据统计**
|
||||
|
||||
**标签**: MobileManager
|
||||
|
||||
**参数**:
|
||||
|
||||
*查询参数*:
|
||||
|
||||
| 参数名 | 类型 | 必填 | 描述 | 示例 |
|
||||
|--------|------|------|------|------|
|
||||
| CloudSchoolId | integer | ❌ | 云校id | - |
|
||||
| SchoolId | integer | ❌ | - | - |
|
||||
| BeginTime | string | ❌ | - | - |
|
||||
| EndTime | string | ❌ | - | - |
|
||||
| FollowId | integer | ❌ | 学习官id【可能存在组长id,组长也是学习官】 | - |
|
||||
| TeamLeaderUserId | integer | ❌ | 组长id,查询该组所有人 | - |
|
||||
|
||||
**响应**:
|
||||
|
||||
*HTTP 200*:
|
||||
- OK
|
||||
|
||||
**示例**:
|
||||
|
||||
```bash
|
||||
curl -X GET //api/v2/MobileManager/MinisterGetDataSummariz
|
||||
```
|
||||
|
||||
```dart
|
||||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class ApiClient {
|
||||
static const String baseUrl = '/';
|
||||
String? _token;
|
||||
|
||||
void setToken(String token) {
|
||||
_token = token;
|
||||
}
|
||||
|
||||
Map<String, String> get _headers => {
|
||||
'Content-Type': 'application/json',
|
||||
if (_token != null) 'Authorization': 'Bearer $_token',
|
||||
};
|
||||
|
||||
Future<Map<String, dynamic>> get(String endpoint) async {
|
||||
final response = await http.get(
|
||||
Uri.parse('$baseUrl$endpoint'),
|
||||
headers: _headers,
|
||||
);
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
return jsonDecode(response.body);
|
||||
} else {
|
||||
throw Exception('Failed to load data: ${response.statusCode}');
|
||||
}
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> post(String endpoint, Map<String, dynamic> data) async {
|
||||
final response = await http.post(
|
||||
Uri.parse('$baseUrl$endpoint'),
|
||||
headers: _headers,
|
||||
body: jsonEncode(data),
|
||||
);
|
||||
|
||||
if (response.statusCode == 200 || response.statusCode == 201) {
|
||||
return jsonDecode(response.body);
|
||||
} else {
|
||||
throw Exception('Failed to post data: ${response.statusCode}');
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### POST /api/v1/MobileManager/GetMinisterAdminUsers
|
||||
|
||||
**获取本人是部长管理的组长用户列表**
|
||||
|
|
|
|||
Loading…
Reference in New Issue