feat 初始化

This commit is contained in:
2026-10-28 21:49:26 +08:00
parent 447705f98b
commit c0ceb4331b
40 changed files with 11262 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
$gen = "gen"
if (!(Test-Path $gen))
{
mkdir $gen | Out-Null
}
$files = Get-ChildItem sources/*.proto | ForEach-Object { $_.Name }
protoc `
--proto_path=sources `
--go_out=$gen `
--go-grpc_out=$gen `
--grpc-gateway_out=$gen `
--openapiv2_out=$gen `
--openapiv2_opt=allow_merge=true,merge_file_name=api,disable_default_errors=true `
$files
$sourcePath = "$gen/git.hlsq.asia/alex/proto/proto/rs"
$targetPath = "../../proto"
Copy-Item -Path $sourcePath -Destination $targetPath -Recurse -Force
Remove-Item -Path "$gen/git.hlsq.asia" -Recurse -Force