memos/proto/store/workspace_setting.proto

32 lines
813 B
Protocol Buffer
Raw Normal View History

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;
// WORKSPACE_SETTING_GENERAL is the key for general settings.
WORKSPACE_SETTING_GENERAL = 1;
2024-01-06 19:46:21 +08:00
}
message WorkspaceSetting {
WorkspaceSettingKey key = 1;
oneof value {
WorkspaceGeneralSetting general = 2;
}
}
message WorkspaceGeneralSetting {
// instance_url is the instance URL.
2024-01-06 19:46:21 +08:00
string instance_url = 1;
// disallow_signup is the flag to disallow signup.
2024-01-06 19:46:21 +08:00
bool disallow_signup = 2;
// disallow_password_login is the flag to disallow password login.
bool disallow_password_login = 3;
// 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
}