jason 5f4e76986a change 3 år sedan
..
v1 5f4e76986a change 3 år sedan
ReadMe.md a0f6ae80b4 init 3 år sedan
device_service.pb.go a0f6ae80b4 init 3 år sedan
device_service.proto a0f6ae80b4 init 3 år sedan
organization_service.pb.go 81c7def801 系统端操作机构超级管理员 3 år sedan
organization_service.proto 81c7def801 系统端操作机构超级管理员 3 år sedan
setup.go 45a992b843 change 3 år sedan
system_service.pb.go 07e6154470 机构key认证 3 år sedan
system_service.proto 07e6154470 机构key认证 3 år sedan

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