├── .github └── ISSUE_TEMPLATE │ ├── 1bug.yaml │ ├── 2feature.yaml │ ├── 3consultation.yaml │ └── config.yml ├── .gitignore ├── LICENSE ├── README.md ├── README_cn.md ├── cmd ├── apps │ ├── config.example.yaml │ └── server.go └── main.go ├── dockerfile ├── docs └── images │ └── wechat.jpg ├── go.mod ├── go.sum └── pkg ├── conf └── conf.go ├── logger └── logger.go ├── server ├── auth │ └── acl │ │ ├── acl.go │ │ ├── http.go │ │ ├── perm.go │ │ ├── resource.go │ │ └── role.go ├── controller │ ├── controller.go │ └── hello.go ├── model │ └── hello.go ├── router │ ├── middleware │ │ ├── auth.go │ │ ├── cache.go │ │ ├── itsdangrous.go │ │ ├── log.go │ │ └── middleware.go │ ├── router.go │ └── routers.go └── storage │ ├── cache │ ├── local │ │ └── localcache.go │ └── redis │ │ └── redis.go │ └── db │ └── mysql │ └── mysql.go └── util ├── requests.go └── util.go /.github/ISSUE_TEMPLATE/1bug.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/.github/ISSUE_TEMPLATE/1bug.yaml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/2feature.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/.github/ISSUE_TEMPLATE/2feature.yaml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/3consultation.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/.github/ISSUE_TEMPLATE/3consultation.yaml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/README.md -------------------------------------------------------------------------------- /README_cn.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/README_cn.md -------------------------------------------------------------------------------- /cmd/apps/config.example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/cmd/apps/config.example.yaml -------------------------------------------------------------------------------- /cmd/apps/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/cmd/apps/server.go -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/cmd/main.go -------------------------------------------------------------------------------- /dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/dockerfile -------------------------------------------------------------------------------- /docs/images/wechat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/docs/images/wechat.jpg -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/go.sum -------------------------------------------------------------------------------- /pkg/conf/conf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/conf/conf.go -------------------------------------------------------------------------------- /pkg/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/logger/logger.go -------------------------------------------------------------------------------- /pkg/server/auth/acl/acl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/auth/acl/acl.go -------------------------------------------------------------------------------- /pkg/server/auth/acl/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/auth/acl/http.go -------------------------------------------------------------------------------- /pkg/server/auth/acl/perm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/auth/acl/perm.go -------------------------------------------------------------------------------- /pkg/server/auth/acl/resource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/auth/acl/resource.go -------------------------------------------------------------------------------- /pkg/server/auth/acl/role.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/auth/acl/role.go -------------------------------------------------------------------------------- /pkg/server/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/controller/controller.go -------------------------------------------------------------------------------- /pkg/server/controller/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/controller/hello.go -------------------------------------------------------------------------------- /pkg/server/model/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/model/hello.go -------------------------------------------------------------------------------- /pkg/server/router/middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/middleware/auth.go -------------------------------------------------------------------------------- /pkg/server/router/middleware/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/middleware/cache.go -------------------------------------------------------------------------------- /pkg/server/router/middleware/itsdangrous.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/middleware/itsdangrous.go -------------------------------------------------------------------------------- /pkg/server/router/middleware/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/middleware/log.go -------------------------------------------------------------------------------- /pkg/server/router/middleware/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/middleware/middleware.go -------------------------------------------------------------------------------- /pkg/server/router/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/router.go -------------------------------------------------------------------------------- /pkg/server/router/routers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/router/routers.go -------------------------------------------------------------------------------- /pkg/server/storage/cache/local/localcache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/storage/cache/local/localcache.go -------------------------------------------------------------------------------- /pkg/server/storage/cache/redis/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/storage/cache/redis/redis.go -------------------------------------------------------------------------------- /pkg/server/storage/db/mysql/mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/server/storage/db/mysql/mysql.go -------------------------------------------------------------------------------- /pkg/util/requests.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/util/requests.go -------------------------------------------------------------------------------- /pkg/util/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veops/gin-api-template/HEAD/pkg/util/util.go --------------------------------------------------------------------------------