需要合并新代码
This commit is contained in:
@@ -12,13 +12,16 @@ import "basic.api"
|
||||
service auth {
|
||||
@handler UserLoginHandler
|
||||
post /api/auth/login(RequestUserLogin) 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
|
||||
get /api/auth/oauth2/register(RequestEmailRegister) returns (response);
|
||||
}
|
||||
@@ -34,7 +37,11 @@ type RequestGoogleLogin {
|
||||
Scope string `form:"scope"`
|
||||
AuthUser string `form:"authuser"`
|
||||
Prompt string `form:"prompt"`
|
||||
Email string `form:"email,optional"`
|
||||
}
|
||||
|
||||
type RequestEmailConfirmation {
|
||||
Email string `json:"email"` // 要确认的email
|
||||
Token string `json:"token"` // 操作Token
|
||||
}
|
||||
|
||||
type RequestEmailRegister {
|
||||
|
||||
Reference in New Issue
Block a user