snowlyg / iris-admin Goto Github PK
View Code? Open in Web Editor NEWWeb admin for go framework [gin/iris]
Home Page: https://github.com/snowlyg/iris-admin
License: Apache License 2.0
Web admin for go framework [gin/iris]
Home Page: https://github.com/snowlyg/iris-admin
License: Apache License 2.0
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]
api 怎么集成swagger-ui,类似beego一样
作者您好,我是刚学go不久,算接口仔的程度吧,然后这个东西拿上手不知道应该怎么使用好,文档很精简,但是我可能要写可看着操作的视频之类的东西,请问哪里可以找到啊
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文档是自动生成的还是本来需要有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
其他的接口都正常,就{id,uint}这种接口都报Forbidden,求问要怎么调试?
你好,我想把IrisApiProject更改成实际的项目名称,请问如何操作呢?
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
IRIS-ADMIN-DOC 无法打开
我看了下代码,好像没有用到redis,实际jwt信息是存在mysql里的,redis里空荡荡的。
@snowlyg 你好。看了下你的文章生成的权限表是这样的。 但是casbin默认生成的都是v0 v1 v2 v3
这样的。这个是如何做的?
重复初始化权限
重复初始化角色
重复初始化账号
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
报错信息:
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 运行也会报错
go mod init IrisApiProject
go mod tidy
go run main.go
然后就报错了
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.