feat: 新增勘察明细管理与修改密码功能
This commit is contained in:
1 parent
56830e94ec
commit
774403785c
12 files changed
+1553
-18
No files matched your search
@@ -55,4 +55,12 @@ class AuthApi {
|
||||
},
|
||||
parse: (d) => WorkerInfo.fromJson((d as Map).cast<String, dynamic>()),
|
||||
);
|
||||
|
||||
/// 修改登录密码。后端 `/worker-app/profile` 收到 `password` 即更新密码哈希。
|
||||
Future<ApiResponse<WorkerInfo>> changePassword(String password) =>
|
||||
_client.put<WorkerInfo>(
|
||||
'/worker-app/profile',
|
||||
body: {'password': password},
|
||||
parse: (d) => WorkerInfo.fromJson((d as Map).cast<String, dynamic>()),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user