├── .env.example ├── .gitignore ├── Dockerfile ├── Makefile ├── README.md ├── core ├── cache │ └── cache.go ├── config │ └── config.go ├── constants │ ├── constants.go │ └── topic_constants.go ├── controller │ └── controller.go ├── database │ ├── postgresql.go │ └── redis.go ├── dto │ └── dto.go ├── entity │ └── entity.go ├── errors │ ├── app_error.go │ └── error_code.go ├── kafka │ └── client.go ├── logger │ └── logger.go ├── middleware │ └── middleware.go ├── params │ └── params.go ├── server │ └── server.go ├── storage │ └── r2Client.go ├── utils │ ├── email.go │ ├── id.go │ ├── image.go │ ├── order.go │ ├── otp.go │ ├── password.go │ ├── phone.go │ ├── redis.go │ ├── string.go │ ├── token.go │ └── url.go └── validation │ └── validation.go ├── docker-compose.yml ├── go.mod ├── go.sum ├── main.go ├── modules ├── auth │ ├── controller │ │ ├── auth_controller.go │ │ ├── controller.go │ │ ├── oauth_provider_controller.go │ │ ├── permission_controller.go │ │ ├── role_controller.go │ │ ├── role_permission_controller.go │ │ ├── social_login_controller.go │ │ ├── user_controller.go │ │ ├── user_profile_controller.go │ │ └── user_role_controller.go │ ├── dto │ │ ├── oauth_provider_dto.go │ │ ├── permission_dto.go │ │ ├── role_dto.go │ │ ├── role_permission_dto.go │ │ ├── social_login_dto.go │ │ ├── user_dto.go │ │ ├── user_permission_dto.go │ │ ├── user_profile_dto.go │ │ └── user_role_dto.go │ ├── entity │ │ ├── oauth_provider_entity.go │ │ ├── permission_entity.go │ │ ├── role_entity.go │ │ ├── role_permission_entity.go │ │ ├── social_login_entity.go │ │ ├── user_entity.go │ │ ├── user_permission_entity.go │ │ ├── user_profile_entity.go │ │ └── user_role.entity.go │ ├── mapper │ │ ├── oauth_provider_mapper.go │ │ ├── permission_mapper.go │ │ ├── role_mapper.go │ │ ├── role_permission_mapper.go │ │ ├── social_login_mapper.go │ │ ├── user_mapper.go │ │ ├── user_permission_mapper.go │ │ ├── user_profile_mapper.go │ │ └── user_role_mapper.go │ ├── module.go │ ├── repository │ │ ├── oauth_provider_repository.go │ │ ├── permission_repository.go │ │ ├── repository.go │ │ ├── role_permission_repository.go │ │ ├── role_repository.go │ │ ├── social_login_repository.go │ │ ├── user_permission_repository.go │ │ ├── user_profile_repository.go │ │ ├── user_repository.go │ │ └── user_role_repository.go │ ├── router │ │ └── router.go │ ├── service │ │ ├── auth_service.go │ │ ├── oauth_provider_service.go │ │ ├── permission_service.go │ │ ├── role_permission_service.go │ │ ├── role_service.go │ │ ├── service.go │ │ ├── social_login_service.go │ │ ├── user_permission_service.go │ │ ├── user_profile_service.go │ │ ├── user_role_service.go │ │ └── user_service.go │ └── validator │ │ └── validator.go ├── product │ ├── controller │ │ ├── benefit_controller.go │ │ ├── brand_controller.go │ │ ├── category_controller.go │ │ ├── controller.go │ │ ├── ingredient_controller.go │ │ ├── location_controller.go │ │ ├── order_controller.go │ │ ├── payment_controller.go │ │ ├── product_controller.go │ │ ├── shipping_method.go │ │ ├── skin_type_controller.go │ │ ├── tag_controller.go │ │ └── wishlist_controller.go │ ├── dto │ │ ├── benefit_dto.go │ │ ├── brand_dto.go │ │ ├── category_dto.go │ │ ├── ingredient_dto.go │ │ ├── location_dto.go │ │ ├── order_dto.go │ │ ├── payment_method.go │ │ ├── product_dto.go │ │ ├── shipping_method.go │ │ ├── skin_type_dto.go │ │ ├── tag_dto.go │ │ └── wishlist_dto.go │ ├── entity │ │ ├── benefit_entity.go │ │ ├── brand_entity.go │ │ ├── category_entity.go │ │ ├── ingredient_entity.go │ │ ├── location_entity.go │ │ ├── order_entity.go │ │ ├── payment_method.go │ │ ├── product_entity.go │ │ ├── shipping_method.go │ │ ├── skin_type_entity.go │ │ ├── tag_entity.go │ │ └── wishlist_entity.go │ ├── mapper │ │ ├── benefit_mapper.go │ │ ├── brand_mapper.go │ │ ├── category_mapper.go │ │ ├── ingredient_mapper.go │ │ ├── location_mapper.go │ │ ├── order_mapper.go │ │ ├── payment_method.go │ │ ├── product_mapper.go │ │ ├── shipping_method.go │ │ ├── skin_type_mapper.go │ │ ├── tag_mapper.go │ │ └── wishlist_mapper.go │ ├── module.go │ ├── repository │ │ ├── benefit_repository.go │ │ ├── brand_repository.go │ │ ├── category_repository.go │ │ ├── ingredient_repository.go │ │ ├── location_repository.go │ │ ├── order_repository.go │ │ ├── payment_method.go │ │ ├── product_repository.go │ │ ├── repository.go │ │ ├── shipping_method.go │ │ ├── skin_type_repository.go │ │ ├── tag_repository.go │ │ └── wishlist_repository.go │ ├── router │ │ └── router.go │ ├── service │ │ ├── benefit_service.go │ │ ├── brand_service.go │ │ ├── category_service.go │ │ ├── ingredient_service.go │ │ ├── location_service.go │ │ ├── order_service.go │ │ ├── payment_method.go │ │ ├── product_service.go │ │ ├── service.go │ │ ├── shipping_method.go │ │ ├── skin_type_service.go │ │ ├── tag_service.go │ │ └── wishlist_service.go │ └── validator │ │ └── validator.go └── storage │ ├── controller │ ├── controller.go │ └── storage_controller.go │ ├── dto │ └── storage.go │ ├── entity │ └── entity.go │ ├── mapper │ └── mapper.go │ ├── module.go │ ├── repository │ ├── repository.go │ └── storage_repository.go │ ├── router │ └── router.go │ └── service │ ├── r2_service.go │ ├── service.go │ └── storage_service.go ├── templates ├── otp_email.html └── reset_password.html └── workers ├── email_delivery_task.go └── worker.go /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/README.md -------------------------------------------------------------------------------- /core/cache/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/cache/cache.go -------------------------------------------------------------------------------- /core/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/config/config.go -------------------------------------------------------------------------------- /core/constants/constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/constants/constants.go -------------------------------------------------------------------------------- /core/constants/topic_constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/constants/topic_constants.go -------------------------------------------------------------------------------- /core/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/controller/controller.go -------------------------------------------------------------------------------- /core/database/postgresql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/database/postgresql.go -------------------------------------------------------------------------------- /core/database/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/database/redis.go -------------------------------------------------------------------------------- /core/dto/dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/dto/dto.go -------------------------------------------------------------------------------- /core/entity/entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/entity/entity.go -------------------------------------------------------------------------------- /core/errors/app_error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/errors/app_error.go -------------------------------------------------------------------------------- /core/errors/error_code.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/errors/error_code.go -------------------------------------------------------------------------------- /core/kafka/client.go: -------------------------------------------------------------------------------- 1 | package kafka 2 | -------------------------------------------------------------------------------- /core/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/logger/logger.go -------------------------------------------------------------------------------- /core/middleware/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/middleware/middleware.go -------------------------------------------------------------------------------- /core/params/params.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/params/params.go -------------------------------------------------------------------------------- /core/server/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/server/server.go -------------------------------------------------------------------------------- /core/storage/r2Client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/storage/r2Client.go -------------------------------------------------------------------------------- /core/utils/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/email.go -------------------------------------------------------------------------------- /core/utils/id.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/id.go -------------------------------------------------------------------------------- /core/utils/image.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/image.go -------------------------------------------------------------------------------- /core/utils/order.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/order.go -------------------------------------------------------------------------------- /core/utils/otp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/otp.go -------------------------------------------------------------------------------- /core/utils/password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/password.go -------------------------------------------------------------------------------- /core/utils/phone.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/phone.go -------------------------------------------------------------------------------- /core/utils/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/redis.go -------------------------------------------------------------------------------- /core/utils/string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/string.go -------------------------------------------------------------------------------- /core/utils/token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/token.go -------------------------------------------------------------------------------- /core/utils/url.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/utils/url.go -------------------------------------------------------------------------------- /core/validation/validation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/core/validation/validation.go -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/main.go -------------------------------------------------------------------------------- /modules/auth/controller/auth_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/auth_controller.go -------------------------------------------------------------------------------- /modules/auth/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/controller.go -------------------------------------------------------------------------------- /modules/auth/controller/oauth_provider_controller.go: -------------------------------------------------------------------------------- 1 | package controller 2 | -------------------------------------------------------------------------------- /modules/auth/controller/permission_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/permission_controller.go -------------------------------------------------------------------------------- /modules/auth/controller/role_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/role_controller.go -------------------------------------------------------------------------------- /modules/auth/controller/role_permission_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/role_permission_controller.go -------------------------------------------------------------------------------- /modules/auth/controller/social_login_controller.go: -------------------------------------------------------------------------------- 1 | package controller -------------------------------------------------------------------------------- /modules/auth/controller/user_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/user_controller.go -------------------------------------------------------------------------------- /modules/auth/controller/user_profile_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/user_profile_controller.go -------------------------------------------------------------------------------- /modules/auth/controller/user_role_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/controller/user_role_controller.go -------------------------------------------------------------------------------- /modules/auth/dto/oauth_provider_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/oauth_provider_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/permission_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/permission_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/role_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/role_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/role_permission_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/role_permission_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/social_login_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/social_login_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/user_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/user_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/user_permission_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/user_permission_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/user_profile_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/user_profile_dto.go -------------------------------------------------------------------------------- /modules/auth/dto/user_role_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/dto/user_role_dto.go -------------------------------------------------------------------------------- /modules/auth/entity/oauth_provider_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/oauth_provider_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/permission_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/permission_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/role_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/role_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/role_permission_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/role_permission_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/social_login_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/social_login_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/user_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/user_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/user_permission_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/user_permission_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/user_profile_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/user_profile_entity.go -------------------------------------------------------------------------------- /modules/auth/entity/user_role.entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/entity/user_role.entity.go -------------------------------------------------------------------------------- /modules/auth/mapper/oauth_provider_mapper.go: -------------------------------------------------------------------------------- 1 | package mapper 2 | -------------------------------------------------------------------------------- /modules/auth/mapper/permission_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/mapper/permission_mapper.go -------------------------------------------------------------------------------- /modules/auth/mapper/role_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/mapper/role_mapper.go -------------------------------------------------------------------------------- /modules/auth/mapper/role_permission_mapper.go: -------------------------------------------------------------------------------- 1 | package mapper 2 | -------------------------------------------------------------------------------- /modules/auth/mapper/social_login_mapper.go: -------------------------------------------------------------------------------- 1 | package mapper 2 | -------------------------------------------------------------------------------- /modules/auth/mapper/user_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/mapper/user_mapper.go -------------------------------------------------------------------------------- /modules/auth/mapper/user_permission_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/mapper/user_permission_mapper.go -------------------------------------------------------------------------------- /modules/auth/mapper/user_profile_mapper.go: -------------------------------------------------------------------------------- 1 | package mapper 2 | -------------------------------------------------------------------------------- /modules/auth/mapper/user_role_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/mapper/user_role_mapper.go -------------------------------------------------------------------------------- /modules/auth/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/module.go -------------------------------------------------------------------------------- /modules/auth/repository/oauth_provider_repository.go: -------------------------------------------------------------------------------- 1 | package repository 2 | -------------------------------------------------------------------------------- /modules/auth/repository/permission_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/permission_repository.go -------------------------------------------------------------------------------- /modules/auth/repository/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/repository.go -------------------------------------------------------------------------------- /modules/auth/repository/role_permission_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/role_permission_repository.go -------------------------------------------------------------------------------- /modules/auth/repository/role_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/role_repository.go -------------------------------------------------------------------------------- /modules/auth/repository/social_login_repository.go: -------------------------------------------------------------------------------- 1 | package repository 2 | -------------------------------------------------------------------------------- /modules/auth/repository/user_permission_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/user_permission_repository.go -------------------------------------------------------------------------------- /modules/auth/repository/user_profile_repository.go: -------------------------------------------------------------------------------- 1 | package repository 2 | -------------------------------------------------------------------------------- /modules/auth/repository/user_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/user_repository.go -------------------------------------------------------------------------------- /modules/auth/repository/user_role_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/repository/user_role_repository.go -------------------------------------------------------------------------------- /modules/auth/router/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/router/router.go -------------------------------------------------------------------------------- /modules/auth/service/auth_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/auth_service.go -------------------------------------------------------------------------------- /modules/auth/service/oauth_provider_service.go: -------------------------------------------------------------------------------- 1 | package service 2 | -------------------------------------------------------------------------------- /modules/auth/service/permission_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/permission_service.go -------------------------------------------------------------------------------- /modules/auth/service/role_permission_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/role_permission_service.go -------------------------------------------------------------------------------- /modules/auth/service/role_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/role_service.go -------------------------------------------------------------------------------- /modules/auth/service/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/service.go -------------------------------------------------------------------------------- /modules/auth/service/social_login_service.go: -------------------------------------------------------------------------------- 1 | package service 2 | -------------------------------------------------------------------------------- /modules/auth/service/user_permission_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/user_permission_service.go -------------------------------------------------------------------------------- /modules/auth/service/user_profile_service.go: -------------------------------------------------------------------------------- 1 | package service 2 | -------------------------------------------------------------------------------- /modules/auth/service/user_role_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/user_role_service.go -------------------------------------------------------------------------------- /modules/auth/service/user_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/service/user_service.go -------------------------------------------------------------------------------- /modules/auth/validator/validator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/auth/validator/validator.go -------------------------------------------------------------------------------- /modules/product/controller/benefit_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/benefit_controller.go -------------------------------------------------------------------------------- /modules/product/controller/brand_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/brand_controller.go -------------------------------------------------------------------------------- /modules/product/controller/category_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/category_controller.go -------------------------------------------------------------------------------- /modules/product/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/controller.go -------------------------------------------------------------------------------- /modules/product/controller/ingredient_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/ingredient_controller.go -------------------------------------------------------------------------------- /modules/product/controller/location_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/location_controller.go -------------------------------------------------------------------------------- /modules/product/controller/order_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/order_controller.go -------------------------------------------------------------------------------- /modules/product/controller/payment_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/payment_controller.go -------------------------------------------------------------------------------- /modules/product/controller/product_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/product_controller.go -------------------------------------------------------------------------------- /modules/product/controller/shipping_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/shipping_method.go -------------------------------------------------------------------------------- /modules/product/controller/skin_type_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/skin_type_controller.go -------------------------------------------------------------------------------- /modules/product/controller/tag_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/tag_controller.go -------------------------------------------------------------------------------- /modules/product/controller/wishlist_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/controller/wishlist_controller.go -------------------------------------------------------------------------------- /modules/product/dto/benefit_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/benefit_dto.go -------------------------------------------------------------------------------- /modules/product/dto/brand_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/brand_dto.go -------------------------------------------------------------------------------- /modules/product/dto/category_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/category_dto.go -------------------------------------------------------------------------------- /modules/product/dto/ingredient_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/ingredient_dto.go -------------------------------------------------------------------------------- /modules/product/dto/location_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/location_dto.go -------------------------------------------------------------------------------- /modules/product/dto/order_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/order_dto.go -------------------------------------------------------------------------------- /modules/product/dto/payment_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/payment_method.go -------------------------------------------------------------------------------- /modules/product/dto/product_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/product_dto.go -------------------------------------------------------------------------------- /modules/product/dto/shipping_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/shipping_method.go -------------------------------------------------------------------------------- /modules/product/dto/skin_type_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/skin_type_dto.go -------------------------------------------------------------------------------- /modules/product/dto/tag_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/tag_dto.go -------------------------------------------------------------------------------- /modules/product/dto/wishlist_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/dto/wishlist_dto.go -------------------------------------------------------------------------------- /modules/product/entity/benefit_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/benefit_entity.go -------------------------------------------------------------------------------- /modules/product/entity/brand_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/brand_entity.go -------------------------------------------------------------------------------- /modules/product/entity/category_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/category_entity.go -------------------------------------------------------------------------------- /modules/product/entity/ingredient_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/ingredient_entity.go -------------------------------------------------------------------------------- /modules/product/entity/location_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/location_entity.go -------------------------------------------------------------------------------- /modules/product/entity/order_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/order_entity.go -------------------------------------------------------------------------------- /modules/product/entity/payment_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/payment_method.go -------------------------------------------------------------------------------- /modules/product/entity/product_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/product_entity.go -------------------------------------------------------------------------------- /modules/product/entity/shipping_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/shipping_method.go -------------------------------------------------------------------------------- /modules/product/entity/skin_type_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/skin_type_entity.go -------------------------------------------------------------------------------- /modules/product/entity/tag_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/tag_entity.go -------------------------------------------------------------------------------- /modules/product/entity/wishlist_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/entity/wishlist_entity.go -------------------------------------------------------------------------------- /modules/product/mapper/benefit_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/benefit_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/brand_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/brand_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/category_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/category_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/ingredient_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/ingredient_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/location_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/location_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/order_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/order_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/payment_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/payment_method.go -------------------------------------------------------------------------------- /modules/product/mapper/product_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/product_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/shipping_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/shipping_method.go -------------------------------------------------------------------------------- /modules/product/mapper/skin_type_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/skin_type_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/tag_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/tag_mapper.go -------------------------------------------------------------------------------- /modules/product/mapper/wishlist_mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/mapper/wishlist_mapper.go -------------------------------------------------------------------------------- /modules/product/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/module.go -------------------------------------------------------------------------------- /modules/product/repository/benefit_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/benefit_repository.go -------------------------------------------------------------------------------- /modules/product/repository/brand_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/brand_repository.go -------------------------------------------------------------------------------- /modules/product/repository/category_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/category_repository.go -------------------------------------------------------------------------------- /modules/product/repository/ingredient_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/ingredient_repository.go -------------------------------------------------------------------------------- /modules/product/repository/location_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/location_repository.go -------------------------------------------------------------------------------- /modules/product/repository/order_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/order_repository.go -------------------------------------------------------------------------------- /modules/product/repository/payment_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/payment_method.go -------------------------------------------------------------------------------- /modules/product/repository/product_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/product_repository.go -------------------------------------------------------------------------------- /modules/product/repository/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/repository.go -------------------------------------------------------------------------------- /modules/product/repository/shipping_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/shipping_method.go -------------------------------------------------------------------------------- /modules/product/repository/skin_type_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/skin_type_repository.go -------------------------------------------------------------------------------- /modules/product/repository/tag_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/tag_repository.go -------------------------------------------------------------------------------- /modules/product/repository/wishlist_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/repository/wishlist_repository.go -------------------------------------------------------------------------------- /modules/product/router/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/router/router.go -------------------------------------------------------------------------------- /modules/product/service/benefit_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/benefit_service.go -------------------------------------------------------------------------------- /modules/product/service/brand_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/brand_service.go -------------------------------------------------------------------------------- /modules/product/service/category_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/category_service.go -------------------------------------------------------------------------------- /modules/product/service/ingredient_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/ingredient_service.go -------------------------------------------------------------------------------- /modules/product/service/location_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/location_service.go -------------------------------------------------------------------------------- /modules/product/service/order_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/order_service.go -------------------------------------------------------------------------------- /modules/product/service/payment_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/payment_method.go -------------------------------------------------------------------------------- /modules/product/service/product_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/product_service.go -------------------------------------------------------------------------------- /modules/product/service/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/service.go -------------------------------------------------------------------------------- /modules/product/service/shipping_method.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/shipping_method.go -------------------------------------------------------------------------------- /modules/product/service/skin_type_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/skin_type_service.go -------------------------------------------------------------------------------- /modules/product/service/tag_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/tag_service.go -------------------------------------------------------------------------------- /modules/product/service/wishlist_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/service/wishlist_service.go -------------------------------------------------------------------------------- /modules/product/validator/validator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/product/validator/validator.go -------------------------------------------------------------------------------- /modules/storage/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/controller/controller.go -------------------------------------------------------------------------------- /modules/storage/controller/storage_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/controller/storage_controller.go -------------------------------------------------------------------------------- /modules/storage/dto/storage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/dto/storage.go -------------------------------------------------------------------------------- /modules/storage/entity/entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/entity/entity.go -------------------------------------------------------------------------------- /modules/storage/mapper/mapper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/mapper/mapper.go -------------------------------------------------------------------------------- /modules/storage/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/module.go -------------------------------------------------------------------------------- /modules/storage/repository/repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/repository/repository.go -------------------------------------------------------------------------------- /modules/storage/repository/storage_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/repository/storage_repository.go -------------------------------------------------------------------------------- /modules/storage/router/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/router/router.go -------------------------------------------------------------------------------- /modules/storage/service/r2_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/service/r2_service.go -------------------------------------------------------------------------------- /modules/storage/service/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/service/service.go -------------------------------------------------------------------------------- /modules/storage/service/storage_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/modules/storage/service/storage_service.go -------------------------------------------------------------------------------- /templates/otp_email.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/templates/otp_email.html -------------------------------------------------------------------------------- /templates/reset_password.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/templates/reset_password.html -------------------------------------------------------------------------------- /workers/email_delivery_task.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/workers/email_delivery_task.go -------------------------------------------------------------------------------- /workers/worker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nguyentuan1696/go-api-starter/HEAD/workers/worker.go --------------------------------------------------------------------------------