备注保存前获取完整用户详情构造请求体,TC03 清空备注场景不再丢失其他字段。 拆出 RemarkForm 组件,增加保存中禁用态和失败错误提示。
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
export type UpdateUserBasicInfoBody = Omit<
|
||||
API.UpdateUserBasiceInfoRequest,
|
||||
"password"
|
||||
> & {
|
||||
password?: string;
|
||||
remark?: string;
|
||||
};
|
||||
|
||||
/** Create user POST /v1/admin/user/ */
|
||||
export async function createUser(
|
||||
body: API.CreateUserRequest,
|
||||
@@ -104,7 +112,7 @@ export async function deleteUserAuthMethod(
|
||||
|
||||
/** Update user basic info PUT /v1/admin/user/basic */
|
||||
export async function updateUserBasicInfo(
|
||||
body: API.UpdateUserBasiceInfoRequest,
|
||||
body: UpdateUserBasicInfoBody,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
|
||||
Reference in New Issue
Block a user