system.go 799 B

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