jason 9419c891fd change 2 years ago
..
v1 9419c891fd change 2 years ago
ReadMe.md b3140537ff init 2 years ago
common_service.pb.go 132a86b412 change 2 years ago
common_service.proto 132a86b412 change 2 years ago
device_service.pb.go 0ad4494470 二维码收款 2 years ago
device_service.proto b3140537ff init 2 years ago
garden_service.pb.go 3a132ee363 社区邻里 2 years ago
garden_service.proto 3a132ee363 社区邻里 2 years ago
household_service.pb.go 0ad4494470 二维码收款 2 years ago
household_service.proto b3140537ff init 2 years ago
property_log_service.pb.go 0ad4494470 二维码收款 2 years ago
property_log_service.proto b3140537ff init 2 years ago
setup.go 3447300f65 etcd 2 years ago
system_service.pb.go 0ad4494470 二维码收款 2 years ago
system_service.proto b3140537ff init 2 years ago
thirdparty_service.pb.go 0ad4494470 二维码收款 2 years ago
thirdparty_service.proto b3140537ff init 2 years ago

ReadMe.md

必要条件

  1. 下载与安装protoc工具

    https://github.com/protocolbuffers/protobuf/releases

  2. 安装protoc Go插件:protoc-gen-go

    方式1(默认带omitempty):

    go get -u github.com/golang/protobuf/protoc-gen-go
    

    方式2(不带omitempty):

    cd mod /github.com/golang/protobuf@v1.3.4/protoc-gen-go/generator
    go build
    cp protoc-gen-go $GOBIN/
    

生成说明

  1. 普通生成 protoc --go_out=. *.proto
  2. 支持rpc protoc --go_out=plugins=grpc:. *.proto