vip.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: vip.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // VIP信息
  22. type VipInfo struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // vip等级
  25. Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
  26. // vip点数
  27. Exp int64 `protobuf:"varint,2,opt,name=exp,proto3" json:"exp,omitempty"`
  28. // vip属性
  29. Attrs *Attrs `protobuf:"bytes,3,opt,name=attrs,proto3" json:"attrs,omitempty"`
  30. // 过期时间(毫秒)
  31. ExpireTime int64 `protobuf:"varint,4,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
  32. // 每日宝箱是否已经领取
  33. IsDailyBoxReceived bool `protobuf:"varint,5,opt,name=isDailyBoxReceived,proto3" json:"isDailyBoxReceived,omitempty"`
  34. // 每日vip点数是否已经领取
  35. IsDailyExpReceived bool `protobuf:"varint,6,opt,name=isDailyExpReceived,proto3" json:"isDailyExpReceived,omitempty"`
  36. // 连续登录天数
  37. ContinuousLoginDays int32 `protobuf:"varint,7,opt,name=continuousLoginDays,proto3" json:"continuousLoginDays,omitempty"`
  38. // 专属宝箱充值状态 key:vip等级 value:是否已领取
  39. SpecialBoxStates map[int32]bool `protobuf:"bytes,8,rep,name=specialBoxStates,proto3" json:"specialBoxStates,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  40. unknownFields protoimpl.UnknownFields
  41. sizeCache protoimpl.SizeCache
  42. }
  43. func (x *VipInfo) Reset() {
  44. *x = VipInfo{}
  45. mi := &file_vip_proto_msgTypes[0]
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. ms.StoreMessageInfo(mi)
  48. }
  49. func (x *VipInfo) String() string {
  50. return protoimpl.X.MessageStringOf(x)
  51. }
  52. func (*VipInfo) ProtoMessage() {}
  53. func (x *VipInfo) ProtoReflect() protoreflect.Message {
  54. mi := &file_vip_proto_msgTypes[0]
  55. if x != nil {
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. if ms.LoadMessageInfo() == nil {
  58. ms.StoreMessageInfo(mi)
  59. }
  60. return ms
  61. }
  62. return mi.MessageOf(x)
  63. }
  64. // Deprecated: Use VipInfo.ProtoReflect.Descriptor instead.
  65. func (*VipInfo) Descriptor() ([]byte, []int) {
  66. return file_vip_proto_rawDescGZIP(), []int{0}
  67. }
  68. func (x *VipInfo) GetLevel() int32 {
  69. if x != nil {
  70. return x.Level
  71. }
  72. return 0
  73. }
  74. func (x *VipInfo) GetExp() int64 {
  75. if x != nil {
  76. return x.Exp
  77. }
  78. return 0
  79. }
  80. func (x *VipInfo) GetAttrs() *Attrs {
  81. if x != nil {
  82. return x.Attrs
  83. }
  84. return nil
  85. }
  86. func (x *VipInfo) GetExpireTime() int64 {
  87. if x != nil {
  88. return x.ExpireTime
  89. }
  90. return 0
  91. }
  92. func (x *VipInfo) GetIsDailyBoxReceived() bool {
  93. if x != nil {
  94. return x.IsDailyBoxReceived
  95. }
  96. return false
  97. }
  98. func (x *VipInfo) GetIsDailyExpReceived() bool {
  99. if x != nil {
  100. return x.IsDailyExpReceived
  101. }
  102. return false
  103. }
  104. func (x *VipInfo) GetContinuousLoginDays() int32 {
  105. if x != nil {
  106. return x.ContinuousLoginDays
  107. }
  108. return 0
  109. }
  110. func (x *VipInfo) GetSpecialBoxStates() map[int32]bool {
  111. if x != nil {
  112. return x.SpecialBoxStates
  113. }
  114. return nil
  115. }
  116. var File_vip_proto protoreflect.FileDescriptor
  117. const file_vip_proto_rawDesc = "" +
  118. "\n" +
  119. "\tvip.proto\x12\x02pb\x1a\x0fbase_type.proto\"\x98\x03\n" +
  120. "\aVipInfo\x12\x14\n" +
  121. "\x05level\x18\x01 \x01(\x05R\x05level\x12\x10\n" +
  122. "\x03exp\x18\x02 \x01(\x03R\x03exp\x12\x1f\n" +
  123. "\x05attrs\x18\x03 \x01(\v2\t.pb.AttrsR\x05attrs\x12\x1e\n" +
  124. "\n" +
  125. "expireTime\x18\x04 \x01(\x03R\n" +
  126. "expireTime\x12.\n" +
  127. "\x12isDailyBoxReceived\x18\x05 \x01(\bR\x12isDailyBoxReceived\x12.\n" +
  128. "\x12isDailyExpReceived\x18\x06 \x01(\bR\x12isDailyExpReceived\x120\n" +
  129. "\x13continuousLoginDays\x18\a \x01(\x05R\x13continuousLoginDays\x12M\n" +
  130. "\x10specialBoxStates\x18\b \x03(\v2!.pb.VipInfo.SpecialBoxStatesEntryR\x10specialBoxStates\x1aC\n" +
  131. "\x15SpecialBoxStatesEntry\x12\x10\n" +
  132. "\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" +
  133. "\x05value\x18\x02 \x01(\bR\x05value:\x028\x01B\x05Z\x03/pbb\x06proto3"
  134. var (
  135. file_vip_proto_rawDescOnce sync.Once
  136. file_vip_proto_rawDescData []byte
  137. )
  138. func file_vip_proto_rawDescGZIP() []byte {
  139. file_vip_proto_rawDescOnce.Do(func() {
  140. file_vip_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vip_proto_rawDesc), len(file_vip_proto_rawDesc)))
  141. })
  142. return file_vip_proto_rawDescData
  143. }
  144. var file_vip_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  145. var file_vip_proto_goTypes = []any{
  146. (*VipInfo)(nil), // 0: pb.VipInfo
  147. nil, // 1: pb.VipInfo.SpecialBoxStatesEntry
  148. (*Attrs)(nil), // 2: pb.Attrs
  149. }
  150. var file_vip_proto_depIdxs = []int32{
  151. 2, // 0: pb.VipInfo.attrs:type_name -> pb.Attrs
  152. 1, // 1: pb.VipInfo.specialBoxStates:type_name -> pb.VipInfo.SpecialBoxStatesEntry
  153. 2, // [2:2] is the sub-list for method output_type
  154. 2, // [2:2] is the sub-list for method input_type
  155. 2, // [2:2] is the sub-list for extension type_name
  156. 2, // [2:2] is the sub-list for extension extendee
  157. 0, // [0:2] is the sub-list for field type_name
  158. }
  159. func init() { file_vip_proto_init() }
  160. func file_vip_proto_init() {
  161. if File_vip_proto != nil {
  162. return
  163. }
  164. file_base_type_proto_init()
  165. type x struct{}
  166. out := protoimpl.TypeBuilder{
  167. File: protoimpl.DescBuilder{
  168. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  169. RawDescriptor: unsafe.Slice(unsafe.StringData(file_vip_proto_rawDesc), len(file_vip_proto_rawDesc)),
  170. NumEnums: 0,
  171. NumMessages: 2,
  172. NumExtensions: 0,
  173. NumServices: 0,
  174. },
  175. GoTypes: file_vip_proto_goTypes,
  176. DependencyIndexes: file_vip_proto_depIdxs,
  177. MessageInfos: file_vip_proto_msgTypes,
  178. }.Build()
  179. File_vip_proto = out.File
  180. file_vip_proto_goTypes = nil
  181. file_vip_proto_depIdxs = nil
  182. }