Skip to content

Commit

Permalink
Update for vendor code and refine code structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
wknet123 committed Jun 29, 2017
1 parent e2d7ee4 commit 2514ece
Show file tree
Hide file tree
Showing 173 changed files with 12,888 additions and 12,890 deletions.
4 changes: 2 additions & 2 deletions src/apiserver/controller/user.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package controller

import (
"apiserver/model"
"apiserver/service"
"encoding/json"
"fmt"
"git/inspursoft/board/src/apiserver/service"
"git/inspursoft/board/src/common/model"
"net/http"
"strconv"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion src/apiserver/dao/user.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dao

import (
"apiserver/model"
"git/inspursoft/board/src/common/model"

"github.com/astaxie/beego/orm"
)
Expand Down
2 changes: 1 addition & 1 deletion src/apiserver/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"apiserver/controller"
"git/inspursoft/board/src/apiserver/controller"
"net/http"
)

Expand Down
4 changes: 3 additions & 1 deletion src/apiserver/model/base.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package model

import (
"git/inspursoft/board/src/common/model"

"github.com/astaxie/beego/orm"
)

func init() {
orm.RegisterModel(new(User))
orm.RegisterModel(new(model.User))
}
4 changes: 2 additions & 2 deletions src/apiserver/service/user.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package service

import (
"apiserver/dao"
"apiserver/model"
"errors"
"git/inspursoft/board/src/apiserver/dao"
"git/inspursoft/board/src/common/model"
"log"
)

Expand Down
71 changes: 0 additions & 71 deletions src/apiserver/vendor/github.com/go-sql-driver/mysql/AUTHORS

This file was deleted.

119 changes: 0 additions & 119 deletions src/apiserver/vendor/github.com/go-sql-driver/mysql/CHANGELOG.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2514ece

Please sign in to comment.