mirror of https://gitee.com/answerdev/answer.git
Merge branch 'ai_0.3_dashboard' into 'test'
update dashboardInfo See merge request opensource/answer!166
This commit is contained in:
commit
a6537222c7
|
@ -7,8 +7,9 @@ type DashboardInfo struct {
|
|||
VoteCount int64 `json:"vote_count"`
|
||||
UserCount int64 `json:"user_count"`
|
||||
ReportCount int64 `json:"report_count"`
|
||||
UploadingFiles string `json:"uploading_files"` //Allowed or Not allowed
|
||||
SMTP string `json:"smtp"` //Enabled or Disabled
|
||||
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"`
|
||||
|
|
|
@ -97,8 +97,9 @@ func (ds *DashboardService) Statistical(ctx context.Context) (*schema.DashboardI
|
|||
dashboardInfo.UserCount = userCount
|
||||
dashboardInfo.ReportCount = reportCount
|
||||
|
||||
dashboardInfo.UploadingFiles = "Allowed"
|
||||
dashboardInfo.SMTP = "Enabled"
|
||||
dashboardInfo.UploadingFiles = true
|
||||
dashboardInfo.SMTP = true
|
||||
dashboardInfo.HTTPS = true
|
||||
dashboardInfo.OccupyingStorageSpace = "1MB"
|
||||
dashboardInfo.AppStartTime = "102"
|
||||
return dashboardInfo, nil
|
||||
|
|
Loading…
Reference in New Issue