接口meta信息解析

This commit is contained in:
2024-07-21 16:51:02 +08:00
parent f55dee577d
commit 455f74ad89
3 changed files with 96 additions and 2 deletions

View File

@ -26,6 +26,13 @@ func (t *TestController) RouterMiddleware() []gin.HandlerFunc {
},
}
}
func (t *TestController) Uri(ctx *gin.Context, formData *TestForm) (any, error) {
return nil, nil
}
type TestForm struct {
Meta `tag:"测试表单" path:"/a/b/c/d" desc:"测试接口" method:"get" strict:"true"`
}
func Test_parseController(t *testing.T) {
type args struct {