feat: add default visibility workspace setting

This commit is contained in:
Steven
2024-02-19 21:11:09 +08:00
parent fafacc92eb
commit 4a6c6b4b2a
16 changed files with 373 additions and 227 deletions

View File

@ -2,19 +2,30 @@ syntax = "proto3";
package slash.store;
import "store/common.proto";
option go_package = "gen/store";
message WorkspaceSetting {
WorkspaceSettingKey key = 1;
oneof value {
// The license key of workspace.
string license_key = 2;
// The secret session key used to encrypt session data.
string secret_session = 3;
// Whether to enable other users to sign up.
bool enable_signup = 4;
// The custom style.
string custom_style = 5;
// The custom script.
string custom_script = 6;
// The auto backup setting. (Unimplemented)
AutoBackupWorkspaceSetting auto_backup = 7;
// The instance URL of workspace.
string instance_url = 8;
// The default visibility of shortcuts and collections.
Visibility default_visibility = 9;
}
}
@ -34,6 +45,8 @@ enum WorkspaceSettingKey {
WORKSPACE_SETTING_AUTO_BACKUP = 6;
// The instance URL.
WORKSPACE_SETTING_INSTANCE_URL = 7;
// The default visibility of shortcuts and collections.
WORKSPACE_SETTING_DEFAULT_VISIBILITY = 8;
}
message AutoBackupWorkspaceSetting {