feat: Enhance Swagger documentation with new admin and user endpoints
Some checks failed
build quyun / Build (push) Failing after 2m1s
Some checks failed
build quyun / Build (push) Failing after 2m1s
- Added definitions for admin authentication, media, posts, orders, and user management. - Implemented new API paths for admin functionalities including authentication, media management, order processing, and user statistics. - Updated existing endpoints to improve clarity and structure in the Swagger documentation. - Introduced new response schemas for various operations to standardize API responses.
This commit is contained in:
@@ -22,7 +22,11 @@ type StatisticsResponse struct {
|
||||
|
||||
// dashboard statistics
|
||||
//
|
||||
// @Router /admin/statistics [get]
|
||||
// @Summary 仪表盘统计
|
||||
// @Tags Admin Statistics
|
||||
// @Produce json
|
||||
// @Success 200 {object} StatisticsResponse "成功"
|
||||
// @Router /admin/statistics [get]
|
||||
func (s *statistics) statistics(ctx fiber.Ctx) (*StatisticsResponse, error) {
|
||||
statistics := &StatisticsResponse{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user