File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 2525> 登录显示前端报错 405 Not Allowed:
2626 ```
2727默认端口为 8081,如果修改了端口。需要下载 [IrisApiVueAdmin](https://github.com/snowlyg/IrisApiVueAdmin) 项目修改端口后覆盖前端代码
28+ ```
29+
30+ > 启动报错 panic: reflect: call of reflect.Value.Bool on interface Value
31+ > 更新 github.com/snowlyg/gotransformer 包到最新版本
32+ ```
33+ go get github.com/snowlyg/gotransformer@latest
34+ ```
Original file line number Diff line number Diff line change @@ -7,21 +7,21 @@ Charset = "UTF-8"
77
88[Other]
99 [Other.App]
10- Name = "IrisAdminApi"
10+ Name = "IrisAdminApi" #项目名称
1111 URl = "http://localhost"
1212 Port = ":8081"
1313 LoggerLevel = "disable" # 日志类型 "disable" "fatal" "error" "warn""info" "debug"
1414 DirverType = "Sqlite" # 数据库类型 "Sqlite" "Mysql"
1515 CreateSysData = true # 是否创建系统数据 true / false
1616 [Other.Mysql]
17- DirverName = "mysql"
17+ DirverName = "mysql" # 数据库驱动名称
1818 Connect ="root:passwrod@(127.0.0.1:3306)/"
19- Name ="iris"
20- TName ="iris_test"
19+ Name ="iris" # 数据库名称
20+ TName ="iris_test" # 测试数据库名称
2121 [Other.Mongodb]
2222 Connect = "mongodb://root:
[email protected] :27017/admin"
2323 [Other.Sqlite]
24- DirverName = "sqlite3"
24+ DirverName = "sqlite3" # 数据库驱动名称
2525 Connect = "./tmp/gorm.db"
2626 TConnect = "./tmp/tgorm.db"
2727# [Other.Redis]
@@ -30,6 +30,6 @@ Charset = "UTF-8"
3030# DB = "0"
3131
3232 [Other.TestData]
33- UserName = "username"
34- Name = "name"
35- Pwd = "password"
33+ UserName = "username" #管理员用户名
34+ Name = "name" #管理员名称
35+ Pwd = "password" #管理员密码
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ require (
2323 github.com/onsi/gomega v1.8.1 // indirect
2424 github.com/satori/go.uuid v1.2.0
2525 github.com/smartystreets/goconvey v1.6.4 // indirect
26- github.com/snowlyg/gotransformer v0.0.0-20200110152229-9bd5bc642e46
26+ github.com/snowlyg/gotransformer v0.0.0-20200113053933-95313ccbc2fb
2727 github.com/valyala/fasthttp v1.7.1 // indirect
2828 github.com/yudai/pp v2.0.1+incompatible // indirect
2929 gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
Original file line number Diff line number Diff line change @@ -283,8 +283,8 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykE
283283github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d /go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc =
284284github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s =
285285github.com/smartystreets/goconvey v1.6.4 /go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA =
286- github.com/snowlyg/gotransformer v0.0.0-20200110152229-9bd5bc642e46 h1:RwEPYEuKsfmLrzghM070iP/6l+9yjEQoLiJtzYRFxEU =
287- github.com/snowlyg/gotransformer v0.0.0-20200110152229-9bd5bc642e46 /go.mod h1:XQTsi1E7BSdtkFtsDNh0bLb7cooz/MfqoJws4FFIwYE =
286+ github.com/snowlyg/gotransformer v0.0.0-20200113053933-95313ccbc2fb h1:S2a0THQScsunmNb2Cb6cqSPGEIWG8UiM7m06F0xviAQ =
287+ github.com/snowlyg/gotransformer v0.0.0-20200113053933-95313ccbc2fb /go.mod h1:XQTsi1E7BSdtkFtsDNh0bLb7cooz/MfqoJws4FFIwYE =
288288github.com/spf13/afero v1.1.2 /go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ =
289289github.com/spf13/cast v1.3.0 /go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE =
290290github.com/spf13/cobra v0.0.5 /go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU =
You can’t perform that action at this time.
0 commit comments