system.go 930 B

1234567891011121314151617181920212223242526272829
  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. // Max upload size.
  15. MaxUploadSizeMiB int `json:"maxUploadSizeMiB"`
  16. // Additional style.
  17. AdditionalStyle string `json:"additionalStyle"`
  18. // Additional script.
  19. AdditionalScript string `json:"additionalScript"`
  20. // Customized server profile, including server name and external url.
  21. CustomizedProfile CustomizedProfile `json:"customizedProfile"`
  22. // Storage service ID.
  23. StorageServiceID int `json:"storageServiceId"`
  24. // Local storage path
  25. LocalStoragePath string `json:"localStoragePath"`
  26. }