更新最新

This commit is contained in:
huangsimin@fusen.cn 2024-01-10 10:32:02 +08:00
parent 0beabb590f
commit 4029426e6f

View File

@ -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) {}
}