Giter Site home page Giter Site logo

snowlyg / iris-admin Goto Github PK

View Code? Open in Web Editor NEW
693.0 19.0 168.0 6.12 MB

Web admin for go framework [gin/iris]

Home Page: https://github.com/snowlyg/iris-admin

License: Apache License 2.0

Go 100.00%
iris gorm go httptest excel iris-api apidoc casbin docker docker-compose golang gin redis

iris-admin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iris-admin's Issues

数据库表

hello 我想运行一下,默认里面的是mysql,可是没有数据库的表文件, mysql的数据表能发一份吗?

测试不通过

运行go test -v 没有通过呢, 好像有类型错误的问题

系统macOS
golang版本 1.12

# IrisApiProject [IrisApiProject.test] ./base_test.go:175:30: cannot use testPerms (type []"IrisApiProject/models".Permission) as type []uint in argument to "IrisApiProject/models".CreateRole FAIL IrisApiProject [build failed]

新手请教

作者您好,我是刚学go不久,算接口仔的程度吧,然后这个东西拿上手不知道应该怎么使用好,文档很精简,但是我可能要写可看着操作的视频之类的东西,请问哪里可以找到啊

mac 下 ,执行run 命令 结果

mac 下 ,执行run 命令 结果

[~/www/dnmp/www/go/IrisApiProject]$ go run main.go                                                                                                                                          *[master]
go: finding github.com/betacraft/yaag v1.0.0
go: downloading github.com/kataras/iris v11.1.1+incompatible
go: downloading github.com/betacraft/yaag v1.0.0
go: extracting github.com/betacraft/yaag v1.0.0
go: extracting github.com/kataras/iris v11.1.1+incompatible
go: github.com/betacraft/[email protected] requires
	github.com/flosch/[email protected] requires
	github.com/go-check/[email protected]: invalid pseudo-version: major version without preceding tag must be v0, not v1

api文档没有

api文档是自动生成的还是本来需要有index.html才行呢

前端代码请求发起两次

每次发起请求都会发起两次,第一次不带Authorization,第二次带Authorization.

控制台报错:
vue.esm.js:1741 TypeError: Cannot read property 'orders' of undefined
PermissionsMange.vue:155 Uncaught (in promise) TypeError: Cannot read property 'pageSize' of undefined

请问如何更名?

你好,我想把IrisApiProject更改成实际的项目名称,请问如何操作呢?

gowatch 后出现问题

2019/03/14 11:17:44 gowatch.go:111: [INFO] Start building...
2019/03/14 11:17:45 gowatch.go:136: [INFO] Build was successful
2019/03/14 11:17:45 gowatch.go:161: [INFO] Restarting ./IrisApiProject ...
2019/03/14 11:17:45 gowatch.go:173: [INFO] ./IrisApiProject is running...
panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
IrisApiProject/database.New(0x433d445)
/Users/lucifer/Projects/Go/src/IrisApiProject/database/database.go:37 +0x5ed
IrisApiProject/database.init.ializers()
/Users/lucifer/Projects/Go/src/IrisApiProject/database/database.go:15 +0x22

没有使用redis缓存

我看了下代码,好像没有用到redis,实际jwt信息是存在mysql里的,redis里空荡荡的。

登录管理员账号报错

重复初始化权限
重复初始化角色
重复初始化账号
Now listening on: http://0.0.0.0:8081
Application started. Press CTRL+C to shut down.
[HTTP Server] http: panic serving [::1]:5203: reflect: call of reflect.Value.Interface on zero Value
image

使用的是 go mod ,运行报错

报错信息:
routes/route.go:21:20: cannot use crs (type "github.com/kataras/iris/v12/context".Handler) as type "github.com/kataras/iris/context".Handler in argument to api.APIBuilder.Party routes/route.go:28:23: cannot use crs (type "github.com/kataras/iris/v12/context".Handler) as type "github.com/kataras/iris/context".Handler in argument to api.APIBuilder.Party routes/route.go:33:18: cannot use crs (type "github.com/kataras/iris/v12/context".Handler) as type "github.com/kataras/iris/context".Handler in argument to api.APIBuilder.Party routes/route.go:38:37: cannot use middleware.JwtHandler().Serve (type func("github.com/kataras/iris/v12/context".Context)) as type "github.com/kataras/iris/context".Handler in argument to admin.Use

我尝试着去把 iris 改成 v12 运行也会报错

  1. clone项目,go.mod没有clone下来,遂执行

go mod init IrisApiProject

  1. copy您的项目里的go.mod 然后执行

go mod tidy

  1. 上面两步都没有问题,然后执行
    go run main.go

然后就报错了

exec: "gcc": executable file not found in %PATH%

我本地下载了tdm-gcc,
如图命令行也能用gcc.exe的命令
image为啥项目启动还是报标题的错误啊
错误如下

# github.com/mattn/go-sqlite3
exec: "gcc": executable file not found in %PATH%

yaag module 404 Not Found

when I try install the modules in MAC
I got this error:

go: github.com/betacraft/[email protected] requires
	github.com/flosch/[email protected] requires
	github.com/go-check/[email protected]: reading https://goproxy.io/github.com/go-check/check/@v/v1.0.0-20180628173108-788fd7840127.mod: 404 Not Found

when I try to update the gopm

[GOPM] 12-19 17:10:52 [ INFO] App Version: 0.8.8.0307 Beta
[GOPM] 12-19 17:10:52 [ INFO] Local repository path: /Users/zer0like/.gopm/repos
[GOPM] 12-19 17:10:52 [ INFO] Indicated GOPATH: /Users/zer0like/go
[GOPM] 12-19 17:10:58 [ INFO] Updating pkgname.list...0 > 201409140
[GOPM] 12-19 17:11:08 [ WARN] Fail to update pkgname.list: fail to make request: Get https://raw.githubusercontent.com/gpmgo/docs/master/pkgname.list: dial tcp 151.101.228.133:443: i/o timeout
[GOPM] 12-19 17:11:08 [ INFO] Nothing need to be updated
[GOPM] 12-19 17:11:08 [ INFO] Exit old gopm

maybe it is the problem of the yaag, but I can't fix it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.