mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: remove user wx_open_id key
This commit is contained in:
@ -55,14 +55,7 @@ namespace api {
|
||||
return request<boolean>("POST", "/api/user/validpassword", { password });
|
||||
}
|
||||
|
||||
interface UserInfoPatch {
|
||||
username?: string;
|
||||
password?: string;
|
||||
githubName?: string;
|
||||
wxOpenId?: string;
|
||||
}
|
||||
|
||||
export function updateUserinfo(userinfo: UserInfoPatch) {
|
||||
export function updateUserinfo(userinfo: Partial<{ username: string; password: string; githubName: string }>) {
|
||||
return request("PATCH", "/api/user/me", userinfo);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user