2022-05-15 05:57:54 +03:00
|
|
|
package api
|
|
|
|
|
2022-06-27 17:09:06 +03:00
|
|
|
import "github.com/usememos/memos/server/profile"
|
2022-05-17 16:21:13 +03:00
|
|
|
|
2022-05-15 05:57:54 +03:00
|
|
|
type SystemStatus struct {
|
2022-11-22 18:45:11 +03:00
|
|
|
Host *User `json:"host"`
|
|
|
|
Profile profile.Profile `json:"profile"`
|
|
|
|
DBSize int64 `json:"dbSize"`
|
2022-11-18 16:17:52 +03:00
|
|
|
|
2022-11-03 16:47:36 +03:00
|
|
|
// System settings
|
2022-11-11 18:42:44 +03:00
|
|
|
// Allow sign up.
|
2022-11-03 16:47:36 +03:00
|
|
|
AllowSignUp bool `json:"allowSignUp"`
|
2023-02-13 19:07:31 +03:00
|
|
|
// Disable public memos.
|
|
|
|
DisablePublicMemos bool `json:"disablePublicMemos"`
|
2022-11-11 18:42:44 +03:00
|
|
|
// Additional style.
|
|
|
|
AdditionalStyle string `json:"additionalStyle"`
|
2022-11-14 17:21:19 +03:00
|
|
|
// Additional script.
|
|
|
|
AdditionalScript string `json:"additionalScript"`
|
2022-12-18 16:18:30 +03:00
|
|
|
// Customized server profile, including server name and external url.
|
|
|
|
CustomizedProfile CustomizedProfile `json:"customizedProfile"`
|
2023-03-19 14:37:57 +03:00
|
|
|
// Storage service ID.
|
|
|
|
StorageServiceID int `json:"storageServiceId"`
|
|
|
|
// Local storage path
|
|
|
|
LocalStoragePath string `json:"localStoragePath"`
|
2022-05-15 05:57:54 +03:00
|
|
|
}
|