update Test

This commit is contained in:
2024-07-22 11:19:41 +08:00
parent 0b7df330f7
commit cc98043aff
4 changed files with 5 additions and 11 deletions

View File

@ -13,13 +13,11 @@ import (
"git.zhangdeman.cn/zhangdeman/gin/middleware"
"git.zhangdeman.cn/zhangdeman/gin/request"
"git.zhangdeman.cn/zhangdeman/gin/response"
"git.zhangdeman.cn/zhangdeman/wrapper"
"github.com/gin-gonic/gin"
"net/http"
"reflect"
"strings"
"git.zhangdeman.cn/zhangdeman/wrapper"
"github.com/gin-gonic/gin"
)
var (

View File

@ -34,7 +34,9 @@ type TestForm struct {
Meta `tag:"测试表单" path:"/a/b/c/d" desc:"测试接口" method:"get" strict:"true"`
Age int `json:"age" form:"age"`
Name string `json:"name" form:"name"`
Test any `json:"test" form:"test"`
Test struct {
L string `json:"l"`
} `json:"test" form:"test"`
}
func Test_parseController(t *testing.T) {