修复URL注册BUG

This commit is contained in:
2025-02-15 22:34:21 +08:00
parent 99df73e50e
commit c3df76e94d
4 changed files with 50 additions and 15 deletions

View File

@ -8,8 +8,6 @@
package router
import (
"encoding/json"
"fmt"
"testing"
"github.com/gin-gonic/gin"
@ -46,7 +44,5 @@ func Test_parseController(t *testing.T) {
SetValidateErrTag("err_msg")
s := NewServer(8080, nil)
s.Group("test", nil, TestController{})
byteData, _ := json.Marshal(s.docInstance.Data())
fmt.Println(string(byteData))
s.Start()
}