roomNotice.proto 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. package live.approom.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. }
  10. message RoomNoticeBuyGuardReq {
  11. // UID
  12. int64 uid = 1 [(gogoproto.moretags) = 'form:"uid" validate:"required"'];
  13. // 主播UID
  14. int64 target_id = 2 [(gogoproto.moretags) = 'form:"target_id" validate:"required"'];
  15. }
  16. message RoomNoticeBuyGuardResp {
  17. // 是否提示 1:弹出提示,0:不弹出
  18. int64 should_notice = 1;
  19. // 状态有效开始时间
  20. int64 begin = 2;
  21. // 状态有效结束时间
  22. int64 end = 3;
  23. // 当前的时间戳
  24. int64 now = 7;
  25. // 标题
  26. string title = 4;
  27. // 内容
  28. string content = 5;
  29. // 按钮
  30. string button = 6;
  31. }