mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 09:02:49 +03:00
003161ea54
* Docker * feat: support set openai api host * fix css * fix eslint * use API in backend & put host check in plugin/openai * fix go-static-checks
25 lines
781 B
Go
25 lines
781 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"`
|
|
// 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"`
|
|
StorageServiceID int `json:"storageServiceId"`
|
|
// OpenAI API Host
|
|
OpenAIAPIHost string `json:"openAIApiHost"`
|
|
}
|