mirror of https://gitee.com/answerdev/answer.git
39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
package schema
|
|
|
|
import "time"
|
|
|
|
var AppStartTime time.Time
|
|
|
|
const (
|
|
DashBoardCachekey = "answer@dashboard"
|
|
DashBoardCacheTime = 60 * time.Minute
|
|
)
|
|
|
|
type DashboardInfo struct {
|
|
QuestionCount int64 `json:"question_count"`
|
|
AnswerCount int64 `json:"answer_count"`
|
|
CommentCount int64 `json:"comment_count"`
|
|
VoteCount int64 `json:"vote_count"`
|
|
UserCount int64 `json:"user_count"`
|
|
ReportCount int64 `json:"report_count"`
|
|
UploadingFiles bool `json:"uploading_files"`
|
|
SMTP bool `json:"smtp"`
|
|
HTTPS bool `json:"https"`
|
|
TimeZone string `json:"time_zone"`
|
|
OccupyingStorageSpace string `json:"occupying_storage_space"`
|
|
AppStartTime string `json:"app_start_time"`
|
|
VersionInfo DashboardInfoVersion `json:"version_info"`
|
|
}
|
|
|
|
type DashboardInfoVersion struct {
|
|
Version string `json:"version"`
|
|
RemoteVersion string `json:"remote_version"`
|
|
}
|
|
|
|
type RemoteVersion struct {
|
|
Release struct {
|
|
Version string `json:"version"`
|
|
URL string `json:"url"`
|
|
} `json:"release"`
|
|
}
|