feat: backend core - auth, user, role, permission, device, webhook, monitoring, cache, repository, service, middleware, API handlers
This commit is contained in:
27
internal/api/handler/stats_handler.go
Normal file
27
internal/api/handler/stats_handler.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"github.com/user-management-system/internal/service"
|
||||
)
|
||||
|
||||
// StatsHandler handles statistics requests
|
||||
type StatsHandler struct {
|
||||
statsService *service.StatsService
|
||||
}
|
||||
|
||||
// NewStatsHandler creates a new StatsHandler
|
||||
func NewStatsHandler(statsService *service.StatsService) *StatsHandler {
|
||||
return &StatsHandler{statsService: statsService}
|
||||
}
|
||||
|
||||
func (h *StatsHandler) GetDashboard(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"message": "dashboard stats not implemented"})
|
||||
}
|
||||
|
||||
func (h *StatsHandler) GetUserStats(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"message": "user stats not implemented"})
|
||||
}
|
||||
Reference in New Issue
Block a user