mirror of
https://github.com/aykhans/slash-e.git
synced 2025-06-14 20:07:50 +00:00
feat: add default visibility workspace setting
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user