memos/proto/api/v2/auth_service.proto

21 lines
405 B
Protocol Buffer
Raw Normal View History

2023-11-30 20:58:36 +08:00
syntax = "proto3";
package memos.api.v2;
2023-11-30 21:52:02 +08:00
import "api/v2/user_service.proto";
2023-11-30 20:58:36 +08:00
import "google/api/annotations.proto";
option go_package = "gen/api/v2";
service AuthService {
rpc GetAuthStatus(GetAuthStatusRequest) returns (GetAuthStatusResponse) {
option (google.api.http) = {post: "/api/v2/auth/status"};
}
}
message GetAuthStatusRequest {}
message GetAuthStatusResponse {
2023-11-30 21:52:02 +08:00
User user = 1;
2023-11-30 20:58:36 +08:00
}