system.go 975 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. // Disable public memos.
  11. DisablePublicMemos bool `json:"disablePublicMemos"`
  12. // Max upload size.
  13. MaxUploadSizeMiB int `json:"maxUploadSizeMiB"`
  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. // Memo display with updated timestamp.
  25. MemoDisplayWithUpdatedTs bool `json:"memoDisplayWithUpdatedTs"`
  26. }