feat: refactor.
This commit is contained in:
22
api/buf.gen.yaml
Normal file
22
api/buf.gen.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
# 配置protoc生成规则
|
||||
version: v1
|
||||
|
||||
managed:
|
||||
enabled: true
|
||||
optimize_for: SPEED
|
||||
|
||||
go_package_prefix:
|
||||
default: github.com/tx7do/kratos-bootstrap/api/gen/go
|
||||
except:
|
||||
- 'buf.build/googleapis/googleapis'
|
||||
- 'buf.build/envoyproxy/protoc-gen-validate'
|
||||
- 'buf.build/kratos/apis'
|
||||
- 'buf.build/gnostic/gnostic'
|
||||
- 'buf.build/gogo/protobuf'
|
||||
|
||||
plugins:
|
||||
# generate go struct code
|
||||
#- plugin: buf.build/protocolbuffers/go
|
||||
- name: go
|
||||
out: gen/go
|
||||
opt: paths=source_relative
|
||||
Reference in New Issue
Block a user