exchange.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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: exchange.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. // 交易商品详情列表
  22. type ExchangeDetailList struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 商品列表
  25. List []*ExchangeDetail `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
  26. // 总数量(分页查询会返回)
  27. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
  28. // 当前页码(分页查询会返回)
  29. PageNum int32 `protobuf:"varint,3,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *ExchangeDetailList) Reset() {
  34. *x = ExchangeDetailList{}
  35. mi := &file_exchange_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *ExchangeDetailList) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*ExchangeDetailList) ProtoMessage() {}
  43. func (x *ExchangeDetailList) ProtoReflect() protoreflect.Message {
  44. mi := &file_exchange_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use ExchangeDetailList.ProtoReflect.Descriptor instead.
  55. func (*ExchangeDetailList) Descriptor() ([]byte, []int) {
  56. return file_exchange_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *ExchangeDetailList) GetList() []*ExchangeDetail {
  59. if x != nil {
  60. return x.List
  61. }
  62. return nil
  63. }
  64. func (x *ExchangeDetailList) GetTotal() int32 {
  65. if x != nil {
  66. return x.Total
  67. }
  68. return 0
  69. }
  70. func (x *ExchangeDetailList) GetPageNum() int32 {
  71. if x != nil {
  72. return x.PageNum
  73. }
  74. return 0
  75. }
  76. // 玩家交易所商品信息
  77. type MyExchangeItems struct {
  78. state protoimpl.MessageState `protogen:"open.v1"`
  79. // 交易类型 1:出售 2:求购
  80. ActType int32 `protobuf:"varint,1,opt,name=actType,proto3" json:"actType,omitempty"`
  81. // 已解锁的货柜个数
  82. UnlockedSlots int32 `protobuf:"varint,2,opt,name=unlockedSlots,proto3" json:"unlockedSlots,omitempty"`
  83. // 商品列表
  84. List []*ExchangeDetail `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
  85. unknownFields protoimpl.UnknownFields
  86. sizeCache protoimpl.SizeCache
  87. }
  88. func (x *MyExchangeItems) Reset() {
  89. *x = MyExchangeItems{}
  90. mi := &file_exchange_proto_msgTypes[1]
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. ms.StoreMessageInfo(mi)
  93. }
  94. func (x *MyExchangeItems) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*MyExchangeItems) ProtoMessage() {}
  98. func (x *MyExchangeItems) ProtoReflect() protoreflect.Message {
  99. mi := &file_exchange_proto_msgTypes[1]
  100. if x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use MyExchangeItems.ProtoReflect.Descriptor instead.
  110. func (*MyExchangeItems) Descriptor() ([]byte, []int) {
  111. return file_exchange_proto_rawDescGZIP(), []int{1}
  112. }
  113. func (x *MyExchangeItems) GetActType() int32 {
  114. if x != nil {
  115. return x.ActType
  116. }
  117. return 0
  118. }
  119. func (x *MyExchangeItems) GetUnlockedSlots() int32 {
  120. if x != nil {
  121. return x.UnlockedSlots
  122. }
  123. return 0
  124. }
  125. func (x *MyExchangeItems) GetList() []*ExchangeDetail {
  126. if x != nil {
  127. return x.List
  128. }
  129. return nil
  130. }
  131. // 交易商品详情
  132. type ExchangeDetail struct {
  133. state protoimpl.MessageState `protogen:"open.v1"`
  134. // 流水号
  135. TransactionID string `protobuf:"bytes,1,opt,name=transactionID,proto3" json:"transactionID,omitempty"`
  136. // 交易类型 1:出售 2:求购
  137. ActType int32 `protobuf:"varint,2,opt,name=actType,proto3" json:"actType,omitempty"`
  138. // 商品
  139. Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
  140. // 单价
  141. Price int32 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
  142. // 交易状态 0:待上架 1:已上架 2:已下架 3:已成交 4:已取回
  143. Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
  144. // 下架时间(毫秒)
  145. CanceledTime int64 `protobuf:"varint,6,opt,name=canceledTime,proto3" json:"canceledTime,omitempty"`
  146. // 玩家ID(可以判断是否是自己发布的商品)
  147. PlayerID int64 `protobuf:"varint,7,opt,name=playerID,proto3" json:"playerID,omitempty"`
  148. // 装备详情
  149. EquipDetail *ExchangeEquipDetail `protobuf:"bytes,8,opt,name=equipDetail,proto3" json:"equipDetail,omitempty"`
  150. unknownFields protoimpl.UnknownFields
  151. sizeCache protoimpl.SizeCache
  152. }
  153. func (x *ExchangeDetail) Reset() {
  154. *x = ExchangeDetail{}
  155. mi := &file_exchange_proto_msgTypes[2]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. func (x *ExchangeDetail) String() string {
  160. return protoimpl.X.MessageStringOf(x)
  161. }
  162. func (*ExchangeDetail) ProtoMessage() {}
  163. func (x *ExchangeDetail) ProtoReflect() protoreflect.Message {
  164. mi := &file_exchange_proto_msgTypes[2]
  165. if x != nil {
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. if ms.LoadMessageInfo() == nil {
  168. ms.StoreMessageInfo(mi)
  169. }
  170. return ms
  171. }
  172. return mi.MessageOf(x)
  173. }
  174. // Deprecated: Use ExchangeDetail.ProtoReflect.Descriptor instead.
  175. func (*ExchangeDetail) Descriptor() ([]byte, []int) {
  176. return file_exchange_proto_rawDescGZIP(), []int{2}
  177. }
  178. func (x *ExchangeDetail) GetTransactionID() string {
  179. if x != nil {
  180. return x.TransactionID
  181. }
  182. return ""
  183. }
  184. func (x *ExchangeDetail) GetActType() int32 {
  185. if x != nil {
  186. return x.ActType
  187. }
  188. return 0
  189. }
  190. func (x *ExchangeDetail) GetAsset() *Asset {
  191. if x != nil {
  192. return x.Asset
  193. }
  194. return nil
  195. }
  196. func (x *ExchangeDetail) GetPrice() int32 {
  197. if x != nil {
  198. return x.Price
  199. }
  200. return 0
  201. }
  202. func (x *ExchangeDetail) GetStatus() int32 {
  203. if x != nil {
  204. return x.Status
  205. }
  206. return 0
  207. }
  208. func (x *ExchangeDetail) GetCanceledTime() int64 {
  209. if x != nil {
  210. return x.CanceledTime
  211. }
  212. return 0
  213. }
  214. func (x *ExchangeDetail) GetPlayerID() int64 {
  215. if x != nil {
  216. return x.PlayerID
  217. }
  218. return 0
  219. }
  220. func (x *ExchangeDetail) GetEquipDetail() *ExchangeEquipDetail {
  221. if x != nil {
  222. return x.EquipDetail
  223. }
  224. return nil
  225. }
  226. // 交易装备详情
  227. // TODO 装备的信息后面再补充
  228. type ExchangeEquipDetail struct {
  229. state protoimpl.MessageState `protogen:"open.v1"`
  230. unknownFields protoimpl.UnknownFields
  231. sizeCache protoimpl.SizeCache
  232. }
  233. func (x *ExchangeEquipDetail) Reset() {
  234. *x = ExchangeEquipDetail{}
  235. mi := &file_exchange_proto_msgTypes[3]
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. ms.StoreMessageInfo(mi)
  238. }
  239. func (x *ExchangeEquipDetail) String() string {
  240. return protoimpl.X.MessageStringOf(x)
  241. }
  242. func (*ExchangeEquipDetail) ProtoMessage() {}
  243. func (x *ExchangeEquipDetail) ProtoReflect() protoreflect.Message {
  244. mi := &file_exchange_proto_msgTypes[3]
  245. if x != nil {
  246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  247. if ms.LoadMessageInfo() == nil {
  248. ms.StoreMessageInfo(mi)
  249. }
  250. return ms
  251. }
  252. return mi.MessageOf(x)
  253. }
  254. // Deprecated: Use ExchangeEquipDetail.ProtoReflect.Descriptor instead.
  255. func (*ExchangeEquipDetail) Descriptor() ([]byte, []int) {
  256. return file_exchange_proto_rawDescGZIP(), []int{3}
  257. }
  258. // 查询筛选条件
  259. type ExchangeQueryFilter struct {
  260. state protoimpl.MessageState `protogen:"open.v1"`
  261. // 页码
  262. PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
  263. // 物品ID
  264. ItemIDList []int32 `protobuf:"varint,2,rep,packed,name=itemIDList,proto3" json:"itemIDList,omitempty"`
  265. // 类型(道具表二级类型)
  266. SubTypeList []int32 `protobuf:"varint,3,rep,packed,name=subTypeList,proto3" json:"subTypeList,omitempty"`
  267. // 品质
  268. QualityList []int32 `protobuf:"varint,4,rep,packed,name=qualityList,proto3" json:"qualityList,omitempty"`
  269. // 排序规则互斥 默认按时间降序排序
  270. // 按单价排序 0:不排序 1:升序 2:降序
  271. PriceSort int32 `protobuf:"varint,10,opt,name=priceSort,proto3" json:"priceSort,omitempty"`
  272. // 按数量排序 0:不排序 1:升序 2:降序
  273. CountSort int32 `protobuf:"varint,11,opt,name=countSort,proto3" json:"countSort,omitempty"`
  274. unknownFields protoimpl.UnknownFields
  275. sizeCache protoimpl.SizeCache
  276. }
  277. func (x *ExchangeQueryFilter) Reset() {
  278. *x = ExchangeQueryFilter{}
  279. mi := &file_exchange_proto_msgTypes[4]
  280. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  281. ms.StoreMessageInfo(mi)
  282. }
  283. func (x *ExchangeQueryFilter) String() string {
  284. return protoimpl.X.MessageStringOf(x)
  285. }
  286. func (*ExchangeQueryFilter) ProtoMessage() {}
  287. func (x *ExchangeQueryFilter) ProtoReflect() protoreflect.Message {
  288. mi := &file_exchange_proto_msgTypes[4]
  289. if x != nil {
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. if ms.LoadMessageInfo() == nil {
  292. ms.StoreMessageInfo(mi)
  293. }
  294. return ms
  295. }
  296. return mi.MessageOf(x)
  297. }
  298. // Deprecated: Use ExchangeQueryFilter.ProtoReflect.Descriptor instead.
  299. func (*ExchangeQueryFilter) Descriptor() ([]byte, []int) {
  300. return file_exchange_proto_rawDescGZIP(), []int{4}
  301. }
  302. func (x *ExchangeQueryFilter) GetPageNum() int32 {
  303. if x != nil {
  304. return x.PageNum
  305. }
  306. return 0
  307. }
  308. func (x *ExchangeQueryFilter) GetItemIDList() []int32 {
  309. if x != nil {
  310. return x.ItemIDList
  311. }
  312. return nil
  313. }
  314. func (x *ExchangeQueryFilter) GetSubTypeList() []int32 {
  315. if x != nil {
  316. return x.SubTypeList
  317. }
  318. return nil
  319. }
  320. func (x *ExchangeQueryFilter) GetQualityList() []int32 {
  321. if x != nil {
  322. return x.QualityList
  323. }
  324. return nil
  325. }
  326. func (x *ExchangeQueryFilter) GetPriceSort() int32 {
  327. if x != nil {
  328. return x.PriceSort
  329. }
  330. return 0
  331. }
  332. func (x *ExchangeQueryFilter) GetCountSort() int32 {
  333. if x != nil {
  334. return x.CountSort
  335. }
  336. return 0
  337. }
  338. // 交易物品
  339. type ExchangeItem struct {
  340. state protoimpl.MessageState `protogen:"open.v1"`
  341. // 交易类型 1:出售 2:求购
  342. ActType int32 `protobuf:"varint,1,opt,name=actType,proto3" json:"actType,omitempty"`
  343. // 物品信息
  344. Asset *Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
  345. // 单价
  346. Price int32 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
  347. unknownFields protoimpl.UnknownFields
  348. sizeCache protoimpl.SizeCache
  349. }
  350. func (x *ExchangeItem) Reset() {
  351. *x = ExchangeItem{}
  352. mi := &file_exchange_proto_msgTypes[5]
  353. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  354. ms.StoreMessageInfo(mi)
  355. }
  356. func (x *ExchangeItem) String() string {
  357. return protoimpl.X.MessageStringOf(x)
  358. }
  359. func (*ExchangeItem) ProtoMessage() {}
  360. func (x *ExchangeItem) ProtoReflect() protoreflect.Message {
  361. mi := &file_exchange_proto_msgTypes[5]
  362. if x != nil {
  363. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  364. if ms.LoadMessageInfo() == nil {
  365. ms.StoreMessageInfo(mi)
  366. }
  367. return ms
  368. }
  369. return mi.MessageOf(x)
  370. }
  371. // Deprecated: Use ExchangeItem.ProtoReflect.Descriptor instead.
  372. func (*ExchangeItem) Descriptor() ([]byte, []int) {
  373. return file_exchange_proto_rawDescGZIP(), []int{5}
  374. }
  375. func (x *ExchangeItem) GetActType() int32 {
  376. if x != nil {
  377. return x.ActType
  378. }
  379. return 0
  380. }
  381. func (x *ExchangeItem) GetAsset() *Asset {
  382. if x != nil {
  383. return x.Asset
  384. }
  385. return nil
  386. }
  387. func (x *ExchangeItem) GetPrice() int32 {
  388. if x != nil {
  389. return x.Price
  390. }
  391. return 0
  392. }
  393. // 出售装备
  394. type ExchangeEquipSell struct {
  395. state protoimpl.MessageState `protogen:"open.v1"`
  396. // 装备详情
  397. EquipDetail *ExchangeEquipDetail `protobuf:"bytes,1,opt,name=equipDetail,proto3" json:"equipDetail,omitempty"`
  398. // 价格
  399. Price int32 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
  400. unknownFields protoimpl.UnknownFields
  401. sizeCache protoimpl.SizeCache
  402. }
  403. func (x *ExchangeEquipSell) Reset() {
  404. *x = ExchangeEquipSell{}
  405. mi := &file_exchange_proto_msgTypes[6]
  406. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  407. ms.StoreMessageInfo(mi)
  408. }
  409. func (x *ExchangeEquipSell) String() string {
  410. return protoimpl.X.MessageStringOf(x)
  411. }
  412. func (*ExchangeEquipSell) ProtoMessage() {}
  413. func (x *ExchangeEquipSell) ProtoReflect() protoreflect.Message {
  414. mi := &file_exchange_proto_msgTypes[6]
  415. if x != nil {
  416. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  417. if ms.LoadMessageInfo() == nil {
  418. ms.StoreMessageInfo(mi)
  419. }
  420. return ms
  421. }
  422. return mi.MessageOf(x)
  423. }
  424. // Deprecated: Use ExchangeEquipSell.ProtoReflect.Descriptor instead.
  425. func (*ExchangeEquipSell) Descriptor() ([]byte, []int) {
  426. return file_exchange_proto_rawDescGZIP(), []int{6}
  427. }
  428. func (x *ExchangeEquipSell) GetEquipDetail() *ExchangeEquipDetail {
  429. if x != nil {
  430. return x.EquipDetail
  431. }
  432. return nil
  433. }
  434. func (x *ExchangeEquipSell) GetPrice() int32 {
  435. if x != nil {
  436. return x.Price
  437. }
  438. return 0
  439. }
  440. // 交易日志列表
  441. type ExchangeLogList struct {
  442. state protoimpl.MessageState `protogen:"open.v1"`
  443. List []*ExchangeLog `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
  444. unknownFields protoimpl.UnknownFields
  445. sizeCache protoimpl.SizeCache
  446. }
  447. func (x *ExchangeLogList) Reset() {
  448. *x = ExchangeLogList{}
  449. mi := &file_exchange_proto_msgTypes[7]
  450. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  451. ms.StoreMessageInfo(mi)
  452. }
  453. func (x *ExchangeLogList) String() string {
  454. return protoimpl.X.MessageStringOf(x)
  455. }
  456. func (*ExchangeLogList) ProtoMessage() {}
  457. func (x *ExchangeLogList) ProtoReflect() protoreflect.Message {
  458. mi := &file_exchange_proto_msgTypes[7]
  459. if x != nil {
  460. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  461. if ms.LoadMessageInfo() == nil {
  462. ms.StoreMessageInfo(mi)
  463. }
  464. return ms
  465. }
  466. return mi.MessageOf(x)
  467. }
  468. // Deprecated: Use ExchangeLogList.ProtoReflect.Descriptor instead.
  469. func (*ExchangeLogList) Descriptor() ([]byte, []int) {
  470. return file_exchange_proto_rawDescGZIP(), []int{7}
  471. }
  472. func (x *ExchangeLogList) GetList() []*ExchangeLog {
  473. if x != nil {
  474. return x.List
  475. }
  476. return nil
  477. }
  478. // 交易日志
  479. type ExchangeLog struct {
  480. state protoimpl.MessageState `protogen:"open.v1"`
  481. // 日志ID
  482. LogID int64 `protobuf:"varint,1,opt,name=LogID,proto3" json:"LogID,omitempty"`
  483. // 日志类型 1:购买 2:出售
  484. LogType int32 `protobuf:"varint,2,opt,name=LogType,proto3" json:"LogType,omitempty"`
  485. // 商品
  486. Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
  487. // 单价
  488. Price int32 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
  489. // 手续费
  490. Fee int32 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
  491. // 交易时间(单位:毫秒)
  492. Time int64 `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"`
  493. // 装备详情
  494. EquipDetail *ExchangeEquipDetail `protobuf:"bytes,10,opt,name=equipDetail,proto3" json:"equipDetail,omitempty"`
  495. unknownFields protoimpl.UnknownFields
  496. sizeCache protoimpl.SizeCache
  497. }
  498. func (x *ExchangeLog) Reset() {
  499. *x = ExchangeLog{}
  500. mi := &file_exchange_proto_msgTypes[8]
  501. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  502. ms.StoreMessageInfo(mi)
  503. }
  504. func (x *ExchangeLog) String() string {
  505. return protoimpl.X.MessageStringOf(x)
  506. }
  507. func (*ExchangeLog) ProtoMessage() {}
  508. func (x *ExchangeLog) ProtoReflect() protoreflect.Message {
  509. mi := &file_exchange_proto_msgTypes[8]
  510. if x != nil {
  511. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  512. if ms.LoadMessageInfo() == nil {
  513. ms.StoreMessageInfo(mi)
  514. }
  515. return ms
  516. }
  517. return mi.MessageOf(x)
  518. }
  519. // Deprecated: Use ExchangeLog.ProtoReflect.Descriptor instead.
  520. func (*ExchangeLog) Descriptor() ([]byte, []int) {
  521. return file_exchange_proto_rawDescGZIP(), []int{8}
  522. }
  523. func (x *ExchangeLog) GetLogID() int64 {
  524. if x != nil {
  525. return x.LogID
  526. }
  527. return 0
  528. }
  529. func (x *ExchangeLog) GetLogType() int32 {
  530. if x != nil {
  531. return x.LogType
  532. }
  533. return 0
  534. }
  535. func (x *ExchangeLog) GetAsset() *Asset {
  536. if x != nil {
  537. return x.Asset
  538. }
  539. return nil
  540. }
  541. func (x *ExchangeLog) GetPrice() int32 {
  542. if x != nil {
  543. return x.Price
  544. }
  545. return 0
  546. }
  547. func (x *ExchangeLog) GetFee() int32 {
  548. if x != nil {
  549. return x.Fee
  550. }
  551. return 0
  552. }
  553. func (x *ExchangeLog) GetTime() int64 {
  554. if x != nil {
  555. return x.Time
  556. }
  557. return 0
  558. }
  559. func (x *ExchangeLog) GetEquipDetail() *ExchangeEquipDetail {
  560. if x != nil {
  561. return x.EquipDetail
  562. }
  563. return nil
  564. }
  565. // 购买商品的结果
  566. type ExchangeBuyResult struct {
  567. state protoimpl.MessageState `protogen:"open.v1"`
  568. // 状态码
  569. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  570. // 商品详情
  571. Detail *ExchangeDetail `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
  572. unknownFields protoimpl.UnknownFields
  573. sizeCache protoimpl.SizeCache
  574. }
  575. func (x *ExchangeBuyResult) Reset() {
  576. *x = ExchangeBuyResult{}
  577. mi := &file_exchange_proto_msgTypes[9]
  578. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  579. ms.StoreMessageInfo(mi)
  580. }
  581. func (x *ExchangeBuyResult) String() string {
  582. return protoimpl.X.MessageStringOf(x)
  583. }
  584. func (*ExchangeBuyResult) ProtoMessage() {}
  585. func (x *ExchangeBuyResult) ProtoReflect() protoreflect.Message {
  586. mi := &file_exchange_proto_msgTypes[9]
  587. if x != nil {
  588. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  589. if ms.LoadMessageInfo() == nil {
  590. ms.StoreMessageInfo(mi)
  591. }
  592. return ms
  593. }
  594. return mi.MessageOf(x)
  595. }
  596. // Deprecated: Use ExchangeBuyResult.ProtoReflect.Descriptor instead.
  597. func (*ExchangeBuyResult) Descriptor() ([]byte, []int) {
  598. return file_exchange_proto_rawDescGZIP(), []int{9}
  599. }
  600. func (x *ExchangeBuyResult) GetCode() int32 {
  601. if x != nil {
  602. return x.Code
  603. }
  604. return 0
  605. }
  606. func (x *ExchangeBuyResult) GetDetail() *ExchangeDetail {
  607. if x != nil {
  608. return x.Detail
  609. }
  610. return nil
  611. }
  612. var File_exchange_proto protoreflect.FileDescriptor
  613. const file_exchange_proto_rawDesc = "" +
  614. "\n" +
  615. "\x0eexchange.proto\x12\x02pb\x1a\x0fbase_type.proto\"l\n" +
  616. "\x12ExchangeDetailList\x12&\n" +
  617. "\x04list\x18\x01 \x03(\v2\x12.pb.ExchangeDetailR\x04list\x12\x14\n" +
  618. "\x05total\x18\x02 \x01(\x05R\x05total\x12\x18\n" +
  619. "\apageNum\x18\x03 \x01(\x05R\apageNum\"y\n" +
  620. "\x0fMyExchangeItems\x12\x18\n" +
  621. "\aactType\x18\x01 \x01(\x05R\aactType\x12$\n" +
  622. "\runlockedSlots\x18\x02 \x01(\x05R\runlockedSlots\x12&\n" +
  623. "\x04list\x18\x03 \x03(\v2\x12.pb.ExchangeDetailR\x04list\"\x9a\x02\n" +
  624. "\x0eExchangeDetail\x12$\n" +
  625. "\rtransactionID\x18\x01 \x01(\tR\rtransactionID\x12\x18\n" +
  626. "\aactType\x18\x02 \x01(\x05R\aactType\x12\x1f\n" +
  627. "\x05asset\x18\x03 \x01(\v2\t.pb.AssetR\x05asset\x12\x14\n" +
  628. "\x05price\x18\x04 \x01(\x05R\x05price\x12\x16\n" +
  629. "\x06status\x18\x05 \x01(\x05R\x06status\x12\"\n" +
  630. "\fcanceledTime\x18\x06 \x01(\x03R\fcanceledTime\x12\x1a\n" +
  631. "\bplayerID\x18\a \x01(\x03R\bplayerID\x129\n" +
  632. "\vequipDetail\x18\b \x01(\v2\x17.pb.ExchangeEquipDetailR\vequipDetail\"\x15\n" +
  633. "\x13ExchangeEquipDetail\"\xcf\x01\n" +
  634. "\x13ExchangeQueryFilter\x12\x18\n" +
  635. "\apageNum\x18\x01 \x01(\x05R\apageNum\x12\x1e\n" +
  636. "\n" +
  637. "itemIDList\x18\x02 \x03(\x05R\n" +
  638. "itemIDList\x12 \n" +
  639. "\vsubTypeList\x18\x03 \x03(\x05R\vsubTypeList\x12 \n" +
  640. "\vqualityList\x18\x04 \x03(\x05R\vqualityList\x12\x1c\n" +
  641. "\tpriceSort\x18\n" +
  642. " \x01(\x05R\tpriceSort\x12\x1c\n" +
  643. "\tcountSort\x18\v \x01(\x05R\tcountSort\"_\n" +
  644. "\fExchangeItem\x12\x18\n" +
  645. "\aactType\x18\x01 \x01(\x05R\aactType\x12\x1f\n" +
  646. "\x05asset\x18\x02 \x01(\v2\t.pb.AssetR\x05asset\x12\x14\n" +
  647. "\x05price\x18\x03 \x01(\x05R\x05price\"d\n" +
  648. "\x11ExchangeEquipSell\x129\n" +
  649. "\vequipDetail\x18\x01 \x01(\v2\x17.pb.ExchangeEquipDetailR\vequipDetail\x12\x14\n" +
  650. "\x05price\x18\x02 \x01(\x05R\x05price\"6\n" +
  651. "\x0fExchangeLogList\x12#\n" +
  652. "\x04list\x18\x01 \x03(\v2\x0f.pb.ExchangeLogR\x04list\"\xd5\x01\n" +
  653. "\vExchangeLog\x12\x14\n" +
  654. "\x05LogID\x18\x01 \x01(\x03R\x05LogID\x12\x18\n" +
  655. "\aLogType\x18\x02 \x01(\x05R\aLogType\x12\x1f\n" +
  656. "\x05asset\x18\x03 \x01(\v2\t.pb.AssetR\x05asset\x12\x14\n" +
  657. "\x05price\x18\x04 \x01(\x05R\x05price\x12\x10\n" +
  658. "\x03fee\x18\x05 \x01(\x05R\x03fee\x12\x12\n" +
  659. "\x04time\x18\x06 \x01(\x03R\x04time\x129\n" +
  660. "\vequipDetail\x18\n" +
  661. " \x01(\v2\x17.pb.ExchangeEquipDetailR\vequipDetail\"S\n" +
  662. "\x11ExchangeBuyResult\x12\x12\n" +
  663. "\x04code\x18\x01 \x01(\x05R\x04code\x12*\n" +
  664. "\x06detail\x18\x02 \x01(\v2\x12.pb.ExchangeDetailR\x06detailB\x05Z\x03/pbb\x06proto3"
  665. var (
  666. file_exchange_proto_rawDescOnce sync.Once
  667. file_exchange_proto_rawDescData []byte
  668. )
  669. func file_exchange_proto_rawDescGZIP() []byte {
  670. file_exchange_proto_rawDescOnce.Do(func() {
  671. file_exchange_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_exchange_proto_rawDesc), len(file_exchange_proto_rawDesc)))
  672. })
  673. return file_exchange_proto_rawDescData
  674. }
  675. var file_exchange_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  676. var file_exchange_proto_goTypes = []any{
  677. (*ExchangeDetailList)(nil), // 0: pb.ExchangeDetailList
  678. (*MyExchangeItems)(nil), // 1: pb.MyExchangeItems
  679. (*ExchangeDetail)(nil), // 2: pb.ExchangeDetail
  680. (*ExchangeEquipDetail)(nil), // 3: pb.ExchangeEquipDetail
  681. (*ExchangeQueryFilter)(nil), // 4: pb.ExchangeQueryFilter
  682. (*ExchangeItem)(nil), // 5: pb.ExchangeItem
  683. (*ExchangeEquipSell)(nil), // 6: pb.ExchangeEquipSell
  684. (*ExchangeLogList)(nil), // 7: pb.ExchangeLogList
  685. (*ExchangeLog)(nil), // 8: pb.ExchangeLog
  686. (*ExchangeBuyResult)(nil), // 9: pb.ExchangeBuyResult
  687. (*Asset)(nil), // 10: pb.Asset
  688. }
  689. var file_exchange_proto_depIdxs = []int32{
  690. 2, // 0: pb.ExchangeDetailList.list:type_name -> pb.ExchangeDetail
  691. 2, // 1: pb.MyExchangeItems.list:type_name -> pb.ExchangeDetail
  692. 10, // 2: pb.ExchangeDetail.asset:type_name -> pb.Asset
  693. 3, // 3: pb.ExchangeDetail.equipDetail:type_name -> pb.ExchangeEquipDetail
  694. 10, // 4: pb.ExchangeItem.asset:type_name -> pb.Asset
  695. 3, // 5: pb.ExchangeEquipSell.equipDetail:type_name -> pb.ExchangeEquipDetail
  696. 8, // 6: pb.ExchangeLogList.list:type_name -> pb.ExchangeLog
  697. 10, // 7: pb.ExchangeLog.asset:type_name -> pb.Asset
  698. 3, // 8: pb.ExchangeLog.equipDetail:type_name -> pb.ExchangeEquipDetail
  699. 2, // 9: pb.ExchangeBuyResult.detail:type_name -> pb.ExchangeDetail
  700. 10, // [10:10] is the sub-list for method output_type
  701. 10, // [10:10] is the sub-list for method input_type
  702. 10, // [10:10] is the sub-list for extension type_name
  703. 10, // [10:10] is the sub-list for extension extendee
  704. 0, // [0:10] is the sub-list for field type_name
  705. }
  706. func init() { file_exchange_proto_init() }
  707. func file_exchange_proto_init() {
  708. if File_exchange_proto != nil {
  709. return
  710. }
  711. file_base_type_proto_init()
  712. type x struct{}
  713. out := protoimpl.TypeBuilder{
  714. File: protoimpl.DescBuilder{
  715. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  716. RawDescriptor: unsafe.Slice(unsafe.StringData(file_exchange_proto_rawDesc), len(file_exchange_proto_rawDesc)),
  717. NumEnums: 0,
  718. NumMessages: 10,
  719. NumExtensions: 0,
  720. NumServices: 0,
  721. },
  722. GoTypes: file_exchange_proto_goTypes,
  723. DependencyIndexes: file_exchange_proto_depIdxs,
  724. MessageInfos: file_exchange_proto_msgTypes,
  725. }.Build()
  726. File_exchange_proto = out.File
  727. file_exchange_proto_goTypes = nil
  728. file_exchange_proto_depIdxs = nil
  729. }