beego自動生成swagger API接口

執行bee run -gendoc=true -downdoc=true 生成接口失敗git

由於src\github.com\astaxie\beego\logs下面缺乏AccessLogRecord結構體所在的文件github

 

下載文件地址在https://github.com/s1377427321/myServer/tree/master/src/github.com/astaxie/beego/logs接口

把下載下來的文件accesslog.go拷貝到你的gopath下面的src/github.com/astaxie/beego/logs目錄下,而後再執行bee run -gendoc=true -downdoc=true,服務啓動成功ssl

 

網頁查看效果:http://127.0.0.1:8080/swagger/get

相關文章
相關標籤/搜索