Skip to content

Commit

Permalink
Merge pull request #5 from OVINC-CN/feat_cookiecutter
Browse files Browse the repository at this point in the history
chore: 支持使用CookieCutter初始化
  • Loading branch information
OrenZhang authored Feb 7, 2024
2 parents 730dba2 + 539d67e commit d7a2136
Show file tree
Hide file tree
Showing 41 changed files with 694 additions and 367 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
*.log
.env
3 changes: 3 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"project_name": "project"
}
29 changes: 0 additions & 29 deletions src/configs/db.go

This file was deleted.

30 changes: 0 additions & 30 deletions src/configs/default.go

This file was deleted.

21 changes: 0 additions & 21 deletions src/configs/redis.go

This file was deleted.

37 changes: 0 additions & 37 deletions src/configs/session.go

This file was deleted.

21 changes: 0 additions & 21 deletions src/db/redis.go

This file was deleted.

26 changes: 0 additions & 26 deletions src/middlewares/request.go

This file was deleted.

20 changes: 0 additions & 20 deletions src/middlewares/timout.go

This file was deleted.

98 changes: 0 additions & 98 deletions src/services/account/controls.go

This file was deleted.

12 changes: 0 additions & 12 deletions src/services/account/forms.go

This file was deleted.

14 changes: 0 additions & 14 deletions src/services/account/utils.go

This file was deleted.

20 changes: 0 additions & 20 deletions src/services/home/controls.go

This file was deleted.

4 changes: 4 additions & 0 deletions go.mod → {{cookiecutter.project_name}}/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,23 @@ require (
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/cors v1.5.0 // indirect
github.com/gin-contrib/i18n v1.1.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-sql-driver/mysql v1.7.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/nicksnyder/go-i18n/v2 v2.2.1 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
Expand Down
Loading

0 comments on commit d7a2136

Please sign in to comment.