jason 4a5c616c34 change 1 year ago
..
v1 4a5c616c34 change 1 year ago
ReadMe.md 392643b3cd 业主端init 3 years ago
common_service.pb.go 9f7ca35aa6 change 2 years ago
common_service.proto 9f7ca35aa6 change 2 years ago
device_service.pb.go 5d81882f7f 修改访客邀约 2 years ago
device_service.proto 5d81882f7f 修改访客邀约 2 years ago
garden_service.pb.go 7b165c4187 change 3 years ago
garden_service.proto 7b165c4187 change 3 years ago
household_service.pb.go 1ecd24da60 我的预约 2 years ago
household_service.proto 1ecd24da60 我的预约 2 years ago
setup.go 0e04339ae5 change 1 year ago
system_service.pb.go 5b684960ee change 3 years ago
system_service.proto 5b684960ee change 3 years ago
thirdparty_service.pb.go cd944d2c28 消息通知 2 years ago
thirdparty_service.proto cd944d2c28 消息通知 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):

    git clone http://gitlab.sydip.com/repo/libs/go/gomodule
    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