Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
更新包管理工具
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Jan 27, 2018
1 parent eef060b commit 721f189
Show file tree
Hide file tree
Showing 10,027 changed files with 3,839 additions and 4,635,303 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
447 changes: 447 additions & 0 deletions Gopkg.lock

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/BurntSushi/toml"
version = "0.3.0"

[[constraint]]
branch = "master"
name = "github.com/betacraft/yaag"

[[constraint]]
name = "github.com/dgrijalva/jwt-go"
version = "3.1.0"

[[constraint]]
branch = "master"
name = "github.com/google/go-github"

[[constraint]]
name = "github.com/iris-contrib/middleware"
version = "10.0.0"

[[constraint]]
name = "github.com/jinzhu/gorm"
version = "1.0.0"

[[constraint]]
name = "github.com/kataras/iris"
version = "10.0.0"

[[constraint]]
name = "github.com/mohuishou/scujwc-go"
version = "0.2.1"

[[constraint]]
name = "github.com/mohuishou/sculibrary-go"
version = "0.1.1"

[[constraint]]
branch = "master"
name = "golang.org/x/oauth2"

[[constraint]]
name = "gopkg.in/go-playground/validator.v9"
version = "9.9.3"

[prune]
go-tests = true
unused-packages = true
4 changes: 2 additions & 2 deletions api/library/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ func GetBook(ctx iris.Context) {
model.DB().Where("user_id = ?", uid).Find(&userLibrary)
lib, err := userLibrary.GetLibrary()
if err != nil {
api.Error(ctx, 600401, err.Error(), map[string]interface{}{
api.Error(ctx, 60401, err.Error(), map[string]interface{}{
"verify": userLibrary.Verify,
})
return
}

isHistory := ctx.FormValue("is_history")
isHistory := "1"

books := []sculibrary.LoanBook{}
if isHistory == "1" {
Expand Down
222 changes: 0 additions & 222 deletions glide.lock

This file was deleted.

27 changes: 0 additions & 27 deletions glide.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions route/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ func Routes(app *iris.Application) {
app.Get("/detail/{id}", detail.GetDetail)
app.Post("/classroom", api.GetClassroom)
app.Post("/library/search", library.Search)
app.Get("/library/books", library.GetBook)
app.Post("/library/loan", library.Loan)
}
Loading

0 comments on commit 721f189

Please sign in to comment.