mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: add system service (#2083)
* feat: add system service * chore: update
This commit is contained in:
29
proto/api/v2/system_service.proto
Normal file
29
proto/api/v2/system_service.proto
Normal file
@@ -0,0 +1,29 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package memos.api.v2;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option go_package = "gen/api/v2";
|
||||
|
||||
service SystemService {
|
||||
rpc GetSystemInfo(GetSystemInfoRequest) returns (GetSystemInfoResponse) {
|
||||
option (google.api.http) = {get: "/api/v2/system/info"};
|
||||
}
|
||||
}
|
||||
|
||||
message SystemInfo {
|
||||
string version = 1;
|
||||
string mode = 2;
|
||||
bool allow_registration = 3;
|
||||
bool disable_password_login = 4;
|
||||
string additional_script = 5;
|
||||
string additional_style = 6;
|
||||
int64 db_size = 7;
|
||||
}
|
||||
|
||||
message GetSystemInfoRequest {}
|
||||
|
||||
message GetSystemInfoResponse {
|
||||
SystemInfo system_info = 1;
|
||||
}
|
Reference in New Issue
Block a user