增加 atlas

This commit is contained in:
Twilight 2024-07-15 00:02:19 +08:00
parent bf8712be69
commit 65af28d367

View File

@ -8,5 +8,8 @@ grpc-web:
grpcwebproxy --backend_addr=localhost:8081 --run_http_server --run_tls_server=false --server_http_debug_port 18081 --allow_all_origins --server_bind_address 127.0.0.1
install-deps:
go install github.com/swaggo/swag/cmd/swag@latest
curl -sSf https://atlasgo.sh | sh
swag:
swag init -g internal/routes/router.go --parseDependency
swag init -g internal/routes/router.go --parseDependency
hash-migration:
atlas migrate hash --dir "file://internal/migrations"