2024-05-17 22:34:55 +00:00
|
|
|
generate:
|
|
|
|
rm -rf proto
|
|
|
|
mkdir -p proto
|
|
|
|
|
|
|
|
protoc -I ./api \
|
|
|
|
--go_out ./proto --go_opt paths=source_relative \
|
|
|
|
--go-grpc_out ./proto --go-grpc_opt paths=source_relative \
|
|
|
|
--grpc-gateway_out ./proto --grpc-gateway_opt paths=source_relative \
|
|
|
|
--swagger_out=allow_merge=true,merge_file_name=main:./proto \
|
|
|
|
./api/main.proto
|
2024-05-18 06:16:57 +00:00
|
|
|
|
|
|
|
run:
|
|
|
|
go run ./cmd/cake_crm/main.go
|