中文:收口权限与中心/立项配置改造
This commit is contained in:
@@ -10,13 +10,13 @@ export const createUser = (payload: {
|
||||
password: string;
|
||||
full_name: string;
|
||||
role: string;
|
||||
department: string;
|
||||
clinical_department: string;
|
||||
}) =>
|
||||
apiPost<UserInfo>("/api/v1/users/", payload);
|
||||
|
||||
export const updateUser = (
|
||||
userId: string,
|
||||
payload: Partial<{ role: string; status: string; password: string; full_name: string; department: string; is_active: boolean }>
|
||||
payload: Partial<{ role: string; status: string; password: string; full_name: string; clinical_department: string; is_active: boolean }>
|
||||
) =>
|
||||
apiPatch<UserInfo>(`/api/v1/users/${userId}`, payload);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user