mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update workspace setting service
This commit is contained in:
@@ -48,8 +48,10 @@ message WorkspaceSetting {
|
||||
// Format: settings/{setting}
|
||||
string name = 1;
|
||||
oneof value {
|
||||
// general_setting is the general setting of workspace.
|
||||
WorkspaceGeneralSetting general_setting = 2;
|
||||
WorkspaceStorageSetting storage_setting = 3;
|
||||
WorkspaceMemoRelatedSetting memo_related_setting = 4;
|
||||
WorkspaceTelegramIntegrationSetting telegram_integration_setting = 5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,3 +67,35 @@ message WorkspaceGeneralSetting {
|
||||
// additional_style is the additional style.
|
||||
string additional_style = 6;
|
||||
}
|
||||
|
||||
message WorkspaceStorageSetting {
|
||||
// storage_type is the storage type.
|
||||
StorageType storage_type = 1;
|
||||
// The local storage path for STORAGE_TYPE_LOCAL.
|
||||
// e.g. assets/{timestamp}_{filename}
|
||||
string local_storage_path = 2;
|
||||
// The max upload size in megabytes.
|
||||
int64 upload_size_limit_mb = 3;
|
||||
|
||||
enum StorageType {
|
||||
STORAGE_TYPE_UNSPECIFIED = 0;
|
||||
// STORAGE_TYPE_DATABASE is the database storage type.
|
||||
STORAGE_TYPE_DATABASE = 1;
|
||||
// STORAGE_TYPE_LOCAL is the local storage type.
|
||||
STORAGE_TYPE_LOCAL = 2;
|
||||
// STORAGE_TYPE_EXTERNAL is the external storage type.
|
||||
STORAGE_TYPE_EXTERNAL = 3;
|
||||
}
|
||||
}
|
||||
|
||||
message WorkspaceMemoRelatedSetting {
|
||||
// disallow_public_share disallows set memo as public visible.
|
||||
bool disallow_public_visible = 1;
|
||||
// display_with_update_time orders and displays memo with update time.
|
||||
bool display_with_update_time = 2;
|
||||
}
|
||||
|
||||
message WorkspaceTelegramIntegrationSetting {
|
||||
// bot_token is the telegram bot token.
|
||||
string bot_token = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user