This commit is contained in:
eson
2023-08-29 14:27:00 +08:00
parent 7559777df7
commit 8908273af5
3 changed files with 10 additions and 14 deletions

View File

@@ -12,25 +12,25 @@ import "basic.api"
service auth {
@handler UserLoginHandler
post /api/auth/login(RequestUserLogin) returns (response);
@handler UserRegisterHandler
post /api/auth/register(RequestUserRegister) returns (response);
@handler AcceptCookieHandler
post /api/auth/accept-cookie(request) returns (response);
@handler UserGoogleLoginHandler
get /api/auth/oauth2/login/google(RequestGoogleLogin) returns (response);
@handler UserEmailConfirmationHandler
get /api/auth/email/confirmation(RequestEmailConfirmation) returns (response);
@handler UserEmailRegisterHandler
post /api/auth/oauth2/register(RequestEmailRegister) returns (response);
@handler UserResetTokenHandler
get /api/auth/reset/token(RequestUserResetToken) returns (response);
@handler UserResetPasswordHandler
post /api/auth/reset/password(RequestUserResetPassword) returns (response);
}
@@ -94,7 +94,7 @@ type RequestGoogleLogin {
}
type RequestEmailConfirmation {
Token string `query:"token"` // 操作Token
Token string `form:"token"` // 操作Token
}
type RequestEmailRegister {