roomNotice.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. syntax = "proto3";
  2. package live.xuserex.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. // 房间提示 相关服务
  6. service RoomNotice {
  7. // 是否弹出大航海购买提示
  8. rpc buy_guard (RoomNoticeBuyGuardReq) returns (RoomNoticeBuyGuardResp);
  9. // habse 任务是否结束
  10. rpc is_task_finish (RoomNoticeIsTaskFinishReq) returns (RoomNoticeIsTaskFinishResp);
  11. // 手动设置base 任务结束
  12. rpc set_task_finish (RoomNoticeSetTaskFinishReq) returns (RoomNoticeSetTaskFinishResp);
  13. }
  14. message RoomNoticeBuyGuardReq {
  15. // UID
  16. int64 uid = 1 [(gogoproto.moretags) = 'form:"uid" validate:"required"'];
  17. // 主播UID
  18. int64 target_id = 2 [(gogoproto.moretags) = 'form:"target_id" validate:"required"'];
  19. }
  20. message RoomNoticeIsTaskFinishReq {
  21. }
  22. message RoomNoticeSetTaskFinishReq {
  23. // 是否完成
  24. int64 result = 1 [(gogoproto.moretags) = 'form:"result"'];
  25. }
  26. message RoomNoticeBuyGuardResp {
  27. // 是否提示 1:弹出提示,0:不弹出
  28. int64 should_notice = 1;
  29. // 状态有效开始时间
  30. int64 begin = 2;
  31. // 状态有效结束时间
  32. int64 end = 3;
  33. // 当前的时间戳
  34. int64 now = 7;
  35. // 标题
  36. string title = 4;
  37. // 内容
  38. string content = 5;
  39. // 按钮
  40. string button = 6;
  41. }
  42. message RoomNoticeIsTaskFinishResp {
  43. // 是否完成
  44. int64 result = 1;
  45. }
  46. message RoomNoticeSetTaskFinishResp {
  47. // 是否完成
  48. int64 result = 1;
  49. }