dashboard

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllDashboardData

func GetAllDashboardData(ctx context.Context, days int) (*map[string]interface{}, error)

GetAllDashboardData get all data for dashboard

func GetAllStats

func GetAllStats(c *gin.Context)

GetAllStats @Tags Dashboard @Param days query int false "request query" @Produce json @Success 200 {object} DashboardDataResponse @Router /api/v1/dashboard/stats/all [get]

Types

type DashboardData

type DashboardData struct {
	UserGrowth      string `json:"userGrowth"`
	ActivityData    string `json:"activityData"`
	ProjectTags     string `json:"projectTags"`
	DistributeModes string `json:"distributeModes"`
	HotProjects     string `json:"hotProjects"`
	ActiveCreators  string `json:"activeCreators"`
	ActiveReceivers string `json:"activeReceivers"`
	//ApplyStatus     ApplyStatus      `json:"applyStatus"`
	Summary string `json:"summary"`
}

DashboardData 仪表板数据结构

type DashboardDataResponse

type DashboardDataResponse struct {
	ErrorMsg string      `json:"error_msg"`
	Data     interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL