Skip to content

Commit

Permalink
Fix package compile errors (#30)
Browse files Browse the repository at this point in the history
* Fix module names

* Fix package
  • Loading branch information
yixinglu authored Jul 22, 2021
1 parent 61329d8 commit 1600b23
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions controllers/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package controllers

import (
"encoding/json"
dao "nebula-http-gateway/service/dao"
common "nebula-http-gateway/utils"

"github.com/astaxie/beego"
"github.com/vesoft-inc/nebula-http-gateway/common"
"github.com/vesoft-inc/nebula-http-gateway/service/dao"
)

type DatabaseController struct {
Expand Down
5 changes: 3 additions & 2 deletions controllers/db_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package tests
package controllers

import (
"bytes"
"encoding/json"
"io/ioutil"
"log"
common "nebula-http-gateway/utils"
"net/http"
"testing"

"github.com/vesoft-inc/nebula-http-gateway/common"
)

type Response struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module nebula-http-gateway
module github.com/vesoft-inc/nebula-http-gateway

go 1.13

Expand Down
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package main

import (
_ "nebula-http-gateway/routers"

"github.com/astaxie/beego"
)

Expand Down
3 changes: 1 addition & 2 deletions routers/router.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package routers

import (
"nebula-http-gateway/controllers"

"github.com/astaxie/beego"
"github.com/vesoft-inc/nebula-http-gateway/controllers"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions service/dao/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"log"

"nebula-http-gateway/service/pool"
common "nebula-http-gateway/utils"
"github.com/vesoft-inc/nebula-http-gateway/common"
"github.com/vesoft-inc/nebula-http-gateway/service/pool"

nebula "github.com/vesoft-inc/nebula-go/v2"
nebulaType "github.com/vesoft-inc/nebula-go/v2/nebula"
Expand Down
4 changes: 2 additions & 2 deletions service/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sync"
"time"

common "nebula-http-gateway/utils"

"github.com/facebook/fbthrift/thrift/lib/go/thrift"
"github.com/vesoft-inc/nebula-http-gateway/common"

uuid "github.com/satori/go.uuid"
nebula "github.com/vesoft-inc/nebula-go/v2"
)
Expand Down

0 comments on commit 1600b23

Please sign in to comment.