Gift.proto 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. syntax = "proto3";
  2. package gift.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service Gift {
  6. /** 增加包裹道具
  7. *
  8. */
  9. rpc addFreeGift (GiftAddFreeGiftReq) returns (GiftAddFreeGiftResp);
  10. }
  11. message GiftAddFreeGiftReq {
  12. // 用户uid
  13. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  14. // 礼物id
  15. int64 giftid = 2 [(gogoproto.jsontag) = "giftid"];
  16. // 数量
  17. int64 num = 3 [(gogoproto.jsontag) = "num"];
  18. // 过期时间
  19. int64 expireat = 4 [(gogoproto.jsontag) = "expireat"];
  20. //
  21. string code = 5 [(gogoproto.jsontag) = "code"];
  22. //
  23. string caller = 6 [(gogoproto.jsontag) = "caller"];
  24. }
  25. message GiftAddFreeGiftResp {
  26. //
  27. int64 code = 1 [(gogoproto.jsontag) = "code"];
  28. //
  29. string msg = 2 [(gogoproto.jsontag) = "msg"];
  30. //
  31. Data data = 3 [(gogoproto.jsontag) = "data"];
  32. message Data {
  33. //
  34. int64 bag_id = 1 [(gogoproto.jsontag) = "bag_id"];
  35. }
  36. }