├── .gitignore ├── README.md ├── config └── config.go ├── docs ├── docs.go ├── swagger.json └── swagger.yaml ├── env-local.yml ├── go.mod ├── go.sum ├── internal ├── core │ ├── mysql.go │ └── redis.go ├── ctrls │ └── user.go ├── middleware │ ├── auth.go │ └── cors.go ├── model │ └── user.go ├── repository │ ├── cache.go │ └── user.go ├── router │ ├── router.go │ └── v1.go └── service │ └── user.go ├── logger └── logger.go ├── main.go └── util ├── constant.go ├── encrypt.go ├── jwt.go ├── parser.go ├── response.go ├── snowflake.go └── valid.go /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.log 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Go Web 脚手架 2 | -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/config/config.go -------------------------------------------------------------------------------- /docs/docs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/docs/docs.go -------------------------------------------------------------------------------- /docs/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/docs/swagger.json -------------------------------------------------------------------------------- /docs/swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/docs/swagger.yaml -------------------------------------------------------------------------------- /env-local.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/env-local.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/go.sum -------------------------------------------------------------------------------- /internal/core/mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/core/mysql.go -------------------------------------------------------------------------------- /internal/core/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/core/redis.go -------------------------------------------------------------------------------- /internal/ctrls/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/ctrls/user.go -------------------------------------------------------------------------------- /internal/middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/middleware/auth.go -------------------------------------------------------------------------------- /internal/middleware/cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/middleware/cors.go -------------------------------------------------------------------------------- /internal/model/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/model/user.go -------------------------------------------------------------------------------- /internal/repository/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/repository/cache.go -------------------------------------------------------------------------------- /internal/repository/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/repository/user.go -------------------------------------------------------------------------------- /internal/router/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/router/router.go -------------------------------------------------------------------------------- /internal/router/v1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/router/v1.go -------------------------------------------------------------------------------- /internal/service/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/internal/service/user.go -------------------------------------------------------------------------------- /logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/logger/logger.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/main.go -------------------------------------------------------------------------------- /util/constant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/constant.go -------------------------------------------------------------------------------- /util/encrypt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/encrypt.go -------------------------------------------------------------------------------- /util/jwt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/jwt.go -------------------------------------------------------------------------------- /util/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/parser.go -------------------------------------------------------------------------------- /util/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/response.go -------------------------------------------------------------------------------- /util/snowflake.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/snowflake.go -------------------------------------------------------------------------------- /util/valid.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miomiora/mio-init/HEAD/util/valid.go --------------------------------------------------------------------------------