Smalltv.proto 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. syntax = "proto3";
  2. package gift.v0;
  3. option go_package = "v0";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. service Smalltv {
  6. /** 开启抽奖的内部接口
  7. * 返回的是广播的内容列表
  8. */
  9. rpc start (SmalltvStartReq) returns (SmalltvStartResp);
  10. }
  11. message SmalltvStartReq {
  12. // 用户id
  13. int64 uid = 1 [(gogoproto.jsontag) = "uid"];
  14. // 房间号
  15. int64 roomid = 2 [(gogoproto.jsontag) = "roomid"];
  16. // 道具id
  17. int64 gift_id = 3 [(gogoproto.jsontag) = "gift_id"];
  18. // 道具个数
  19. int64 num = 4 [(gogoproto.jsontag) = "num"];
  20. // 业务id
  21. int64 tid = 5 [(gogoproto.jsontag) = "tid"];
  22. // 公告样式id
  23. int64 style_id = 6 [(gogoproto.jsontag) = "style_id"];
  24. }
  25. message SmalltvStartResp {
  26. //
  27. int64 code = 1 [(gogoproto.jsontag) = "code"];
  28. //
  29. string msg = 2 [(gogoproto.jsontag) = "msg"];
  30. //
  31. repeated MSG data = 3 [(gogoproto.jsontag) = "data"];
  32. message MSG {
  33. //
  34. string cmd = 1 [(gogoproto.jsontag) = "cmd"];
  35. //
  36. string msg = 2 [(gogoproto.jsontag) = "msg"];
  37. //
  38. string msg_text = 3 [(gogoproto.jsontag) = "msg_text"];
  39. //
  40. string msg_common = 4 [(gogoproto.jsontag) = "msg_common"];
  41. //
  42. string msg_self = 5 [(gogoproto.jsontag) = "msg_self"];
  43. //
  44. int64 rep = 6 [(gogoproto.jsontag) = "rep"];
  45. //
  46. int64 styleType = 7 [(gogoproto.jsontag) = "styleType"];
  47. //
  48. string url = 8 [(gogoproto.jsontag) = "url"];
  49. //
  50. int64 roomid = 9 [(gogoproto.jsontag) = "roomid"];
  51. //
  52. int64 real_roomid = 10 [(gogoproto.jsontag) = "real_roomid"];
  53. //
  54. int64 rnd = 11 [(gogoproto.jsontag) = "rnd"];
  55. //
  56. int64 broadcast_type = 12 [(gogoproto.jsontag) = "broadcast_type"];
  57. }
  58. }