jason 5d330986e2 change 2 years ago
..
v1 ce4e18bbbd 抽离省厅服务 3 years ago
ReadMe.md ea624edfc1 修改接口 4 years ago
provincial_management.pb.go ce4e18bbbd 抽离省厅服务 3 years ago
provincial_management.proto ce4e18bbbd 抽离省厅服务 3 years ago
setup.go 5d330986e2 change 2 years ago
smart_alarm.pb.go 62aa573cb9 rename 4 years ago
smart_alarm.proto 62aa573cb9 rename 4 years ago
smart_auth.pb.go 62aa573cb9 rename 4 years ago
smart_auth.proto 62aa573cb9 rename 4 years ago
thirdparty_management.pb.go ce4e18bbbd 抽离省厅服务 3 years ago
thirdparty_management.proto ce4e18bbbd 抽离省厅服务 3 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