✨ 新增几大中心功能
This commit is contained in:
22
server/api/v1/admin/dashboard.go
Normal file
22
server/api/v1/admin/dashboard.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user