jason 904c787940 change 1 gadu atpakaļ
..
v1 904c787940 change 1 gadu atpakaļ
ReadMe.md c7150f4598 业主端init 3 gadi atpakaļ
common_service.pb.go 34373cc8ef change 1 gadu atpakaļ
common_service.proto 34373cc8ef change 1 gadu atpakaļ
device_service.pb.go 38f8734766 change 1 gadu atpakaļ
device_service.proto 38f8734766 change 1 gadu atpakaļ
garden_service.pb.go 38f8734766 change 1 gadu atpakaļ
garden_service.proto 38f8734766 change 1 gadu atpakaļ
household_service.pb.go a3ac24180a change 2 gadi atpakaļ
household_service.proto a3ac24180a change 2 gadi atpakaļ
setup.go a08db21d23 change 1 gadu atpakaļ
system_service.pb.go ee4f1baf56 租房按名字搜索 2 gadi atpakaļ
system_service.proto ee4f1baf56 租房按名字搜索 2 gadi atpakaļ
thirdparty_service.pb.go 904c787940 change 1 gadu atpakaļ
thirdparty_service.proto 904c787940 change 1 gadu atpakaļ

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