23 lines
653 B
Go
23 lines
653 B
Go
package admin
|
||
|
||
import (
|
||
"git.echol.cn/loser/Go-Web-Template/server/model/admin"
|
||
"git.echol.cn/loser/Go-Web-Template/server/model/common/response"
|
||
"github.com/gin-gonic/gin"
|
||
)
|
||
|
||
type DashboardApi struct{}
|
||
|
||
// GetDashboardStats 运营仪表盘聚合统计(占位实现,避免前端 404;后续可接真实聚合查询)。
|
||
func (a *DashboardApi) GetDashboardStats(c *gin.Context) {
|
||
stats := admin.DashboardStats{
|
||
Feedback: admin.DashboardFeedbackStats{
|
||
PendingItems: []admin.DashboardFeedbackPendingItem{},
|
||
},
|
||
Creators: admin.DashboardCreatorStats{
|
||
TopCreators: []admin.DashboardTopCreator{},
|
||
},
|
||
}
|
||
response.OkWithData(stats, c)
|
||
}
|