gin 使用swagger 测试接口错误
TypeError: Failed to fetch
找到项目中的的docs.go文件
将host 改为你程序的端口和ip,例如localhost:8080。
可能你的BasePath不是/v2,所以需要改成你的BasePath,例如我的是api。