1. 打开命令终端安装dolphin(一个集合Golang, web开发的工具)
go get -u github.com/2637309949/dolphin/cmd/dolphin
2. 初始化项目
mkdir hello && cd hello && dolphin init && dolphin build && go run main.go
生成doc会有点慢, 需要等一下
3. 打开hello/app.properties
db.dataSource=root:111111@/dolphin?charset=utf8&parseTime=True&loc=Local
修改数据库配置
4. 运行
[double@manjaro hello]$ go run main.go
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /static/*filepath --> github.com/2637309949/dolphin/packages/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/2637309949/dolphin/packages/gin.(*RouterGroup).createStaticHandler.func1 (2 handlers)
[GIN-debug] POST /api/sys/app/fun/add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/app/fun/batch_add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] DELETE /api/sys/app/fun/del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] DELETE /api/sys/app/fun/batch_del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/app/fun/update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/app/fun/batch_update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/app/fun/page --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/app/fun/tree --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/app/fun/get --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/area/add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/area/batch_add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] DELETE /api/sys/area/del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] DELETE /api/sys/area/batch_del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/area/update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/area/batch_update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/area/page --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/area/get --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/attachment/add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/attachment/batch_add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/attachment/upload --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/attachment/export --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] DELETE /api/sys/attachment/del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/attachment/batch_del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/attachment/update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/attachment/batch_update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/attachment/page --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/attachment/get --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/cas/login --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/logout --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] POST /api/sys/cas/affirm --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/authorize --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] POST /api/sys/cas/token --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/url --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/oauth2 --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/refresh --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/check --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] GET /api/sys/cas/profile --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/cas/qrcode --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (5 handlers)
[GIN-debug] POST /api/sys/client/add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/client/batch_add --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] DELETE /api/sys/client/del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] DELETE /api/sys/client/batch_del --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/client/update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] PUT /api/sys/client/batch_update --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/client/page --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] GET /api/sys/client/get --> github.com/2637309949/dolphin/platform/app.(*Engine).HandlerFunc.func1 (6 handlers)
[GIN-debug] POST /api/sys/comment/add -->