api.proto 375 B

1234567891011121314151617181920212223
  1. syntax = "proto3";
  2. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  3. package share.service.v1;
  4. option go_package = "v1";
  5. // Share grpc
  6. service Share {
  7. rpc AddShare(AddShareRequest) returns(AddShareReply);
  8. }
  9. message AddShareRequest{
  10. int64 oid = 1;
  11. int64 mid = 2;
  12. int32 type = 3;
  13. string ip = 4;
  14. }
  15. message AddShareReply {
  16. int64 shares = 1;
  17. }