feat: phone validation
Some checks failed
build quyun / Build (push) Failing after 1m25s

This commit is contained in:
2025-12-20 11:47:45 +08:00
parent fdbf26d751
commit 0e4af79b53
31 changed files with 1130 additions and 984 deletions

View File

@@ -32,27 +32,27 @@ type ResponseItem struct{}
// Foo 演示端点:展示 Fiber 参数绑定与 Swagger 注释写法。
//
// @Summary 演示接口
// @Tags Demo
// @Accept multipart/form-data
// @Produce json
// @Summary 演示接口
// @Tags Demo
// @Accept multipart/form-data
// @Produce json
//
// @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} "成功"
// @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
// @Bind pager query
// @Bind header header
// @Bind id path
// @Bind req body
// @Bind file file
// @Bind claim local
// @Router /v1/medias/:id [post]
// @Bind query query
// @Bind pager query
// @Bind header header
// @Bind id path
// @Bind req body
// @Bind file file
// @Bind claim local
func (d *demo) Foo(
ctx fiber.Ctx,
id int,

View File

@@ -20,7 +20,7 @@ import (
// Routes implements the HttpRoute contract and provides route registration
// for all controllers in the v1 module.
//
// @provider contracts.HttpRoute atom.GroupRoutes
// @provider contracts.HttpRoute atom.GroupRoutes
type Routes struct {
log *log.Entry `inject:"false"`
middlewares *middlewares.Middlewares