refactor: api version

This commit is contained in:
Steven
2024-04-28 00:44:29 +08:00
parent 8bba7f706e
commit 1b291422e7
147 changed files with 3033 additions and 3033 deletions

View File

@@ -0,0 +1,26 @@
syntax = "proto3";
package memos.api.v1;
import "google/api/annotations.proto";
option go_package = "gen/api/v1";
service WorkspaceService {
// GetWorkspaceProfile returns the workspace profile.
rpc GetWorkspaceProfile(GetWorkspaceProfileRequest) returns (WorkspaceProfile) {
option (google.api.http) = {get: "/api/v1/workspace/profile"};
}
}
message WorkspaceProfile {
// The name of instance owner.
// Format: "users/{id}"
string owner = 1;
// version is the current version of instance
string version = 2;
// mode is the instance mode (e.g. "prod", "dev" or "demo").
string mode = 3;
}
message GetWorkspaceProfileRequest {}