2024-01-06 19:46:21 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package memos.store;
|
|
|
|
|
|
|
|
option go_package = "gen/store";
|
|
|
|
|
|
|
|
enum WorkspaceSettingKey {
|
|
|
|
WORKSPACE_SETTING_KEY_UNSPECIFIED = 0;
|
2024-02-20 23:02:01 +08:00
|
|
|
// WORKSPACE_SETTING_GENERAL is the key for general settings.
|
2024-01-29 22:43:40 +08:00
|
|
|
WORKSPACE_SETTING_GENERAL = 1;
|
2024-04-10 20:05:17 +08:00
|
|
|
// WORKSPACE_SETTING_MEMO_RELATED is the key for memo related settings.
|
|
|
|
WORKSPACE_SETTING_MEMO_RELATED = 2;
|
2024-01-06 19:46:21 +08:00
|
|
|
}
|
|
|
|
|
2024-02-20 23:02:01 +08:00
|
|
|
message WorkspaceSetting {
|
|
|
|
WorkspaceSettingKey key = 1;
|
|
|
|
oneof value {
|
2024-04-10 20:05:17 +08:00
|
|
|
WorkspaceGeneralSetting general_setting = 2;
|
|
|
|
WorkspaceMemoRelatedSetting memo_related_setting = 3;
|
2024-02-20 23:02:01 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-29 22:43:40 +08:00
|
|
|
message WorkspaceGeneralSetting {
|
2024-02-20 23:02:01 +08:00
|
|
|
// instance_url is the instance URL.
|
2024-01-06 19:46:21 +08:00
|
|
|
string instance_url = 1;
|
2024-02-20 23:02:01 +08:00
|
|
|
// disallow_signup is the flag to disallow signup.
|
2024-01-06 19:46:21 +08:00
|
|
|
bool disallow_signup = 2;
|
2024-02-20 23:02:01 +08:00
|
|
|
// disallow_password_login is the flag to disallow password login.
|
2024-01-29 22:43:40 +08:00
|
|
|
bool disallow_password_login = 3;
|
2024-02-20 23:02:01 +08:00
|
|
|
// additional_script is the additional script.
|
|
|
|
string additional_script = 5;
|
|
|
|
// additional_style is the additional style.
|
|
|
|
string additional_style = 6;
|
2024-01-06 19:46:21 +08:00
|
|
|
}
|
2024-04-10 20:05:17 +08:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|