feat: support open api with webhooks

This commit is contained in:
email
2022-01-09 11:44:12 +08:00
parent aed1004f39
commit 9bec29a03e
17 changed files with 238 additions and 330 deletions

View File

@ -87,7 +87,7 @@ namespace api {
});
}
export function updateUserinfo(userinfo: Partial<{ username: string; password: string; githubName: string }>) {
export function updateUserinfo(userinfo: Partial<{ username: string; password: string }>) {
return request({
method: "PATCH",
url: "/api/user/me",
@ -95,6 +95,13 @@ namespace api {
});
}
export function resetOpenId() {
return request<string>({
method: "POST",
url: "/api/user/open_id/new",
});
}
export function getMyMemos() {
return request<Model.Memo[]>({
method: "GET",