system.go 861 B

123456789101112131415161718192021222324252627
  1. package api
  2. import "github.com/usememos/memos/server/profile"
  3. type SystemStatus struct {
  4. Host *User `json:"host"`
  5. Profile profile.Profile `json:"profile"`
  6. DBSize int64 `json:"dbSize"`
  7. // System settings
  8. // Allow sign up.
  9. AllowSignUp bool `json:"allowSignUp"`
  10. // Ignore upgrade
  11. IgnoreUpgrade bool `json:"ignoreUpgrade"`
  12. // Disable public memos.
  13. DisablePublicMemos bool `json:"disablePublicMemos"`
  14. // Additional style.
  15. AdditionalStyle string `json:"additionalStyle"`
  16. // Additional script.
  17. AdditionalScript string `json:"additionalScript"`
  18. // Customized server profile, including server name and external url.
  19. CustomizedProfile CustomizedProfile `json:"customizedProfile"`
  20. // Storage service ID.
  21. StorageServiceID int `json:"storageServiceId"`
  22. // Local storage path
  23. LocalStoragePath string `json:"localStoragePath"`
  24. }