mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: return workspace setting with default value
This commit is contained in:
@ -9,10 +9,6 @@ import "google/api/field_behavior.proto";
|
||||
option go_package = "gen/api/v1";
|
||||
|
||||
service WorkspaceSettingService {
|
||||
// ListWorkspaceSetting returns the list of settings.
|
||||
rpc ListWorkspaceSettings(ListWorkspaceSettingsRequest) returns (ListWorkspaceSettingsResponse) {
|
||||
option (google.api.http) = {get: "/api/v1/workspace/settings"};
|
||||
}
|
||||
// GetWorkspaceSetting returns the setting by name.
|
||||
rpc GetWorkspaceSetting(GetWorkspaceSettingRequest) returns (WorkspaceSetting) {
|
||||
option (google.api.http) = {get: "/api/v1/workspace/{name=settings/*}"};
|
||||
@ -100,12 +96,6 @@ message WorkspaceMemoRelatedSetting {
|
||||
int32 content_length_limit = 3;
|
||||
}
|
||||
|
||||
message ListWorkspaceSettingsRequest {}
|
||||
|
||||
message ListWorkspaceSettingsResponse {
|
||||
repeated WorkspaceSetting settings = 1;
|
||||
}
|
||||
|
||||
message GetWorkspaceSettingRequest {
|
||||
// The resource name of the workspace setting.
|
||||
// Format: settings/{setting}
|
||||
|
Reference in New Issue
Block a user