add sort feature for path of openapi

This commit is contained in:
John Guo
2022-03-24 21:56:37 +08:00
parent 96a135834a
commit 6664437b06
21 changed files with 350 additions and 288 deletions

View File

@ -9,7 +9,7 @@ import (
)
type HelloReq struct {
g.Meta `path:"/hello" method:"get"`
g.Meta `path:"/hello" method:"get" sort:"1"`
Name string `v:"required" dc:"Your name"`
}
type HelloRes struct {