diff --git a/go.mod b/go.mod index 6acc58a..beb3299 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( ) require ( - git.zhangdeman.cn/gateway/api-doc v0.0.0-20250214135728-9e8560cccf5b // indirect + git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215124612-0047befc07ba // indirect git.zhangdeman.cn/zhangdeman/easylock v0.0.0-20230731062340-983985c12eda // indirect git.zhangdeman.cn/zhangdeman/easymap v0.0.0-20241101082529-28a6c68e38a4 // indirect git.zhangdeman.cn/zhangdeman/op_type v0.0.0-20240122104027-4928421213c0 // indirect diff --git a/go.sum b/go.sum index fe01302..b83e93f 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,16 @@ git.zhangdeman.cn/gateway/api-doc v0.0.0-20250214133346-07f91dfdfc0e h1:Pveo21W7 git.zhangdeman.cn/gateway/api-doc v0.0.0-20250214133346-07f91dfdfc0e/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= git.zhangdeman.cn/gateway/api-doc v0.0.0-20250214135728-9e8560cccf5b h1:Ax0XFSgcnVkaaHBgCj4ZTUw44Non2d0xAZuXoZW2qS8= git.zhangdeman.cn/gateway/api-doc v0.0.0-20250214135728-9e8560cccf5b/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215051336-d70cfe3e50f9 h1:XkrwmWvUg/WYbFr9wf139yP0qCHPZaQTBWICXrPsbYw= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215051336-d70cfe3e50f9/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215075104-ec0d894d361c h1:HmxeHHFp88qHBrof0WQPulOZ0NRu2q6rT1OD2DeoE+g= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215075104-ec0d894d361c/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215080050-dd04ad543a2e h1:oYERjN65rvOG/DLZsPFF4BcvpALxQuHIbMkms9h/EHM= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215080050-dd04ad543a2e/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215120152-8387ae08e972 h1:h725bMAkjHVAh4iv2zYzbFq/VEdy712ruFB+AUlJ5xM= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215120152-8387ae08e972/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215124612-0047befc07ba h1:OeuXovN9tjefSGKCC41nDvs2MFdnGG3/wzqLNbTOuo4= +git.zhangdeman.cn/gateway/api-doc v0.0.0-20250215124612-0047befc07ba/go.mod h1:yVIN17cpiLXyAUBYmbb5EOtYhURIZ/K3SpCn93FzVW8= git.zhangdeman.cn/zhangdeman/consts v0.0.0-20250208020330-a50062af46a1 h1:vv4X72I6s6XcTi0ykj2v/cgMZyseFyE2LkS4WloICCs= git.zhangdeman.cn/zhangdeman/consts v0.0.0-20250208020330-a50062af46a1/go.mod h1:IXXaZkb7vGzGnGM5RRWrASAuwrVSNxuoe0DmeXx5g6k= git.zhangdeman.cn/zhangdeman/easylock v0.0.0-20230731062340-983985c12eda h1:bMD6r9gjRy7cO+T4zRQVYAesgIblBdTnhzT1vN5wjvI= diff --git a/router/server.go b/router/server.go index 1aa0726..77b9b2a 100644 --- a/router/server.go +++ b/router/server.go @@ -27,6 +27,7 @@ func NewServer(port int, option any) *server { return &server{ router: gin.Default(), docInstance: NewDoc(nil, nil), // TODO : 配置相关信息 + port: port, } }