feat: Enhance Swagger documentation with new admin and user endpoints
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:
2025-12-19 23:43:46 +08:00
parent 49072ddd79
commit 7b18a6a0e6
14 changed files with 4180 additions and 120 deletions

View File

@@ -30,18 +30,20 @@ type Filter struct {
type ResponseItem struct{}
// Foo
// Foo 演示端点:展示 Fiber 参数绑定与 Swagger 注释写法。
//
// @Summary Test
// @Description Test
// @Tags Test
// @Accept json
// @Summary 演示接口
// @Tags Demo
// @Accept multipart/form-data
// @Produce json
//
// @Param id path int true "ID"
// @Param query query Filter true "Filter"
// @Param pager query requests.Pagination true "Pager"
// @Success 200 {object} requests.Pager{list=ResponseItem} "成功"
// @Param id path int true "ID"
// @Param pager query requests.Pagination false "分页参数"
// @Param query query FooQuery false "查询参数"
// @Param Content-Type header string false "内容类型"
// @Param folder formData string false "上传到指定文件夹"
// @Param file formData file true "上传文件"
// @Success 200 {object} requests.Pager{items=ResponseItem} "成功"
//
// @Router /v1/medias/:id [post]
// @Bind query query