更新最新
This commit is contained in:
parent
0beabb590f
commit
4029426e6f
|
@ -16,102 +16,11 @@ service auth {
|
|||
// 登录接口
|
||||
rpc ValidToken(ValidTokenRequest) returns (ValidTokenResponse) {}
|
||||
|
||||
// 登录接口
|
||||
rpc Login(UserLoginRequest) returns (UserLoginResponse) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/login"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// 注册接口
|
||||
rpc Register(UserRegisterRequest) returns (basic.Response) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/register"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Cookie 接受接口
|
||||
rpc AcceptCookie(basic.Request) returns (GuestResponse) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/accept-cookie"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc CreateAcceptCookie(basic.Request) returns (GuestResponse) {}
|
||||
|
||||
// 调试令牌创建接口
|
||||
rpc CreateDebugToken(UserDebugRequest) returns (DebugTokenResponse) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/debug/token/create"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// Google 登录接口
|
||||
rpc GoogleLogin(GoogleLoginRequest) returns (basic.Response) {
|
||||
// 添加 HTTP GET 网关注解
|
||||
option (google.api.http) = {
|
||||
get: "/api/auth/oauth2/login/google"
|
||||
};
|
||||
}
|
||||
|
||||
// 邮箱确认接口
|
||||
rpc EmailConfirmation(EmailConfirmationRequest) returns (basic.Response) {
|
||||
// 添加 HTTP GET 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/email/confirmation"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// 使用邮箱注册接口
|
||||
rpc EmailRegister(EmailRegisterRequest) returns (basic.Response) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/oauth2/register"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// 发送重置令牌到邮箱接口
|
||||
rpc ResetToken(UserResetTokenRequest) returns (basic.Response) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/reset/token"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// 重置密码接口
|
||||
rpc ResetPassword(UserResetPasswordRequest) returns (basic.Response) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/reset/password"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// 获取重定向到 HTML 页面接口
|
||||
rpc ResetPasswordHtml(UserResetHtmlRequest) returns (basic.Response) {
|
||||
// 添加 HTTP GET 网关注解
|
||||
option (google.api.http) = {
|
||||
get: "/api/auth/reset/password/html"
|
||||
};
|
||||
}
|
||||
|
||||
// 调试删除帐号接口
|
||||
rpc DebugDelete(AuthDeleteRequest) returns (basic.Response) {
|
||||
// 添加 HTTP POST 网关注解
|
||||
option (google.api.http) = {
|
||||
post: "/api/auth/debug/delete"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
rpc CreateDebugToken(UserDebugRequest) returns (DebugTokenResponse) {}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user