base.go 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989
  1. package msg
  2. func MustNotNil[T any](cost []T) []T {
  3. if cost == nil {
  4. return make([]T, 0)
  5. }
  6. return cost
  7. }
  8. type RPCer interface {
  9. SetMsgId(int64)
  10. GetMsgId() int64
  11. }
  12. type RpcRequestMsg struct {
  13. MsgId int64
  14. }
  15. func (r *RpcRequestMsg) SetMsgId(id int64) {
  16. r.MsgId = id
  17. }
  18. func (r *RpcRequestMsg) GetMsgId() int64 {
  19. return r.MsgId
  20. }
  21. type RpcResponse interface {
  22. RPCer
  23. GetErrCode() int
  24. }
  25. type RpcResponseMsg struct {
  26. MsgId int64
  27. ErrCode int `json:"errCode"`
  28. }
  29. func (r *RpcResponseMsg) SetMsgId(id int64) {
  30. r.MsgId = id
  31. }
  32. func (r *RpcResponseMsg) GetMsgId() int64 {
  33. return r.MsgId
  34. }
  35. func (r *RpcResponseMsg) GetErrCode() int {
  36. return r.ErrCode
  37. }
  38. // HappyNewDay 跨天包,只返回passroom和视频次数
  39. type HappyNewDay struct {
  40. PlayerID int64 `json:"userId"`
  41. }
  42. type ResponseHappyNewDay struct {
  43. ErrCode int `json:"errCode"`
  44. Msg string `json:"msg,omitempty"`
  45. Data *HappyNewDayData `json:"data"`
  46. }
  47. type HappyNewDayData struct {
  48. // PassRoom []*model.PlayerPassRoom `json:"passRoom"`
  49. // VipBuffs []*VipBuffData `json:"buffs"`
  50. // AdCount int `json:"adCount"`
  51. }
  52. // Heart 心跳
  53. type Heart struct {
  54. }
  55. type ResponseHeart struct {
  56. ErrCode int `json:"errCode"`
  57. Msg string `json:"msg,omitempty"`
  58. ServerTs int64 `json:"serverts"`
  59. }
  60. // 获取时间
  61. type SystemTime struct {
  62. }
  63. type ResponseSystemTime struct {
  64. ErrCode int `json:"errCode"`
  65. Msg string `json:"msg,omitempty"`
  66. Data int64 `json:"data"`
  67. }
  68. // 邀请好友
  69. type InviteFriend struct {
  70. PlayerId int64 `json:"userId"`
  71. Friend int64 `json:"friend"`
  72. ClientPlat string `json:"clientPlat"`
  73. }
  74. // 24点通知
  75. type GoodNewDay struct {
  76. ErrCode int `json:"errCode"`
  77. }
  78. // 给客户端的公告通知
  79. type Placard struct {
  80. Type string `json:"type"`
  81. Customize int `json:"customize"` //1:自定义
  82. Priority int `json:"priority"`
  83. Content string `json:"content,omitempty"`
  84. Sender int64 `json:"sender"`
  85. Params map[string]string `json:"params,omitempty"`
  86. Times int `json:"times"`
  87. }
  88. // 踢出玩家
  89. type KickOut struct {
  90. ErrCode int `json:"errCode"`
  91. Msg string `json:"msg,omitempty"`
  92. }
  93. // // Heart 心跳
  94. // type HeartSync struct {
  95. // }
  96. // type ResponseHeartSync struct {
  97. // ServerTs int64 `json:"serverts"`
  98. // }
  99. // // ClientEcho
  100. // type ClientEcho struct {
  101. // }
  102. // type ResponseClientEcho struct {
  103. // //ServerTs int64 `json:"serverts"`
  104. // }
  105. // // 服务器在线人数
  106. // type ServerStatus struct {
  107. // ServerID int
  108. // Online int
  109. // }
  110. // // 更换穿戴
  111. // type ChangeWear struct {
  112. // PlayerID int64 `json:"userId"`
  113. // BodyGID string `json:"bodyId"`
  114. // BagGID string `json:"packId"`
  115. // Suit int `json:"index"`
  116. // }
  117. // type ResponseChangeWear struct {
  118. // ErrCode int `json:"errCode"`
  119. // Msg string `json:"msg,omitempty"`
  120. // Data *model.BodyPart `json:"data"`
  121. // }
  122. // // type EquipmentsData struct {
  123. // // Old *model.DropEquipment `json:"oldEquip"` //更换前装备
  124. // // New *model.DropEquipment `json:"NewEquip"` //更换后装备
  125. // // }
  126. // // 装备升级 物品ID
  127. // type BodyLevelUp struct {
  128. // PlayerID int64 `json:"userId"`
  129. // Part int `json:"part"`
  130. // OptType int64 `json:"optType"` // 0:升级 1:一键升级
  131. // }
  132. // type ResponseBodyLevelUp struct {
  133. // ErrCode int `json:"errCode"`
  134. // Msg string `json:"msg,omitempty"`
  135. // Data *BodyLevelUpData `json:"data"`
  136. // }
  137. // type BodyLevelUpData struct {
  138. // Part int `json:"part"`
  139. // Level int `json:"level"`
  140. // Cost []*model.DropMaterial `json:"cost"` //消耗的材料
  141. // }
  142. // // 身体升阶
  143. // type BodyStepUp struct {
  144. // PlayerID int64 `json:"userId"`
  145. // Part int `json:"part"`
  146. // }
  147. // type ResponseBodyStepUp struct {
  148. // ErrCode int `json:"errCode"`
  149. // Msg string `json:"msg,omitempty"`
  150. // Data *BodyStepUpData `json:"data"`
  151. // }
  152. // type BodyStepUpData struct {
  153. // Part int `json:"part"`
  154. // Step int `json:"step"`
  155. // Cost []*model.DropMaterial `json:"cost"` //消耗的材料
  156. // }
  157. // // 装备升级 物品ID
  158. // type EquipmentStarUp struct {
  159. // PlayerID int64 `json:"userId"`
  160. // GID string `json:"gId"`
  161. // MatGIDs []string `json:"matIds"`
  162. // }
  163. // type ResponseEquipmentStarUp struct {
  164. // ErrCode int `json:"errCode"`
  165. // Msg string `json:"msg,omitempty"`
  166. // Data *EquipmentStarUpData `json:"data"`
  167. // }
  168. // type EquipmentStarUpData struct {
  169. // Wear int `json:"wear"` //1:穿戴; 0:不穿戴 -> -1:不穿戴 0~2:穿戴套装位置
  170. // Equipment *model.DropEquipment `json:"equipment"` //升级后的装备
  171. // Removes []*model.DropEquipment `json:"removes"` //移除的装备
  172. // Materials []*model.DropMaterial `json:"materials"` //返还的材料
  173. // }
  174. // // EquipOneSynth 装备一键合成
  175. // type EquipOneSynth struct {
  176. // PlayerID int64 `json:"userId"`
  177. // }
  178. // type ResponseEquipOneSynth struct {
  179. // ErrCode int `json:"errCode"`
  180. // Msg string `json:"msg,omitempty"`
  181. // Data *EquipOneSynthData `json:"data"`
  182. // }
  183. // type EquipOneSynthData struct {
  184. // Wears []*model.DropEquipment `json:"wears"` // 需要穿戴的装备
  185. // Gets []*model.DropEquipment `json:"gets"` // 升级后获得的装备
  186. // Removes []*model.DropEquipment `json:"removes"` // 移除的装备
  187. // Materials []*model.DropMaterial `json:"materials"` // 返还的材料
  188. // Count int `json:"count"` // 合成次数
  189. // }
  190. // // 装备分解
  191. // type ExtractEquipment struct {
  192. // PlayerID int64 `json:"userId"`
  193. // GID string `json:"gId"`
  194. // }
  195. // type ResponseExtractEquipment struct {
  196. // ErrCode int `json:"errCode"`
  197. // Msg string `json:"msg,omitempty"`
  198. // Data *ExtractEquipmentData `json:"data"`
  199. // }
  200. // type ExtractEquipmentData struct {
  201. // Equipments *model.DropEquipment `json:"equipments"` //分解的装备
  202. // Materials []*model.DropMaterial `json:"materials"` //分解所得的材料
  203. // }
  204. // // 转换装备
  205. // type EquipmentTransfer struct {
  206. // PlayerID int64 `json:"userId"`
  207. // OldGID string `json:"oldGId"`
  208. // NewID int64 `json:"newId"`
  209. // }
  210. // type ResponseEquipmentTransfer struct {
  211. // ErrCode int `json:"errCode"`
  212. // Msg string `json:"msg,omitempty"`
  213. // Data *EquipmentTransferData `json:"data"`
  214. // }
  215. // type EquipmentTransferData struct {
  216. // NewID int64 `json:"newId"`
  217. // Cost []*model.DropMaterial `json:"cost"` //消耗的材料
  218. // }
  219. // // 转换装备
  220. // type EquipmentHistory struct {
  221. // PlayerID int64 `json:"userId"`
  222. // }
  223. // type ResponseEquipmentHistory struct {
  224. // ErrCode int `json:"errCode"`
  225. // Msg string `json:"msg,omitempty"`
  226. // Data []*EquipmentHistoryData `json:"data"`
  227. // }
  228. // type EquipmentHistoryData struct {
  229. // Star int `json:"star"` // 历史拥有最高品质
  230. // Model int `json:"model"` //套装ID Material
  231. // Body int `json:"body"` //穿着部位 WearPart
  232. // }
  233. // // 宝物升星
  234. // type TreasureMaterialData struct {
  235. // Materials []*model.DropMaterial `json:"materials"`
  236. // Old int64 `json:"old"`
  237. // New int64 `json:"new"`
  238. // LuckyValue float64 `json:"luckyValue"` // 幸运值
  239. // }
  240. // type TreasureStarUp struct {
  241. // PlayerID int64 `json:"userId"`
  242. // ID int64 `json:"treasureId"`
  243. // }
  244. // type ResponseTreasureStarUp struct {
  245. // ErrCode int `json:"errCode"`
  246. // Msg string `json:"msg,omitempty"`
  247. // Data *TreasureMaterialData `json:"data"`
  248. // }
  249. // // 宝物升级
  250. // type TreasureLevelUp struct {
  251. // PlayerID int64 `json:"userId"`
  252. // ID int64 `json:"treasureId"`
  253. // OptType int64 `json:"optType"` // 0: 升级 1:一键升级
  254. // }
  255. // type ResponseTreasureLevelUp struct {
  256. // ErrCode int `json:"errCode"`
  257. // Msg string `json:"msg,omitempty"`
  258. // Data *TreasureMaterialData `json:"data"`
  259. // }
  260. // // 解锁宝物
  261. // type ActiveTreasure struct {
  262. // PlayerID int64 `json:"userId"`
  263. // TID int64 `json:"treasureId"`
  264. // }
  265. // type ResponseActiveTreasure struct {
  266. // ErrCode int `json:"errCode"`
  267. // Msg string `json:"msg,omitempty"`
  268. // Data *ActiveTreasureData `json:"data"`
  269. // }
  270. // // DropedTreasure 拥有的宝物
  271. // // type DropedTreasure struct {
  272. // // RoleID int64 `json:"roleId"` // 佩戴角色
  273. // // TID int64 `json:"treasureId"` // 宝物id
  274. // // }
  275. // type ActiveTreasureData struct {
  276. // Materials []*model.DropMaterial `json:"materials"`
  277. // Treasures *model.DropedTreasure `json:"treasures"`
  278. // }
  279. // // 佩戴宝物
  280. // type ChangeTreasure struct {
  281. // PlayerID int64 `json:"userId"`
  282. // ID int64 `json:"treasureId"`
  283. // RoleID int64 `json:"roleId"`
  284. // }
  285. // // ChangeTreasureData 拥有的宝物
  286. // type ChangeTreasureData struct {
  287. // RoleID int64 `json:"roleId"` // 佩戴角色
  288. // OldTID int64 `json:"oldTreasureId"` // 卸下宝物id
  289. // NewTID int64 `json:"newTreasureId"` // 装备宝物id
  290. // }
  291. // type ResponseChangeTreasure struct {
  292. // ErrCode int `json:"errCode"`
  293. // Msg string `json:"msg,omitempty"`
  294. // Data *ChangeTreasureData `json:"data"`
  295. // }
  296. // // 角色升级
  297. // type RoleLevelUp struct {
  298. // PlayerID int64 `json:"userId"`
  299. // RoleID int64 `json:"roleId"`
  300. // OptType int64 `json:"optType"` // 0: 升级 1:突破 2:一键升级
  301. // }
  302. // type ResponseRoleLevelUp struct {
  303. // ErrCode int `json:"errCode"`
  304. // Msg string `json:"msg,omitempty"`
  305. // Data *RoleMaterialData `json:"data"`
  306. // }
  307. // type RoleMaterialData struct {
  308. // Materials []*model.DropMaterial `json:"materials"`
  309. // Old int64 `json:"old"`
  310. // New int64 `json:"New"`
  311. // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` // 专属宝物
  312. // }
  313. // // 购买角色劵
  314. // type BuyRoleKey struct {
  315. // PlayerID int64 `json:"userId"`
  316. // Num int `json:"num"`
  317. // }
  318. // type BuyRoleKeyData struct {
  319. // Materials []*model.DropMaterial `json:"materials"`
  320. // Cost []*model.DropMaterial `json:"cost"`
  321. // }
  322. // type ResponseBuyRoleKey struct {
  323. // ErrCode int `json:"errCode"`
  324. // Msg string `json:"msg,omitempty"`
  325. // Data *BuyRoleKeyData `json:"data"`
  326. // }
  327. // // 角色升星
  328. // type RoleStarUp struct {
  329. // PlayerID int64 `json:"userId"`
  330. // RoleID int64 `json:"roleId"`
  331. // }
  332. // type ResponseRoleStarUp struct {
  333. // ErrCode int `json:"errCode"`
  334. // Msg string `json:"msg,omitempty"`
  335. // Data *RoleMaterialData `json:"data"`
  336. // }
  337. // // 角色重置
  338. // type RoleReplacement struct {
  339. // PlayerID int64 `json:"userId"`
  340. // RoleID int64 `json:"roleId"`
  341. // }
  342. // type ResponseRoleReplacement struct {
  343. // ErrCode int `json:"errCode"`
  344. // Msg string `json:"msg,omitempty"`
  345. // Data *RoleReplacementData `json:"data"`
  346. // }
  347. // type RoleReplacementData struct {
  348. // Materials []*model.DropMaterial `json:"materials"`
  349. // Cost []*model.DropMaterial `json:"cost"`
  350. // Old int64 `json:"old"`
  351. // New int64 `json:"new"`
  352. // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` // 专属宝物
  353. // }
  354. // // 天赋升级
  355. // type TalentLevelUp struct {
  356. // PlayerID int64 `json:"userId"`
  357. // }
  358. // type ResponseTalentLevelUp struct {
  359. // ErrCode int `json:"errCode"`
  360. // Msg string `json:"msg,omitempty"`
  361. // Data *PlayerMaterialData `json:"data"`
  362. // }
  363. // type PlayerMaterialData struct {
  364. // Cost []*model.DropMaterial `json:"cost"`
  365. // Talents *model.DropTalent `json:"talents"`
  366. // Cd int64 `json:"cd"`
  367. // //Materials []*model.DropMaterial `json:"materials"`
  368. // //TalentPoint int `json:"talentPoint"`
  369. // }
  370. // // 天赋免费剩余cd
  371. // type TalentVipCd struct {
  372. // PlayerID int64 `json:"userId"`
  373. // }
  374. // type ResponseTalentVipCd struct {
  375. // ErrCode int `json:"errCode"`
  376. // Msg string `json:"msg,omitempty"`
  377. // Cd int64 `json:"data"`
  378. // }
  379. // // 更换角色
  380. // type ChangeRole struct {
  381. // PlayerID int64 `json:"userId"`
  382. // RoleIDs []int64 `json:"roleIds"`
  383. // }
  384. // type ResponseChangeRole struct {
  385. // ErrCode int `json:"errCode"`
  386. // Msg string `json:"msg,omitempty"`
  387. // Data []int64 `json:"data"`
  388. // }
  389. // // 解锁角色
  390. // type ActiveRole struct {
  391. // PlayerID int64 `json:"userId"`
  392. // RoleID int64 `json:"roleId"`
  393. // }
  394. // type ResponseActiveRole struct {
  395. // ErrCode int `json:"errCode"`
  396. // Msg string `json:"msg,omitempty"`
  397. // Data *ActiveRoleData `json:"data"`
  398. // }
  399. // type ActiveRoleData struct {
  400. // Materials []*model.DropMaterial `json:"materials"`
  401. // Roles *model.DropedRole `json:"roles"`
  402. // }
  403. // // 设置角色升级是否提示
  404. // type SetRoleLevelTip struct {
  405. // PlayerID int64 `json:"userId"`
  406. // RoleID int64 `json:"roleId"`
  407. // NoTip int `json:"NoTip"` //0:提示, 1:不提示
  408. // }
  409. // type ResponseSetRoleLevelTip struct {
  410. // ErrCode int `json:"errCode"`
  411. // Msg string `json:"msg,omitempty"`
  412. // Data int `json:"data"`
  413. // }
  414. // type SettleRoomInfo struct {
  415. // ID int `json:"id"`
  416. // }
  417. // // 战斗结算
  418. // type SettleBattle struct {
  419. // PlayerID int64 `json:"userId"`
  420. // Chapter uint `json:"chapter"`
  421. // Difficulty int `json:"difficulty"`
  422. // PassRoom int `json:"passRoom"` // 最大通过房间 远征表示关卡数
  423. // PassChapter bool `json:"passChapter"` // 是否通关
  424. // CurPassRoom int `json:"emigrated"` // 本次通过的房间数
  425. // IsActivity bool `json:"isActivity"` // 是不是活动
  426. // Coin int `json:"coin"` // 金币
  427. // Diamond int `json:"diamond"` // 钻石
  428. // WinLose int `json:"result"` //1:赢, -1:输, 0:中途退出
  429. // Equipments []int64 `json:"equipments"`
  430. // KillBoss int `json:"killBoss"` // 击杀BOSS数量
  431. // KillMonster int `json:"killMonster"`
  432. // Materials []*model.DropMaterial `json:"materials"`
  433. // RoomInfo *SettleRoomInfo `json:"roomId"` // 是否结算房间怪物产出信息
  434. // SwitchRole int `json:"switchRole"` //切换角色
  435. // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
  436. // RewardMulti float64 `json:"rewardMulti"` // 结算奖励倍数
  437. // EndLessSkills []int `json:"endLessSkills"` // 无尽三选一技能 展示用
  438. // SyncGroupId int64 `json:"matchRoomId,string"` //多人战时,填写同步分组ID; 单人时填写0
  439. // DpsOutput int64 `json:"dpsOutput"`
  440. // CreateTime int64 `json:"createTime"` // 活动开始时间
  441. // ClientPlat string `json:"clientPlat"`
  442. // }
  443. // type ResponseSettleBattle struct {
  444. // ErrCode int `json:"errCode"`
  445. // Msg string `json:"msg,omitempty"`
  446. // Data *SettleData `json:"data"`
  447. // }
  448. // type SettleData struct {
  449. // UID int64 `json:"userId"`
  450. // Exp int64 `json:"userExp"`
  451. // Level int `json:"userLevel"`
  452. // TalentPoint int `json:"talentPoint"`
  453. // FirstPass bool `json:"firstPass"`
  454. // Materials []*model.DropMaterial `json:"materials"`
  455. // Equipments []*model.DropEquipment `json:"equipments"`
  456. // UserRewards []*model.DropMaterial `json:"userRewards"`
  457. // UserRewardEquips []*model.DropEquipment `json:"userRewardsEquip"`
  458. // PassRoom *model.PlayerPassRoom `json:"passRoom"`
  459. // RewardMultiId int `json:"rewardMultiId"` // 结算奖励倍数
  460. // SyncOtherData *SyncOther `json:"syncOther"`
  461. // }
  462. // // RequestLevelData 客户端存储数据
  463. // type RequestLevelData struct {
  464. // PlayerID int64 `json:"id"`
  465. // Level int `json:"level"`
  466. // Token string `json:"token"`
  467. // Score int `json:"score"`
  468. // }
  469. // // ResponseLevelData 1
  470. // type ResponseLevelData struct {
  471. // ErrCode int `json:"errCode"`
  472. // ErrMsg string `json:"errMsg"`
  473. // PlayerID int64 `json:"playerId"`
  474. // RankInfo []RankData `json:"rank"`
  475. // }
  476. // type RankData struct {
  477. // PlayerID int64 `json:"id"`
  478. // Score int `json:"score"`
  479. // NickName string `json:"nickname"`
  480. // AvatarURL string `json:"avarurl"`
  481. // Rank int32 `json:"rank"`
  482. // Level int `json:"level"`
  483. // }
  484. // // 商店商品
  485. // type BuyGoods struct {
  486. // PlayerID int64 `json:"userId"`
  487. // GoodsID int64 `json:"-"`
  488. // Cost []*model.DropMaterial `json:"cost"`
  489. // Equipments []*model.DropEquipment `json:"equipments"`
  490. // Materials []*model.DropMaterial `json:"materials"`
  491. // CoinTimeLen int `json:"coinTimeLen"` //巡逻时长的金币收益
  492. // Guide int `json:"guide"`
  493. // BuyNum int `json:"buyNum"` //购买箱子数目
  494. // BoxType int `json:"boxType"` // 0白银 1黄金
  495. // BoxExp int `json:"boxExp"` // 箱子经验
  496. // BuyItemNum int `json:"buyItemNum"` //购买道具数目
  497. // CurBuyNum int `json:"buyCount"` // 已经购买次数
  498. // // CD int `json:"cd"` //CD
  499. // // MaxCount int `json:"maxCount"` //剩余最大次数
  500. // // DrawEpicCount int `json:"drawEpicCount"` //宝箱必出诗史剩余次数
  501. // // CostType int `json:"type"` // 2:广告券 3:看广告
  502. // }
  503. // type ResponseBuyGoods struct {
  504. // ErrCode int `json:"errCode"`
  505. // Msg string `json:"msg,omitempty"`
  506. // Data *ChangedAssetsData `json:"data"`
  507. // }
  508. // type ChangedAssetsData struct {
  509. // Coin int `json:"coin"`
  510. // Diamond int `json:"diamond"`
  511. // Equipments []*model.DropEquipment `json:"equipments"`
  512. // Materials []*model.DropMaterial `json:"restores"`
  513. // Cost []*model.DropMaterial `json:"cost,omitempty"`
  514. // }
  515. // // 买宝箱
  516. // type BuyBox struct {
  517. // PlayerID int64 `json:"userId"`
  518. // GoodsID int64 `json:"boxId"`
  519. // Num int `json:"num"` //抽几次
  520. // // CostType int `json:"type"` //0:price配置,金币或钻石;1:钥匙
  521. // Guide int `json:"guide"` // 新手引导:1; 正常购买:0
  522. // BoxType int `json:"boxType"` // 1白银 2黄金
  523. // BuyNum int `json:"buyNum"` //购买几次道具
  524. // ClientPlat string `json:"clientPlat"`
  525. // }
  526. // type ResponseBuyBox struct {
  527. // ErrCode int `json:"errCode"`
  528. // Msg string `json:"msg,omitempty"`
  529. // Data *BoxAssetsData `json:"data"`
  530. // }
  531. // type BoxAssetsData struct {
  532. // GoodsId int64 `json:"goodsId"`
  533. // // CD int `json:"cd"` //CD
  534. // // MaxCount int `json:"maxCount"` //剩余最大次数
  535. // // DrawEpicCount int `json:"drawEpicCount"` //抽了多少次 宝箱剩余次数
  536. // Equipments []*model.DropEquipment `json:"equipments"`
  537. // Materials []*model.DropMaterial `json:"restores"`
  538. // Cost []*model.DropMaterial `json:"cost"`
  539. // // CostType int `json:"costType"` //0:price配置,金币或钻石;1:钥匙
  540. // BoxType int `json:"boxType"` // 0白银 1黄金
  541. // BoxExp int `json:"boxExp"` // 箱子经验
  542. // BuyItemNum int `json:"buyNum"` //购买几次道具
  543. // CurBuyItemNum int `json:"buyCount"` //道具剩余次数 只有每日限制道具返回
  544. // }
  545. // // 买宝箱
  546. // type FreeBox struct {
  547. // PlayerID int64 `json:"userId"`
  548. // BoxID int64 `json:"boxId"`
  549. // CostType int `json:"type"` // 2:广告券 3:看广告
  550. // }
  551. // type ResponseFreeBox struct {
  552. // ErrCode int `json:"errCode"`
  553. // Msg string `json:"msg,omitempty"`
  554. // Data *BoxAssetsData `json:"data"`
  555. // }
  556. // // 使用宝箱
  557. // type UseBox struct {
  558. // PlayerID int64 `json:"userId"`
  559. // BoxID int64 `json:"boxId"`
  560. // Num int `json:"num"` // 使用宝箱数量
  561. // Selects []int64 `json:"selects"` //自选商品,自选礼包用,其他两个礼包不用
  562. // }
  563. // type ResponseUseBox struct {
  564. // ErrCode int `json:"errCode"`
  565. // Msg string `json:"msg,omitempty"`
  566. // Data *UseBoxData `json:"data"`
  567. // }
  568. // type UseBoxData struct {
  569. // BoxID int64 `json:"boxId"`
  570. // Num int `json:"num"` // 使用宝箱数量
  571. // Equipments []*model.DropEquipment `json:"equipments"`
  572. // Materials []*model.DropMaterial `json:"materials"`
  573. // }
  574. // // UpdateClientData 客户端存储数据
  575. // type UpdateClientData struct {
  576. // PlayerID int64 `json:"userId"`
  577. // Token string `json:"token"`
  578. // Type string `json:"type"`
  579. // Data string `json:"data"`
  580. // }
  581. // // ResponseUpdateClientData 1
  582. // type ResponseUpdateClientData struct {
  583. // ErrCode int `json:"errCode"`
  584. // Msg string `json:"msg,omitempty"`
  585. // Data string `json:"data"`
  586. // }
  587. // // ClientData 客户端存储数据
  588. // type ClientData struct {
  589. // PlayerID int64 `json:"userId"`
  590. // Type string `json:"type"`
  591. // }
  592. // // ResponseClientData 用户名注册
  593. // type ResponseClientData struct {
  594. // ErrCode int `json:"errCode"`
  595. // Msg string `json:"msg,omitempty"`
  596. // Data ClientDataItem `json:"data"`
  597. // }
  598. // type ClientDataItem struct {
  599. // Type string `json:"type"`
  600. // Data string `json:"data"`
  601. // }
  602. // // 请求购买信息
  603. // type BuyGoodsInfo struct {
  604. // PlayerID int64 `json:"userId"`
  605. // ClientPlat string `json:"clientPlat"`
  606. // }
  607. // type ResponseBuyGoodsInfo struct {
  608. // ErrCode int `json:"errCode"`
  609. // Msg string `json:"msg,omitempty"`
  610. // Data *BuyGoodsInfoData `json:"data"`
  611. // }
  612. // type BuyGoodsInfoData struct {
  613. // BoxInfo []*BoxGoodsData `json:"boxInfo"`
  614. // RandRoleAccNum int `json:"randRoleCount"`
  615. // GoldKeyExp int `json:"goldKeyExp"`
  616. // SilverKeyExp int `json:"silverKeyExp"`
  617. // DrawNum int `json:"drawNum"` // 抽奖次数
  618. // DrawRole int64 `json:"drawRole"` // 选择角色
  619. // }
  620. // type BoxGoodsData struct {
  621. // GoodsID int64 `json:"goodsId"`
  622. // DayAdCount int `json:"buyCount"`
  623. // ToEpicCount int `json:"toEpicCount"`
  624. // CD int64 `json:"cd"`
  625. // }
  626. // // CoinGiftInfo
  627. // type CoinGiftInfo struct {
  628. // PlayerID int64 `json:"userId"`
  629. // ClientPlat string `json:"clientPlat"`
  630. // }
  631. // type ResponseCoinGiftInfo struct {
  632. // ErrCode int `json:"errCode"`
  633. // Msg string `json:"msg,omitempty"`
  634. // Data *CoinGiftInfoData `json:"data"`
  635. // }
  636. // type CoinGiftInfoData struct {
  637. // GoodsID int64 `json:"goodsId"`
  638. // BuyCount int `json:"buyCount"`
  639. // CD int64 `json:"cd"`
  640. // }
  641. // // 钻石购买道具信息
  642. // type DiamondBuyInfo struct {
  643. // PlayerID int64 `json:"userId"`
  644. // ClientPlat string `json:"clientPlat"`
  645. // }
  646. // type ResponseDiamondBuyInfo struct {
  647. // ErrCode int `json:"errCode"`
  648. // Msg string `json:"msg,omitempty"`
  649. // Data *DiamondBuyInfoData `json:"data"`
  650. // }
  651. // type DiamondBuyInfoData struct {
  652. // ShopInfo []*DiamondBuyShopData `json:"shopInfo"`
  653. // RefreshInfo []*DiamondShopRefreshData `json:"refreshInfo"`
  654. // }
  655. // type DiamondShopRefreshData struct {
  656. // ShopType int `json:"shopType"`
  657. // Count int `json:"count"`
  658. // Cd int64 `json:"cd"`
  659. // Cost []*model.DropMaterial `json:"cost"`
  660. // }
  661. // type DiamondBuyShopData struct {
  662. // GoodsID int64 `json:"goodsId"`
  663. // Count int `json:"buyCount"`
  664. // Discount int `json:"Discount"` // 100代表 不打折
  665. // }
  666. // // 刷新
  667. // type DiamondBuyRefresh struct {
  668. // PlayerID int64 `json:"userId"`
  669. // ClientPlat string `json:"clientPlat"`
  670. // ShopType int `json:"shopType"`
  671. // }
  672. // type ResponseDiamondBuyRefresh struct {
  673. // ErrCode int `json:"errCode"`
  674. // Msg string `json:"msg,omitempty"`
  675. // Data *DiamondBuyRefreshData `json:"data"`
  676. // }
  677. // type DiamondBuyRefreshData struct {
  678. // ShopInfo []*DiamondBuyShopData `json:"shopInfo"`
  679. // RefreshInfo *DiamondShopRefreshData `json:"refreshInfo"`
  680. // }
  681. // // 神秘商人商店信息
  682. // type DealerShop struct {
  683. // PlayerID int64 `json:"userId"`
  684. // }
  685. // type ResponseDealerShop struct {
  686. // ErrCode int `json:"errCode"`
  687. // Msg string `json:"msg,omitempty"`
  688. // Data *DealerSalesGoodsData `json:"data"`
  689. // }
  690. // type DealerSalesGoodsData struct {
  691. // CurTick int64 `json:"timeStamp"`
  692. // DealerID int `json:"dealerId"`
  693. // Equipments []int64 `json:"equipments"`
  694. // Materials []*model.DropMaterial `json:"materials"`
  695. // //Favorites []*model.Favorite `json:"favorite"`
  696. // RefTotalTimes int64 `json:"refTotalTimes"` // 总次数
  697. // RefUseTimes int64 `json:"refUseTimes"` // 使用次数
  698. // RefCDTime int64 `json:"refCDTime"` // CD时间
  699. // Cost []*model.DropMaterial `json:"cost"` // 刷新消耗
  700. // }
  701. // // 神秘商人交换物品
  702. // type SwitchDealerGoods struct {
  703. // PlayerID int64 `json:"userId"`
  704. // Cost []*model.DropMaterial `json:"cost"`
  705. // Equipments []int64 `json:"equipments"`
  706. // Materials []*model.DropMaterial `json:"materials"`
  707. // }
  708. // type ResponseSwitchDealerGoods struct {
  709. // ErrCode int `json:"errCode"`
  710. // Msg string `json:"msg,omitempty"`
  711. // Data *SwitchGoodsData `json:"data"`
  712. // }
  713. // type SwitchGoodsData struct {
  714. // Equipments []*model.DropEquipment `json:"equipments"`
  715. // Materials []*model.DropMaterial `json:"restores"`
  716. // Cost []*model.DropMaterial `json:"cost"`
  717. // }
  718. // // 神秘商人刷新
  719. // type TraderRef struct {
  720. // PlayerID int64 `json:"userId"`
  721. // }
  722. // type ResponseTraderRef struct {
  723. // ErrCode int `json:"errCode"`
  724. // Msg string `json:"msg,omitempty"`
  725. // Data *DealerSalesGoodsData `json:"data"`
  726. // }
  727. // type TraderRefCost struct {
  728. // PlayerId int64 `json:"playerId"`
  729. // RefTimes int64 `json:"refTimes"`
  730. // }
  731. // type ResponseTraderRefCost struct {
  732. // ErrCode int `json:"errCode"`
  733. // Msg string `json:"msg,omitempty"`
  734. // BuffMaterials []*model.ExpireMaterial `json:"buffMaterials"`
  735. // Cost []*model.DropMaterial `json:"cost"`
  736. // }
  737. // // 购买活动次数
  738. // type BuyZoneTicket struct {
  739. // PlayerID int64 `json:"userId"`
  740. // ActiveID uint `json:"activeId"`
  741. // }
  742. // type ResponseBuyZoneTicket struct {
  743. // ErrCode int `json:"errCode"`
  744. // Msg string `json:"msg,omitempty"`
  745. // Data *BuyZoneTicketData `json:"data"`
  746. // }
  747. // type BuyZoneTicketData struct {
  748. // ActiveID uint `json:"activeID"`
  749. // JoinTime int `json:"joinTime"`
  750. // UsedCount int `json:"usedCount"`
  751. // BuyCount int `json:"buyCount"`
  752. // AvailCount int `json:"availCount"`
  753. // Cost []*model.DropMaterial `json:"cost"`
  754. // CD int64 `json:"cd"`
  755. // }
  756. // // 地下城活动参与情况
  757. // type ZoneActives struct {
  758. // PlayerID int64 `json:"userId"`
  759. // }
  760. // type ResponseZoneActives struct {
  761. // ErrCode int `json:"errCode"`
  762. // Msg string `json:"msg,omitempty"`
  763. // Data *ZoneActivesData `json:"data"`
  764. // }
  765. // type ZoneActivesData struct {
  766. // Week int `json:"week"` // 今天是周几
  767. // Opened []*OpenedActiveItem `json:"opend"`
  768. // Closed []*ClosedZoneActiveItem `json:"closed"`
  769. // }
  770. // type OpenedActiveItem struct {
  771. // ActiveID uint `json:"activeID"`
  772. // JoinTime int `json:"joinTime"`
  773. // UsedCount int `json:"usedCount"` // 使用了多少次
  774. // BuyCount int `json:"buyCount"` // 购买了多少次
  775. // AdCount int `json:"adCount"` // 看广告了多少次
  776. // AvailCount int `json:"availCount"` // 剩余可用次数
  777. // CD int64 `json:"cd"` // 活动CD
  778. // AdCD int64 `json:"adCd"` // 看广告CD
  779. // Bonus map[int]*ActiveBonus `json:"bonus"` // 活动加成
  780. // AllCanBuyCount int `json:"allCanBuyCount"` // 可购买总次数
  781. // }
  782. // type ActiveBonus struct {
  783. // RewardId int `json:"rewardId"` // 奖励倍数Id
  784. // }
  785. // type ClosedZoneActiveItem struct {
  786. // ID uint `json:"activeID"`
  787. // CD int64 `json:"cd"`
  788. // //ActiveTime []int `json:"timeInterval"`
  789. // }
  790. // // //进入地下城
  791. // // type EnterZone struct {
  792. // // PlayerID int64 `json:"userId"`
  793. // // ActiveID uint `json:"activeId"`
  794. // // }
  795. // // type ResponseEnterZone struct {
  796. // // ErrCode int `json:"errCode"`
  797. // // Msg string `json:"msg,omitempty"`
  798. // // Data *EnterZoneData `json:"data"`
  799. // // }
  800. // // type EnterZoneData struct {
  801. // // ActiveID uint `json:"activeID"`
  802. // // JoinTime int `json:"joinTime"`
  803. // // UsedCount int `json:"usedCount"`
  804. // // BuyCount int `json:"buyCount"`
  805. // // AvailCount int `json:"availCount"`
  806. // // Difficulty int `json:"difficulty"`
  807. // // CD int64 `json:"cd"`
  808. // // }
  809. // type EnterChapter struct {
  810. // PlayerID int64 `json:"userId"`
  811. // ChapterID uint `json:"activeId"`
  812. // Difficulty int `json:"difficulty"` //普通 困难模式
  813. // IsActivity int `json:"isActivity"` //是否活动
  814. // Stamina int `json:"stamina"` //花费体力
  815. // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
  816. // ClientPlat string `json:"clientPlat"`
  817. // }
  818. // type ResponseEnterChapter struct {
  819. // ErrCode int `json:"errCode"`
  820. // Msg string `json:"msg,omitempty"`
  821. // Data *EnterChapterData `json:"data"`
  822. // }
  823. // type EnterChapterData struct {
  824. // PlayerID int64 `json:"userId"`
  825. // ChapterID uint `json:"activeId"`
  826. // Difficulty int `json:"difficulty"` //普通 困难模式
  827. // ActiveID uint `json:"activeID"`
  828. // JoinTime int `json:"joinTime"` //非活动返回0
  829. // UsedCount int `json:"usedCount"`
  830. // BuyCount int `json:"buyCount"`
  831. // AvailCount int `json:"availCount"`
  832. // Stamina int `json:"stamina"` //剩余体力
  833. // CD int64 `json:"cd"`
  834. // DifScale int `json:"difScale"` // 难度系数
  835. // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
  836. // RewardMulti float64 `json:"rewardMulti"` // 结算奖励倍数
  837. // // 当前最高关卡 无尽使用
  838. // CurRoomId int `json:"roomId"` // 房间id
  839. // EndLessLimitId int `json:"endLessLimitId"` // 房间限制
  840. // SkillTurntables []int `json:"skillTurntables"` // 槽位技能
  841. // Skills []int `json:"exSkills"` // 额外技能
  842. // EndLessEndTs int64 `json:"endLessEndTs"` // 无尽关闭时间
  843. // }
  844. // type EnterChapterIs struct {
  845. // RpcRequestMsg
  846. // PlayerID int64 `json:"userId"`
  847. // ChapterID uint `json:"activeId"`
  848. // Difficulty int `json:"difficulty"` //普通 困难模式
  849. // IsActivity int `json:"isActivity"` //是否活动
  850. // Stamina int `json:"stamina"` //剩余体力
  851. // Level int `json:"level"` //用户体力
  852. // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
  853. // }
  854. // type ResponseEnterChapterIs struct {
  855. // RpcResponseMsg
  856. // ErrCode int `json:"errCode"`
  857. // Data *EnterChapterData `json:"data"`
  858. // }
  859. // // 关卡商人
  860. // type StageDealer struct {
  861. // PlayerID int64 `json:"userId"`
  862. // GoodsID int `json:"goodsId"`
  863. // }
  864. // type ResponseStageDealer struct {
  865. // ErrCode int `json:"errCode"`
  866. // Msg string `json:"msg,omitempty"`
  867. // Data *StageDealerData `json:"data"`
  868. // }
  869. // type StageDealerData struct {
  870. // Diamond int `json:"diamond"`
  871. // Goods *model.DropMaterial `json:"goods"`
  872. // }
  873. // // 买关卡商人物品
  874. // type BuyStageDealerGoods struct {
  875. // PlayerID int64 `json:"userId"`
  876. // GoodsID int `json:"goodsId"`
  877. // Goods []*model.DropMaterial `json:"goods"`
  878. // Cost []*model.DropMaterial `json:"cost"`
  879. // }
  880. // type ResponseBuyStageDealerGoods struct {
  881. // ErrCode int `json:"errCode"`
  882. // PlayerID int64 `json:"userId"`
  883. // GoodsID int `json:"goodsId"`
  884. // Diamond int `json:"diamond"`
  885. // }
  886. // // 怨鬼商人
  887. // type YuanGuiDealer struct {
  888. // PlayerID int64 `json:"userId"`
  889. // GoodsID int `json:"goodsId"`
  890. // }
  891. // type ResponseYuanGuiDealer struct {
  892. // ErrCode int `json:"errCode"`
  893. // Msg string `json:"msg,omitempty"`
  894. // Data *StageDealerData `json:"data"`
  895. // }
  896. // // 请求计算恢复体力数
  897. // type RestoreStamina struct {
  898. // PlayerID int64 `json:"userId"`
  899. // // Type int `json:"type"`
  900. // // Stamina int `json:"data"`
  901. // }
  902. // type ResponseRestoreStamina struct {
  903. // ErrCode int `json:"errCode"`
  904. // Msg string `json:"msg,omitempty"`
  905. // Data *RestoreStaminaData `json:"data"`
  906. // }
  907. // type RestoreStaminaData struct {
  908. // Diamond int `json:"diamond"`
  909. // Stamina int `json:"stamina"`
  910. // MaxStama int `json:"maxStama"`
  911. // CoolDown int `json:"cd"`
  912. // }
  913. // // Type 2:广告券 3:看广告 0:消耗钻石
  914. // // -> Type 2:广告券 3:看广告 6: 消耗钻石 0:免费
  915. // type BuyStamina struct {
  916. // PlayerID int64 `json:"userId"`
  917. // CostType int `json:"type"`
  918. // ClientPlat string `json:"clientPlat"`
  919. // }
  920. // type ResponseBuyStamina struct {
  921. // ErrCode int `json:"errCode"`
  922. // Msg string `json:"msg,omitempty"`
  923. // Data *BuyStaminaData `json:"data"`
  924. // }
  925. // type BuyStaminaData struct {
  926. // Stamina int `json:"stamina"`
  927. // FreeCount int `json:"freeCount"`
  928. // DiamondCount int `json:"diamondCount"`
  929. // Cost []*model.DropMaterial `json:"cost"`
  930. // AdCount int `json:"adCount"`
  931. // CostType int `json:"costType"`
  932. // CD int64 `json:"cd"`
  933. // Materials []*model.DropMaterial `json:"materials"`
  934. // }
  935. // // 查询购买次数
  936. // type QueryBuyStamina struct {
  937. // PlayerID int64 `json:"userId"`
  938. // ClientPlat string `json:"clientPlat"`
  939. // }
  940. // type StaminaBuyData struct {
  941. // AdCount int `json:"adCount"`
  942. // DiamondCount int `json:"diamondCount"`
  943. // CD int64 `json:"cd"`
  944. // }
  945. // type ResponseQueryBuyStamina struct {
  946. // ErrCode int `json:"errCode"`
  947. // Msg string `json:"msg,omitempty"`
  948. // Data StaminaBuyData `json:"data"`
  949. // }
  950. // // 购买钻石
  951. // type BuyDiamond struct {
  952. // PlayerID int64 `json:"userId"`
  953. // Diamond int `json:"diamond"`
  954. // Coin int `json:"coin"`
  955. // }
  956. // type ResponseBuyDiamond struct {
  957. // ErrCode int `json:"errCode"`
  958. // Msg string `json:"msg,omitempty"`
  959. // Data *BuyDiamond `json:"data"`
  960. // }
  961. // // 获取时间
  962. // type SystemTime struct {
  963. // }
  964. // type ResponseSystemTime struct {
  965. // ErrCode int `json:"errCode"`
  966. // Msg string `json:"msg,omitempty"`
  967. // Data int64 `json:"data"`
  968. // }
  969. // // 发送给服务器的通知
  970. // // Type 1:服务器停服维护;2:消息通知 limit:时长,超时之后停服; Msg:消息内容
  971. // type ServerNotifyData struct {
  972. // Type int `json:"type"`
  973. // Limit int `json:"limit"`
  974. // Msg string `json:"msg"`
  975. // }
  976. // type ServerNotify struct {
  977. // ErrCode int `json:"errCode"`
  978. // Data *ServerNotifyData `json:"data"`
  979. // }
  980. // // 更新关卡数据
  981. // type UpdateChapter struct {
  982. // PlayerID int64 `json:"userId"`
  983. // Difficulty int `json:"difficulty"`
  984. // Chapter int `json:"chapter"`
  985. // Doors string `json:"archive"`
  986. // Stuff string `json:"gameStuff"`
  987. // Guide int `json:"guide"`
  988. // }
  989. // type ResponseUpdateChapter struct {
  990. // ErrCode int `json:"errCode"`
  991. // Msg string `json:"msg,omitempty"`
  992. // Data string `json:"data"`
  993. // }
  994. // // 请求关卡数据
  995. // type RequestChapter struct {
  996. // PlayerID int64 `json:"userId"`
  997. // Difficulty int `json:"difficulty"`
  998. // Chapter int `json:"chapter"`
  999. // InviterId int64 `json:"inviterId"`
  1000. // }
  1001. // type RequestChapterData struct {
  1002. // Doors *string `json:"archive"`
  1003. // Stuff *string `json:"gameStuff"`
  1004. // Guide int `json:"guide"`
  1005. // }
  1006. // type ResponseRequestChapter struct {
  1007. // ErrCode int `json:"errCode"`
  1008. // Msg string `json:"msg,omitempty"`
  1009. // Data *RequestChapterData `json:"data"`
  1010. // }
  1011. // //选择第一把武器
  1012. // // type SelectFirstWeapon struct {
  1013. // // PlayerID int64 `json:"userId"`
  1014. // // EID uint `json:"equipId"`
  1015. // // }
  1016. // // type ResponseSelectFirstWeapon struct {
  1017. // // ErrCode int `json:"errCode"`
  1018. // // Msg string `json:"msg,omitempty"`
  1019. // // Data *EquipmentsData `json:"data"`
  1020. // // }
  1021. // // 新手指导步骤
  1022. // type SetGuide struct {
  1023. // PlayerID int64 `json:"userId"`
  1024. // Guide int `json:"guide"`
  1025. // Type int `json:"type"` // 1:引导项 2:功能项
  1026. // }
  1027. // type ResponseSetGuide struct {
  1028. // ErrCode int `json:"errCode"`
  1029. // Msg string `json:"msg,omitempty"`
  1030. // Data int `json:"data"`
  1031. // }
  1032. // type GetGuide struct {
  1033. // PlayerID int64 `json:"userId"`
  1034. // Type int `json:"type"`
  1035. // }
  1036. // type ResponseGetGuide struct {
  1037. // ErrCode int `json:"errCode"`
  1038. // Msg string `json:"msg,omitempty"`
  1039. // Data []int `json:"data"`
  1040. // }
  1041. // // 获取签到情况
  1042. // type QuerySignIn struct {
  1043. // PlayerID int64 `json:"userId"`
  1044. // }
  1045. // type ResponseQuerySignIn struct {
  1046. // ErrCode int `json:"errCode"`
  1047. // Msg string `json:"msg,omitempty"`
  1048. // Data SignInData `json:"data"`
  1049. // }
  1050. // type SignInData struct {
  1051. // Time int64 `json:"time"` //最后签到时间
  1052. // ServerTime int64 `json:"serverTime"` //服务器时间
  1053. // Count int `json:"count"` //总签到次数
  1054. // }
  1055. // // 签到请求
  1056. // type DoSignIn struct {
  1057. // PlayerID int64 `json:"userId"`
  1058. // // Double bool `json:"double"`
  1059. // CostType int `json:"type"` //0:无广告 2:广告券 3:看广告 4:底部广告
  1060. // ClassID int64 `json:"adClassID"` // 广告分类ID
  1061. // ClientPlat string `json:"clientPlat"`
  1062. // }
  1063. // type ResponseDoSignIn struct {
  1064. // ErrCode int `json:"errCode"`
  1065. // Msg string `json:"msg,omitempty"`
  1066. // Data DoSignInData `json:"data"`
  1067. // }
  1068. // // 通知服务器签到奖励
  1069. // type DoSignInData struct {
  1070. // Time int64 `json:"time"` //最后签到时间
  1071. // ServerTime int64 `json:"serverTime"` //服务器时间
  1072. // Count int `json:"count"` //总签到次数
  1073. // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
  1074. // Materials []*model.DropMaterial `json:"restores"` //增加的材料
  1075. // Cost []*model.DropMaterial `json:"cost"`
  1076. // AdCount int `json:"adCount"`
  1077. // CostType int `json:"costType"` // 0:无消耗,2:广告券 3:看广告 4:底部广告
  1078. // }
  1079. // // 进度奖励
  1080. // type ProcessAward struct {
  1081. // PlayerID int64 `json:"userId"`
  1082. // CostType int `json:"type"` //0:无消耗,2:广告券 3:看广告 4:底部广告
  1083. // Awards []*model.ProcessNode `json:"awards"`
  1084. // }
  1085. // type ResponseProcessAward struct {
  1086. // ErrCode int `json:"errCode"`
  1087. // Msg string `json:"msg,omitempty"`
  1088. // Data *ProcessAwardData `json:"data"`
  1089. // }
  1090. // type ProcessAwardData struct {
  1091. // Awards []*model.ProcessNode `json:"awards"`
  1092. // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
  1093. // Materials []*model.DropMaterial `json:"materials"` //增加的材料
  1094. // Cost []*model.DropMaterial `json:"cost"`
  1095. // AdCount int `json:"adCount"`
  1096. // CostType int `json:"costType"` //0:无消耗,2:广告券 3:看广告 4:底部广告
  1097. // }
  1098. // // 进度领取情况
  1099. // type ProcessAwardInfo struct {
  1100. // PlayerID int64 `json:"userId"`
  1101. // Chapters []uint `json:"chapter"`
  1102. // Difficulty int `json:"difficulty"`
  1103. // }
  1104. // type ResponseProcessAwardInfo struct {
  1105. // ErrCode int `json:"errCode"`
  1106. // Msg string `json:"msg,omitempty"`
  1107. // Data []*model.ProcessNode `json:"data"`
  1108. // }
  1109. // // type ProcessNode struct {
  1110. // // ID int
  1111. // // Award []int
  1112. // // }
  1113. // // 更新摘要数据
  1114. // type UpdateSummary struct {
  1115. // PlayerID int64 `json:"userId"`
  1116. // ExitPos string `json:"exitPos"`
  1117. // }
  1118. // type ResponseUpdateSummary struct {
  1119. // ErrCode int `json:"errCode"`
  1120. // Msg string `json:"msg,omitempty"`
  1121. // Data string `json:"data"`
  1122. // }
  1123. // // 请求摘要数据
  1124. // type RequestSummary struct {
  1125. // PlayerID int64 `json:"userId"`
  1126. // Type string `json:"type"`
  1127. // }
  1128. // type RequestSummaryData struct {
  1129. // ExitPos string `json:"exitPos"`
  1130. // }
  1131. // type ResponseRequestSummary struct {
  1132. // ErrCode int `json:"errCode"`
  1133. // Msg string `json:"msg,omitempty"`
  1134. // Data RequestSummaryData `json:"data"`
  1135. // }
  1136. // // 占卜次数
  1137. // type DivinationCount struct {
  1138. // PlayerID int64 `json:"userId"`
  1139. // }
  1140. // type ResponseDivinationCount struct {
  1141. // ErrCode int `json:"errCode"`
  1142. // Msg string `json:"msg,omitempty"`
  1143. // Data DivinationBuffData `json:"data"`
  1144. // }
  1145. // // 占卜
  1146. // type Divination struct {
  1147. // PlayerID int64 `json:"userId"`
  1148. // CostType int `json:"type"` //2:广告券 3:看广告
  1149. // }
  1150. // type ResponseDivination struct {
  1151. // ErrCode int `json:"errCode"`
  1152. // Msg string `json:"msg,omitempty"`
  1153. // Data DivinationData `json:"data"`
  1154. // }
  1155. // type DivinationData struct {
  1156. // DvnId int `json:"dvnId"` //占卜ID
  1157. // BuffId int `json:"buffId"` //bufID
  1158. // EndTime int64 `json:"buffTime"` //buf剩余时间
  1159. // ReuseCount int `json:"reuseCount"` //已延长BUF次数
  1160. // DvnCount int `json:"dvnCount"` //占卜次数
  1161. // ModifyCount int `json:"modifyCount"` //改命次数
  1162. // Material []*model.DropMaterial `json:"material"` //所得材料
  1163. // Cost []*model.DropMaterial `json:"cost"` //耗费材料
  1164. // CostType int `json:"costType"` //2:广告券 3:看广告
  1165. // }
  1166. // // 增加时长
  1167. // type AddBuffTimeLen struct {
  1168. // PlayerID int64 `json:"userId"`
  1169. // CostType int `json:"type"` //2:广告券 3:看广告
  1170. // }
  1171. // type ResponseAddBuffTimeLen struct {
  1172. // ErrCode int `json:"errCode"`
  1173. // Msg string `json:"msg,omitempty"`
  1174. // Data DivinationBuffData `json:"data"`
  1175. // }
  1176. // type DivinationBuffData struct {
  1177. // DvnId int `json:"dvnId"` //占卜ID
  1178. // BuffId int `json:"buffId"` //bufID
  1179. // EndTime int64 `json:"buffTime"` //buf剩余时间
  1180. // ReuseCount int `json:"reuseCount"` //已延长BUF次数
  1181. // DvnCount int `json:"dvnCount"` //占卜次数
  1182. // ModifyCount int `json:"modifyCount"` //改命次数
  1183. // Cost []*model.DropMaterial `json:"cost"` //消耗
  1184. // Materials []*model.DropMaterial `json:"materials"` //获得
  1185. // CostType int `json:"costType"`
  1186. // }
  1187. // // 创建订单
  1188. // type NewOrder struct {
  1189. // PlayerID int64 `json:"userId"`
  1190. // Platform int `json:"platform"` //微信:1; 抖音:2; quick: 3;
  1191. // GoodsID int64 `json:"goodsId"`
  1192. // PayMethod int `json:"midasPay"` //0:苹果游戏外微信支付 1:安卓游戏内支付 2:安卓游戏外微信支付 3:苹果游戏内支付
  1193. // Level int `json:"level"`
  1194. // OpenId string `json:"openId"`
  1195. // ClientPlat string `json:"clientPlat"`
  1196. // }
  1197. // type ResponseNewOrder struct {
  1198. // ErrCode int `json:"errCode"`
  1199. // Msg string `json:"msg,omitempty"`
  1200. // Data *NewOrderData `json:"data"`
  1201. // }
  1202. // type NewOrderData struct {
  1203. // OrderID string `json:"orderID"`
  1204. // Url string `json:"callUrl"`
  1205. // }
  1206. // // 取消订单
  1207. // type CancleOrder struct {
  1208. // PlayerID int64 `json:"userId"`
  1209. // OrderID string `json:"orderID"`
  1210. // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
  1211. // ClientPlat string `json:"clientPlat"`
  1212. // }
  1213. // type ResponseCancleOrder struct {
  1214. // ErrCode int `json:"errCode"`
  1215. // Data string `json:"data"`
  1216. // }
  1217. // type QueryOrder struct {
  1218. // PlayerID int64 `json:"userId"`
  1219. // OrderID string `json:"orderID"`
  1220. // MidasPay int `json:"midasPay"`
  1221. // }
  1222. // // type ResponseQueryOrder struct {
  1223. // // ErrCode int `json:"errCode"`
  1224. // // //Data *PayBuyData `json:"data"`
  1225. // // }
  1226. // type AndroidPayedNotify struct {
  1227. // GoodsID int64 `json:"goodsId"`
  1228. // OrderID string `json:"orderID"`
  1229. // }
  1230. // // 支付购买
  1231. // type PayBuy struct {
  1232. // PlayerID int64 `json:"userId"`
  1233. // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
  1234. // GoodsID int64 `json:"goodsId"`
  1235. // OrderID string `json:"orderID"`
  1236. // Level int `json:"level"`
  1237. // Num int64 `json:"num"` //发送本消息次数
  1238. // ClientPlat string `json:"clientPlat"`
  1239. // }
  1240. // type ResponsePayBuy struct {
  1241. // ErrCode int `json:"errCode"`
  1242. // Msg string `json:"msg,omitempty"`
  1243. // Data *PayBuyData `json:"data"`
  1244. // }
  1245. // type PayBuyData struct {
  1246. // GoodsId int64 `json:"goodsId"`
  1247. // Diamond int `json:"diamond"`
  1248. // Materials []*model.DropMaterial `json:"materials"`
  1249. // Equipments []*model.DropEquipment `json:"equipments"`
  1250. // Buffs *VipBuffData `json:"buffs"`
  1251. // }
  1252. // // 请求支付次数
  1253. // type PayRequestCd struct {
  1254. // PlayerID int64 `json:"userId"`
  1255. // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
  1256. // GoodsID int64 `json:"goodsId"`
  1257. // OrderID string `json:"orderID"`
  1258. // Num int64 `json:"num"`
  1259. // }
  1260. // type ResponsePayRequestCd struct {
  1261. // ErrCode int `json:"errCode"`
  1262. // Msg string `json:"msg,omitempty"`
  1263. // Data *PayRequestCdData `json:"data"`
  1264. // }
  1265. // type PayRequestCdData struct {
  1266. // Num int64 `json:"num"`
  1267. // Cd int `json:"cd"`
  1268. // }
  1269. // type VipBuffData struct {
  1270. // ID int64 `json:"goodsId"`
  1271. // BuyCD int64 `json:"buyCD"`
  1272. // DailyCD int64 `json:"dailyCD"`
  1273. // }
  1274. // // 购买钻石信息
  1275. // type PayDiamondInfo struct {
  1276. // PlayerID int64 `json:"userId"`
  1277. // ClientPlat string `json:"clientPlat"`
  1278. // }
  1279. // type ResponsePayDiamondInfo struct {
  1280. // ErrCode int `json:"errCode"`
  1281. // Msg string `json:"msg,omitempty"`
  1282. // Data []int64 `json:"data"`
  1283. // }
  1284. // // 无尽排行
  1285. // type ElRank struct {
  1286. // PlayerId int64 `json:"userId"`
  1287. // //Level int `json:"level"`
  1288. // }
  1289. // type ResponseElRank struct {
  1290. // ErrCode int `json:"errCode"`
  1291. // Msg string `json:"msg,omitempty"`
  1292. // Data *ElRankData `json:"data"`
  1293. // }
  1294. // type ElRankData struct {
  1295. // RankList []*EndlessRank `json:"rankList"`
  1296. // SelfRank *EndlessRank `json:"selfRank"`
  1297. // }
  1298. // type EndlessRank struct {
  1299. // PlayerID int64 `json:"userId"`
  1300. // Level int `json:"level"`
  1301. // Rank int `json:"rank"`
  1302. // //NickName string `json:"nickName"`
  1303. // CombatEffe int64 `json:"combatEffe"`
  1304. // PersonalItem `json:"personalItem"`
  1305. // }
  1306. // // 无尽模式 查看关卡奖励
  1307. // type ViewElStagePrize struct {
  1308. // PlayerId int64 `json:"userId"`
  1309. // }
  1310. // type ResponseViewElStagePrize struct {
  1311. // ErrCode int `json:"errCode"`
  1312. // Msg string `json:"msg,omitempty"`
  1313. // Data ViewElStagePrizeData `json:"data"`
  1314. // }
  1315. // type ViewElStagePrizeData struct {
  1316. // CurrentLevel int `json:"current"`
  1317. // PrizeLevel int `json:"prize"`
  1318. // }
  1319. // // 领取关卡奖励
  1320. // type ElStagePrize struct {
  1321. // PlayerId int64 `json:"userId"`
  1322. // }
  1323. // type ResponseElStagePrize struct {
  1324. // ErrCode int `json:"errCode"`
  1325. // Msg string `json:"msg,omitempty"`
  1326. // Data *ElStagePrizeData `json:"data"`
  1327. // }
  1328. // type ElStagePrizeData struct {
  1329. // Level int `json:"level"` //领到哪一层
  1330. // Materials []*model.DropMaterial `json:"materials"`
  1331. // Equips []*model.DropEquipment `json:"equips"`
  1332. // }
  1333. // // ElWeekTask 无尽周任务
  1334. // type ElWeekTask struct {
  1335. // PlayerId int64 `json:"userId"`
  1336. // }
  1337. // type ResponseElWeekTask struct {
  1338. // ErrCode int `json:"errCode"`
  1339. // Msg string `json:"msg,omitempty"`
  1340. // Data *ElWeekTaskData `json:"data"`
  1341. // }
  1342. // type ElWeekTaskData struct {
  1343. // Type int `json:"type"` // 任务类型
  1344. // Progress int `json:"progress"` // 任务进度
  1345. // Received map[int]struct{} `json:"received"` // 已领取的档位ID
  1346. // }
  1347. // // ElWeekTaskReceive 无尽周任务领取
  1348. // type ElWeekTaskReceive struct {
  1349. // PlayerId int64 `json:"userId"`
  1350. // Ids []int `json:"ids"` // 要领取的档位ID集合
  1351. // }
  1352. // type ResponseElWeekTaskReceive struct {
  1353. // ErrCode int `json:"errCode"`
  1354. // Msg string `json:"msg,omitempty"`
  1355. // Data *ElWeekTaskReceiveData `json:"data"`
  1356. // }
  1357. // type ElWeekTaskReceiveData struct {
  1358. // Type int `json:"type"` // 任务类型
  1359. // Progress int `json:"progress"` // 任务进度
  1360. // Received map[int]struct{} `json:"received"` // 已领取的档位ID
  1361. // Materials []*model.DropMaterial `json:"materials"`
  1362. // }
  1363. // // 无尽关卡显示
  1364. // type EndLessShowActive struct {
  1365. // PlayerID int64 `json:"userId"`
  1366. // }
  1367. // type ResponseEndLessShowActive struct {
  1368. // ErrCode int `json:"errCode"`
  1369. // Msg string `json:"msg,omitempty"`
  1370. // Data *EndLessShowActiveData `json:"data"`
  1371. // }
  1372. // type EndLessShowActiveData struct {
  1373. // HistoryRank int `json:"historyRank"` // 历史最高排名
  1374. // Skills []int `json:"skills"`
  1375. // CurRank int `json:"curRank"`
  1376. // CurMaxRoomId int `json:"curMaxRoomId"` //最大闯关数
  1377. // EndLessLimitId int `json:"endLessLimitId"` // 房间限制
  1378. // StartTs int64 `json:"startTs"` // 开始时间
  1379. // EndTs int64 `json:"endTs"` // 结束时间
  1380. // ShowTs int64 `json:"showTs"` // 展示时间
  1381. // }
  1382. // // 查看无尽通行证奖励
  1383. // type EndLessShowPass struct {
  1384. // PlayerID int64 `json:"userId"`
  1385. // }
  1386. // type ResponseEndLessShowPass struct {
  1387. // ErrCode int `json:"errCode"`
  1388. // Msg string `json:"msg,omitempty"`
  1389. // Data *EndLessShowPassData `json:"data"`
  1390. // }
  1391. // type EndLessShowPassData struct {
  1392. // Exp int64 `json:"exp"` // 当前活跃度
  1393. // IsMiddleVip int `json:"isMiddleVip"` // 是否开通中级奖励 0:未开通;1:已开通
  1394. // IsSeniorVip int `json:"isSeniorVip"` // 是否开通高级奖励 0:未开通;1:已开通
  1395. // FreeReceived []int `json:"FreeReceived"` // 已领取免费奖励
  1396. // MiddleReceived []int `json:"MiddleReceived"` // 已领取中级奖励
  1397. // SeniorReceived []int `json:"SeniorReceived"` // 已领取高级奖励
  1398. // }
  1399. // type ReceivePassData struct {
  1400. // Mode int `json:"mode"` // 1 免费奖励 2 中级奖励 3 高级奖励
  1401. // Level int `json:"level"`
  1402. // }
  1403. // // 领取无尽通行证奖励
  1404. // type EndLessReceivePassAward struct {
  1405. // PlayerID int64 `json:"userId"`
  1406. // Receive []*ReceivePassData `json:"receivePass"`
  1407. // }
  1408. // type ResponseEndLessReceivePassAward struct {
  1409. // ErrCode int `json:"errCode"`
  1410. // Msg string `json:"msg,omitempty"`
  1411. // Data *EndLessReceivePassAwardData `json:"data"`
  1412. // }
  1413. // type EndLessReceivePassAwardData struct {
  1414. // Materials []*model.DropMaterial `json:"materials"`
  1415. // Receive []*ReceivePassData `json:"receivePass"`
  1416. // }
  1417. // // 购买无尽通行证经验
  1418. // type EndLessPassBuyExp struct {
  1419. // PlayerID int64 `json:"userId"`
  1420. // Num int `json:"num"`
  1421. // }
  1422. // type ResponseEndLessPassBuyExp struct {
  1423. // ErrCode int `json:"errCode"`
  1424. // Msg string `json:"msg,omitempty"`
  1425. // Data *EndLessPassBuyExpAwardData `json:"data"`
  1426. // }
  1427. // type EndLessPassBuyExpAwardData struct {
  1428. // Materials []*model.DropMaterial `json:"materials"`
  1429. // Cost []*model.DropMaterial `json:"cost"`
  1430. // }
  1431. // // 能否购买
  1432. // type PayEndLessPassLimitIs struct {
  1433. // PlayerId int64 `json:"userId"`
  1434. // Ts int64 `json:"Ts"`
  1435. // }
  1436. // // 购买成功
  1437. // type BuyEndLessPassIs struct {
  1438. // PlayerId int64 `json:"userId"`
  1439. // Mode int `json:"mode"` // 1 中级奖励 2 高级奖励
  1440. // Exp int `json:"exp"`
  1441. // }
  1442. // // 看视频领钻石
  1443. // type DiamondGift struct {
  1444. // PlayerID int64 `json:"userId"`
  1445. // GoodsID int64 `json:"goodsId"`
  1446. // CostType int `json:"type"` // 2:广告券 3:看广告
  1447. // ClientPlat string `json:"clientPlat"`
  1448. // }
  1449. // type ResponseDiamondGift struct {
  1450. // ErrCode int `json:"errCode"`
  1451. // Msg string `json:"msg,omitempty"`
  1452. // Data *DiamondGiftData `json:"data"`
  1453. // }
  1454. // type DiamondGiftData struct {
  1455. // GoodsID int64 `json:"goodsId"`
  1456. // MaxCount int `json:"maxCount"` //可以领取次数
  1457. // CD int64 `json:"cd"`
  1458. // Materials []*model.DropMaterial `json:"materials"`
  1459. // Cost []*model.DropMaterial `json:"cost"`
  1460. // AdCount int `json:"adCount"`
  1461. // CostType int `json:"costType"` // 2:广告券 3:看广告
  1462. // }
  1463. // // 看视频领金币
  1464. // type CoinGift struct {
  1465. // PlayerID int64 `json:"userId"`
  1466. // GoodsID int64 `json:"goodsId"`
  1467. // CostType int `json:"type"` // 2:广告券 3:看广告
  1468. // ClassID int64 `json:"adClassID"` // 广告分类ID
  1469. // ClientPlat string `json:"clientPlat"`
  1470. // }
  1471. // type ResponseCoinGift struct {
  1472. // ErrCode int `json:"errCode"`
  1473. // Msg string `json:"msg,omitempty"`
  1474. // Data *DiamondGiftData `json:"data"`
  1475. // }
  1476. // type CoinGiftData struct {
  1477. // CostType int `json:"costType"` // 2:广告券 3:看广告
  1478. // AdCount int `json:"adCount"` //双倍广告
  1479. // GoodsID int64 `json:"goodsId"`
  1480. // MaxCount int `json:"maxCount"` //可以领取次数
  1481. // CD int64 `json:"cd"`
  1482. // Materials []*model.DropMaterial `json:"materials"`
  1483. // Cost []*model.DropMaterial `json:"cost"`
  1484. // }
  1485. // // 巡逻
  1486. // type Patrol struct {
  1487. // PlayerID int64 `json:"userId"`
  1488. // }
  1489. // type ResponsePatrol struct {
  1490. // ErrCode int `json:"errCode"`
  1491. // Msg string `json:"msg,omitempty"`
  1492. // Data *PatrolData `json:"data"`
  1493. // }
  1494. // type PatrolData struct {
  1495. // TimeLen int `json:"timeLen"` //巡逻时长
  1496. // MaxTimeLen int `json:"maxTimeLen"`
  1497. // CointSpeed int `json:"cointSpeed"`
  1498. // ExpSpeed int `json:"expSpeed"`
  1499. // Materials []*model.DropMaterial `json:"materials"` //收益
  1500. // Equipments []int64 `json:"equipments"`
  1501. // }
  1502. // // 巡逻时长
  1503. // type PatrolTimeLen struct {
  1504. // PlayerID int64 `json:"userId"`
  1505. // }
  1506. // type ResponsePatrolTimeLen struct {
  1507. // ErrCode int `json:"errCode"`
  1508. // Msg string `json:"msg,omitempty"`
  1509. // Data *PatrolTimeLenData `json:"data"`
  1510. // }
  1511. // type PatrolTimeLenData struct {
  1512. // TimeLen int `json:"timeLen"` //巡逻时长
  1513. // MaxTimeLen int `json:"maxTimeLen"`
  1514. // }
  1515. // // 服务器使用 结算
  1516. // type PatrolDataIs struct {
  1517. // PlayerId int64
  1518. // TimeLen int `json:"timeLen"` //巡逻时长
  1519. // MaxTimeLen int `json:"maxTimeLen"`
  1520. // CointSpeed int `json:"cointSpeed"`
  1521. // ExpSpeed int `json:"expSpeed"`
  1522. // Materials []*model.DropMaterial `json:"materials"` //目前收益
  1523. // Equipments []int64 `json:"equipments"`
  1524. // Cost []*model.DropMaterial `json:"cost"`
  1525. // CostType int `json:"type"` //0:无广告 2:广告券 3:看广告
  1526. // }
  1527. // // 领取收益
  1528. // type SettlePatrol struct {
  1529. // PlayerID int64 `json:"userId"`
  1530. // Times int `json:"times"`
  1531. // CostType int `json:"type"` //0:无广告 2:广告券 3:看广告
  1532. // ClassID int64 `json:"adClassID"` // 广告分类ID
  1533. // ClientPlat string `json:"clientPlat"`
  1534. // }
  1535. // type ResponseSettlePatrol struct {
  1536. // ErrCode int `json:"errCode"`
  1537. // Msg string `json:"msg,omitempty"`
  1538. // Data *SettlePatrolData `json:"data"`
  1539. // }
  1540. // type SettlePatrolData struct {
  1541. // Level int `json:"userLevel"`
  1542. // Exp int `json:"userExp"`
  1543. // TimeLen int `json:"timeLen"` //巡逻时长
  1544. // MaxTimeLen int `json:"maxTimeLen"`
  1545. // CointSpeed int `json:"cointSpeed"`
  1546. // ExpSpeed int `json:"expSpeed"`
  1547. // Materials []*model.DropMaterial `json:"materials"` //收益
  1548. // Equipments []*model.DropEquipment `json:"equipments"`
  1549. // Cost []*model.DropMaterial `json:"cost"` //消耗
  1550. // UserRewards []*model.DropMaterial `json:"userRewards"`
  1551. // UserRewardEquips []*model.DropEquipment `json:"userRewardsEquip"`
  1552. // CostType int `json:"costType"` //0:无广告 2:广告券 3:看广告
  1553. // StaminaInfo MopUpStaminaInfo `json:"staminaInfo"`
  1554. // //TalentPoint int `json:"talentPoint"`
  1555. // }
  1556. // // 24点通知
  1557. // type GoodNewDay struct {
  1558. // ErrCode int `json:"errCode"`
  1559. // }
  1560. // // 给客户端的公告通知
  1561. // type Placard struct {
  1562. // Type string `json:"type"`
  1563. // Customize int `json:"customize"` //1:自定义
  1564. // Priority int `json:"priority"`
  1565. // Content string `json:"content,omitempty"`
  1566. // Sender int64 `json:"sender"`
  1567. // Params map[string]string `json:"params,omitempty"`
  1568. // Times int `json:"times"`
  1569. // }
  1570. // // 服务器停止
  1571. // type ServerStop struct {
  1572. // State int `json:"state"`
  1573. // }
  1574. // // 踢出玩家
  1575. // type KickOut struct {
  1576. // ErrCode int `json:"errCode"`
  1577. // Msg string `json:"msg,omitempty"`
  1578. // }
  1579. // // 邮件列表
  1580. // type LetterList struct {
  1581. // PlayerId int64 `json:"userId"`
  1582. // }
  1583. // type ResponseLetterList struct {
  1584. // ErrCode int `json:"errCode"`
  1585. // Msg string `json:"msg,omitempty"`
  1586. // Data []*LetterData `json:"data"`
  1587. // }
  1588. // type LetterData struct {
  1589. // Id int64 `json:"id"`
  1590. // Type int `json:"type"`
  1591. // ViewState int `json:"readState"`
  1592. // DrawState int `json:"drawState"`
  1593. // Title string `json:"title"`
  1594. // Content string `json:"content"`
  1595. // Extra *model.ExtraData `json:"extra"`
  1596. // CreateTime int64 `json:"createTime"`
  1597. // }
  1598. // // 领取附件
  1599. // type DrawLetterExtra struct {
  1600. // PlayerId int64 `json:"userId"`
  1601. // Letters []int64 `json:"letters"`
  1602. // }
  1603. // type ResponseDrawLetterExtra struct {
  1604. // ErrCode int `json:"errCode"`
  1605. // Msg string `json:"msg,omitempty"`
  1606. // Data *DrawLetterExtraData `json:"data"`
  1607. // }
  1608. // type DrawLetterExtraData struct {
  1609. // Letters []int64 `json:"letters"`
  1610. // Materials []*model.DropMaterial `json:"materials"`
  1611. // Equips []*model.DropEquipment `json:"equips"`
  1612. // Stamina int `json:"stamina"`
  1613. // Roles []*DropedRoleDate `json:"roles"`
  1614. // }
  1615. // // 删除邮件
  1616. // type DeleteLetter struct {
  1617. // PlayerId int64 `json:"userId"`
  1618. // Letters []int64 `json:"letters"`
  1619. // }
  1620. // type ResponseDeleteLetter struct {
  1621. // ErrCode int `json:"errCode"`
  1622. // Msg string `json:"msg,omitempty"`
  1623. // Data []int64 `json:"data"`
  1624. // }
  1625. // // 查看邮件
  1626. // type ViewLetter struct {
  1627. // PlayerId int64 `json:"userId"`
  1628. // Letters []int64 `json:"letters"`
  1629. // }
  1630. // type ResponseViewLetter struct {
  1631. // ErrCode int `json:"errCode"`
  1632. // Msg string `json:"msg,omitempty"`
  1633. // Data []int64 `json:"data"`
  1634. // }
  1635. // type AddNewLetterNotfiyIs struct {
  1636. // PlayerIds []int64 `json:"userId"`
  1637. // // Letters []int64 `json:"letters"`
  1638. // }
  1639. // // 兑换材料
  1640. // type ExchangeMaterial struct {
  1641. // PlayerId int64 `json:"userId"`
  1642. // Materials []*model.DropMaterial `json:"materials"`
  1643. // }
  1644. // type ResponseExchangeMaterial struct {
  1645. // ErrCode int `json:"errCode"`
  1646. // Msg string `json:"msg,omitempty"`
  1647. // Data *ExchangeMaterialData `json:"data"`
  1648. // }
  1649. // type ExchangeMaterialData struct {
  1650. // Materials []*model.DropMaterial `json:"materials"`
  1651. // Cost []*model.DropMaterial `json:"cost"`
  1652. // }
  1653. // // 兑换金币
  1654. // type ExchangeGold struct {
  1655. // PlayerId int64 `json:"userId"`
  1656. // // //0:广告购买 1:钻石购买 -》2:广告券 3:看广告 0:消耗钻石
  1657. // CostType int `json:"type"`
  1658. // }
  1659. // type ResponseExchangeGold struct {
  1660. // ErrCode int `json:"errCode"`
  1661. // Msg string `json:"msg,omitempty"`
  1662. // Data *ExchangeGoldData `json:"data"`
  1663. // }
  1664. // type ExchangeGoldData struct {
  1665. // AdCount int `json:"adCount"`
  1666. // Materials []*model.DropMaterial `json:"materials"`
  1667. // Cost []*model.DropMaterial `json:"cost"`
  1668. // CostType int `json:"costType"`
  1669. // }
  1670. // // 道具兑换
  1671. // type ItemExchange struct {
  1672. // PlayerId int64 `json:"userId"`
  1673. // ItemId int64 `json:"itemId"`
  1674. // ItemNum int64 `json:"itemNum"`
  1675. // }
  1676. // type ResponseItemExchange struct {
  1677. // ErrCode int `json:"errCode"`
  1678. // Msg string `json:"msg,omitempty"`
  1679. // Data *ItemExchangeData `json:"data"`
  1680. // }
  1681. // type ItemExchangeData struct {
  1682. // Cost []*model.DropMaterial `json:"cost"`
  1683. // Materials []*model.DropMaterial `json:"materials"`
  1684. // }
  1685. // // 消息通知
  1686. // type MsgNotify struct {
  1687. // ErrCode int `json:"errCode"`
  1688. // Msg string `json:"msg,omitempty"`
  1689. // Data int `json:"data"` //1:有新邮件 2:有已支付商品
  1690. // }
  1691. // // 用户订阅消息
  1692. // type PlayerSubMsgType struct {
  1693. // PlayerID int64 `json:"userId"`
  1694. // TemplateID string `json:"templateId"` // 订阅的消息类型
  1695. // Param []int64 `json:"param"` //[结束CD, 最大时长]
  1696. // }
  1697. // type ResponsePlayerSubMsgType struct {
  1698. // ErrCode int64 `json:"errCode"`
  1699. // }
  1700. // // 用户退订消息
  1701. // type PlayerUnSubMsgType struct {
  1702. // PlayerID int64 `json:"userId"`
  1703. // All bool `json:"all"` // 用户退订全部消息
  1704. // TemplateIDs []string `json:"templateIds"` // 用户退订的消息类型
  1705. // }
  1706. // type ResponsePlayerUnSubMsgType struct {
  1707. // ErrCode int64 `json:"errCode"`
  1708. // }
  1709. // func (resp *ResponsePlayerUnSubMsgType) SetErrCode(code int64) {
  1710. // resp.ErrCode = code
  1711. // }
  1712. // // Vip每日福利领取
  1713. // type VIPDayGift struct {
  1714. // PlayerId int64 `json:"userId"`
  1715. // GoodsId int64 `json:"goodsId"`
  1716. // }
  1717. // type ResponseVIPDayGift struct {
  1718. // ErrCode int `json:"errCode"`
  1719. // Msg string `json:"msg,omitempty"`
  1720. // Data *VIPDayGiftData `json:"data"`
  1721. // }
  1722. // type VIPDayGiftData struct {
  1723. // GoodsId int64 `json:"goodsId"`
  1724. // BuyCD int64 `json:"buyCD"`
  1725. // DailyCD int64 `json:"dailyCD"`
  1726. // Materials []*model.DropMaterial `json:"materials"`
  1727. // }
  1728. // // Vip状态
  1729. // type VIPStatus struct {
  1730. // PlayerId int64 `json:"userId"`
  1731. // //GoodsId uint `json:"goodsId"`
  1732. // }
  1733. // type ResponseVIPStatus struct {
  1734. // ErrCode int `json:"errCode"`
  1735. // Msg string `json:"msg,omitempty"`
  1736. // Data []*VipBuffData `json:"data"`
  1737. // }
  1738. // // -----------
  1739. // // PlayerDayAwards 查看每日任务和奖励情况
  1740. // type PlayerDayAwards struct {
  1741. // PlayerID int64 `json:"userId"`
  1742. // Level int `json:"level"`
  1743. // ClientPlat string `json:"clientPlat"`
  1744. // }
  1745. // // DayAward 每日进度完成奖励
  1746. // type DayAward struct {
  1747. // ID int `json:"id"`
  1748. // Process uint8 `json:"process"` // 进度 eg, 20,40,75,100
  1749. // Material []*model.DropMaterial `json:"material"`
  1750. // Equipment []*model.DropEquipment `json:"equipment"`
  1751. // Recieved bool `json:"recieved"`
  1752. // }
  1753. // // DayTask 每日任务
  1754. // type DayTask struct {
  1755. // ID uint8 `json:"id"`
  1756. // Order uint8 `json:"order"`
  1757. // Type uint8 `json:"type"`
  1758. // Text string `json:"text"`
  1759. // Value int `json:"value"` // 目标值
  1760. // Process int `json:"process"` // 完成值,达标后显示目标值,不显示更多
  1761. // Reward uint8 `json:"reward"` // 奖励多少活跃度
  1762. // Recieved bool `json:"recieved"` // 是否领取
  1763. // }
  1764. // // ResponsePlayerDayAwards 玩家的每日任务
  1765. // type ResponsePlayerDayAwards struct {
  1766. // ErrCode int `json:"errCode"`
  1767. // Msg string `json:"msg,omitempty"`
  1768. // Data PlayerDayAwardsData `json:"data"`
  1769. // // PlayerID int64 `json:"userId"`
  1770. // // Day string `json:"day"`
  1771. // // Process int64 `json:"process"`
  1772. // // TaskAward []*DayTask `json:"taskAward"` // 任务列表
  1773. // // ProcessAward []*DayAward `json:"processAward"` // 进度奖励列表
  1774. // }
  1775. // type PlayerDayAwardsData struct {
  1776. // Day int64 `json:"day"`
  1777. // Process int `json:"process"`
  1778. // TaskAward []TaskAwardItem `json:"taskAward"` // 任务列表 [id,recieved]
  1779. // ProcessAward []ProcessAwardItem `json:"processAward"` // 进度奖励列表 [id,recieved,max,val]
  1780. // }
  1781. // type ProcessAwardItem struct {
  1782. // ID int `json:"id"` // 进度奖赏ID
  1783. // Recieved int `json:"type"` // 是否领取,0 未 1 已
  1784. // }
  1785. // type TaskAwardItem struct {
  1786. // ID int `json:"id"` // 任务奖赏ID
  1787. // Recieved int `json:"type"` // 是否领取,0 未 1 已
  1788. // Value int `json:"max"` // 最大值
  1789. // Process int `json:"count"` // 当前进度
  1790. // }
  1791. // // DayTaskProcess 领取每日任务的活跃度奖励
  1792. // type DayTaskProcess struct {
  1793. // PlayerID int64 `json:"userId"`
  1794. // TaskID int `json:"taskId"`
  1795. // Day string `json:"day"` // 2022-02-22
  1796. // Level int `json:"level"`
  1797. // ClientPlat string `json:"clientPlat"`
  1798. // }
  1799. // // ResponseDayTaskProcess resp
  1800. // type ResponseDayTaskProcess struct {
  1801. // ErrCode int `json:"errCode"`
  1802. // Msg string `json:"msg"`
  1803. // }
  1804. // type AwardData struct {
  1805. // ServerTime int64 `json:"serverTime"` //服务器时间
  1806. // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
  1807. // Materials []*model.DropMaterial `json:"restores"` //增加的材料
  1808. // }
  1809. // // DayTaskAward 领取每日进度的奖励
  1810. // type DayTaskAward struct {
  1811. // PlayerID int64 `json:"userId"`
  1812. // AwardID int `json:"awardId"`
  1813. // Day string `json:"day"` // 2022-02-22
  1814. // Level int `json:"level"`
  1815. // ClientPlat string `json:"clientPlat"`
  1816. // }
  1817. // // ResponseDayTaskAward resp
  1818. // type ResponseDayTaskAward struct {
  1819. // ErrCode int `json:"errCode"`
  1820. // Msg string `json:"msg"`
  1821. // Data AwardData `json:"data"`
  1822. // }
  1823. // // 扫荡关卡
  1824. // type MopUpChapter struct {
  1825. // PlayerID int64 `json:"userId"`
  1826. // ChapterID uint `json:"activeId"`
  1827. // Difficulty int `json:"difficulty"` //普通 困难模式
  1828. // Stamina int `json:"stamina"` //花费体力
  1829. // }
  1830. // type ResponseMopUpChapter struct {
  1831. // ErrCode int `json:"errCode"`
  1832. // Msg string `json:"msg,omitempty"`
  1833. // Data MopUpChapterData `json:"data"`
  1834. // }
  1835. // type MopUpChapterData struct {
  1836. // Level int `json:"userLevel"`
  1837. // Exp int `json:"userExp"`
  1838. // Cost []*model.DropMaterial `json:"cost"`
  1839. // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
  1840. // Materials []*model.DropMaterial `json:"restores"` //增加的材料
  1841. // UserRewards []*model.DropMaterial `json:"userRewards"`
  1842. // UserRewardEquips []*model.DropEquipment `json:"userRewardsEquip"`
  1843. // StaminaInfo MopUpStaminaInfo `json:"staminaInfo"`
  1844. // PassRoom *model.PlayerPassRoom `json:"passRoom"`
  1845. // }
  1846. // type MopUpStaminaInfo struct {
  1847. // Stamina int `json:"stamina"` //剩余体力
  1848. // CostStamina int `json:"costStamina"` //消耗体力
  1849. // MaxStama int `json:"maxStama"`
  1850. // CoolDown int `json:"cd"`
  1851. // }
  1852. // type GiftCenterListData struct {
  1853. // DailyGiftCD int64 `json:"dailyGiftCd"`
  1854. // //RoleGiftCD int64 `json:"roleGiftCd"`
  1855. // RoleDayGiftCD int64 `json:"roleDayGiftCd"` // 限时特惠 日分类CD
  1856. // RoleWeekGiftCD int64 `json:"roleWeekGiftCd"` // 限时特惠 周分类CD
  1857. // RoleMonthGiftCD int64 `json:"roleMonthGiftCd"` // 限时特惠 月分类CD
  1858. // AccPayGiftCD int64 `json:"accPayGiftCD"`
  1859. // AccCostDiamondCD int64 `json:"accCostDiamondCD"`
  1860. // DailyGift []int64 `json:"dailyGift"`
  1861. // RoleGift map[int64]int64 `json:"roleGift"` // 限时特惠{礼包ID:礼包CD}
  1862. // InviteGift []int64 `json:"inviteGift"`
  1863. // NewerGift []int64 `json:"newerGift"`
  1864. // LuckDrawGift []int `json:"luckDrawGift"`
  1865. // AccPayGift []int64 `json:"accPayGift"`
  1866. // GrowthGift []int64 `json:"growthGift"`
  1867. // DayNGift []int64 `json:"dayNGift"`
  1868. // WeekendGift *WeekendGiftData `json:"weekendGift"`
  1869. // }
  1870. // // 福利中心
  1871. // type GiftCenter struct {
  1872. // PlayerID int64 `json:"userId"`
  1873. // Level int `json:"level"`
  1874. // ClientPlat string `json:"clientPlat"`
  1875. // // Ios int `json:"ios"`
  1876. // // Level int `json:"level"`
  1877. // // Open int `json:"open"`
  1878. // }
  1879. // type ResponseGiftCenter struct {
  1880. // ErrCode int `json:"errCode"`
  1881. // Msg string `json:"msg,omitempty"`
  1882. // Data GiftCenterData `json:"data"`
  1883. // }
  1884. // type GiftCenterData struct {
  1885. // List *GiftCenterListData `json:"list"`
  1886. // Buys *GiftCenterBuysData `json:"buys"`
  1887. // }
  1888. // type GiftCenterBuysData struct {
  1889. // FirstPay map[int64]int `json:"firstPay"` //首冲 新手
  1890. // DailyGift map[int64]int `json:"dailyGift"` // 每日
  1891. // RoleGift map[int64]int `json:"roleGift"` //角色 限时
  1892. // InviteGift map[int64]int `json:"inviteGift"` //邀请
  1893. // AccPayGift []int64 `json:"accPayGift"` //累计充值领取记录
  1894. // AccPay int64 `json:"accPay"` //累计充值金额
  1895. // AccCostReceived []int `json:"accCostReceived"` //累计消费领取记录
  1896. // AccCostDiamond int64 `json:"accCostDiamond"` //累计消费钻石数量
  1897. // InviteNum int `json:"inviteNum"`
  1898. // LuckDrawCD int64 `json:"luckDrawCD"`
  1899. // LuckDrawSuperGift int `json:"luckDrawSuper"` // 用户秘宝id
  1900. // LuckDrawNum int `json:"luckDrawNum"` // 今日购买次数
  1901. // LuckNum int `json:"luckNum"` // 幸运值
  1902. // Growth *model.GrowthGift `json:"growth"` // 成长基金礼包
  1903. // SpecialBuy *SpecialBuy `json:"specialBuy"` // 尊享特购
  1904. // WxMpGift bool `json:"wxMpGift"` //微信公众号礼包
  1905. // WeekendGift map[int64]int `json:"weekendGift"` // 周末礼包
  1906. // }
  1907. // // 更新限时礼包购买信息
  1908. // type UpdataRoleGoods struct {
  1909. // PlayerID int64 `json:"userId"`
  1910. // ClientPlat string `json:"clientPlat"`
  1911. // }
  1912. // type ResponseUpdataRoleGoods struct {
  1913. // ErrCode int `json:"errCode"`
  1914. // Msg string `json:"msg,omitempty"`
  1915. // Data map[int64]int64 `json:"data"`
  1916. // }
  1917. // type SpecialBuy struct {
  1918. // GiftId int64 `json:"giftId"` // 礼包ID
  1919. // ReceivedDay int64 `json:"receivedDay"` // 已领取天数 0:代表未购买
  1920. // NextCD int64 `json:"nextCD"` // 下一天可领取礼包CD,所有礼包领完以后固定返回-1
  1921. // }
  1922. // // WeekendGift 周末礼包
  1923. // type WeekendGift struct {
  1924. // PlayerID int64 `json:"userId"`
  1925. // Ios int `json:"ios"`
  1926. // Level int `json:"level"`
  1927. // Open int `json:"open"`
  1928. // }
  1929. // type ResponseWeekendGift struct {
  1930. // ErrCode int `json:"errCode"`
  1931. // Msg string `json:"msg,omitempty"`
  1932. // Data *WeekendGiftData `json:"data"`
  1933. // }
  1934. // type WeekendGiftData struct {
  1935. // FreeGoodsId int64 `json:"freeGoodsId"` // 免费礼包ID
  1936. // Gifts map[int64]int64 `json:"gifts"` // map[礼包ID]剩余数量
  1937. // StartCD int64 `json:"startCD"` // 开始CD
  1938. // EndCD int64 `json:"endCD"` // 结束CD
  1939. // }
  1940. // type InviteNotfiy struct {
  1941. // ErrCode int `json:"errCode"`
  1942. // Msg string `json:"msg,omitempty"`
  1943. // Data InviteNotfiyData `json:"data"`
  1944. // }
  1945. // type InviteNotfiyData struct {
  1946. // InviteGift map[int64]int `json:"inviteGift"` //领取记录
  1947. // InviteNum int `json:"inviteNum"` //邀请总数
  1948. // }
  1949. // // 福利中心 每日免费礼包
  1950. // type DailyFreeGift struct {
  1951. // PlayerID int64 `json:"userId"`
  1952. // Level int `json:"level"`
  1953. // GoodsId int64 `json:"goodsId"`
  1954. // ClientPlat string `json:"clientPlat"`
  1955. // }
  1956. // type ResponseDailyFreeGift struct {
  1957. // ErrCode int `json:"errCode"`
  1958. // Msg string `json:"msg,omitempty"`
  1959. // Data []*model.DropMaterial `json:"data"`
  1960. // }
  1961. // // 免费礼包
  1962. // type HappyFreeGift struct {
  1963. // PlayerID int64 `json:"userId"`
  1964. // Level int `json:"level"`
  1965. // GoodsId int64 `json:"goodsId"`
  1966. // ClientPlat string `json:"clientPlat"`
  1967. // }
  1968. // type ResponseHappyFreeGift struct {
  1969. // ErrCode int `json:"errCode"`
  1970. // Msg string `json:"msg,omitempty"`
  1971. // Data []*model.DropMaterial `json:"data"`
  1972. // }
  1973. // // 购买非现金充值钥匙礼包
  1974. // type BoxKeyGift struct {
  1975. // PlayerID int64 `json:"userId"`
  1976. // ClientPlat string `json:"clientPlat"`
  1977. // }
  1978. // type BoxKeyGiftData struct {
  1979. // GoodsId int64 `json:"goodsId"`
  1980. // CD int `json:"cd"` // 剩余时间
  1981. // Num int `json:"num"`
  1982. // }
  1983. // type ResponseBoxKeyGift struct {
  1984. // ErrCode int `json:"errCode"`
  1985. // Msg string `json:"msg,omitempty"`
  1986. // Data []*BoxKeyGiftData `json:"data"`
  1987. // }
  1988. // // 购买非现金充值钥匙礼包
  1989. // type BuyBoxKeyNoPayGift struct {
  1990. // PlayerID int64 `json:"userId"`
  1991. // CostType int `json:"costType"` // 广告类型 0:免费 234:广告 6:钻石
  1992. // GoodsId int64 `json:"goodsId"`
  1993. // BuyNum int `json:"buyNum"` //购买几次道具
  1994. // ClientPlat string `json:"clientPlat"`
  1995. // // BoxType int `json:"boxType"` // 0白银 1黄金
  1996. // }
  1997. // type BuyBoxKeyNoPayGiftData struct {
  1998. // GoodsId int64 `json:"goodsId"`
  1999. // Num int `json:"num"`
  2000. // Material []*model.DropMaterial `json:"material"`
  2001. // Cost []*model.DropMaterial `json:"cost"`
  2002. // CD int `json:"cd"`
  2003. // }
  2004. // type ResponseBuyBoxKeyNoPayGift struct {
  2005. // ErrCode int `json:"errCode"`
  2006. // Msg string `json:"msg,omitempty"`
  2007. // Data *BuyBoxKeyNoPayGiftData `json:"data"`
  2008. // }
  2009. // // 购买礼包
  2010. // type BuyNotPayGift struct {
  2011. // PlayerID int64 `json:"userId"`
  2012. // CostType int `json:"costType"` // 广告类型 234:广告 6:钻石
  2013. // GoodsId int64 `json:"goodsId"`
  2014. // ClientPlat string `json:"clientPlat"`
  2015. // }
  2016. // type BuyActNoPayGiftData struct {
  2017. // GoodsId int64 `json:"goodsId"`
  2018. // Num int `json:"num"`
  2019. // Material []*model.DropMaterial `json:"material"`
  2020. // Cost []*model.DropMaterial `json:"cost"`
  2021. // Equipments []*model.DropEquipment `json:"eqipments"`
  2022. // CD int `json:"cd"`
  2023. // }
  2024. // type ResponseBuyNotPayGift struct {
  2025. // ErrCode int `json:"errCode"`
  2026. // Msg string `json:"msg,omitempty"`
  2027. // Data *BuyActNoPayGiftData `json:"data"`
  2028. // }
  2029. // // 元旦礼包
  2030. // type YuanDanGift struct {
  2031. // PlayerID int64 `json:"userId"`
  2032. // ClientPlat string `json:"clientPlat"`
  2033. // }
  2034. // type GoodsCDNum struct {
  2035. // GoodsId int64 `json:"goodsId"`
  2036. // CD int `json:"cd"` // 剩余CD
  2037. // Num int `json:"num"` // 可购买次数
  2038. // }
  2039. // type ResponseYuanDanGift struct {
  2040. // ErrCode int `json:"errCode"`
  2041. // Msg string `json:"msg,omitempty"`
  2042. // Data []*GoodsCDNum `json:"data"`
  2043. // }
  2044. // // 新年礼包
  2045. // type NewYearGiftV24 struct {
  2046. // PlayerID int64 `json:"userId"`
  2047. // ClientPlat string `json:"clientPlat"`
  2048. // }
  2049. // type GiftDayLimitData struct {
  2050. // GoodsId int64 `json:"goodsId"`
  2051. // CD int `json:"cd"` // 购买剩余时间
  2052. // Num int `json:"num"` // 可购次数
  2053. // }
  2054. // type ResponseNewYearGiftV24 struct {
  2055. // ErrCode int `json:"errCode"`
  2056. // Msg string `json:"msg,omitempty"`
  2057. // Data []*GiftDayLimitData `json:"data"`
  2058. // }
  2059. // // 元宵礼包
  2060. // type NewFifteenGift struct {
  2061. // PlayerID int64 `json:"userId"`
  2062. // ClientPlat string `json:"clientPlat"`
  2063. // }
  2064. // type NewFifteenGiftData struct {
  2065. // GoodsId int64 `json:"goodsId"`
  2066. // CD int `json:"cd"` // 剩余时间
  2067. // Num int `json:"num"`
  2068. // }
  2069. // type ResponseNewFifteenGift struct {
  2070. // ErrCode int `json:"errCode"`
  2071. // Msg string `json:"msg,omitempty"`
  2072. // Data []*NewFifteenGiftData `json:"data"`
  2073. // }
  2074. // // 女神节礼包
  2075. // type Lady38Gift struct {
  2076. // PlayerID int64 `json:"userId"`
  2077. // ClientPlat string `json:"clientPlat"`
  2078. // }
  2079. // type NewLady38GiftData struct {
  2080. // GoodsId int64 `json:"goodsId"`
  2081. // CD int `json:"cd"` // 剩余时间
  2082. // Num int `json:"num"`
  2083. // }
  2084. // type ResponseLady38Gift struct {
  2085. // ErrCode int `json:"errCode"`
  2086. // Msg string `json:"msg,omitempty"`
  2087. // Data []*NewLady38GiftData `json:"data"`
  2088. // }
  2089. // // 清明节礼包
  2090. // type QingMingGift struct {
  2091. // PlayerID int64 `json:"userId"`
  2092. // ClientPlat string `json:"clientPlat"`
  2093. // }
  2094. // type QingMingGiftData struct {
  2095. // GoodsId int64 `json:"goodsId"`
  2096. // CD int `json:"cd"` // 剩余时间
  2097. // Num int `json:"num"`
  2098. // }
  2099. // type ResponseQingMingGift struct {
  2100. // ErrCode int `json:"errCode"`
  2101. // Msg string `json:"msg,omitempty"`
  2102. // Data []*QingMingGiftData `json:"data"`
  2103. // }
  2104. // // 端午节礼包
  2105. // type DragonBoatGift struct {
  2106. // PlayerID int64 `json:"userId"`
  2107. // ClientPlat string `json:"clientPlat"`
  2108. // }
  2109. // type NewDragonBoatGiftData struct {
  2110. // GoodsId int64 `json:"goodsId"`
  2111. // CD int `json:"cd"` // 剩余时间
  2112. // Num int `json:"num"`
  2113. // }
  2114. // type ResponseDragonBoatGift struct {
  2115. // ErrCode int `json:"errCode"`
  2116. // Msg string `json:"msg,omitempty"`
  2117. // Data []*NewDragonBoatGiftData `json:"data"`
  2118. // }
  2119. // // 七夕礼包
  2120. // type QiXiGift struct {
  2121. // PlayerID int64 `json:"userId"`
  2122. // ClientPlat string `json:"clientPlat"`
  2123. // }
  2124. // type NewQiXiGiftData struct {
  2125. // GoodsId int64 `json:"goodsId"`
  2126. // CD int `json:"cd"` // 剩余时间
  2127. // Num int `json:"num"`
  2128. // }
  2129. // type ResponseQiXiGift struct {
  2130. // ErrCode int `json:"errCode"`
  2131. // Msg string `json:"msg,omitempty"`
  2132. // Data []*NewQiXiGiftData `json:"data"`
  2133. // }
  2134. // // 国庆礼包
  2135. // type NationalGift struct {
  2136. // PlayerID int64 `json:"userId"`
  2137. // ClientPlat string `json:"clientPlat"`
  2138. // }
  2139. // type ResponseNationalGift struct {
  2140. // ErrCode int `json:"errCode"`
  2141. // Msg string `json:"msg,omitempty"`
  2142. // Data []*NewNationalGiftData `json:"data"`
  2143. // }
  2144. // type NewNationalGiftData struct {
  2145. // GoodsId int64 `json:"goodsId"`
  2146. // CD int `json:"cd"` // 剩余时间
  2147. // Num int `json:"num"`
  2148. // }
  2149. // // 回归礼包
  2150. // type ReturneGift struct {
  2151. // PlayerID int64 `json:"userId"`
  2152. // ClientPlat string `json:"clientPlat"`
  2153. // }
  2154. // type ResponseReturneGift struct {
  2155. // ErrCode int `json:"errCode"`
  2156. // Msg string `json:"msg,omitempty"`
  2157. // Data []*GoodsCDNum `json:"data"`
  2158. // }
  2159. // // 开服礼包
  2160. // type NewServerActGift struct {
  2161. // PlayerID int64 `json:"userId"`
  2162. // ClientPlat string `json:"clientPlat"`
  2163. // }
  2164. // type NewServerActGiftData struct {
  2165. // GoodsId int64 `json:"goodsId"`
  2166. // Num int `json:"num"` // 可购买次数
  2167. // CD int `json:"cd"` // 剩余CD
  2168. // }
  2169. // type ResponseNewServerActGift struct {
  2170. // ErrCode int `json:"errCode"`
  2171. // Msg string `json:"msg,omitempty"`
  2172. // Data []*NewServerActGiftData `json:"data"`
  2173. // }
  2174. // type NewerBox struct {
  2175. // PlayerID int64 `json:"userId"`
  2176. // ClientPlat string `json:"clientPlat"`
  2177. // Level int64 `json:"level"`
  2178. // }
  2179. // type PlayerNewerBoxData struct {
  2180. // GoodsId int64 `json:"goodsId"` // 礼包id
  2181. // ReceivedDay []int `json:"receivedDay"` // 已经领取
  2182. // Day int `json:"curDay"` // 可以领取到那一天
  2183. // }
  2184. // // 礼包总数据
  2185. // type NewBoxData struct {
  2186. // NowTime int64 `json:"nowtime"` // 当前服务器时间
  2187. // NewerBoxData *NewerBoxData `json:"NewerBoxData"` // 新手充
  2188. // ChanceBoxGift *ChanceBoxGift `json:"chanceBoxGift"` // 机缘宝盒
  2189. // }
  2190. // type NewerBoxData struct {
  2191. // EndCd int64 `json:"endCd"` // 结束时间
  2192. // ReceivedDay []*PlayerNewerBoxData `json:"receivedDay"` // 礼包领取情况
  2193. // }
  2194. // type ChanceBoxGift struct {
  2195. // BuyCount int64 `json:"buyCount"` //购买次数
  2196. // EndCD int64 `json:"endCD"` //活动倒计时
  2197. // }
  2198. // type ResponseNewerBox struct {
  2199. // ErrCode int `json:"errCode"`
  2200. // Msg string `json:"msg,omitempty"`
  2201. // Data *NewBoxData `json:"data"`
  2202. // }
  2203. // // 领取首充奖励
  2204. // type NewerBoxReward struct {
  2205. // PlayerID int64 `json:"userId"`
  2206. // ClientPlat string `json:"clientPlat"`
  2207. // GoodId int64 `json:"goodId"`
  2208. // Day int `json:"day"`
  2209. // }
  2210. // type NewerBoxRewardData struct {
  2211. // Materials []*model.DropMaterial `json:"materials"`
  2212. // Equipments []*model.DropEquipment `json:"eqipments"`
  2213. // Roles []*DropedRoleDate `json:"roles"`
  2214. // GoodId int64 `json:"goodId"`
  2215. // Day int `json:"day"`
  2216. // }
  2217. // type ResponseNewerBoxReward struct {
  2218. // ErrCode int `json:"errCode"`
  2219. // Msg string `json:"msg,omitempty"`
  2220. // Data *NewerBoxRewardData `json:"data"`
  2221. // }
  2222. // // 服务端用
  2223. // type NewerBoxRewardIs struct {
  2224. // RpcRequestMsg
  2225. // PlayerId int64 `json:"userId"`
  2226. // Materials []*model.DropMaterial `json:"materials"` //奖励
  2227. // Equipments []int64 `json:"eqipments"`
  2228. // Roles []int64 `json:"roles"`
  2229. // }
  2230. // type ResponseNewerBoxRewardIs struct {
  2231. // RpcResponseMsg
  2232. // Equipments []*model.DropEquipment `json:"eqipments"`
  2233. // Roles []*DropedRoleDate `json:"roles"`
  2234. // }
  2235. // type NewServerActivity struct {
  2236. // PlayerID int64 `json:"userId"`
  2237. // ClientPlat string `json:"clientPlat"`
  2238. // Line int `json:"line"`
  2239. // }
  2240. // type NewServerCdData struct {
  2241. // StartCd int64 `json:"startCd"` // 开始时间
  2242. // EndCd int64 `json:"endCd"` // 结束时间
  2243. // }
  2244. // type NewServerActivityData struct {
  2245. // StartCd int64 `json:"startCd"` // 开始时间
  2246. // EndCd int64 `json:"endCd"` // 结束时间
  2247. // GiftCdData *NewServerCdData `json:"giftName"` // 礼包cd
  2248. // PlayerBoxCdData *NewServerCdData `json:"playerBox"` // 抽奖cd
  2249. // TiliCdData *NewServerCdData `json:"tili"` // 体力cd
  2250. // DealerCdData *NewServerCdData `json:"dealer"` // 商人cd
  2251. // Received []int64 `json:"received"` // 免费礼包是否领取
  2252. // }
  2253. // type ResponseNewServerActivity struct {
  2254. // ErrCode int `json:"errCode"`
  2255. // Msg string `json:"msg,omitempty"`
  2256. // Data *NewServerActivityData `json:"data"`
  2257. // }
  2258. // // 领取新服奖励
  2259. // type NewServerActReward struct {
  2260. // PlayerID int64 `json:"userId"`
  2261. // ClientPlat string `json:"clientPlat"`
  2262. // }
  2263. // type ResponseNewServerActReward struct {
  2264. // ErrCode int `json:"errCode"`
  2265. // Msg string `json:"msg,omitempty"`
  2266. // Data []*model.DropMaterial `json:"data"`
  2267. // }
  2268. // // 服务端用
  2269. // type NewServerActRewardIs struct {
  2270. // RpcRequestMsg
  2271. // PlayerId int64 `json:"userId"`
  2272. // Materials []*model.DropMaterial `json:"materials"` //奖励
  2273. // }
  2274. // type ResponseNewServerActRewardIs struct {
  2275. // RpcResponseMsg
  2276. // }
  2277. // // 购买新服活动礼包
  2278. // type NewServerActBuyNotPayGift struct {
  2279. // PlayerID int64 `json:"userId"`
  2280. // CostType int `json:"costType"` // 广告类型 234:广告 6:钻石
  2281. // GoodsId int64 `json:"goodsId"`
  2282. // ClientPlat string `json:"clientPlat"`
  2283. // }
  2284. // type ResponseNewServerActBuyNotPayGift struct {
  2285. // ErrCode int `json:"errCode"`
  2286. // Msg string `json:"msg,omitempty"`
  2287. // Data *BuyActNoPayGiftData `json:"data"`
  2288. // }
  2289. // // 购买非现金无尽通行证
  2290. // type BuyNotPayEndLessPass struct {
  2291. // PlayerID int64 `json:"userId"`
  2292. // CostType int `json:"costType"` // 广告类型 234:广告 6:钻石
  2293. // GoodsId int64 `json:"goodsId"`
  2294. // ClientPlat string `json:"clientPlat"`
  2295. // }
  2296. // type BuyActNoPayEndLessPassData struct {
  2297. // GoodsId int64 `json:"goodsId"`
  2298. // Material []*model.DropMaterial `json:"material"`
  2299. // Cost []*model.DropMaterial `json:"cost"`
  2300. // }
  2301. // type ResponseBuyNotPayEndLessPass struct {
  2302. // ErrCode int `json:"errCode"`
  2303. // Msg string `json:"msg,omitempty"`
  2304. // Data *BuyActNoPayEndLessPassData `json:"data"`
  2305. // }
  2306. // // 福利中心 邀请礼包
  2307. // type InviteGift struct {
  2308. // PlayerID int64 `json:"userId"`
  2309. // Level int `json:"level"`
  2310. // GoodsId int64 `json:"goodsId"`
  2311. // ClientPlat string `json:"clientPlat"`
  2312. // }
  2313. // type ResponseInviteGift struct {
  2314. // ErrCode int `json:"errCode"`
  2315. // Msg string `json:"msg,omitempty"`
  2316. // Data []*model.DropMaterial `json:"data"`
  2317. // }
  2318. // // 累计充值礼包
  2319. // type AccPayGift struct {
  2320. // PlayerID int64 `json:"userId"`
  2321. // Level int `json:"level"` //人物等级
  2322. // GoodsId int64 `json:"goodsId"` //领取哪一档
  2323. // ClientPlat string `json:"clientPlat"`
  2324. // }
  2325. // type ResponseAccPayGift struct {
  2326. // ErrCode int `json:"errCode"`
  2327. // Msg string `json:"msg,omitempty"`
  2328. // Data []*model.DropMaterial `json:"data"`
  2329. // }
  2330. // // 累计充值礼包
  2331. // type GrowthGift struct {
  2332. // PlayerID int64 `json:"userId"`
  2333. // Level int `json:"level"` //人物等级
  2334. // Tab int `json:"tab"` //页签
  2335. // Process int `json:"process"` //领取哪一项
  2336. // Goods []int `json:"sub"` //领取哪一档 0 1 2
  2337. // ClientPlat string `json:"clientPlat"`
  2338. // }
  2339. // type ResponseGrowthGift struct {
  2340. // ErrCode int `json:"errCode"`
  2341. // Msg string `json:"msg,omitempty"`
  2342. // Data *GrowthGiftData `json:"data"`
  2343. // }
  2344. // type GrowthGiftData struct {
  2345. // Process int `json:"process"` //进度
  2346. // Goods []int `json:"sub"` //领取哪一档
  2347. // Materials []*model.DropMaterial `json:"materials"`
  2348. // }
  2349. // // 累计消耗钻石
  2350. // type AddCostDiamondIs struct {
  2351. // PlayerId int64 `json:"userId"`
  2352. // StartTs int64 `json:"startTs"`
  2353. // CostDiamond int `json:"taskData"`
  2354. // ClientPlat string `json:"clientPlat"`
  2355. // }
  2356. // // 领取累计消耗钻石奖励
  2357. // type ReceiveAccCostRewards struct {
  2358. // PlayerID int64 `json:"userId"`
  2359. // RewardId int `json:"rewardId"`
  2360. // ClientPlat string `json:"clientPlat"`
  2361. // }
  2362. // type ReceiveAccCostRewardsData struct {
  2363. // RewardId int `json:"rewardId"`
  2364. // Material []*model.DropMaterial `json:"material"`
  2365. // }
  2366. // type ResponseReceiveAccCostRewards struct {
  2367. // ErrCode int `json:"errCode"`
  2368. // Msg string `json:"msg,omitempty"`
  2369. // Data *ReceiveAccCostRewardsData `json:"data"`
  2370. // }
  2371. // // SpecialGift 领取尊享特惠礼包
  2372. // type SpecialGift struct {
  2373. // PlayerID int64 `json:"userId"`
  2374. // ClientPlat string `json:"clientPlat"`
  2375. // }
  2376. // type ResponseSpecialGift struct {
  2377. // ErrCode int `json:"errCode"`
  2378. // Msg string `json:"msg,omitempty"`
  2379. // Data *SpecialGiftData `json:"data"`
  2380. // }
  2381. // type SpecialGiftData struct {
  2382. // Materials []*model.DropMaterial `json:"materials"`
  2383. // Equipments []*model.DropEquipment `json:"equipments"`
  2384. // }
  2385. // // SpecialGiftSum 尊享特惠礼包摘要
  2386. // type SpecialGiftSum struct {
  2387. // PlayerID int64 `json:"userId"`
  2388. // ClientPlat string `json:"clientPlat"`
  2389. // }
  2390. // type ResponseSpecialGiftSum struct {
  2391. // ErrCode int `json:"errCode"`
  2392. // Msg string `json:"msg,omitempty"`
  2393. // Data *SpecialBuy `json:"data"`
  2394. // }
  2395. // // 看广告
  2396. // type SeeAd struct {
  2397. // PlayerID int64 `json:"userId"`
  2398. // CostType int `json:"costType"` //2:广告券 3:看广告
  2399. // Scene uint `json:"scene"` //场景 没起作用
  2400. // ClientPlat string `json:"clientPlat"`
  2401. // FuncType int `json:"costDiamondType"` // 功能类型 0 章节、活动刷新技能 1 复活 2 技能刷新 远征 3 暗影突袭 4 无尽大转盘 5 双人复活
  2402. // }
  2403. // type ResponseSeeAd struct {
  2404. // ErrCode int `json:"errCode"`
  2405. // Msg string `json:"msg,omitempty"`
  2406. // Data SeeAdData `json:"data"`
  2407. // }
  2408. // type SeeAdData struct {
  2409. // Cost []*model.DropMaterial `json:"cost"`
  2410. // Materials []*model.DropMaterial `json:"materials"`
  2411. // CostType int `json:"costType"`
  2412. // }
  2413. // // // IOS支付控制
  2414. // // type IosPayOpen struct {
  2415. // // PlayerID int64 `json:"userId"`
  2416. // // Level int `json:"level"`
  2417. // // }
  2418. // // type ResponseIosPayOpen struct {
  2419. // // ErrCode int `json:"errCode"`
  2420. // // Msg string `json:"msg,omitempty"`
  2421. // // Data int `json:"data"` //0:未开放; 1:开放
  2422. // // }
  2423. // // 支付方式
  2424. // type PayMethod struct {
  2425. // PlayerID int64 `json:"userId"`
  2426. // // Level int `json:"level"`
  2427. // }
  2428. // type ResponsePayMethod struct {
  2429. // ErrCode int `json:"errCode"`
  2430. // Msg string `json:"msg,omitempty"`
  2431. // Data *model.PayMethodData `json:"data"`
  2432. // }
  2433. // // 随机角色
  2434. // type RandRole struct {
  2435. // PlayerID int64 `json:"userId"`
  2436. // Guide int `json:"guide"` // 新手引导
  2437. // // DrawType int `json:"drawType"` // 0 单抽 1 多抽
  2438. // ClientPlat string `json:"clientPlat"`
  2439. // GoodsType int `json:"goodsType"` // 商品类型
  2440. // // Count int `json:"count"` // 1-单抽 10-十连抽(高级角色券)
  2441. // // CostType int `json:"costType"` // 0:配置(钻石或金币); 1:钥匙
  2442. // }
  2443. // type ResponseRandRole struct {
  2444. // ErrCode int `json:"errCode"`
  2445. // Msg string `json:"msg,omitempty"`
  2446. // Data *RandRoleData `json:"data"`
  2447. // }
  2448. // type DropedRoleMaterialDate struct {
  2449. // Materials *model.DropMaterial `json:"materials"`
  2450. // Status int `json:"status"` // 0 碎片 1 由角色转换成的碎片
  2451. // }
  2452. // type RandRoleData struct {
  2453. // Materials []*DropedRoleMaterialDate `json:"materials"`
  2454. // Roles []*model.DropedRole `json:"roles"`
  2455. // Cost []*model.DropMaterial `json:"cost"`
  2456. // Score []*model.DropMaterial `json:"score"`
  2457. // AccNum int `json:"accNum"`
  2458. // DrawRoles []*model.DropedRole `json:"drawRoles"`
  2459. // DrawMaterials []*DropedRoleMaterialDate `json:"drawMaterials"`
  2460. // DrawNum int `json:"drawNum"` // 抽奖次数
  2461. // }
  2462. // type DropedRoleDate struct {
  2463. // Materials *model.DropMaterial `json:"materials"`
  2464. // RoleID int64 `json:"roleId"` // 有值代表是完整角色
  2465. // }
  2466. // // 选择连抽奖励
  2467. // type ChangeDrawRole struct {
  2468. // PlayerID int64 `json:"userId"`
  2469. // RoleID int64 `json:"roleId"`
  2470. // ClientPlat string `json:"clientPlat"`
  2471. // }
  2472. // type ChangeDrawRoleData struct {
  2473. // RoleID int64 `json:"roleId"`
  2474. // DrawRoles []*model.DropedRole `json:"drawRoles"`
  2475. // DrawMaterials []*DropedRoleMaterialDate `json:"drawMaterials"`
  2476. // DrawNum int `json:"drawNum"` // 抽奖次数
  2477. // }
  2478. // type ResponseChangeDrawRole struct {
  2479. // ErrCode int `json:"errCode"`
  2480. // Msg string `json:"msg,omitempty"`
  2481. // Data *ChangeDrawRoleData `json:"data"`
  2482. // }
  2483. // // 角色兑换列表
  2484. // type RoleExchangeList struct {
  2485. // PlayerID int64 `json:"userId"`
  2486. // ClientPlat string `json:"clientPlat"`
  2487. // }
  2488. // type ResponseRoleExchangeList struct {
  2489. // ErrCode int `json:"errCode"`
  2490. // Msg string `json:"msg,omitempty"`
  2491. // Data *RoleExchangeListData `json:"data"`
  2492. // }
  2493. // type RoleExchangeListData struct {
  2494. // Score int64 `json:"score"`
  2495. // Exchanges map[int64]int `json:"exchanges"`
  2496. // }
  2497. // // 角色兑换
  2498. // type RoleExchange struct {
  2499. // PlayerID int64 `json:"userId"`
  2500. // GoodsId int64 `json:"goodsId"`
  2501. // ClientPlat string `json:"clientPlat"`
  2502. // }
  2503. // type ResponseRoleExchange struct {
  2504. // ErrCode int `json:"errCode"`
  2505. // Msg string `json:"msg,omitempty"`
  2506. // Data *RoleExchangeData `json:"data"`
  2507. // }
  2508. // type RoleExchangeData struct {
  2509. // GoodsId int64 `json:"goodsId"`
  2510. // Cost *model.DropMaterial `json:"cost"`
  2511. // Material *model.DropMaterial `json:"material"`
  2512. // }
  2513. // type RoleExchangeIs struct {
  2514. // PlayerID int64 `json:"userId"`
  2515. // Material *model.DropMaterial `json:"material"`
  2516. // }
  2517. // // 回收角色碎片
  2518. // type RecoverRoleFragment struct {
  2519. // PlayerID int64 `json:"userId"`
  2520. // Cost *model.DropMaterial `json:"cost"`
  2521. // ClientPlat string `json:"clientPlat"`
  2522. // }
  2523. // type ResponseRecoverRoleFragment struct {
  2524. // ErrCode int `json:"errCode"`
  2525. // Msg string `json:"msg,omitempty"`
  2526. // Data *RecoverRoleFragmentData `json:"data"`
  2527. // }
  2528. // type RecoverRoleFragmentData struct {
  2529. // Cost *model.DropMaterial `json:"cost"`
  2530. // Material *model.DropMaterial `json:"material"`
  2531. // }
  2532. // type RecoverRoleFragmentIs struct {
  2533. // PlayerID int64 `json:"userId"`
  2534. // Cost []*model.DropMaterial `json:"cost"`
  2535. // }
  2536. // // type ReplaceRole struct {
  2537. // // Role int `json:"role"`
  2538. // // Material *model.DropMaterial
  2539. // // }
  2540. // type PlayerAdsStatus struct {
  2541. // PlayerID int64 `json:"userId"`
  2542. // }
  2543. // type SuperCity struct {
  2544. // AdState int `json:"adState"` // 0 未知 1 是北上广深 2 非
  2545. // }
  2546. // type ResponsePlayerAdsStatus struct {
  2547. // ErrCode int `json:"errCode"`
  2548. // Msg string `json:"msg,omitempty"`
  2549. // Data SuperCity `json:"data"`
  2550. // }
  2551. // // 抽奖
  2552. // type LuckDraw struct {
  2553. // PlayerID int64 `json:"userId"`
  2554. // CostType int `json:"costType"` //2:广告券 3:看广告 4:底部广告 0:免费
  2555. // ClientPlat string `json:"clientPlat"`
  2556. // }
  2557. // type LuckDrawData struct {
  2558. // Cd int64 `json:"cd"` // 冷却倒计时
  2559. // CostType int `json:"costType"` //2:广告券 3:看广告
  2560. // BuyTimes int `json:"buyTimes"`
  2561. // Position int `json:"position"`
  2562. // LuckyNum int `json:"luckyNum"` // 幸运值
  2563. // Cost []*model.DropMaterial `json:"cost"`
  2564. // Materials []*model.DropMaterial `json:"marterials"`
  2565. // Equipment []*model.DropEquipment `json:"equipment"`
  2566. // ADCount int `json:"adCount"`
  2567. // }
  2568. // type ResponseLuckDraw struct {
  2569. // ErrCode int `json:"errCode"`
  2570. // Msg string `json:"msg,omitempty"`
  2571. // Data LuckDrawData `json:"data"`
  2572. // }
  2573. // // 抽奖
  2574. // type LuckDrawExchange struct {
  2575. // PlayerID int64 `json:"userId"`
  2576. // ClientPlat string `json:"clientPlat"`
  2577. // }
  2578. // type LuckDrawExchangeData struct {
  2579. // Materials []*model.DropMaterial `json:"marterials"`
  2580. // Equipment []*model.DropEquipment `json:"equipment"`
  2581. // NextSuper int `json:"super"` // 下次购买的秘宝
  2582. // LuckyNum int `json:"luckyNum"` // 当前幸运值
  2583. // }
  2584. // type ResponseLuckDrawExchange struct {
  2585. // ErrCode int `json:"errCode"`
  2586. // Msg string `json:"msg,omitempty"`
  2587. // Data LuckDrawExchangeData `json:"data"`
  2588. // }
  2589. // // 产出
  2590. // // 获取玩家章节信息
  2591. // type PlayerChapter struct {
  2592. // PlayerID int64 `json:"userId"`
  2593. // ChapterID uint `json:"chapterId"`
  2594. // Difficulty int `json:"difficulty"`
  2595. // Floor int `json:"floor"` // 关卡 爬塔子关卡
  2596. // RoomID int `json:"roomId"` // 起始房间id
  2597. // // RoomCount int `json:"roomCount"` // 返回房间数
  2598. // PlayerLevel int `json:"playerLevel"` // 玩家等级
  2599. // Reconnect bool `json:"reconnect"` // 是否重连
  2600. // Roles []int64 `json:"roleId"` // 角色id
  2601. // CreateTime int64 `json:"createTime"` //重连时,填写创建时间;新开时,填写0
  2602. // ClientPlat string `json:"clientPlat"`
  2603. // SyncGroupId int64 `json:"matchRoomId,string"` //多人战时,填写同步分组ID; 单人时填写0
  2604. // //以下服务器之间用,客户端不传
  2605. // BodyParts [6]*model.BodyPart2 `json:"body"` //身体部位
  2606. // Talents map[int]int `json:"talents"`
  2607. // Chapters [][]uint `json:"chapters"`
  2608. // RoleCoinAddition []*model.RoleSkillAddition `json:"roleSkill"`
  2609. // TreasuresCoinAddition []*model.TreasuresSkillAddition `json:"treasureSkill"`
  2610. // HeadFramesSkillAddition []*model.HeadFramesSkillAddition `json:"headFramesSkill"`
  2611. // AllRoles []int64 `json:"allRoles"`
  2612. // OrderRoles []int64 `json:"orderRoles"`
  2613. // CommbatEffe int64 `json:"commbatEffe"`
  2614. // Treasures []*model.RolesTreasures `json:"treasures"` //宝物
  2615. // RoleCollocate []int `json:"roleCollocate"`
  2616. // HeadFrames []int `json:"headFrames"` // 头像头像框
  2617. // VipBuffID []int64 `json:"VipID"` // 进入游戏生效的vipid
  2618. // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` //专属宝物
  2619. // }
  2620. // type PlayerChapterRoom struct {
  2621. // RoomId int `json:"roomId"` // 房间id
  2622. // SceneID int `json:"sceneID"`
  2623. // Monster []*model.MonsterTeam `json:"monster"` // 怪物信息
  2624. // RandomBox *model.ChapterBox `json:"randomBox"` // 随机箱子
  2625. // Ghost *model.RoomGhost `json:"ghost"` // 墓鬼,赌鬼,怨鬼
  2626. // SecretRoomId int `json:"secretRoomId"` // 秘境房间id
  2627. // RoomType [][]int `json:"roomType"` // 房间类型
  2628. // EndLessLimitId int `json:"endLessLimitId"` // 房间限制
  2629. // GhostExchange *model.GhostExchange `json:"exchange"` // 鬼兑换信息
  2630. // }
  2631. // type PlayerChapterData struct {
  2632. // ReconnectCount int `json:"reconnectCount"`
  2633. // CreateTime int64 `json:"createTime"` //创建时间
  2634. // MapInfo map[int]*PlayerChapterRoom `json:"mapInfo"` // 地图信息
  2635. // AllRandBox map[int]int64 `json:"allRandBox"` //所有随机箱子 房间ID:箱子ID(暂时只有主线章节需要用到)
  2636. // RandBoxReward []int `json:"randBoxReward"` // 随机箱子领取记录 房间ID
  2637. // WatchAdvTimes int64 `json:"watchAdvTimes"` // 累计观看次数
  2638. // VipBuffID []int64 `json:"VipID"` // 进入游戏生效的vipid
  2639. // }
  2640. // type ResponsePlayerChapter struct {
  2641. // ErrCode int `json:"errCode"`
  2642. // Data PlayerChapterData `json:"data"`
  2643. // }
  2644. // // 鬼、箱子,宝箱,走个新接口
  2645. // type PlayerChapterGhostAndBox struct {
  2646. // PlayerID int64 `json:"userId"`
  2647. // RoomId int `json:"roomId"`
  2648. // Type int `json:"type"` //1:箱子 2:随机箱子 3:鬼
  2649. // Value []int64 `json:"value"`
  2650. // ClientPlat string `json:"clientPlat"`
  2651. // //箱子 value[id, TalmapID]
  2652. // //随机箱子
  2653. // //鬼:value[购买方式,商品ID]
  2654. // // 鬼类型: 1:墓鬼 2:赌鬼 3:怨鬼
  2655. // //ChapterID int `json:"chapterId"`
  2656. // //Difficulty int `json:"difficulty"`
  2657. // // Boxes [][]int `json:"boxes"` // [箱子id,telmapID]
  2658. // // RandBox int `json:"randBox"` // 随机箱子id
  2659. // // Ghost int `json:"ghosts"` // 赌鬼:无广告 1,有广告2。 墓鬼:鬼内容的id
  2660. // }
  2661. // type PlayerChapterGhostAndBoxData struct {
  2662. // Materials []*model.DropMaterial `json:"materials"` // 得的材料
  2663. // Cost []*model.DropMaterial `json:"cost"` // 花费
  2664. // }
  2665. // type ResponsePlayerChapterGhostAndBox struct {
  2666. // ErrCode int `json:"errCode"`
  2667. // Data PlayerChapterGhostAndBoxData `json:"data"`
  2668. // }
  2669. // // 玩家上报房间已清理完毕 过关
  2670. // type PlayerChapterMonster struct {
  2671. // PlayerID int64 `json:"userId"`
  2672. // RoomID int `json:"roomId"`
  2673. // PassChapter bool `json:"passChapter"` // 是否通关 秘境使用
  2674. // NextRoomId int `json:"nextRoomId"`
  2675. // Skills map[int]int `json:"skill"` //所有已选技能
  2676. // Roles []*BattleRole `json:"role"` //角色属性
  2677. // ClientPlat string `json:"clientPlat"`
  2678. // SyncGroupId int64 `json:"matchRoomId,string"` //多人战时,填写同步分组ID; 单人时填写0
  2679. // DpsOutput int64 `json:"dpsOutput"` // 玩家总输出伤害
  2680. // //ChapterID int `json:"chapterId"`
  2681. // //Difficulty int `json:"difficulty"`
  2682. // //PlayerLevel int `json:"playerLevel"`
  2683. // }
  2684. // // type BattleRole struct {
  2685. // // RoleId int64 `json:"roleId"`
  2686. // // State int `json:"state"` //0死亡 1休息 2出站
  2687. // // BattleAttr RoleItem `json:"attr"`
  2688. // // }
  2689. // type PlayerChapterMonsterData struct {
  2690. // // Materials []*model.DropMaterial `json:"materials"` // 得的材料
  2691. // // Cost []*model.DropMaterial `json:"cost"` // 花费
  2692. // RoomInfo *PlayerChapterRoom `json:"roomInfo"`
  2693. // CheckToken string `json:"checkToken"` // 当前房间随机种子 创建房间或者过房间发送客户端
  2694. // }
  2695. // type ResponsePlayerChapterMonster struct {
  2696. // ErrCode int `json:"errCode"`
  2697. // Data PlayerChapterMonsterData `json:"data"`
  2698. // }
  2699. // type PlayerChapterCheck struct {
  2700. // CheckResult int `json:"errCode"`
  2701. // Msg string `json:"msg,omitempty"`
  2702. // }
  2703. // // 登陆后上报本地缓存关卡
  2704. // type ReportCacheChapter struct {
  2705. // PlayerID int64 `json:"userId"`
  2706. // ChapterID uint `json:"chapterId"`
  2707. // Difficulty int `json:"difficulty"`
  2708. // RoomId int `json:"roomId"`
  2709. // CreateTime int64 `json:"createTime"` // 秒级时间戳
  2710. // }
  2711. // type ReportCacheChapterData struct {
  2712. // Exist bool `json:"exist"` // 1 表示服务端有该记录,其他 表示没有/已清理;
  2713. // ReconnectCount int `json:"reconnectCount"`
  2714. // }
  2715. // type ResponseReportCacheChapter struct {
  2716. // ErrCode int `json:"errCode"` // 为0
  2717. // Data ReportCacheChapterData `json:"data"`
  2718. // }
  2719. // // 爬梯通关情况
  2720. // type ClimbFloorSummary struct {
  2721. // PlayerID int64 `json:"userId"`
  2722. // }
  2723. // type ResponseClimbFloorSummary struct {
  2724. // ErrCode int `json:"errCode"` // 为0
  2725. // Msg string `json:"msg,omitempty"`
  2726. // Data *ClimbFloorSummaryData `json:"data"`
  2727. // }
  2728. // type ClimbFloorSummaryData struct {
  2729. // MaxFloor int `json:"maxFloor"` // 为0
  2730. // Floors map[int]int `json:"floors"` //每关卡已挑战次数
  2731. // UseCount int `json:"haveCount"`
  2732. // // BuyCount int `json:"buyCount"`
  2733. // // AdCount int `json:"adCount"`
  2734. // //DayBuyUse *model.DayBuyAdUse `json:"dayBuyUse"`
  2735. // //ChallengeCount int `json:"haveCount"` //磁石购买信息
  2736. // }
  2737. // // 挑战某一关
  2738. // type EnterClimbFloor struct {
  2739. // PlayerID int64 `json:"userId"`
  2740. // Floor int `json:"floor"`
  2741. // CostType int `json:"costType"` // 0:次数 1:磁石
  2742. // }
  2743. // type ResponseEnterClimbFloor struct {
  2744. // ErrCode int `json:"errCode"` // 为0
  2745. // Msg string `json:"msg,omitempty"`
  2746. // Data *EnterClimbFloorData `json:"data"`
  2747. // }
  2748. // type EnterClimbFloorData struct {
  2749. // CostType int `json:"costType"` // 0:次数 1:磁石
  2750. // Floor *model.DropMaterial `json:"floor"`
  2751. // Cost []*model.DropMaterial `json:"cost"`
  2752. // //DayBuyUse *model.DayBuyAdUse `json:"dayBuyUse"`
  2753. // }
  2754. // // 扫荡某一关
  2755. // type MopClimbFloor struct {
  2756. // PlayerID int64 `json:"userId"`
  2757. // Floor int `json:"floor"`
  2758. // CostType int `json:"costType"` // 0:次数 1:磁石
  2759. // }
  2760. // type ResponseMopClimbFloor struct {
  2761. // ErrCode int `json:"errCode"` // 为0
  2762. // Msg string `json:"msg,omitempty"`
  2763. // Data *MopClimbFloorData `json:"data"`
  2764. // }
  2765. // type MopClimbFloorData struct {
  2766. // CostType int `json:"costType"` // 0:次数 1:磁石
  2767. // UseCount int `json:"haveCount"` //剩余免费次数
  2768. // Floor int `json:"floor"` //挑战了几次
  2769. // Cost []*model.DropMaterial `json:"cost"`
  2770. // Materials []*model.DropMaterial `json:"restores"` //增加的材料
  2771. // }
  2772. // // 购买星石
  2773. // type BuyLimitGoods struct {
  2774. // PlayerID int64 `json:"userId"`
  2775. // CostType int `json:"costType"` //0:无广告 钻石 2:广告券 3:看广告 4:底部广告
  2776. // GoodsId int64 `json:"goodsId"`
  2777. // ClientPlat string `json:"clientPlat"`
  2778. // }
  2779. // type ResponseBuyLimitGoods struct {
  2780. // ErrCode int `json:"errCode"`
  2781. // Msg string `json:"msg,omitempty"`
  2782. // Data *BuyLimitGoodsData `json:"data"`
  2783. // }
  2784. // type BuyLimitGoodsData struct {
  2785. // CostType int `json:"costType"` //0:无广告 钻石 2:广告券 3:看广告 4:底部广告
  2786. // GoodsId int64 `json:"goodsId"`
  2787. // BuyCount int `json:"buyCount"`
  2788. // AdCount int `json:"adCount"`
  2789. // DoubleAdCount int `json:"doubleAdCount"` //剩余双倍广告数
  2790. // CD int64 `json:"cd"`
  2791. // Materials []*model.DropMaterial `json:"materials"`
  2792. // Cost []*model.DropMaterial `json:"cost"`
  2793. // }
  2794. // // 查询快捷购买项
  2795. // type QueryLimitGoods struct {
  2796. // PlayerID int64 `json:"userId"`
  2797. // GoodsId int64 `json:"goodsId"`
  2798. // ClientPlat string `json:"clientPlat"`
  2799. // }
  2800. // type ResponseQueryLimitGoods struct {
  2801. // ErrCode int `json:"errCode"`
  2802. // Msg string `json:"msg,omitempty"`
  2803. // Data *QueryLimitGoodsData `json:"data"`
  2804. // }
  2805. // type QueryLimitGoodsData struct {
  2806. // GoodsId int64 `json:"goodsId"`
  2807. // BuyCount int `json:"buyCount"`
  2808. // AdCount int `json:"adCount"`
  2809. // CD int64 `json:"cd"`
  2810. // }
  2811. // // 金榜题名排行
  2812. // type IdiomRank struct {
  2813. // PlayerId int64 `json:"userId"`
  2814. // ClientPlat string `json:"clientPlat"`
  2815. // }
  2816. // type ResponseIdiomRank struct {
  2817. // ErrCode int `json:"errCode"`
  2818. // Msg string `json:"msg,omitempty"`
  2819. // Data *IdiomRankData `json:"data"`
  2820. // }
  2821. // type IdiomRankData struct {
  2822. // RankList []*IdiomRankItem `json:"rankList"`
  2823. // SelfRank *IdiomRankItem `json:"selfRank"`
  2824. // }
  2825. // type IdiomRankItem struct {
  2826. // PlayerID int64 `json:"-"` //不用传给客户端,但服务端要用
  2827. // Score int `json:"score"`
  2828. // Rank int `json:"rank"`
  2829. // // NickName string `json:"nickName"`
  2830. // // HeadImg string `json:"headImg"`
  2831. // CombatEffe int64 `json:"combatEffe"`
  2832. // PersonalItem `json:"personalItem"`
  2833. // }
  2834. // // 金榜题名
  2835. // type IdiomActivity struct {
  2836. // PlayerId int64 `json:"userId"`
  2837. // ClientPlat string `json:"clientPlat"`
  2838. // }
  2839. // type ResponseIdiomActivity struct {
  2840. // ErrCode int `json:"errCode"`
  2841. // Msg string `json:"msg,omitempty"`
  2842. // Data *IdiomActivityData `json:"data"`
  2843. // }
  2844. // type IdiomActivityData struct {
  2845. // Id int `json:"Id"` //活动ID
  2846. // RewardId int `json:"rewardId"` //奖励ID
  2847. // ActivityCD int64 `json:"cd"` //活动CD
  2848. // Ink *InkItem `json:"ink"` //墨水
  2849. // Score *IdiomScore `json:"score"` //积分
  2850. // HelpCD int64 `json:"helpCd"` //锦囊CD
  2851. // // Scene *model.SceneState `json:"scene"` //通过关卡
  2852. // }
  2853. // type InkItem struct {
  2854. // Value int `json:"ink"` //剩余墨水数
  2855. // BuyCount int `json:"buyCount"` //钻石购买次数
  2856. // ADCount int `json:"adCount"` //广告购买次数
  2857. // RecoverCD int64 `json:"recoverCD"` // 最后恢复时间
  2858. // AdCD int64 `json:"adCD"` // 最后看广告时间
  2859. // }
  2860. // type IdiomScore struct {
  2861. // DayScore int `json:"dayScore"` //日积分
  2862. // Reward []int `json:"reward"` //领取箱子
  2863. // }
  2864. // // 开始闯关
  2865. // type StartIdiom struct {
  2866. // PlayerId int64 `json:"userId"`
  2867. // ClientPlat string `json:"clientPlat"`
  2868. // // SceneId int `json:"sceneId"`
  2869. // }
  2870. // type ResponseStartIdiom struct {
  2871. // ErrCode int `json:"errCode"`
  2872. // Msg string `json:"msg,omitempty"`
  2873. // Data *StartIdiomData `json:"data"` //墨水
  2874. // }
  2875. // type StartIdiomData struct {
  2876. // SceneId int `json:"scene"` //当前关卡
  2877. // SceneSum int `json:"sum"` //已完成
  2878. // Ink *InkItem `json:"ink"` //墨水
  2879. // IdiomRewards [][]int64 `json:"idiomRewards"` //完成成语的奖励
  2880. // }
  2881. // // 成语结算
  2882. // type IdiomSettle struct {
  2883. // PlayerId int64 `json:"userId"`
  2884. // SceneId int `json:"sceneId"` // 场景ID
  2885. // ClientPlat string `json:"clientPlat"`
  2886. // }
  2887. // type ResponseIdiomSettle struct {
  2888. // ErrCode int `json:"errCode"`
  2889. // Msg string `json:"msg,omitempty"`
  2890. // Data *IdiomSettleData `json:"data"` //积分
  2891. // }
  2892. // type IdiomSettleData struct {
  2893. // Score int `json:"score"` //本次得分
  2894. // DayScore int `json:"dayScore"` //日积分
  2895. // }
  2896. // // 成语开宝箱
  2897. // type IdiomBox struct {
  2898. // PlayerId int64 `json:"userId"`
  2899. // BoxIds []int `json:"boxId"` //领取箱子ID
  2900. // ClientPlat string `json:"clientPlat"`
  2901. // }
  2902. // type ResponseIdiomBox struct {
  2903. // ErrCode int `json:"errCode"`
  2904. // Msg string `json:"msg,omitempty"`
  2905. // Data *IdiomBoxData `json:"data"`
  2906. // }
  2907. // type IdiomBoxData struct {
  2908. // BoxId []int `json:"boxId"` //领取箱子ID
  2909. // Materials []*model.DropMaterial `json:"materials"` //领取物品
  2910. // }
  2911. // // 墨水补给
  2912. // // 0:钻石 2:广告券 3:看广告 4:底部广告
  2913. // // 6:钻石 2:广告券 3:看广告 4:底部广告 0:免费
  2914. // type InkSupply struct {
  2915. // PlayerId int64 `json:"userId"`
  2916. // CostType int `json:"type"`
  2917. // ClientPlat string `json:"clientPlat"`
  2918. // }
  2919. // type ResponseInkSupply struct {
  2920. // ErrCode int `json:"errCode"`
  2921. // Msg string `json:"msg,omitempty"`
  2922. // Data *InkSupplyData `json:"data"`
  2923. // }
  2924. // type InkSupplyData struct {
  2925. // CostType int `json:"costType"`
  2926. // Ink *InkItem `json:"ink"` //墨水
  2927. // Cost []*model.DropMaterial `json:"cost"`
  2928. // Materials []*model.DropMaterial `json:"materials"`
  2929. // // EnableADCount int `json:"enableADCount"`
  2930. // }
  2931. // // 恢复墨水
  2932. // type RestoreInk struct {
  2933. // PlayerId int64 `json:"userId"`
  2934. // ClientPlat string `json:"clientPlat"`
  2935. // }
  2936. // type ResponseRestoreInk struct {
  2937. // ErrCode int `json:"errCode"`
  2938. // Msg string `json:"msg,omitempty"`
  2939. // Data *InkItem `json:"data"`
  2940. // }
  2941. // // 成语结算
  2942. // type IdiomReward struct {
  2943. // PlayerId int64 `json:"userId"`
  2944. // SceneId int `json:"sceneId"` // 场景ID
  2945. // Rewards []int `json:"reward"` // 成语奖励奖品索引 0,1,...
  2946. // ClientPlat string `json:"clientPlat"`
  2947. // }
  2948. // type ResponseIdiomReward struct {
  2949. // ErrCode int `json:"errCode"`
  2950. // Msg string `json:"msg,omitempty"`
  2951. // Data []*model.DropMaterial `json:"data"` //积分
  2952. // }
  2953. // // 使用锦囊
  2954. // type IdiomUseHelp struct {
  2955. // PlayerId int64 `json:"userId"`
  2956. // CostType int `json:"costType"` //2:广告券 3:看广告 6 钻石
  2957. // ClientPlat string `json:"clientPlat"`
  2958. // }
  2959. // type ResponseIdiomUseHelp struct {
  2960. // ErrCode int `json:"errCode"`
  2961. // Msg string `json:"msg,omitempty"`
  2962. // Data *IdiomUseHelpData `json:"data"`
  2963. // }
  2964. // type IdiomUseHelpData struct {
  2965. // Cost []*model.DropMaterial `json:"cost"`
  2966. // Materials []*model.DropMaterial `json:"materials"`
  2967. // CostType int `json:"costType"`
  2968. // Cd int64 `json:"cd"`
  2969. // }
  2970. // // type IdiomRewardData struct {
  2971. // // Score int `json:"score"` //本次得分
  2972. // // DayScore int `json:"dayScore"` //日积分
  2973. // // }
  2974. // // // 使用锦囊
  2975. // // type UseHelp struct {
  2976. // // PlayerId int64 `json:"userId"`
  2977. // // }
  2978. // // type ResponseUseHelp struct {
  2979. // // ErrCode int `json:"errCode"`
  2980. // // Msg string `json:"msg,omitempty"`
  2981. // // }
  2982. // // NoviceDetails 获取任务详情
  2983. // type NoviceDetails struct {
  2984. // PlayerID int64 `json:"userId"`
  2985. // }
  2986. // type ResponseNoviceDetails struct {
  2987. // ErrCode int `json:"errCode"`
  2988. // Msg string `json:"msg,omitempty"`
  2989. // Data *NoviceDetailsData `json:"data"`
  2990. // }
  2991. // type NoviceDetailsData struct {
  2992. // UnlockDays int64 `json:"unlockDays"` // 当前开启的任务天数
  2993. // CD int64 `json:"closeDown"` // 活动关闭倒计时
  2994. // Integral int64 `json:"integral"` // 积分
  2995. // Active []*model.NoviceRewardItem `json:"active"` // 活跃度任务进度
  2996. // Task []*model.NoviceTaskItem `json:"task"` // 每天任务进度
  2997. // }
  2998. // // NoviceTaskAward 领取单个任务奖励
  2999. // type NoviceTaskAward struct {
  3000. // PlayerID int64 `json:"userId"`
  3001. // ID int64 `json:"ID"`
  3002. // }
  3003. // type ResponseNoviceTaskAward struct {
  3004. // ErrCode int `json:"errCode"`
  3005. // Msg string `json:"msg,omitempty"`
  3006. // Data NoviceTaskAwardData `json:"data"`
  3007. // }
  3008. // type NoviceTaskAwardData struct {
  3009. // ServerTime int64 `json:"serverTime"` //服务器时间
  3010. // ID int `json:"id"` // 任务id
  3011. // NewIntegral int64 `json:"newIntegral"` // 更新后的总活跃度
  3012. // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
  3013. // Materials []*model.DropMaterial `json:"restores"` //增加的材料
  3014. // }
  3015. // // NoviceActiveAward 领取活跃度奖励
  3016. // type NoviceActiveAward struct {
  3017. // PlayerID int64 `json:"userId"`
  3018. // ID int64 `json:"ID"`
  3019. // }
  3020. // type ResponseNoviceActiveAward struct {
  3021. // ErrCode int `json:"errCode"`
  3022. // Msg string `json:"msg,omitempty"`
  3023. // Data NoviceActiveAwardData `json:"data"`
  3024. // }
  3025. // type NoviceActiveAwardData struct {
  3026. // ServerTime int64 `json:"serverTime"` //服务器时间
  3027. // ID int `json:"id"` // 任务id
  3028. // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
  3029. // Materials []*model.DropMaterial `json:"restores"` //增加的材料
  3030. // RoleId int64 `json:"roleId"` // 增加的角色
  3031. // }
  3032. // // GemOneSynth 宝石一键合成
  3033. // type GemOneSynth struct {
  3034. // PlayerID int64 `json:"userId"`
  3035. // }
  3036. // type ResponseGemOneSynth struct {
  3037. // ErrCode int `json:"errCode"`
  3038. // Msg string `json:"msg,omitempty"`
  3039. // Data *GemOneSynthData `json:"data"`
  3040. // }
  3041. // type GemOneSynthData struct {
  3042. // News []*model.DropMaterial `json:"news"` // 新获得材料
  3043. // Cost []*model.DropMaterial `json:"cost"` // 消耗材料
  3044. // Count int `json:"count"` // 合成次数
  3045. // }
  3046. // // 宝石升级 三合一
  3047. // type GemLevelUp struct {
  3048. // PlayerID int64 `json:"userId"`
  3049. // GemId int64 `json:"gem"`
  3050. // }
  3051. // type ResponseGemLevelUp struct {
  3052. // ErrCode int `json:"errCode"`
  3053. // Msg string `json:"msg,omitempty"`
  3054. // Data *GemLevelUpData `json:"data"`
  3055. // }
  3056. // type GemLevelUpData struct {
  3057. // News []*model.DropMaterial `json:"news"`
  3058. // Cost []*model.DropMaterial `json:"cost"`
  3059. // }
  3060. // // 宝石镶嵌
  3061. // type GemInlay struct {
  3062. // PlayerID int64 `json:"userId"`
  3063. // Part int `json:"part"` //部位 1-6
  3064. // Index int `json:"index"` //套装位置 0-2
  3065. // Slot int `json:"slot"` // 1-4
  3066. // GemId int64 `json:"gem"` //宝石ID
  3067. // }
  3068. // type ResponseGemInlay struct {
  3069. // ErrCode int `json:"errCode"`
  3070. // Msg string `json:"msg,omitempty"`
  3071. // Data *GemInlayData `json:"data"`
  3072. // }
  3073. // type GemInlayData struct {
  3074. // Part int `json:"part"` //部位 1-6
  3075. // Slots []int64 `json:"slots"` // 1-4
  3076. // Index int `json:"index"` //套装位置 0-2
  3077. // }
  3078. // // 宝石挖出
  3079. // type GemDigOut struct {
  3080. // PlayerID int64 `json:"userId"`
  3081. // Part int `json:"part"` //部位 1-6
  3082. // Slot int `json:"slot"` // 1-4
  3083. // Index int `json:"index"` //套装位置 0-2
  3084. // }
  3085. // type ResponseGemDigOut struct {
  3086. // ErrCode int `json:"errCode"`
  3087. // Msg string `json:"msg,omitempty"`
  3088. // Data *GemInlayData `json:"data"`
  3089. // }
  3090. // // 兑换码兑换物品
  3091. // type RedeemGoods struct {
  3092. // PlayerId int64 `json:"userId"`
  3093. // Code string `json:"code"`
  3094. // }
  3095. // type ResponseRedeemGoods struct {
  3096. // ErrCode int `json:"errCode"`
  3097. // Msg string `json:"msg,omitempty"`
  3098. // Data *RedeemGoodsData `json:"data"`
  3099. // }
  3100. // type RedeemGoodsData struct {
  3101. // ErrCode int `json:"errCode"`
  3102. // Materials []*model.DropMaterial `json:"materials"`
  3103. // Equipments []*model.DropEquipment `json:"equipments"`
  3104. // }
  3105. // // 服务器内部协议
  3106. // type RedeemGoodsIs struct {
  3107. // PlayerId int64 `json:"userId"`
  3108. // OpenId string `json:"openId"`
  3109. // GateId int `json:"gateId"`
  3110. // Code string `json:"code"`
  3111. // }
  3112. // // 前三个字段必传
  3113. // type ResponseRedeemGoodsIs struct {
  3114. // ErrCode int `json:"errCode"`
  3115. // PlayerId int64 `json:"userId"`
  3116. // GateId int `json:"gateId"`
  3117. // Materials []*model.DropMaterial `json:"materials"`
  3118. // Equipments []int64 `json:"equipments"`
  3119. // }
  3120. // // 添加新手引导材料
  3121. // type AddGuideMaterials struct {
  3122. // PlayerId int64 `json:"userId"`
  3123. // Guide int `json:"guide"`
  3124. // ClientPlat string `json:"clientPlat"`
  3125. // }
  3126. // type ResponseAddGuideMaterials struct {
  3127. // ErrCode int `json:"errCode"`
  3128. // Msg string `json:"msg,omitempty"`
  3129. // Data *AddCurioMaterialsIsData `json:"data"`
  3130. // }
  3131. // type AddCurioMaterialsIs struct {
  3132. // PlayerId int64 `json:"userId"`
  3133. // Guide int `json:"guide"`
  3134. // Materials []*model.DropMaterial `json:"Materials"`
  3135. // ClientPlat string `json:"clientPlat"`
  3136. // }
  3137. // type AddCurioMaterialsIsData struct {
  3138. // ErrCode int `json:"errCode"`
  3139. // Guide int `json:"guide"`
  3140. // Materials []*model.DropMaterial `json:"materials"`
  3141. // CombineBox []int64 `json:"combineBox"` //合成箱
  3142. // Curios map[int64]int `json:"curios"` //古玩
  3143. // }
  3144. // // 元宵活动
  3145. // type YearFifteen struct {
  3146. // PlayerId int64 `json:"userId"`
  3147. // }
  3148. // type ResponseYearFifteen struct {
  3149. // ErrCode int `json:"errCode"`
  3150. // Msg string `json:"msg,omitempty"`
  3151. // Data *YearFifteenData `json:"data"`
  3152. // }
  3153. // type YearFifteenData struct {
  3154. // StartCD int64 `json:"startCD"`
  3155. // EndCD int64 `json:"endCD"`
  3156. // ShowCD int64 `json:"showCD"`
  3157. // Exchanges map[int]int `json:"exchanges"`
  3158. // Items map[int64]int `json:"items"` //拥有的道具 数量
  3159. // }
  3160. // // 制作元宵
  3161. // type FifteenCompose struct {
  3162. // PlayerId int64 `json:"userId"`
  3163. // Num int `json:"num"` //制作次数:1或10
  3164. // }
  3165. // type ResponseFifteenCompose struct {
  3166. // ErrCode int `json:"errCode"`
  3167. // Msg string `json:"msg,omitempty"`
  3168. // Data *FifteenComposeData `json:"data"`
  3169. // }
  3170. // type FifteenComposeData struct {
  3171. // Materials [][]*model.DropMaterial `json:"materials"`
  3172. // Cost []*model.DropMaterial `json:"cost"`
  3173. // Effect int `json:"effect"`
  3174. // }
  3175. // // 元宵排行
  3176. // type FifteenRank struct {
  3177. // PlayerId int64 `json:"userId"`
  3178. // }
  3179. // type ResponseFifteenRank struct {
  3180. // ErrCode int `json:"errCode"`
  3181. // Msg string `json:"msg,omitempty"`
  3182. // Data *FifteenRankData `json:"data"`
  3183. // }
  3184. // type FifteenRankData struct {
  3185. // RankList []*FifteenRankItem `json:"rankList"`
  3186. // SelfRank *FifteenRankItem `json:"selfRank"`
  3187. // }
  3188. // type FifteenRankItem struct {
  3189. // PlayerID int64 `json:"userId"`
  3190. // Score int64 `json:"score"`
  3191. // Rank int `json:"rank"`
  3192. // //NickName string `json:"nickName"`
  3193. // CombatEffe int64 `json:"combatEffe"`
  3194. // PersonalItem `json:"personalItem"`
  3195. // }
  3196. // // 汤圆兑换
  3197. // type ExchangeFifteen struct {
  3198. // PlayerId int64 `json:"userId"`
  3199. // GoodsId int `json:"goodsId"`
  3200. // }
  3201. // type ResponseExchangeFifteen struct {
  3202. // ErrCode int `json:"errCode"`
  3203. // Msg string `json:"msg,omitempty"`
  3204. // Data *ExchangeFifteenData `json:"data"`
  3205. // }
  3206. // type ExchangeFifteenData struct {
  3207. // GoodsId int `json:"goodsId"`
  3208. // Limit int `json:"limit"`
  3209. // Materials []*model.DropMaterial `json:"materials"`
  3210. // Cost []*model.DropMaterial `json:"cost"`
  3211. // }
  3212. // // AddYearFifteenMaterialIs 增加元宵节材料
  3213. // type AddYearFifteenMaterialIs struct {
  3214. // PlayerId int64 `json:"userId"`
  3215. // Materials []*model.DropMaterial `json:"materials"`
  3216. // }
  3217. // // 用户分享游戏
  3218. // type UseShareGame struct {
  3219. // PlayerID int64 `json:"userId"`
  3220. // }
  3221. // type ResponseUseShareGame struct {
  3222. // ErrCode int `json:"errCode"`
  3223. // Msg string `json:"msg,omitempty"`
  3224. // Data int64 `json:"data"`
  3225. // }
  3226. // // ChapterWatchAdv 关卡看广告
  3227. // type ChapterWatchAdv struct {
  3228. // PlayerID int64 `json:"userId"`
  3229. // }
  3230. // type ResponseChapterWatchAdv struct {
  3231. // ErrCode int `json:"errCode"`
  3232. // Msg string `json:"msg,omitempty"`
  3233. // Data *ChapterWatchAdvData `json:"data"`
  3234. // }
  3235. // type ChapterWatchAdvData struct {
  3236. // WatchAdvTimes int64 `json:"watchAdvTimes"` // 累计观看次数
  3237. // }
  3238. // // 设置装备
  3239. // type SetPvpBodyParts struct {
  3240. // PlayerId int64 `json:"userId"`
  3241. // Suits [6]int `json:"indexs"`
  3242. // // 以下客户端不用
  3243. // BodyParts [6]*model.BodyPart2 `json:"parts"`
  3244. // }
  3245. // type ResponseSetPvpBodyParts struct {
  3246. // ErrCode int `json:"errCode"`
  3247. // Msg string `json:"msg,omitempty"`
  3248. // Data [6]int `json:"data"`
  3249. // }
  3250. // // 返回装备
  3251. // type GetPvpBodyParts struct {
  3252. // PlayerId int64 `json:"userId"`
  3253. // }
  3254. // type ResponseGetPvpBodyParts struct {
  3255. // ErrCode int `json:"errCode"`
  3256. // Msg string `json:"msg,omitempty"`
  3257. // Data [6]int `json:"data"`
  3258. // }
  3259. // // 生成游戏随机种子
  3260. // type GameCheckToken struct {
  3261. // PlayerId int64 `json:"userId"`
  3262. // }
  3263. // type ResponseGameCheckToken struct {
  3264. // ErrCode int `json:"errCode"`
  3265. // Msg string `json:"msg,omitempty"`
  3266. // Data string `json:"data"`
  3267. // }
  3268. // // 玩家成就
  3269. // type HeadAchievement struct {
  3270. // PlayerId int64 `json:"userId"`
  3271. // }
  3272. // type HeadAchievementData struct {
  3273. // MaxChapterProcess model.ChapterProcess `json:"maxChapterProcess"`
  3274. // MaxEndlessLevel int `json:"maxEndlessLevel"`
  3275. // MaxMasterTier int `json:"maxMasterTier"`
  3276. // }
  3277. // type ResponseHeadAchievement struct {
  3278. // ErrCode int `json:"errCode"`
  3279. // Msg string `json:"msg,omitempty"`
  3280. // Data *HeadAchievementData `json:"data"`
  3281. // }
  3282. // // 个人信息
  3283. // type PersonalItem struct {
  3284. // HeadId int `json:"headId"` // 头像 -1 代表使用 AvatarURL 微信授权头像
  3285. // FrameId int `json:"frameId"` // 头像框
  3286. // NickName string `json:"nickName"`
  3287. // HeadImg string `json:"headImg"`
  3288. // }
  3289. // // SetInviterStatus 邀请设置
  3290. // type InviterStatus struct {
  3291. // PlayerId int64 `json:"userId"`
  3292. // InviterStatus int `json:"inviterStatus"`
  3293. // }
  3294. // type ResponseInviterStatus struct {
  3295. // ErrCode int `json:"errCode"`
  3296. // Msg string `json:"msg,omitempty"`
  3297. // Data int `json:"data"`
  3298. // }
  3299. // type SendGiftIs struct {
  3300. // PlayerId int64 `json:"userId"`
  3301. // Gift int64 `json:"gift"`
  3302. // ClientPlat string `json:"clientPlat"`
  3303. // }
  3304. // // 小地图传送
  3305. // type TeleportCost struct {
  3306. // PlayerID int64 `json:"userId"`
  3307. // ChapterID uint `json:"activeId"`
  3308. // Difficulty int `json:"difficulty"` //普通 困难模式
  3309. // }
  3310. // type ResponseTeleportCost struct {
  3311. // ErrCode int `json:"errCode"`
  3312. // Msg string `json:"msg,omitempty"`
  3313. // Cost []*model.DropMaterial `json:"data"`
  3314. // }
  3315. // type AddChapterBuffMaterialsIs struct {
  3316. // PlayerID int64 `json:"userId"`
  3317. // VipIds []int64 `json:"vipIds"`
  3318. // }
  3319. // // 等级变动
  3320. // type LevelChangeAfter struct {
  3321. // PlayerID int64 `json:"userId"`
  3322. // ClientPlat string `json:"ClientPlat"`
  3323. // Level int `json:"level"` //用户等级
  3324. // }
  3325. // // 专属宝物获取
  3326. // type RoleTreasureGet struct {
  3327. // PlayerID int64 `json:"userId"`
  3328. // Id int `json:"id"` // 宝物Id
  3329. // }
  3330. // type RoleTreasureGetData struct {
  3331. // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` // 专属宝物
  3332. // }
  3333. // type ResponseRoleTreasureGet struct {
  3334. // ErrCode int `json:"errCode"`
  3335. // Msg string `json:"msg,omitempty"`
  3336. // Data *RoleTreasureGetData `json:"data"`
  3337. // }
  3338. // // 专属宝物升级
  3339. // type RoleTreasureLevel struct {
  3340. // PlayerID int64 `json:"userId"`
  3341. // Id int `json:"id"` // 宝物Id
  3342. // }
  3343. // type RoleTreasureLevelData struct {
  3344. // Id int `json:"id"` // 宝物Id
  3345. // Level int `json:"level"` // 宝物lev
  3346. // Cost []*model.DropMaterial `json:"cost"` // 消耗道具
  3347. // }
  3348. // type ResponseRoleTreasureLevel struct {
  3349. // ErrCode int `json:"errCode"`
  3350. // Msg string `json:"msg,omitempty"`
  3351. // Data *RoleTreasureLevelData `json:"data"`
  3352. // }
  3353. // // 魔君数据
  3354. // type MonarchGift struct {
  3355. // PlayerID int64 `json:"userId"`
  3356. // ClientPlat string `json:"clientPlat"`
  3357. // }
  3358. // type MonarchGiftData struct {
  3359. // StartCD int64 `json:"startCd"` // 开始CD
  3360. // EndCD int64 `json:"endCd"` // 结束CD
  3361. // ShowCD int64 `json:"showCd"` // 结束展示CD
  3362. // StartTime int64 `json:"startTime"` // 活动开始时间(哪一期活动的开始标记)
  3363. // ShopTypes []int64 `json:"shopTypes"` // 商品类型
  3364. // DayFreeTime int64 `json:"dayFreeTime"` // 每天免费领奖时间
  3365. // GoodBuys map[int64]int `json:"goodBuys"` // 商品购买数据
  3366. // GiftBuys map[int64]int `json:"giftBuys"` // 礼包购买数据
  3367. // }
  3368. // type ResponseMonarchGift struct {
  3369. // ErrCode int `json:"errCode"`
  3370. // Msg string `json:"msg,omitempty"`
  3371. // Data *MonarchGiftData `json:"data"`
  3372. // }
  3373. // // 魔君每日领奖
  3374. // type MonarchDayFree struct {
  3375. // PlayerID int64 `json:"userId"`
  3376. // ClientPlat string `json:"clientPlat"`
  3377. // }
  3378. // type MonarchDayFreeData struct {
  3379. // DayFreeTime int64 `json:"dayFreeTime"` // 每天免费领奖时间
  3380. // Material []*model.DropMaterial `json:"material"` // 奖励
  3381. // }
  3382. // type ResponseMonarchDayFree struct {
  3383. // ErrCode int `json:"errCode"`
  3384. // Msg string `json:"msg,omitempty"`
  3385. // Data *MonarchDayFreeData `json:"data"`
  3386. // }
  3387. // // 服务端用
  3388. // type MonarchDayFreeIs struct {
  3389. // RpcRequestMsg
  3390. // PlayerId int64 `json:"userId"`
  3391. // Rewards []*model.DropMaterial `json:"rewards"` //道具
  3392. // }
  3393. // type ResponseMonarchDayFreeIs struct {
  3394. // RpcResponseMsg
  3395. // }