feat: 添加用户统计功能,包括统计接口和相关数据结构
This commit is contained in:
@@ -61,3 +61,18 @@ func (*user) statusList(ctx fiber.Ctx) ([]requests.KV, error) {
|
||||
return requests.NewKV(item.String(), item.Description())
|
||||
}), nil
|
||||
}
|
||||
|
||||
// statistics
|
||||
//
|
||||
// @Summary 用户统计信息
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {array} dto.UserStatistics
|
||||
//
|
||||
// @Router /super/v1/users/statistics [get]
|
||||
// @Bind userID path
|
||||
// @Bind form body
|
||||
func (*user) statistics(ctx fiber.Ctx) ([]*dto.UserStatistics, error) {
|
||||
return services.User.Statistics(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user