打包v1版本
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
李寻欢 2021-08-31 17:02:25 +08:00
parent 3bd4b166be
commit bfea0b64df

View File

@ -103,12 +103,14 @@ func main() {
app := gin.Default() app := gin.Default()
initNacos() initNacos()
ipStr := strings.Join(getIps(), ",")
app.GET("/hello", func(context *gin.Context) { app.GET("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[GET]-[API]-v1"+port) context.String(http.StatusOK, "[GET]-[API]-[v1]\n"+ipStr)
}) })
app.POST("/hello", func(context *gin.Context) { app.POST("/hello", func(context *gin.Context) {
context.String(http.StatusOK, "[POST]-[API]-v1"+port) context.String(http.StatusOK, "[POST]-[API]-[v1]\n"+ipStr)
}) })
app.GET("/ip", func(context *gin.Context) { app.GET("/ip", func(context *gin.Context) {