2022-05-15 10:57:54 +08:00
|
|
|
package api
|
|
|
|
|
2022-06-27 22:09:06 +08:00
|
|
|
import "github.com/usememos/memos/server/profile"
|
2022-05-17 21:21:13 +08:00
|
|
|
|
2022-05-15 10:57:54 +08:00
|
|
|
type SystemStatus struct {
|
2022-11-22 23:45:11 +08:00
|
|
|
Host *User `json:"host"`
|
|
|
|
Profile profile.Profile `json:"profile"`
|
|
|
|
DBSize int64 `json:"dbSize"`
|
2022-11-18 21:17:52 +08:00
|
|
|
|
2022-11-03 21:47:36 +08:00
|
|
|
// System settings
|
2022-11-11 23:42:44 +08:00
|
|
|
// Allow sign up.
|
2022-11-03 21:47:36 +08:00
|
|
|
AllowSignUp bool `json:"allowSignUp"`
|
2022-11-11 23:42:44 +08:00
|
|
|
// Additional style.
|
|
|
|
AdditionalStyle string `json:"additionalStyle"`
|
2022-11-14 22:21:19 +08:00
|
|
|
// Additional script.
|
|
|
|
AdditionalScript string `json:"additionalScript"`
|
2022-12-18 21:18:30 +08:00
|
|
|
// Customized server profile, including server name and external url.
|
|
|
|
CustomizedProfile CustomizedProfile `json:"customizedProfile"`
|
2022-05-15 10:57:54 +08:00
|
|
|
}
|