mirror of
				https://github.com/usememos/memos.git
				synced 2025-06-05 22:09:59 +02:00 
			
		
		
		
	* Add option to hide Ask AI and update dev version * Fix formatting according to eslint * Replace option to hide Ask AI with auto hiding based on config * Fix golangci-lint errors * Remove showAskAI logic from OpenAPI
		
			
				
	
	
		
			30 lines
		
	
	
		
			933 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			933 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package api
 | |
| 
 | |
| import "github.com/usememos/memos/server/profile"
 | |
| 
 | |
| type SystemStatus struct {
 | |
| 	Host    *User           `json:"host"`
 | |
| 	Profile profile.Profile `json:"profile"`
 | |
| 	DBSize  int64           `json:"dbSize"`
 | |
| 
 | |
| 	// System settings
 | |
| 	// Allow sign up.
 | |
| 	AllowSignUp bool `json:"allowSignUp"`
 | |
| 	// Ignore upgrade
 | |
| 	IgnoreUpgrade bool `json:"ignoreUpgrade"`
 | |
| 	// Disable public memos.
 | |
| 	DisablePublicMemos bool `json:"disablePublicMemos"`
 | |
| 	// Additional style.
 | |
| 	AdditionalStyle string `json:"additionalStyle"`
 | |
| 	// Additional script.
 | |
| 	AdditionalScript string `json:"additionalScript"`
 | |
| 	// Customized server profile, including server name and external url.
 | |
| 	CustomizedProfile CustomizedProfile `json:"customizedProfile"`
 | |
| 	// Storage service ID.
 | |
| 	StorageServiceID int `json:"storageServiceId"`
 | |
| 	// Local storage path
 | |
| 	LocalStoragePath string `json:"localStoragePath"`
 | |
| 	// Local storage path
 | |
| 	OpenAIConfig OpenAIConfig `json:"openAIConfig"`
 | |
| }
 |