memos/proto/store/system_setting.proto
boojack 18fb02a1ec
chore: update swag docs (#2178)
* chore: update swag docs

* chore: update
2023-08-26 08:07:43 +08:00

22 lines
532 B
Protocol Buffer

syntax = "proto3";
package memos.store;
option go_package = "gen/store";
enum SystemSettingKey {
SYSTEM_SETTING_KEY_UNSPECIFIED = 0;
// BackupConfig is the key for auto-backup configuration.
BACKUP_CONFIG = 1;
}
message BackupConfig {
// enabled indicates whether backup is enabled.
bool enabled = 1;
// cron is the cron expression for backup. See https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format
string cron = 2;
// max_keep is the maximum number of backups to keep.
int32 max_keep = 3;
}