jason c7bacff629 催缴定时任务 2 anos atrás
..
v1 c7bacff629 催缴定时任务 2 anos atrás
ReadMe.md 4d16af6583 init 3 anos atrás
garden_service.pb.go de22b1f556 change 2 anos atrás
garden_service.proto de22b1f556 change 2 anos atrás
setup.go de22b1f556 change 2 anos atrás
system_service.pb.go de22b1f556 change 2 anos atrás
system_service.proto de22b1f556 change 2 anos atrás
thirdparty_service.pb.go c7bacff629 催缴定时任务 2 anos atrás
thirdparty_service.proto c7bacff629 催缴定时任务 2 anos atrás

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