12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989 |
- package msg
- func MustNotNil[T any](cost []T) []T {
- if cost == nil {
- return make([]T, 0)
- }
- return cost
- }
- type RPCer interface {
- SetMsgId(int64)
- GetMsgId() int64
- }
- type RpcRequestMsg struct {
- MsgId int64
- }
- func (r *RpcRequestMsg) SetMsgId(id int64) {
- r.MsgId = id
- }
- func (r *RpcRequestMsg) GetMsgId() int64 {
- return r.MsgId
- }
- type RpcResponse interface {
- RPCer
- GetErrCode() int
- }
- type RpcResponseMsg struct {
- MsgId int64
- ErrCode int `json:"errCode"`
- }
- func (r *RpcResponseMsg) SetMsgId(id int64) {
- r.MsgId = id
- }
- func (r *RpcResponseMsg) GetMsgId() int64 {
- return r.MsgId
- }
- func (r *RpcResponseMsg) GetErrCode() int {
- return r.ErrCode
- }
- // HappyNewDay 跨天包,只返回passroom和视频次数
- type HappyNewDay struct {
- PlayerID int64 `json:"userId"`
- }
- type ResponseHappyNewDay struct {
- ErrCode int `json:"errCode"`
- Msg string `json:"msg,omitempty"`
- Data *HappyNewDayData `json:"data"`
- }
- type HappyNewDayData struct {
- // PassRoom []*model.PlayerPassRoom `json:"passRoom"`
- // VipBuffs []*VipBuffData `json:"buffs"`
- // AdCount int `json:"adCount"`
- }
- // Heart 心跳
- type Heart struct {
- }
- type ResponseHeart struct {
- ErrCode int `json:"errCode"`
- Msg string `json:"msg,omitempty"`
- ServerTs int64 `json:"serverts"`
- }
- // 获取时间
- type SystemTime struct {
- }
- type ResponseSystemTime struct {
- ErrCode int `json:"errCode"`
- Msg string `json:"msg,omitempty"`
- Data int64 `json:"data"`
- }
- // 邀请好友
- type InviteFriend struct {
- PlayerId int64 `json:"userId"`
- Friend int64 `json:"friend"`
- ClientPlat string `json:"clientPlat"`
- }
- // 24点通知
- type GoodNewDay struct {
- ErrCode int `json:"errCode"`
- }
- // 给客户端的公告通知
- type Placard struct {
- Type string `json:"type"`
- Customize int `json:"customize"` //1:自定义
- Priority int `json:"priority"`
- Content string `json:"content,omitempty"`
- Sender int64 `json:"sender"`
- Params map[string]string `json:"params,omitempty"`
- Times int `json:"times"`
- }
- // 踢出玩家
- type KickOut struct {
- ErrCode int `json:"errCode"`
- Msg string `json:"msg,omitempty"`
- }
- // // Heart 心跳
- // type HeartSync struct {
- // }
- // type ResponseHeartSync struct {
- // ServerTs int64 `json:"serverts"`
- // }
- // // ClientEcho
- // type ClientEcho struct {
- // }
- // type ResponseClientEcho struct {
- // //ServerTs int64 `json:"serverts"`
- // }
- // // 服务器在线人数
- // type ServerStatus struct {
- // ServerID int
- // Online int
- // }
- // // 更换穿戴
- // type ChangeWear struct {
- // PlayerID int64 `json:"userId"`
- // BodyGID string `json:"bodyId"`
- // BagGID string `json:"packId"`
- // Suit int `json:"index"`
- // }
- // type ResponseChangeWear struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *model.BodyPart `json:"data"`
- // }
- // // type EquipmentsData struct {
- // // Old *model.DropEquipment `json:"oldEquip"` //更换前装备
- // // New *model.DropEquipment `json:"NewEquip"` //更换后装备
- // // }
- // // 装备升级 物品ID
- // type BodyLevelUp struct {
- // PlayerID int64 `json:"userId"`
- // Part int `json:"part"`
- // OptType int64 `json:"optType"` // 0:升级 1:一键升级
- // }
- // type ResponseBodyLevelUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BodyLevelUpData `json:"data"`
- // }
- // type BodyLevelUpData struct {
- // Part int `json:"part"`
- // Level int `json:"level"`
- // Cost []*model.DropMaterial `json:"cost"` //消耗的材料
- // }
- // // 身体升阶
- // type BodyStepUp struct {
- // PlayerID int64 `json:"userId"`
- // Part int `json:"part"`
- // }
- // type ResponseBodyStepUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BodyStepUpData `json:"data"`
- // }
- // type BodyStepUpData struct {
- // Part int `json:"part"`
- // Step int `json:"step"`
- // Cost []*model.DropMaterial `json:"cost"` //消耗的材料
- // }
- // // 装备升级 物品ID
- // type EquipmentStarUp struct {
- // PlayerID int64 `json:"userId"`
- // GID string `json:"gId"`
- // MatGIDs []string `json:"matIds"`
- // }
- // type ResponseEquipmentStarUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EquipmentStarUpData `json:"data"`
- // }
- // type EquipmentStarUpData struct {
- // Wear int `json:"wear"` //1:穿戴; 0:不穿戴 -> -1:不穿戴 0~2:穿戴套装位置
- // Equipment *model.DropEquipment `json:"equipment"` //升级后的装备
- // Removes []*model.DropEquipment `json:"removes"` //移除的装备
- // Materials []*model.DropMaterial `json:"materials"` //返还的材料
- // }
- // // EquipOneSynth 装备一键合成
- // type EquipOneSynth struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseEquipOneSynth struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EquipOneSynthData `json:"data"`
- // }
- // type EquipOneSynthData struct {
- // Wears []*model.DropEquipment `json:"wears"` // 需要穿戴的装备
- // Gets []*model.DropEquipment `json:"gets"` // 升级后获得的装备
- // Removes []*model.DropEquipment `json:"removes"` // 移除的装备
- // Materials []*model.DropMaterial `json:"materials"` // 返还的材料
- // Count int `json:"count"` // 合成次数
- // }
- // // 装备分解
- // type ExtractEquipment struct {
- // PlayerID int64 `json:"userId"`
- // GID string `json:"gId"`
- // }
- // type ResponseExtractEquipment struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ExtractEquipmentData `json:"data"`
- // }
- // type ExtractEquipmentData struct {
- // Equipments *model.DropEquipment `json:"equipments"` //分解的装备
- // Materials []*model.DropMaterial `json:"materials"` //分解所得的材料
- // }
- // // 转换装备
- // type EquipmentTransfer struct {
- // PlayerID int64 `json:"userId"`
- // OldGID string `json:"oldGId"`
- // NewID int64 `json:"newId"`
- // }
- // type ResponseEquipmentTransfer struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EquipmentTransferData `json:"data"`
- // }
- // type EquipmentTransferData struct {
- // NewID int64 `json:"newId"`
- // Cost []*model.DropMaterial `json:"cost"` //消耗的材料
- // }
- // // 转换装备
- // type EquipmentHistory struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseEquipmentHistory struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*EquipmentHistoryData `json:"data"`
- // }
- // type EquipmentHistoryData struct {
- // Star int `json:"star"` // 历史拥有最高品质
- // Model int `json:"model"` //套装ID Material
- // Body int `json:"body"` //穿着部位 WearPart
- // }
- // // 宝物升星
- // type TreasureMaterialData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Old int64 `json:"old"`
- // New int64 `json:"new"`
- // LuckyValue float64 `json:"luckyValue"` // 幸运值
- // }
- // type TreasureStarUp struct {
- // PlayerID int64 `json:"userId"`
- // ID int64 `json:"treasureId"`
- // }
- // type ResponseTreasureStarUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *TreasureMaterialData `json:"data"`
- // }
- // // 宝物升级
- // type TreasureLevelUp struct {
- // PlayerID int64 `json:"userId"`
- // ID int64 `json:"treasureId"`
- // OptType int64 `json:"optType"` // 0: 升级 1:一键升级
- // }
- // type ResponseTreasureLevelUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *TreasureMaterialData `json:"data"`
- // }
- // // 解锁宝物
- // type ActiveTreasure struct {
- // PlayerID int64 `json:"userId"`
- // TID int64 `json:"treasureId"`
- // }
- // type ResponseActiveTreasure struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ActiveTreasureData `json:"data"`
- // }
- // // DropedTreasure 拥有的宝物
- // // type DropedTreasure struct {
- // // RoleID int64 `json:"roleId"` // 佩戴角色
- // // TID int64 `json:"treasureId"` // 宝物id
- // // }
- // type ActiveTreasureData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Treasures *model.DropedTreasure `json:"treasures"`
- // }
- // // 佩戴宝物
- // type ChangeTreasure struct {
- // PlayerID int64 `json:"userId"`
- // ID int64 `json:"treasureId"`
- // RoleID int64 `json:"roleId"`
- // }
- // // ChangeTreasureData 拥有的宝物
- // type ChangeTreasureData struct {
- // RoleID int64 `json:"roleId"` // 佩戴角色
- // OldTID int64 `json:"oldTreasureId"` // 卸下宝物id
- // NewTID int64 `json:"newTreasureId"` // 装备宝物id
- // }
- // type ResponseChangeTreasure struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ChangeTreasureData `json:"data"`
- // }
- // // 角色升级
- // type RoleLevelUp struct {
- // PlayerID int64 `json:"userId"`
- // RoleID int64 `json:"roleId"`
- // OptType int64 `json:"optType"` // 0: 升级 1:突破 2:一键升级
- // }
- // type ResponseRoleLevelUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleMaterialData `json:"data"`
- // }
- // type RoleMaterialData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Old int64 `json:"old"`
- // New int64 `json:"New"`
- // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` // 专属宝物
- // }
- // // 购买角色劵
- // type BuyRoleKey struct {
- // PlayerID int64 `json:"userId"`
- // Num int `json:"num"`
- // }
- // type BuyRoleKeyData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // type ResponseBuyRoleKey struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyRoleKeyData `json:"data"`
- // }
- // // 角色升星
- // type RoleStarUp struct {
- // PlayerID int64 `json:"userId"`
- // RoleID int64 `json:"roleId"`
- // }
- // type ResponseRoleStarUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleMaterialData `json:"data"`
- // }
- // // 角色重置
- // type RoleReplacement struct {
- // PlayerID int64 `json:"userId"`
- // RoleID int64 `json:"roleId"`
- // }
- // type ResponseRoleReplacement struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleReplacementData `json:"data"`
- // }
- // type RoleReplacementData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Old int64 `json:"old"`
- // New int64 `json:"new"`
- // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` // 专属宝物
- // }
- // // 天赋升级
- // type TalentLevelUp struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseTalentLevelUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *PlayerMaterialData `json:"data"`
- // }
- // type PlayerMaterialData struct {
- // Cost []*model.DropMaterial `json:"cost"`
- // Talents *model.DropTalent `json:"talents"`
- // Cd int64 `json:"cd"`
- // //Materials []*model.DropMaterial `json:"materials"`
- // //TalentPoint int `json:"talentPoint"`
- // }
- // // 天赋免费剩余cd
- // type TalentVipCd struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseTalentVipCd struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Cd int64 `json:"data"`
- // }
- // // 更换角色
- // type ChangeRole struct {
- // PlayerID int64 `json:"userId"`
- // RoleIDs []int64 `json:"roleIds"`
- // }
- // type ResponseChangeRole struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []int64 `json:"data"`
- // }
- // // 解锁角色
- // type ActiveRole struct {
- // PlayerID int64 `json:"userId"`
- // RoleID int64 `json:"roleId"`
- // }
- // type ResponseActiveRole struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ActiveRoleData `json:"data"`
- // }
- // type ActiveRoleData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Roles *model.DropedRole `json:"roles"`
- // }
- // // 设置角色升级是否提示
- // type SetRoleLevelTip struct {
- // PlayerID int64 `json:"userId"`
- // RoleID int64 `json:"roleId"`
- // NoTip int `json:"NoTip"` //0:提示, 1:不提示
- // }
- // type ResponseSetRoleLevelTip struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data int `json:"data"`
- // }
- // type SettleRoomInfo struct {
- // ID int `json:"id"`
- // }
- // // 战斗结算
- // type SettleBattle struct {
- // PlayerID int64 `json:"userId"`
- // Chapter uint `json:"chapter"`
- // Difficulty int `json:"difficulty"`
- // PassRoom int `json:"passRoom"` // 最大通过房间 远征表示关卡数
- // PassChapter bool `json:"passChapter"` // 是否通关
- // CurPassRoom int `json:"emigrated"` // 本次通过的房间数
- // IsActivity bool `json:"isActivity"` // 是不是活动
- // Coin int `json:"coin"` // 金币
- // Diamond int `json:"diamond"` // 钻石
- // WinLose int `json:"result"` //1:赢, -1:输, 0:中途退出
- // Equipments []int64 `json:"equipments"`
- // KillBoss int `json:"killBoss"` // 击杀BOSS数量
- // KillMonster int `json:"killMonster"`
- // Materials []*model.DropMaterial `json:"materials"`
- // RoomInfo *SettleRoomInfo `json:"roomId"` // 是否结算房间怪物产出信息
- // SwitchRole int `json:"switchRole"` //切换角色
- // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
- // RewardMulti float64 `json:"rewardMulti"` // 结算奖励倍数
- // EndLessSkills []int `json:"endLessSkills"` // 无尽三选一技能 展示用
- // SyncGroupId int64 `json:"matchRoomId,string"` //多人战时,填写同步分组ID; 单人时填写0
- // DpsOutput int64 `json:"dpsOutput"`
- // CreateTime int64 `json:"createTime"` // 活动开始时间
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseSettleBattle struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *SettleData `json:"data"`
- // }
- // type SettleData struct {
- // UID int64 `json:"userId"`
- // Exp int64 `json:"userExp"`
- // Level int `json:"userLevel"`
- // TalentPoint int `json:"talentPoint"`
- // FirstPass bool `json:"firstPass"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Equipments []*model.DropEquipment `json:"equipments"`
- // UserRewards []*model.DropMaterial `json:"userRewards"`
- // UserRewardEquips []*model.DropEquipment `json:"userRewardsEquip"`
- // PassRoom *model.PlayerPassRoom `json:"passRoom"`
- // RewardMultiId int `json:"rewardMultiId"` // 结算奖励倍数
- // SyncOtherData *SyncOther `json:"syncOther"`
- // }
- // // RequestLevelData 客户端存储数据
- // type RequestLevelData struct {
- // PlayerID int64 `json:"id"`
- // Level int `json:"level"`
- // Token string `json:"token"`
- // Score int `json:"score"`
- // }
- // // ResponseLevelData 1
- // type ResponseLevelData struct {
- // ErrCode int `json:"errCode"`
- // ErrMsg string `json:"errMsg"`
- // PlayerID int64 `json:"playerId"`
- // RankInfo []RankData `json:"rank"`
- // }
- // type RankData struct {
- // PlayerID int64 `json:"id"`
- // Score int `json:"score"`
- // NickName string `json:"nickname"`
- // AvatarURL string `json:"avarurl"`
- // Rank int32 `json:"rank"`
- // Level int `json:"level"`
- // }
- // // 商店商品
- // type BuyGoods struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int64 `json:"-"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Materials []*model.DropMaterial `json:"materials"`
- // CoinTimeLen int `json:"coinTimeLen"` //巡逻时长的金币收益
- // Guide int `json:"guide"`
- // BuyNum int `json:"buyNum"` //购买箱子数目
- // BoxType int `json:"boxType"` // 0白银 1黄金
- // BoxExp int `json:"boxExp"` // 箱子经验
- // BuyItemNum int `json:"buyItemNum"` //购买道具数目
- // CurBuyNum int `json:"buyCount"` // 已经购买次数
- // // CD int `json:"cd"` //CD
- // // MaxCount int `json:"maxCount"` //剩余最大次数
- // // DrawEpicCount int `json:"drawEpicCount"` //宝箱必出诗史剩余次数
- // // CostType int `json:"type"` // 2:广告券 3:看广告
- // }
- // type ResponseBuyGoods struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ChangedAssetsData `json:"data"`
- // }
- // type ChangedAssetsData struct {
- // Coin int `json:"coin"`
- // Diamond int `json:"diamond"`
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Materials []*model.DropMaterial `json:"restores"`
- // Cost []*model.DropMaterial `json:"cost,omitempty"`
- // }
- // // 买宝箱
- // type BuyBox struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int64 `json:"boxId"`
- // Num int `json:"num"` //抽几次
- // // CostType int `json:"type"` //0:price配置,金币或钻石;1:钥匙
- // Guide int `json:"guide"` // 新手引导:1; 正常购买:0
- // BoxType int `json:"boxType"` // 1白银 2黄金
- // BuyNum int `json:"buyNum"` //购买几次道具
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseBuyBox struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BoxAssetsData `json:"data"`
- // }
- // type BoxAssetsData struct {
- // GoodsId int64 `json:"goodsId"`
- // // CD int `json:"cd"` //CD
- // // MaxCount int `json:"maxCount"` //剩余最大次数
- // // DrawEpicCount int `json:"drawEpicCount"` //抽了多少次 宝箱剩余次数
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Materials []*model.DropMaterial `json:"restores"`
- // Cost []*model.DropMaterial `json:"cost"`
- // // CostType int `json:"costType"` //0:price配置,金币或钻石;1:钥匙
- // BoxType int `json:"boxType"` // 0白银 1黄金
- // BoxExp int `json:"boxExp"` // 箱子经验
- // BuyItemNum int `json:"buyNum"` //购买几次道具
- // CurBuyItemNum int `json:"buyCount"` //道具剩余次数 只有每日限制道具返回
- // }
- // // 买宝箱
- // type FreeBox struct {
- // PlayerID int64 `json:"userId"`
- // BoxID int64 `json:"boxId"`
- // CostType int `json:"type"` // 2:广告券 3:看广告
- // }
- // type ResponseFreeBox struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BoxAssetsData `json:"data"`
- // }
- // // 使用宝箱
- // type UseBox struct {
- // PlayerID int64 `json:"userId"`
- // BoxID int64 `json:"boxId"`
- // Num int `json:"num"` // 使用宝箱数量
- // Selects []int64 `json:"selects"` //自选商品,自选礼包用,其他两个礼包不用
- // }
- // type ResponseUseBox struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *UseBoxData `json:"data"`
- // }
- // type UseBoxData struct {
- // BoxID int64 `json:"boxId"`
- // Num int `json:"num"` // 使用宝箱数量
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // UpdateClientData 客户端存储数据
- // type UpdateClientData struct {
- // PlayerID int64 `json:"userId"`
- // Token string `json:"token"`
- // Type string `json:"type"`
- // Data string `json:"data"`
- // }
- // // ResponseUpdateClientData 1
- // type ResponseUpdateClientData struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data string `json:"data"`
- // }
- // // ClientData 客户端存储数据
- // type ClientData struct {
- // PlayerID int64 `json:"userId"`
- // Type string `json:"type"`
- // }
- // // ResponseClientData 用户名注册
- // type ResponseClientData struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data ClientDataItem `json:"data"`
- // }
- // type ClientDataItem struct {
- // Type string `json:"type"`
- // Data string `json:"data"`
- // }
- // // 请求购买信息
- // type BuyGoodsInfo struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseBuyGoodsInfo struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyGoodsInfoData `json:"data"`
- // }
- // type BuyGoodsInfoData struct {
- // BoxInfo []*BoxGoodsData `json:"boxInfo"`
- // RandRoleAccNum int `json:"randRoleCount"`
- // GoldKeyExp int `json:"goldKeyExp"`
- // SilverKeyExp int `json:"silverKeyExp"`
- // DrawNum int `json:"drawNum"` // 抽奖次数
- // DrawRole int64 `json:"drawRole"` // 选择角色
- // }
- // type BoxGoodsData struct {
- // GoodsID int64 `json:"goodsId"`
- // DayAdCount int `json:"buyCount"`
- // ToEpicCount int `json:"toEpicCount"`
- // CD int64 `json:"cd"`
- // }
- // // CoinGiftInfo
- // type CoinGiftInfo struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseCoinGiftInfo struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *CoinGiftInfoData `json:"data"`
- // }
- // type CoinGiftInfoData struct {
- // GoodsID int64 `json:"goodsId"`
- // BuyCount int `json:"buyCount"`
- // CD int64 `json:"cd"`
- // }
- // // 钻石购买道具信息
- // type DiamondBuyInfo struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseDiamondBuyInfo struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DiamondBuyInfoData `json:"data"`
- // }
- // type DiamondBuyInfoData struct {
- // ShopInfo []*DiamondBuyShopData `json:"shopInfo"`
- // RefreshInfo []*DiamondShopRefreshData `json:"refreshInfo"`
- // }
- // type DiamondShopRefreshData struct {
- // ShopType int `json:"shopType"`
- // Count int `json:"count"`
- // Cd int64 `json:"cd"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // type DiamondBuyShopData struct {
- // GoodsID int64 `json:"goodsId"`
- // Count int `json:"buyCount"`
- // Discount int `json:"Discount"` // 100代表 不打折
- // }
- // // 刷新
- // type DiamondBuyRefresh struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // ShopType int `json:"shopType"`
- // }
- // type ResponseDiamondBuyRefresh struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DiamondBuyRefreshData `json:"data"`
- // }
- // type DiamondBuyRefreshData struct {
- // ShopInfo []*DiamondBuyShopData `json:"shopInfo"`
- // RefreshInfo *DiamondShopRefreshData `json:"refreshInfo"`
- // }
- // // 神秘商人商店信息
- // type DealerShop struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseDealerShop struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DealerSalesGoodsData `json:"data"`
- // }
- // type DealerSalesGoodsData struct {
- // CurTick int64 `json:"timeStamp"`
- // DealerID int `json:"dealerId"`
- // Equipments []int64 `json:"equipments"`
- // Materials []*model.DropMaterial `json:"materials"`
- // //Favorites []*model.Favorite `json:"favorite"`
- // RefTotalTimes int64 `json:"refTotalTimes"` // 总次数
- // RefUseTimes int64 `json:"refUseTimes"` // 使用次数
- // RefCDTime int64 `json:"refCDTime"` // CD时间
- // Cost []*model.DropMaterial `json:"cost"` // 刷新消耗
- // }
- // // 神秘商人交换物品
- // type SwitchDealerGoods struct {
- // PlayerID int64 `json:"userId"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Equipments []int64 `json:"equipments"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // type ResponseSwitchDealerGoods struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *SwitchGoodsData `json:"data"`
- // }
- // type SwitchGoodsData struct {
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Materials []*model.DropMaterial `json:"restores"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 神秘商人刷新
- // type TraderRef struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseTraderRef struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DealerSalesGoodsData `json:"data"`
- // }
- // type TraderRefCost struct {
- // PlayerId int64 `json:"playerId"`
- // RefTimes int64 `json:"refTimes"`
- // }
- // type ResponseTraderRefCost struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // BuffMaterials []*model.ExpireMaterial `json:"buffMaterials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 购买活动次数
- // type BuyZoneTicket struct {
- // PlayerID int64 `json:"userId"`
- // ActiveID uint `json:"activeId"`
- // }
- // type ResponseBuyZoneTicket struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyZoneTicketData `json:"data"`
- // }
- // type BuyZoneTicketData struct {
- // ActiveID uint `json:"activeID"`
- // JoinTime int `json:"joinTime"`
- // UsedCount int `json:"usedCount"`
- // BuyCount int `json:"buyCount"`
- // AvailCount int `json:"availCount"`
- // Cost []*model.DropMaterial `json:"cost"`
- // CD int64 `json:"cd"`
- // }
- // // 地下城活动参与情况
- // type ZoneActives struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseZoneActives struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ZoneActivesData `json:"data"`
- // }
- // type ZoneActivesData struct {
- // Week int `json:"week"` // 今天是周几
- // Opened []*OpenedActiveItem `json:"opend"`
- // Closed []*ClosedZoneActiveItem `json:"closed"`
- // }
- // type OpenedActiveItem struct {
- // ActiveID uint `json:"activeID"`
- // JoinTime int `json:"joinTime"`
- // UsedCount int `json:"usedCount"` // 使用了多少次
- // BuyCount int `json:"buyCount"` // 购买了多少次
- // AdCount int `json:"adCount"` // 看广告了多少次
- // AvailCount int `json:"availCount"` // 剩余可用次数
- // CD int64 `json:"cd"` // 活动CD
- // AdCD int64 `json:"adCd"` // 看广告CD
- // Bonus map[int]*ActiveBonus `json:"bonus"` // 活动加成
- // AllCanBuyCount int `json:"allCanBuyCount"` // 可购买总次数
- // }
- // type ActiveBonus struct {
- // RewardId int `json:"rewardId"` // 奖励倍数Id
- // }
- // type ClosedZoneActiveItem struct {
- // ID uint `json:"activeID"`
- // CD int64 `json:"cd"`
- // //ActiveTime []int `json:"timeInterval"`
- // }
- // // //进入地下城
- // // type EnterZone struct {
- // // PlayerID int64 `json:"userId"`
- // // ActiveID uint `json:"activeId"`
- // // }
- // // type ResponseEnterZone struct {
- // // ErrCode int `json:"errCode"`
- // // Msg string `json:"msg,omitempty"`
- // // Data *EnterZoneData `json:"data"`
- // // }
- // // type EnterZoneData struct {
- // // ActiveID uint `json:"activeID"`
- // // JoinTime int `json:"joinTime"`
- // // UsedCount int `json:"usedCount"`
- // // BuyCount int `json:"buyCount"`
- // // AvailCount int `json:"availCount"`
- // // Difficulty int `json:"difficulty"`
- // // CD int64 `json:"cd"`
- // // }
- // type EnterChapter struct {
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"activeId"`
- // Difficulty int `json:"difficulty"` //普通 困难模式
- // IsActivity int `json:"isActivity"` //是否活动
- // Stamina int `json:"stamina"` //花费体力
- // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseEnterChapter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EnterChapterData `json:"data"`
- // }
- // type EnterChapterData struct {
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"activeId"`
- // Difficulty int `json:"difficulty"` //普通 困难模式
- // ActiveID uint `json:"activeID"`
- // JoinTime int `json:"joinTime"` //非活动返回0
- // UsedCount int `json:"usedCount"`
- // BuyCount int `json:"buyCount"`
- // AvailCount int `json:"availCount"`
- // Stamina int `json:"stamina"` //剩余体力
- // CD int64 `json:"cd"`
- // DifScale int `json:"difScale"` // 难度系数
- // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
- // RewardMulti float64 `json:"rewardMulti"` // 结算奖励倍数
- // // 当前最高关卡 无尽使用
- // CurRoomId int `json:"roomId"` // 房间id
- // EndLessLimitId int `json:"endLessLimitId"` // 房间限制
- // SkillTurntables []int `json:"skillTurntables"` // 槽位技能
- // Skills []int `json:"exSkills"` // 额外技能
- // EndLessEndTs int64 `json:"endLessEndTs"` // 无尽关闭时间
- // }
- // type EnterChapterIs struct {
- // RpcRequestMsg
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"activeId"`
- // Difficulty int `json:"difficulty"` //普通 困难模式
- // IsActivity int `json:"isActivity"` //是否活动
- // Stamina int `json:"stamina"` //剩余体力
- // Level int `json:"level"` //用户体力
- // StaminaMulti int `json:"staminaMulti"` // 花费体力倍数
- // }
- // type ResponseEnterChapterIs struct {
- // RpcResponseMsg
- // ErrCode int `json:"errCode"`
- // Data *EnterChapterData `json:"data"`
- // }
- // // 关卡商人
- // type StageDealer struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int `json:"goodsId"`
- // }
- // type ResponseStageDealer struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *StageDealerData `json:"data"`
- // }
- // type StageDealerData struct {
- // Diamond int `json:"diamond"`
- // Goods *model.DropMaterial `json:"goods"`
- // }
- // // 买关卡商人物品
- // type BuyStageDealerGoods struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int `json:"goodsId"`
- // Goods []*model.DropMaterial `json:"goods"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // type ResponseBuyStageDealerGoods struct {
- // ErrCode int `json:"errCode"`
- // PlayerID int64 `json:"userId"`
- // GoodsID int `json:"goodsId"`
- // Diamond int `json:"diamond"`
- // }
- // // 怨鬼商人
- // type YuanGuiDealer struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int `json:"goodsId"`
- // }
- // type ResponseYuanGuiDealer struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *StageDealerData `json:"data"`
- // }
- // // 请求计算恢复体力数
- // type RestoreStamina struct {
- // PlayerID int64 `json:"userId"`
- // // Type int `json:"type"`
- // // Stamina int `json:"data"`
- // }
- // type ResponseRestoreStamina struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RestoreStaminaData `json:"data"`
- // }
- // type RestoreStaminaData struct {
- // Diamond int `json:"diamond"`
- // Stamina int `json:"stamina"`
- // MaxStama int `json:"maxStama"`
- // CoolDown int `json:"cd"`
- // }
- // // Type 2:广告券 3:看广告 0:消耗钻石
- // // -> Type 2:广告券 3:看广告 6: 消耗钻石 0:免费
- // type BuyStamina struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"type"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseBuyStamina struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyStaminaData `json:"data"`
- // }
- // type BuyStaminaData struct {
- // Stamina int `json:"stamina"`
- // FreeCount int `json:"freeCount"`
- // DiamondCount int `json:"diamondCount"`
- // Cost []*model.DropMaterial `json:"cost"`
- // AdCount int `json:"adCount"`
- // CostType int `json:"costType"`
- // CD int64 `json:"cd"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // 查询购买次数
- // type QueryBuyStamina struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type StaminaBuyData struct {
- // AdCount int `json:"adCount"`
- // DiamondCount int `json:"diamondCount"`
- // CD int64 `json:"cd"`
- // }
- // type ResponseQueryBuyStamina struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data StaminaBuyData `json:"data"`
- // }
- // // 购买钻石
- // type BuyDiamond struct {
- // PlayerID int64 `json:"userId"`
- // Diamond int `json:"diamond"`
- // Coin int `json:"coin"`
- // }
- // type ResponseBuyDiamond struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyDiamond `json:"data"`
- // }
- // // 获取时间
- // type SystemTime struct {
- // }
- // type ResponseSystemTime struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data int64 `json:"data"`
- // }
- // // 发送给服务器的通知
- // // Type 1:服务器停服维护;2:消息通知 limit:时长,超时之后停服; Msg:消息内容
- // type ServerNotifyData struct {
- // Type int `json:"type"`
- // Limit int `json:"limit"`
- // Msg string `json:"msg"`
- // }
- // type ServerNotify struct {
- // ErrCode int `json:"errCode"`
- // Data *ServerNotifyData `json:"data"`
- // }
- // // 更新关卡数据
- // type UpdateChapter struct {
- // PlayerID int64 `json:"userId"`
- // Difficulty int `json:"difficulty"`
- // Chapter int `json:"chapter"`
- // Doors string `json:"archive"`
- // Stuff string `json:"gameStuff"`
- // Guide int `json:"guide"`
- // }
- // type ResponseUpdateChapter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data string `json:"data"`
- // }
- // // 请求关卡数据
- // type RequestChapter struct {
- // PlayerID int64 `json:"userId"`
- // Difficulty int `json:"difficulty"`
- // Chapter int `json:"chapter"`
- // InviterId int64 `json:"inviterId"`
- // }
- // type RequestChapterData struct {
- // Doors *string `json:"archive"`
- // Stuff *string `json:"gameStuff"`
- // Guide int `json:"guide"`
- // }
- // type ResponseRequestChapter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RequestChapterData `json:"data"`
- // }
- // //选择第一把武器
- // // type SelectFirstWeapon struct {
- // // PlayerID int64 `json:"userId"`
- // // EID uint `json:"equipId"`
- // // }
- // // type ResponseSelectFirstWeapon struct {
- // // ErrCode int `json:"errCode"`
- // // Msg string `json:"msg,omitempty"`
- // // Data *EquipmentsData `json:"data"`
- // // }
- // // 新手指导步骤
- // type SetGuide struct {
- // PlayerID int64 `json:"userId"`
- // Guide int `json:"guide"`
- // Type int `json:"type"` // 1:引导项 2:功能项
- // }
- // type ResponseSetGuide struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data int `json:"data"`
- // }
- // type GetGuide struct {
- // PlayerID int64 `json:"userId"`
- // Type int `json:"type"`
- // }
- // type ResponseGetGuide struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []int `json:"data"`
- // }
- // // 获取签到情况
- // type QuerySignIn struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseQuerySignIn struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data SignInData `json:"data"`
- // }
- // type SignInData struct {
- // Time int64 `json:"time"` //最后签到时间
- // ServerTime int64 `json:"serverTime"` //服务器时间
- // Count int `json:"count"` //总签到次数
- // }
- // // 签到请求
- // type DoSignIn struct {
- // PlayerID int64 `json:"userId"`
- // // Double bool `json:"double"`
- // CostType int `json:"type"` //0:无广告 2:广告券 3:看广告 4:底部广告
- // ClassID int64 `json:"adClassID"` // 广告分类ID
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseDoSignIn struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data DoSignInData `json:"data"`
- // }
- // // 通知服务器签到奖励
- // type DoSignInData struct {
- // Time int64 `json:"time"` //最后签到时间
- // ServerTime int64 `json:"serverTime"` //服务器时间
- // Count int `json:"count"` //总签到次数
- // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
- // Materials []*model.DropMaterial `json:"restores"` //增加的材料
- // Cost []*model.DropMaterial `json:"cost"`
- // AdCount int `json:"adCount"`
- // CostType int `json:"costType"` // 0:无消耗,2:广告券 3:看广告 4:底部广告
- // }
- // // 进度奖励
- // type ProcessAward struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"type"` //0:无消耗,2:广告券 3:看广告 4:底部广告
- // Awards []*model.ProcessNode `json:"awards"`
- // }
- // type ResponseProcessAward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ProcessAwardData `json:"data"`
- // }
- // type ProcessAwardData struct {
- // Awards []*model.ProcessNode `json:"awards"`
- // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
- // Materials []*model.DropMaterial `json:"materials"` //增加的材料
- // Cost []*model.DropMaterial `json:"cost"`
- // AdCount int `json:"adCount"`
- // CostType int `json:"costType"` //0:无消耗,2:广告券 3:看广告 4:底部广告
- // }
- // // 进度领取情况
- // type ProcessAwardInfo struct {
- // PlayerID int64 `json:"userId"`
- // Chapters []uint `json:"chapter"`
- // Difficulty int `json:"difficulty"`
- // }
- // type ResponseProcessAwardInfo struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.ProcessNode `json:"data"`
- // }
- // // type ProcessNode struct {
- // // ID int
- // // Award []int
- // // }
- // // 更新摘要数据
- // type UpdateSummary struct {
- // PlayerID int64 `json:"userId"`
- // ExitPos string `json:"exitPos"`
- // }
- // type ResponseUpdateSummary struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data string `json:"data"`
- // }
- // // 请求摘要数据
- // type RequestSummary struct {
- // PlayerID int64 `json:"userId"`
- // Type string `json:"type"`
- // }
- // type RequestSummaryData struct {
- // ExitPos string `json:"exitPos"`
- // }
- // type ResponseRequestSummary struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data RequestSummaryData `json:"data"`
- // }
- // // 占卜次数
- // type DivinationCount struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseDivinationCount struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data DivinationBuffData `json:"data"`
- // }
- // // 占卜
- // type Divination struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"type"` //2:广告券 3:看广告
- // }
- // type ResponseDivination struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data DivinationData `json:"data"`
- // }
- // type DivinationData struct {
- // DvnId int `json:"dvnId"` //占卜ID
- // BuffId int `json:"buffId"` //bufID
- // EndTime int64 `json:"buffTime"` //buf剩余时间
- // ReuseCount int `json:"reuseCount"` //已延长BUF次数
- // DvnCount int `json:"dvnCount"` //占卜次数
- // ModifyCount int `json:"modifyCount"` //改命次数
- // Material []*model.DropMaterial `json:"material"` //所得材料
- // Cost []*model.DropMaterial `json:"cost"` //耗费材料
- // CostType int `json:"costType"` //2:广告券 3:看广告
- // }
- // // 增加时长
- // type AddBuffTimeLen struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"type"` //2:广告券 3:看广告
- // }
- // type ResponseAddBuffTimeLen struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data DivinationBuffData `json:"data"`
- // }
- // type DivinationBuffData struct {
- // DvnId int `json:"dvnId"` //占卜ID
- // BuffId int `json:"buffId"` //bufID
- // EndTime int64 `json:"buffTime"` //buf剩余时间
- // ReuseCount int `json:"reuseCount"` //已延长BUF次数
- // DvnCount int `json:"dvnCount"` //占卜次数
- // ModifyCount int `json:"modifyCount"` //改命次数
- // Cost []*model.DropMaterial `json:"cost"` //消耗
- // Materials []*model.DropMaterial `json:"materials"` //获得
- // CostType int `json:"costType"`
- // }
- // // 创建订单
- // type NewOrder struct {
- // PlayerID int64 `json:"userId"`
- // Platform int `json:"platform"` //微信:1; 抖音:2; quick: 3;
- // GoodsID int64 `json:"goodsId"`
- // PayMethod int `json:"midasPay"` //0:苹果游戏外微信支付 1:安卓游戏内支付 2:安卓游戏外微信支付 3:苹果游戏内支付
- // Level int `json:"level"`
- // OpenId string `json:"openId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseNewOrder struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *NewOrderData `json:"data"`
- // }
- // type NewOrderData struct {
- // OrderID string `json:"orderID"`
- // Url string `json:"callUrl"`
- // }
- // // 取消订单
- // type CancleOrder struct {
- // PlayerID int64 `json:"userId"`
- // OrderID string `json:"orderID"`
- // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseCancleOrder struct {
- // ErrCode int `json:"errCode"`
- // Data string `json:"data"`
- // }
- // type QueryOrder struct {
- // PlayerID int64 `json:"userId"`
- // OrderID string `json:"orderID"`
- // MidasPay int `json:"midasPay"`
- // }
- // // type ResponseQueryOrder struct {
- // // ErrCode int `json:"errCode"`
- // // //Data *PayBuyData `json:"data"`
- // // }
- // type AndroidPayedNotify struct {
- // GoodsID int64 `json:"goodsId"`
- // OrderID string `json:"orderID"`
- // }
- // // 支付购买
- // type PayBuy struct {
- // PlayerID int64 `json:"userId"`
- // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
- // GoodsID int64 `json:"goodsId"`
- // OrderID string `json:"orderID"`
- // Level int `json:"level"`
- // Num int64 `json:"num"` //发送本消息次数
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponsePayBuy struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *PayBuyData `json:"data"`
- // }
- // type PayBuyData struct {
- // GoodsId int64 `json:"goodsId"`
- // Diamond int `json:"diamond"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Buffs *VipBuffData `json:"buffs"`
- // }
- // // 请求支付次数
- // type PayRequestCd struct {
- // PlayerID int64 `json:"userId"`
- // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3
- // GoodsID int64 `json:"goodsId"`
- // OrderID string `json:"orderID"`
- // Num int64 `json:"num"`
- // }
- // type ResponsePayRequestCd struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *PayRequestCdData `json:"data"`
- // }
- // type PayRequestCdData struct {
- // Num int64 `json:"num"`
- // Cd int `json:"cd"`
- // }
- // type VipBuffData struct {
- // ID int64 `json:"goodsId"`
- // BuyCD int64 `json:"buyCD"`
- // DailyCD int64 `json:"dailyCD"`
- // }
- // // 购买钻石信息
- // type PayDiamondInfo struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponsePayDiamondInfo struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []int64 `json:"data"`
- // }
- // // 无尽排行
- // type ElRank struct {
- // PlayerId int64 `json:"userId"`
- // //Level int `json:"level"`
- // }
- // type ResponseElRank struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ElRankData `json:"data"`
- // }
- // type ElRankData struct {
- // RankList []*EndlessRank `json:"rankList"`
- // SelfRank *EndlessRank `json:"selfRank"`
- // }
- // type EndlessRank struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"`
- // Rank int `json:"rank"`
- // //NickName string `json:"nickName"`
- // CombatEffe int64 `json:"combatEffe"`
- // PersonalItem `json:"personalItem"`
- // }
- // // 无尽模式 查看关卡奖励
- // type ViewElStagePrize struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseViewElStagePrize struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data ViewElStagePrizeData `json:"data"`
- // }
- // type ViewElStagePrizeData struct {
- // CurrentLevel int `json:"current"`
- // PrizeLevel int `json:"prize"`
- // }
- // // 领取关卡奖励
- // type ElStagePrize struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseElStagePrize struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ElStagePrizeData `json:"data"`
- // }
- // type ElStagePrizeData struct {
- // Level int `json:"level"` //领到哪一层
- // Materials []*model.DropMaterial `json:"materials"`
- // Equips []*model.DropEquipment `json:"equips"`
- // }
- // // ElWeekTask 无尽周任务
- // type ElWeekTask struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseElWeekTask struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ElWeekTaskData `json:"data"`
- // }
- // type ElWeekTaskData struct {
- // Type int `json:"type"` // 任务类型
- // Progress int `json:"progress"` // 任务进度
- // Received map[int]struct{} `json:"received"` // 已领取的档位ID
- // }
- // // ElWeekTaskReceive 无尽周任务领取
- // type ElWeekTaskReceive struct {
- // PlayerId int64 `json:"userId"`
- // Ids []int `json:"ids"` // 要领取的档位ID集合
- // }
- // type ResponseElWeekTaskReceive struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ElWeekTaskReceiveData `json:"data"`
- // }
- // type ElWeekTaskReceiveData struct {
- // Type int `json:"type"` // 任务类型
- // Progress int `json:"progress"` // 任务进度
- // Received map[int]struct{} `json:"received"` // 已领取的档位ID
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // 无尽关卡显示
- // type EndLessShowActive struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseEndLessShowActive struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EndLessShowActiveData `json:"data"`
- // }
- // type EndLessShowActiveData struct {
- // HistoryRank int `json:"historyRank"` // 历史最高排名
- // Skills []int `json:"skills"`
- // CurRank int `json:"curRank"`
- // CurMaxRoomId int `json:"curMaxRoomId"` //最大闯关数
- // EndLessLimitId int `json:"endLessLimitId"` // 房间限制
- // StartTs int64 `json:"startTs"` // 开始时间
- // EndTs int64 `json:"endTs"` // 结束时间
- // ShowTs int64 `json:"showTs"` // 展示时间
- // }
- // // 查看无尽通行证奖励
- // type EndLessShowPass struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseEndLessShowPass struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EndLessShowPassData `json:"data"`
- // }
- // type EndLessShowPassData struct {
- // Exp int64 `json:"exp"` // 当前活跃度
- // IsMiddleVip int `json:"isMiddleVip"` // 是否开通中级奖励 0:未开通;1:已开通
- // IsSeniorVip int `json:"isSeniorVip"` // 是否开通高级奖励 0:未开通;1:已开通
- // FreeReceived []int `json:"FreeReceived"` // 已领取免费奖励
- // MiddleReceived []int `json:"MiddleReceived"` // 已领取中级奖励
- // SeniorReceived []int `json:"SeniorReceived"` // 已领取高级奖励
- // }
- // type ReceivePassData struct {
- // Mode int `json:"mode"` // 1 免费奖励 2 中级奖励 3 高级奖励
- // Level int `json:"level"`
- // }
- // // 领取无尽通行证奖励
- // type EndLessReceivePassAward struct {
- // PlayerID int64 `json:"userId"`
- // Receive []*ReceivePassData `json:"receivePass"`
- // }
- // type ResponseEndLessReceivePassAward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EndLessReceivePassAwardData `json:"data"`
- // }
- // type EndLessReceivePassAwardData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Receive []*ReceivePassData `json:"receivePass"`
- // }
- // // 购买无尽通行证经验
- // type EndLessPassBuyExp struct {
- // PlayerID int64 `json:"userId"`
- // Num int `json:"num"`
- // }
- // type ResponseEndLessPassBuyExp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *EndLessPassBuyExpAwardData `json:"data"`
- // }
- // type EndLessPassBuyExpAwardData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 能否购买
- // type PayEndLessPassLimitIs struct {
- // PlayerId int64 `json:"userId"`
- // Ts int64 `json:"Ts"`
- // }
- // // 购买成功
- // type BuyEndLessPassIs struct {
- // PlayerId int64 `json:"userId"`
- // Mode int `json:"mode"` // 1 中级奖励 2 高级奖励
- // Exp int `json:"exp"`
- // }
- // // 看视频领钻石
- // type DiamondGift struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int64 `json:"goodsId"`
- // CostType int `json:"type"` // 2:广告券 3:看广告
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseDiamondGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DiamondGiftData `json:"data"`
- // }
- // type DiamondGiftData struct {
- // GoodsID int64 `json:"goodsId"`
- // MaxCount int `json:"maxCount"` //可以领取次数
- // CD int64 `json:"cd"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // AdCount int `json:"adCount"`
- // CostType int `json:"costType"` // 2:广告券 3:看广告
- // }
- // // 看视频领金币
- // type CoinGift struct {
- // PlayerID int64 `json:"userId"`
- // GoodsID int64 `json:"goodsId"`
- // CostType int `json:"type"` // 2:广告券 3:看广告
- // ClassID int64 `json:"adClassID"` // 广告分类ID
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseCoinGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DiamondGiftData `json:"data"`
- // }
- // type CoinGiftData struct {
- // CostType int `json:"costType"` // 2:广告券 3:看广告
- // AdCount int `json:"adCount"` //双倍广告
- // GoodsID int64 `json:"goodsId"`
- // MaxCount int `json:"maxCount"` //可以领取次数
- // CD int64 `json:"cd"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 巡逻
- // type Patrol struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponsePatrol struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *PatrolData `json:"data"`
- // }
- // type PatrolData struct {
- // TimeLen int `json:"timeLen"` //巡逻时长
- // MaxTimeLen int `json:"maxTimeLen"`
- // CointSpeed int `json:"cointSpeed"`
- // ExpSpeed int `json:"expSpeed"`
- // Materials []*model.DropMaterial `json:"materials"` //收益
- // Equipments []int64 `json:"equipments"`
- // }
- // // 巡逻时长
- // type PatrolTimeLen struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponsePatrolTimeLen struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *PatrolTimeLenData `json:"data"`
- // }
- // type PatrolTimeLenData struct {
- // TimeLen int `json:"timeLen"` //巡逻时长
- // MaxTimeLen int `json:"maxTimeLen"`
- // }
- // // 服务器使用 结算
- // type PatrolDataIs struct {
- // PlayerId int64
- // TimeLen int `json:"timeLen"` //巡逻时长
- // MaxTimeLen int `json:"maxTimeLen"`
- // CointSpeed int `json:"cointSpeed"`
- // ExpSpeed int `json:"expSpeed"`
- // Materials []*model.DropMaterial `json:"materials"` //目前收益
- // Equipments []int64 `json:"equipments"`
- // Cost []*model.DropMaterial `json:"cost"`
- // CostType int `json:"type"` //0:无广告 2:广告券 3:看广告
- // }
- // // 领取收益
- // type SettlePatrol struct {
- // PlayerID int64 `json:"userId"`
- // Times int `json:"times"`
- // CostType int `json:"type"` //0:无广告 2:广告券 3:看广告
- // ClassID int64 `json:"adClassID"` // 广告分类ID
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseSettlePatrol struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *SettlePatrolData `json:"data"`
- // }
- // type SettlePatrolData struct {
- // Level int `json:"userLevel"`
- // Exp int `json:"userExp"`
- // TimeLen int `json:"timeLen"` //巡逻时长
- // MaxTimeLen int `json:"maxTimeLen"`
- // CointSpeed int `json:"cointSpeed"`
- // ExpSpeed int `json:"expSpeed"`
- // Materials []*model.DropMaterial `json:"materials"` //收益
- // Equipments []*model.DropEquipment `json:"equipments"`
- // Cost []*model.DropMaterial `json:"cost"` //消耗
- // UserRewards []*model.DropMaterial `json:"userRewards"`
- // UserRewardEquips []*model.DropEquipment `json:"userRewardsEquip"`
- // CostType int `json:"costType"` //0:无广告 2:广告券 3:看广告
- // StaminaInfo MopUpStaminaInfo `json:"staminaInfo"`
- // //TalentPoint int `json:"talentPoint"`
- // }
- // // 24点通知
- // type GoodNewDay struct {
- // ErrCode int `json:"errCode"`
- // }
- // // 给客户端的公告通知
- // type Placard struct {
- // Type string `json:"type"`
- // Customize int `json:"customize"` //1:自定义
- // Priority int `json:"priority"`
- // Content string `json:"content,omitempty"`
- // Sender int64 `json:"sender"`
- // Params map[string]string `json:"params,omitempty"`
- // Times int `json:"times"`
- // }
- // // 服务器停止
- // type ServerStop struct {
- // State int `json:"state"`
- // }
- // // 踢出玩家
- // type KickOut struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // }
- // // 邮件列表
- // type LetterList struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseLetterList struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*LetterData `json:"data"`
- // }
- // type LetterData struct {
- // Id int64 `json:"id"`
- // Type int `json:"type"`
- // ViewState int `json:"readState"`
- // DrawState int `json:"drawState"`
- // Title string `json:"title"`
- // Content string `json:"content"`
- // Extra *model.ExtraData `json:"extra"`
- // CreateTime int64 `json:"createTime"`
- // }
- // // 领取附件
- // type DrawLetterExtra struct {
- // PlayerId int64 `json:"userId"`
- // Letters []int64 `json:"letters"`
- // }
- // type ResponseDrawLetterExtra struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *DrawLetterExtraData `json:"data"`
- // }
- // type DrawLetterExtraData struct {
- // Letters []int64 `json:"letters"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Equips []*model.DropEquipment `json:"equips"`
- // Stamina int `json:"stamina"`
- // Roles []*DropedRoleDate `json:"roles"`
- // }
- // // 删除邮件
- // type DeleteLetter struct {
- // PlayerId int64 `json:"userId"`
- // Letters []int64 `json:"letters"`
- // }
- // type ResponseDeleteLetter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []int64 `json:"data"`
- // }
- // // 查看邮件
- // type ViewLetter struct {
- // PlayerId int64 `json:"userId"`
- // Letters []int64 `json:"letters"`
- // }
- // type ResponseViewLetter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []int64 `json:"data"`
- // }
- // type AddNewLetterNotfiyIs struct {
- // PlayerIds []int64 `json:"userId"`
- // // Letters []int64 `json:"letters"`
- // }
- // // 兑换材料
- // type ExchangeMaterial struct {
- // PlayerId int64 `json:"userId"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // type ResponseExchangeMaterial struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ExchangeMaterialData `json:"data"`
- // }
- // type ExchangeMaterialData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 兑换金币
- // type ExchangeGold struct {
- // PlayerId int64 `json:"userId"`
- // // //0:广告购买 1:钻石购买 -》2:广告券 3:看广告 0:消耗钻石
- // CostType int `json:"type"`
- // }
- // type ResponseExchangeGold struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ExchangeGoldData `json:"data"`
- // }
- // type ExchangeGoldData struct {
- // AdCount int `json:"adCount"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // CostType int `json:"costType"`
- // }
- // // 道具兑换
- // type ItemExchange struct {
- // PlayerId int64 `json:"userId"`
- // ItemId int64 `json:"itemId"`
- // ItemNum int64 `json:"itemNum"`
- // }
- // type ResponseItemExchange struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ItemExchangeData `json:"data"`
- // }
- // type ItemExchangeData struct {
- // Cost []*model.DropMaterial `json:"cost"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // 消息通知
- // type MsgNotify struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data int `json:"data"` //1:有新邮件 2:有已支付商品
- // }
- // // 用户订阅消息
- // type PlayerSubMsgType struct {
- // PlayerID int64 `json:"userId"`
- // TemplateID string `json:"templateId"` // 订阅的消息类型
- // Param []int64 `json:"param"` //[结束CD, 最大时长]
- // }
- // type ResponsePlayerSubMsgType struct {
- // ErrCode int64 `json:"errCode"`
- // }
- // // 用户退订消息
- // type PlayerUnSubMsgType struct {
- // PlayerID int64 `json:"userId"`
- // All bool `json:"all"` // 用户退订全部消息
- // TemplateIDs []string `json:"templateIds"` // 用户退订的消息类型
- // }
- // type ResponsePlayerUnSubMsgType struct {
- // ErrCode int64 `json:"errCode"`
- // }
- // func (resp *ResponsePlayerUnSubMsgType) SetErrCode(code int64) {
- // resp.ErrCode = code
- // }
- // // Vip每日福利领取
- // type VIPDayGift struct {
- // PlayerId int64 `json:"userId"`
- // GoodsId int64 `json:"goodsId"`
- // }
- // type ResponseVIPDayGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *VIPDayGiftData `json:"data"`
- // }
- // type VIPDayGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // BuyCD int64 `json:"buyCD"`
- // DailyCD int64 `json:"dailyCD"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // Vip状态
- // type VIPStatus struct {
- // PlayerId int64 `json:"userId"`
- // //GoodsId uint `json:"goodsId"`
- // }
- // type ResponseVIPStatus struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*VipBuffData `json:"data"`
- // }
- // // -----------
- // // PlayerDayAwards 查看每日任务和奖励情况
- // type PlayerDayAwards struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // // DayAward 每日进度完成奖励
- // type DayAward struct {
- // ID int `json:"id"`
- // Process uint8 `json:"process"` // 进度 eg, 20,40,75,100
- // Material []*model.DropMaterial `json:"material"`
- // Equipment []*model.DropEquipment `json:"equipment"`
- // Recieved bool `json:"recieved"`
- // }
- // // DayTask 每日任务
- // type DayTask struct {
- // ID uint8 `json:"id"`
- // Order uint8 `json:"order"`
- // Type uint8 `json:"type"`
- // Text string `json:"text"`
- // Value int `json:"value"` // 目标值
- // Process int `json:"process"` // 完成值,达标后显示目标值,不显示更多
- // Reward uint8 `json:"reward"` // 奖励多少活跃度
- // Recieved bool `json:"recieved"` // 是否领取
- // }
- // // ResponsePlayerDayAwards 玩家的每日任务
- // type ResponsePlayerDayAwards struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data PlayerDayAwardsData `json:"data"`
- // // PlayerID int64 `json:"userId"`
- // // Day string `json:"day"`
- // // Process int64 `json:"process"`
- // // TaskAward []*DayTask `json:"taskAward"` // 任务列表
- // // ProcessAward []*DayAward `json:"processAward"` // 进度奖励列表
- // }
- // type PlayerDayAwardsData struct {
- // Day int64 `json:"day"`
- // Process int `json:"process"`
- // TaskAward []TaskAwardItem `json:"taskAward"` // 任务列表 [id,recieved]
- // ProcessAward []ProcessAwardItem `json:"processAward"` // 进度奖励列表 [id,recieved,max,val]
- // }
- // type ProcessAwardItem struct {
- // ID int `json:"id"` // 进度奖赏ID
- // Recieved int `json:"type"` // 是否领取,0 未 1 已
- // }
- // type TaskAwardItem struct {
- // ID int `json:"id"` // 任务奖赏ID
- // Recieved int `json:"type"` // 是否领取,0 未 1 已
- // Value int `json:"max"` // 最大值
- // Process int `json:"count"` // 当前进度
- // }
- // // DayTaskProcess 领取每日任务的活跃度奖励
- // type DayTaskProcess struct {
- // PlayerID int64 `json:"userId"`
- // TaskID int `json:"taskId"`
- // Day string `json:"day"` // 2022-02-22
- // Level int `json:"level"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // // ResponseDayTaskProcess resp
- // type ResponseDayTaskProcess struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg"`
- // }
- // type AwardData struct {
- // ServerTime int64 `json:"serverTime"` //服务器时间
- // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
- // Materials []*model.DropMaterial `json:"restores"` //增加的材料
- // }
- // // DayTaskAward 领取每日进度的奖励
- // type DayTaskAward struct {
- // PlayerID int64 `json:"userId"`
- // AwardID int `json:"awardId"`
- // Day string `json:"day"` // 2022-02-22
- // Level int `json:"level"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // // ResponseDayTaskAward resp
- // type ResponseDayTaskAward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg"`
- // Data AwardData `json:"data"`
- // }
- // // 扫荡关卡
- // type MopUpChapter struct {
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"activeId"`
- // Difficulty int `json:"difficulty"` //普通 困难模式
- // Stamina int `json:"stamina"` //花费体力
- // }
- // type ResponseMopUpChapter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data MopUpChapterData `json:"data"`
- // }
- // type MopUpChapterData struct {
- // Level int `json:"userLevel"`
- // Exp int `json:"userExp"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
- // Materials []*model.DropMaterial `json:"restores"` //增加的材料
- // UserRewards []*model.DropMaterial `json:"userRewards"`
- // UserRewardEquips []*model.DropEquipment `json:"userRewardsEquip"`
- // StaminaInfo MopUpStaminaInfo `json:"staminaInfo"`
- // PassRoom *model.PlayerPassRoom `json:"passRoom"`
- // }
- // type MopUpStaminaInfo struct {
- // Stamina int `json:"stamina"` //剩余体力
- // CostStamina int `json:"costStamina"` //消耗体力
- // MaxStama int `json:"maxStama"`
- // CoolDown int `json:"cd"`
- // }
- // type GiftCenterListData struct {
- // DailyGiftCD int64 `json:"dailyGiftCd"`
- // //RoleGiftCD int64 `json:"roleGiftCd"`
- // RoleDayGiftCD int64 `json:"roleDayGiftCd"` // 限时特惠 日分类CD
- // RoleWeekGiftCD int64 `json:"roleWeekGiftCd"` // 限时特惠 周分类CD
- // RoleMonthGiftCD int64 `json:"roleMonthGiftCd"` // 限时特惠 月分类CD
- // AccPayGiftCD int64 `json:"accPayGiftCD"`
- // AccCostDiamondCD int64 `json:"accCostDiamondCD"`
- // DailyGift []int64 `json:"dailyGift"`
- // RoleGift map[int64]int64 `json:"roleGift"` // 限时特惠{礼包ID:礼包CD}
- // InviteGift []int64 `json:"inviteGift"`
- // NewerGift []int64 `json:"newerGift"`
- // LuckDrawGift []int `json:"luckDrawGift"`
- // AccPayGift []int64 `json:"accPayGift"`
- // GrowthGift []int64 `json:"growthGift"`
- // DayNGift []int64 `json:"dayNGift"`
- // WeekendGift *WeekendGiftData `json:"weekendGift"`
- // }
- // // 福利中心
- // type GiftCenter struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"`
- // ClientPlat string `json:"clientPlat"`
- // // Ios int `json:"ios"`
- // // Level int `json:"level"`
- // // Open int `json:"open"`
- // }
- // type ResponseGiftCenter struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data GiftCenterData `json:"data"`
- // }
- // type GiftCenterData struct {
- // List *GiftCenterListData `json:"list"`
- // Buys *GiftCenterBuysData `json:"buys"`
- // }
- // type GiftCenterBuysData struct {
- // FirstPay map[int64]int `json:"firstPay"` //首冲 新手
- // DailyGift map[int64]int `json:"dailyGift"` // 每日
- // RoleGift map[int64]int `json:"roleGift"` //角色 限时
- // InviteGift map[int64]int `json:"inviteGift"` //邀请
- // AccPayGift []int64 `json:"accPayGift"` //累计充值领取记录
- // AccPay int64 `json:"accPay"` //累计充值金额
- // AccCostReceived []int `json:"accCostReceived"` //累计消费领取记录
- // AccCostDiamond int64 `json:"accCostDiamond"` //累计消费钻石数量
- // InviteNum int `json:"inviteNum"`
- // LuckDrawCD int64 `json:"luckDrawCD"`
- // LuckDrawSuperGift int `json:"luckDrawSuper"` // 用户秘宝id
- // LuckDrawNum int `json:"luckDrawNum"` // 今日购买次数
- // LuckNum int `json:"luckNum"` // 幸运值
- // Growth *model.GrowthGift `json:"growth"` // 成长基金礼包
- // SpecialBuy *SpecialBuy `json:"specialBuy"` // 尊享特购
- // WxMpGift bool `json:"wxMpGift"` //微信公众号礼包
- // WeekendGift map[int64]int `json:"weekendGift"` // 周末礼包
- // }
- // // 更新限时礼包购买信息
- // type UpdataRoleGoods struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseUpdataRoleGoods struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data map[int64]int64 `json:"data"`
- // }
- // type SpecialBuy struct {
- // GiftId int64 `json:"giftId"` // 礼包ID
- // ReceivedDay int64 `json:"receivedDay"` // 已领取天数 0:代表未购买
- // NextCD int64 `json:"nextCD"` // 下一天可领取礼包CD,所有礼包领完以后固定返回-1
- // }
- // // WeekendGift 周末礼包
- // type WeekendGift struct {
- // PlayerID int64 `json:"userId"`
- // Ios int `json:"ios"`
- // Level int `json:"level"`
- // Open int `json:"open"`
- // }
- // type ResponseWeekendGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *WeekendGiftData `json:"data"`
- // }
- // type WeekendGiftData struct {
- // FreeGoodsId int64 `json:"freeGoodsId"` // 免费礼包ID
- // Gifts map[int64]int64 `json:"gifts"` // map[礼包ID]剩余数量
- // StartCD int64 `json:"startCD"` // 开始CD
- // EndCD int64 `json:"endCD"` // 结束CD
- // }
- // type InviteNotfiy struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data InviteNotfiyData `json:"data"`
- // }
- // type InviteNotfiyData struct {
- // InviteGift map[int64]int `json:"inviteGift"` //领取记录
- // InviteNum int `json:"inviteNum"` //邀请总数
- // }
- // // 福利中心 每日免费礼包
- // type DailyFreeGift struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"`
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseDailyFreeGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.DropMaterial `json:"data"`
- // }
- // // 免费礼包
- // type HappyFreeGift struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"`
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseHappyFreeGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.DropMaterial `json:"data"`
- // }
- // // 购买非现金充值钥匙礼包
- // type BoxKeyGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type BoxKeyGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // type ResponseBoxKeyGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*BoxKeyGiftData `json:"data"`
- // }
- // // 购买非现金充值钥匙礼包
- // type BuyBoxKeyNoPayGift struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` // 广告类型 0:免费 234:广告 6:钻石
- // GoodsId int64 `json:"goodsId"`
- // BuyNum int `json:"buyNum"` //购买几次道具
- // ClientPlat string `json:"clientPlat"`
- // // BoxType int `json:"boxType"` // 0白银 1黄金
- // }
- // type BuyBoxKeyNoPayGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // Num int `json:"num"`
- // Material []*model.DropMaterial `json:"material"`
- // Cost []*model.DropMaterial `json:"cost"`
- // CD int `json:"cd"`
- // }
- // type ResponseBuyBoxKeyNoPayGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyBoxKeyNoPayGiftData `json:"data"`
- // }
- // // 购买礼包
- // type BuyNotPayGift struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` // 广告类型 234:广告 6:钻石
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type BuyActNoPayGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // Num int `json:"num"`
- // Material []*model.DropMaterial `json:"material"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Equipments []*model.DropEquipment `json:"eqipments"`
- // CD int `json:"cd"`
- // }
- // type ResponseBuyNotPayGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyActNoPayGiftData `json:"data"`
- // }
- // // 元旦礼包
- // type YuanDanGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type GoodsCDNum struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余CD
- // Num int `json:"num"` // 可购买次数
- // }
- // type ResponseYuanDanGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*GoodsCDNum `json:"data"`
- // }
- // // 新年礼包
- // type NewYearGiftV24 struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type GiftDayLimitData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 购买剩余时间
- // Num int `json:"num"` // 可购次数
- // }
- // type ResponseNewYearGiftV24 struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*GiftDayLimitData `json:"data"`
- // }
- // // 元宵礼包
- // type NewFifteenGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type NewFifteenGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // type ResponseNewFifteenGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*NewFifteenGiftData `json:"data"`
- // }
- // // 女神节礼包
- // type Lady38Gift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type NewLady38GiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // type ResponseLady38Gift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*NewLady38GiftData `json:"data"`
- // }
- // // 清明节礼包
- // type QingMingGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type QingMingGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // type ResponseQingMingGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*QingMingGiftData `json:"data"`
- // }
- // // 端午节礼包
- // type DragonBoatGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type NewDragonBoatGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // type ResponseDragonBoatGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*NewDragonBoatGiftData `json:"data"`
- // }
- // // 七夕礼包
- // type QiXiGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type NewQiXiGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // type ResponseQiXiGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*NewQiXiGiftData `json:"data"`
- // }
- // // 国庆礼包
- // type NationalGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseNationalGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*NewNationalGiftData `json:"data"`
- // }
- // type NewNationalGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // CD int `json:"cd"` // 剩余时间
- // Num int `json:"num"`
- // }
- // // 回归礼包
- // type ReturneGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseReturneGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*GoodsCDNum `json:"data"`
- // }
- // // 开服礼包
- // type NewServerActGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type NewServerActGiftData struct {
- // GoodsId int64 `json:"goodsId"`
- // Num int `json:"num"` // 可购买次数
- // CD int `json:"cd"` // 剩余CD
- // }
- // type ResponseNewServerActGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*NewServerActGiftData `json:"data"`
- // }
- // type NewerBox struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // Level int64 `json:"level"`
- // }
- // type PlayerNewerBoxData struct {
- // GoodsId int64 `json:"goodsId"` // 礼包id
- // ReceivedDay []int `json:"receivedDay"` // 已经领取
- // Day int `json:"curDay"` // 可以领取到那一天
- // }
- // // 礼包总数据
- // type NewBoxData struct {
- // NowTime int64 `json:"nowtime"` // 当前服务器时间
- // NewerBoxData *NewerBoxData `json:"NewerBoxData"` // 新手充
- // ChanceBoxGift *ChanceBoxGift `json:"chanceBoxGift"` // 机缘宝盒
- // }
- // type NewerBoxData struct {
- // EndCd int64 `json:"endCd"` // 结束时间
- // ReceivedDay []*PlayerNewerBoxData `json:"receivedDay"` // 礼包领取情况
- // }
- // type ChanceBoxGift struct {
- // BuyCount int64 `json:"buyCount"` //购买次数
- // EndCD int64 `json:"endCD"` //活动倒计时
- // }
- // type ResponseNewerBox struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *NewBoxData `json:"data"`
- // }
- // // 领取首充奖励
- // type NewerBoxReward struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // GoodId int64 `json:"goodId"`
- // Day int `json:"day"`
- // }
- // type NewerBoxRewardData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Equipments []*model.DropEquipment `json:"eqipments"`
- // Roles []*DropedRoleDate `json:"roles"`
- // GoodId int64 `json:"goodId"`
- // Day int `json:"day"`
- // }
- // type ResponseNewerBoxReward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *NewerBoxRewardData `json:"data"`
- // }
- // // 服务端用
- // type NewerBoxRewardIs struct {
- // RpcRequestMsg
- // PlayerId int64 `json:"userId"`
- // Materials []*model.DropMaterial `json:"materials"` //奖励
- // Equipments []int64 `json:"eqipments"`
- // Roles []int64 `json:"roles"`
- // }
- // type ResponseNewerBoxRewardIs struct {
- // RpcResponseMsg
- // Equipments []*model.DropEquipment `json:"eqipments"`
- // Roles []*DropedRoleDate `json:"roles"`
- // }
- // type NewServerActivity struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // Line int `json:"line"`
- // }
- // type NewServerCdData struct {
- // StartCd int64 `json:"startCd"` // 开始时间
- // EndCd int64 `json:"endCd"` // 结束时间
- // }
- // type NewServerActivityData struct {
- // StartCd int64 `json:"startCd"` // 开始时间
- // EndCd int64 `json:"endCd"` // 结束时间
- // GiftCdData *NewServerCdData `json:"giftName"` // 礼包cd
- // PlayerBoxCdData *NewServerCdData `json:"playerBox"` // 抽奖cd
- // TiliCdData *NewServerCdData `json:"tili"` // 体力cd
- // DealerCdData *NewServerCdData `json:"dealer"` // 商人cd
- // Received []int64 `json:"received"` // 免费礼包是否领取
- // }
- // type ResponseNewServerActivity struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *NewServerActivityData `json:"data"`
- // }
- // // 领取新服奖励
- // type NewServerActReward struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseNewServerActReward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.DropMaterial `json:"data"`
- // }
- // // 服务端用
- // type NewServerActRewardIs struct {
- // RpcRequestMsg
- // PlayerId int64 `json:"userId"`
- // Materials []*model.DropMaterial `json:"materials"` //奖励
- // }
- // type ResponseNewServerActRewardIs struct {
- // RpcResponseMsg
- // }
- // // 购买新服活动礼包
- // type NewServerActBuyNotPayGift struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` // 广告类型 234:广告 6:钻石
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseNewServerActBuyNotPayGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyActNoPayGiftData `json:"data"`
- // }
- // // 购买非现金无尽通行证
- // type BuyNotPayEndLessPass struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` // 广告类型 234:广告 6:钻石
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type BuyActNoPayEndLessPassData struct {
- // GoodsId int64 `json:"goodsId"`
- // Material []*model.DropMaterial `json:"material"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // type ResponseBuyNotPayEndLessPass struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyActNoPayEndLessPassData `json:"data"`
- // }
- // // 福利中心 邀请礼包
- // type InviteGift struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"`
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseInviteGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.DropMaterial `json:"data"`
- // }
- // // 累计充值礼包
- // type AccPayGift struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"` //人物等级
- // GoodsId int64 `json:"goodsId"` //领取哪一档
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseAccPayGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.DropMaterial `json:"data"`
- // }
- // // 累计充值礼包
- // type GrowthGift struct {
- // PlayerID int64 `json:"userId"`
- // Level int `json:"level"` //人物等级
- // Tab int `json:"tab"` //页签
- // Process int `json:"process"` //领取哪一项
- // Goods []int `json:"sub"` //领取哪一档 0 1 2
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseGrowthGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *GrowthGiftData `json:"data"`
- // }
- // type GrowthGiftData struct {
- // Process int `json:"process"` //进度
- // Goods []int `json:"sub"` //领取哪一档
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // 累计消耗钻石
- // type AddCostDiamondIs struct {
- // PlayerId int64 `json:"userId"`
- // StartTs int64 `json:"startTs"`
- // CostDiamond int `json:"taskData"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // // 领取累计消耗钻石奖励
- // type ReceiveAccCostRewards struct {
- // PlayerID int64 `json:"userId"`
- // RewardId int `json:"rewardId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ReceiveAccCostRewardsData struct {
- // RewardId int `json:"rewardId"`
- // Material []*model.DropMaterial `json:"material"`
- // }
- // type ResponseReceiveAccCostRewards struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ReceiveAccCostRewardsData `json:"data"`
- // }
- // // SpecialGift 领取尊享特惠礼包
- // type SpecialGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseSpecialGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *SpecialGiftData `json:"data"`
- // }
- // type SpecialGiftData struct {
- // Materials []*model.DropMaterial `json:"materials"`
- // Equipments []*model.DropEquipment `json:"equipments"`
- // }
- // // SpecialGiftSum 尊享特惠礼包摘要
- // type SpecialGiftSum struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseSpecialGiftSum struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *SpecialBuy `json:"data"`
- // }
- // // 看广告
- // type SeeAd struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` //2:广告券 3:看广告
- // Scene uint `json:"scene"` //场景 没起作用
- // ClientPlat string `json:"clientPlat"`
- // FuncType int `json:"costDiamondType"` // 功能类型 0 章节、活动刷新技能 1 复活 2 技能刷新 远征 3 暗影突袭 4 无尽大转盘 5 双人复活
- // }
- // type ResponseSeeAd struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data SeeAdData `json:"data"`
- // }
- // type SeeAdData struct {
- // Cost []*model.DropMaterial `json:"cost"`
- // Materials []*model.DropMaterial `json:"materials"`
- // CostType int `json:"costType"`
- // }
- // // // IOS支付控制
- // // type IosPayOpen struct {
- // // PlayerID int64 `json:"userId"`
- // // Level int `json:"level"`
- // // }
- // // type ResponseIosPayOpen struct {
- // // ErrCode int `json:"errCode"`
- // // Msg string `json:"msg,omitempty"`
- // // Data int `json:"data"` //0:未开放; 1:开放
- // // }
- // // 支付方式
- // type PayMethod struct {
- // PlayerID int64 `json:"userId"`
- // // Level int `json:"level"`
- // }
- // type ResponsePayMethod struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *model.PayMethodData `json:"data"`
- // }
- // // 随机角色
- // type RandRole struct {
- // PlayerID int64 `json:"userId"`
- // Guide int `json:"guide"` // 新手引导
- // // DrawType int `json:"drawType"` // 0 单抽 1 多抽
- // ClientPlat string `json:"clientPlat"`
- // GoodsType int `json:"goodsType"` // 商品类型
- // // Count int `json:"count"` // 1-单抽 10-十连抽(高级角色券)
- // // CostType int `json:"costType"` // 0:配置(钻石或金币); 1:钥匙
- // }
- // type ResponseRandRole struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RandRoleData `json:"data"`
- // }
- // type DropedRoleMaterialDate struct {
- // Materials *model.DropMaterial `json:"materials"`
- // Status int `json:"status"` // 0 碎片 1 由角色转换成的碎片
- // }
- // type RandRoleData struct {
- // Materials []*DropedRoleMaterialDate `json:"materials"`
- // Roles []*model.DropedRole `json:"roles"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Score []*model.DropMaterial `json:"score"`
- // AccNum int `json:"accNum"`
- // DrawRoles []*model.DropedRole `json:"drawRoles"`
- // DrawMaterials []*DropedRoleMaterialDate `json:"drawMaterials"`
- // DrawNum int `json:"drawNum"` // 抽奖次数
- // }
- // type DropedRoleDate struct {
- // Materials *model.DropMaterial `json:"materials"`
- // RoleID int64 `json:"roleId"` // 有值代表是完整角色
- // }
- // // 选择连抽奖励
- // type ChangeDrawRole struct {
- // PlayerID int64 `json:"userId"`
- // RoleID int64 `json:"roleId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ChangeDrawRoleData struct {
- // RoleID int64 `json:"roleId"`
- // DrawRoles []*model.DropedRole `json:"drawRoles"`
- // DrawMaterials []*DropedRoleMaterialDate `json:"drawMaterials"`
- // DrawNum int `json:"drawNum"` // 抽奖次数
- // }
- // type ResponseChangeDrawRole struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ChangeDrawRoleData `json:"data"`
- // }
- // // 角色兑换列表
- // type RoleExchangeList struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseRoleExchangeList struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleExchangeListData `json:"data"`
- // }
- // type RoleExchangeListData struct {
- // Score int64 `json:"score"`
- // Exchanges map[int64]int `json:"exchanges"`
- // }
- // // 角色兑换
- // type RoleExchange struct {
- // PlayerID int64 `json:"userId"`
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseRoleExchange struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleExchangeData `json:"data"`
- // }
- // type RoleExchangeData struct {
- // GoodsId int64 `json:"goodsId"`
- // Cost *model.DropMaterial `json:"cost"`
- // Material *model.DropMaterial `json:"material"`
- // }
- // type RoleExchangeIs struct {
- // PlayerID int64 `json:"userId"`
- // Material *model.DropMaterial `json:"material"`
- // }
- // // 回收角色碎片
- // type RecoverRoleFragment struct {
- // PlayerID int64 `json:"userId"`
- // Cost *model.DropMaterial `json:"cost"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseRecoverRoleFragment struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RecoverRoleFragmentData `json:"data"`
- // }
- // type RecoverRoleFragmentData struct {
- // Cost *model.DropMaterial `json:"cost"`
- // Material *model.DropMaterial `json:"material"`
- // }
- // type RecoverRoleFragmentIs struct {
- // PlayerID int64 `json:"userId"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // type ReplaceRole struct {
- // // Role int `json:"role"`
- // // Material *model.DropMaterial
- // // }
- // type PlayerAdsStatus struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type SuperCity struct {
- // AdState int `json:"adState"` // 0 未知 1 是北上广深 2 非
- // }
- // type ResponsePlayerAdsStatus struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data SuperCity `json:"data"`
- // }
- // // 抽奖
- // type LuckDraw struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` //2:广告券 3:看广告 4:底部广告 0:免费
- // ClientPlat string `json:"clientPlat"`
- // }
- // type LuckDrawData struct {
- // Cd int64 `json:"cd"` // 冷却倒计时
- // CostType int `json:"costType"` //2:广告券 3:看广告
- // BuyTimes int `json:"buyTimes"`
- // Position int `json:"position"`
- // LuckyNum int `json:"luckyNum"` // 幸运值
- // Cost []*model.DropMaterial `json:"cost"`
- // Materials []*model.DropMaterial `json:"marterials"`
- // Equipment []*model.DropEquipment `json:"equipment"`
- // ADCount int `json:"adCount"`
- // }
- // type ResponseLuckDraw struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data LuckDrawData `json:"data"`
- // }
- // // 抽奖
- // type LuckDrawExchange struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type LuckDrawExchangeData struct {
- // Materials []*model.DropMaterial `json:"marterials"`
- // Equipment []*model.DropEquipment `json:"equipment"`
- // NextSuper int `json:"super"` // 下次购买的秘宝
- // LuckyNum int `json:"luckyNum"` // 当前幸运值
- // }
- // type ResponseLuckDrawExchange struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data LuckDrawExchangeData `json:"data"`
- // }
- // // 产出
- // // 获取玩家章节信息
- // type PlayerChapter struct {
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"chapterId"`
- // Difficulty int `json:"difficulty"`
- // Floor int `json:"floor"` // 关卡 爬塔子关卡
- // RoomID int `json:"roomId"` // 起始房间id
- // // RoomCount int `json:"roomCount"` // 返回房间数
- // PlayerLevel int `json:"playerLevel"` // 玩家等级
- // Reconnect bool `json:"reconnect"` // 是否重连
- // Roles []int64 `json:"roleId"` // 角色id
- // CreateTime int64 `json:"createTime"` //重连时,填写创建时间;新开时,填写0
- // ClientPlat string `json:"clientPlat"`
- // SyncGroupId int64 `json:"matchRoomId,string"` //多人战时,填写同步分组ID; 单人时填写0
- // //以下服务器之间用,客户端不传
- // BodyParts [6]*model.BodyPart2 `json:"body"` //身体部位
- // Talents map[int]int `json:"talents"`
- // Chapters [][]uint `json:"chapters"`
- // RoleCoinAddition []*model.RoleSkillAddition `json:"roleSkill"`
- // TreasuresCoinAddition []*model.TreasuresSkillAddition `json:"treasureSkill"`
- // HeadFramesSkillAddition []*model.HeadFramesSkillAddition `json:"headFramesSkill"`
- // AllRoles []int64 `json:"allRoles"`
- // OrderRoles []int64 `json:"orderRoles"`
- // CommbatEffe int64 `json:"commbatEffe"`
- // Treasures []*model.RolesTreasures `json:"treasures"` //宝物
- // RoleCollocate []int `json:"roleCollocate"`
- // HeadFrames []int `json:"headFrames"` // 头像头像框
- // VipBuffID []int64 `json:"VipID"` // 进入游戏生效的vipid
- // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` //专属宝物
- // }
- // type PlayerChapterRoom struct {
- // RoomId int `json:"roomId"` // 房间id
- // SceneID int `json:"sceneID"`
- // Monster []*model.MonsterTeam `json:"monster"` // 怪物信息
- // RandomBox *model.ChapterBox `json:"randomBox"` // 随机箱子
- // Ghost *model.RoomGhost `json:"ghost"` // 墓鬼,赌鬼,怨鬼
- // SecretRoomId int `json:"secretRoomId"` // 秘境房间id
- // RoomType [][]int `json:"roomType"` // 房间类型
- // EndLessLimitId int `json:"endLessLimitId"` // 房间限制
- // GhostExchange *model.GhostExchange `json:"exchange"` // 鬼兑换信息
- // }
- // type PlayerChapterData struct {
- // ReconnectCount int `json:"reconnectCount"`
- // CreateTime int64 `json:"createTime"` //创建时间
- // MapInfo map[int]*PlayerChapterRoom `json:"mapInfo"` // 地图信息
- // AllRandBox map[int]int64 `json:"allRandBox"` //所有随机箱子 房间ID:箱子ID(暂时只有主线章节需要用到)
- // RandBoxReward []int `json:"randBoxReward"` // 随机箱子领取记录 房间ID
- // WatchAdvTimes int64 `json:"watchAdvTimes"` // 累计观看次数
- // VipBuffID []int64 `json:"VipID"` // 进入游戏生效的vipid
- // }
- // type ResponsePlayerChapter struct {
- // ErrCode int `json:"errCode"`
- // Data PlayerChapterData `json:"data"`
- // }
- // // 鬼、箱子,宝箱,走个新接口
- // type PlayerChapterGhostAndBox struct {
- // PlayerID int64 `json:"userId"`
- // RoomId int `json:"roomId"`
- // Type int `json:"type"` //1:箱子 2:随机箱子 3:鬼
- // Value []int64 `json:"value"`
- // ClientPlat string `json:"clientPlat"`
- // //箱子 value[id, TalmapID]
- // //随机箱子
- // //鬼:value[购买方式,商品ID]
- // // 鬼类型: 1:墓鬼 2:赌鬼 3:怨鬼
- // //ChapterID int `json:"chapterId"`
- // //Difficulty int `json:"difficulty"`
- // // Boxes [][]int `json:"boxes"` // [箱子id,telmapID]
- // // RandBox int `json:"randBox"` // 随机箱子id
- // // Ghost int `json:"ghosts"` // 赌鬼:无广告 1,有广告2。 墓鬼:鬼内容的id
- // }
- // type PlayerChapterGhostAndBoxData struct {
- // Materials []*model.DropMaterial `json:"materials"` // 得的材料
- // Cost []*model.DropMaterial `json:"cost"` // 花费
- // }
- // type ResponsePlayerChapterGhostAndBox struct {
- // ErrCode int `json:"errCode"`
- // Data PlayerChapterGhostAndBoxData `json:"data"`
- // }
- // // 玩家上报房间已清理完毕 过关
- // type PlayerChapterMonster struct {
- // PlayerID int64 `json:"userId"`
- // RoomID int `json:"roomId"`
- // PassChapter bool `json:"passChapter"` // 是否通关 秘境使用
- // NextRoomId int `json:"nextRoomId"`
- // Skills map[int]int `json:"skill"` //所有已选技能
- // Roles []*BattleRole `json:"role"` //角色属性
- // ClientPlat string `json:"clientPlat"`
- // SyncGroupId int64 `json:"matchRoomId,string"` //多人战时,填写同步分组ID; 单人时填写0
- // DpsOutput int64 `json:"dpsOutput"` // 玩家总输出伤害
- // //ChapterID int `json:"chapterId"`
- // //Difficulty int `json:"difficulty"`
- // //PlayerLevel int `json:"playerLevel"`
- // }
- // // type BattleRole struct {
- // // RoleId int64 `json:"roleId"`
- // // State int `json:"state"` //0死亡 1休息 2出站
- // // BattleAttr RoleItem `json:"attr"`
- // // }
- // type PlayerChapterMonsterData struct {
- // // Materials []*model.DropMaterial `json:"materials"` // 得的材料
- // // Cost []*model.DropMaterial `json:"cost"` // 花费
- // RoomInfo *PlayerChapterRoom `json:"roomInfo"`
- // CheckToken string `json:"checkToken"` // 当前房间随机种子 创建房间或者过房间发送客户端
- // }
- // type ResponsePlayerChapterMonster struct {
- // ErrCode int `json:"errCode"`
- // Data PlayerChapterMonsterData `json:"data"`
- // }
- // type PlayerChapterCheck struct {
- // CheckResult int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // }
- // // 登陆后上报本地缓存关卡
- // type ReportCacheChapter struct {
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"chapterId"`
- // Difficulty int `json:"difficulty"`
- // RoomId int `json:"roomId"`
- // CreateTime int64 `json:"createTime"` // 秒级时间戳
- // }
- // type ReportCacheChapterData struct {
- // Exist bool `json:"exist"` // 1 表示服务端有该记录,其他 表示没有/已清理;
- // ReconnectCount int `json:"reconnectCount"`
- // }
- // type ResponseReportCacheChapter struct {
- // ErrCode int `json:"errCode"` // 为0
- // Data ReportCacheChapterData `json:"data"`
- // }
- // // 爬梯通关情况
- // type ClimbFloorSummary struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseClimbFloorSummary struct {
- // ErrCode int `json:"errCode"` // 为0
- // Msg string `json:"msg,omitempty"`
- // Data *ClimbFloorSummaryData `json:"data"`
- // }
- // type ClimbFloorSummaryData struct {
- // MaxFloor int `json:"maxFloor"` // 为0
- // Floors map[int]int `json:"floors"` //每关卡已挑战次数
- // UseCount int `json:"haveCount"`
- // // BuyCount int `json:"buyCount"`
- // // AdCount int `json:"adCount"`
- // //DayBuyUse *model.DayBuyAdUse `json:"dayBuyUse"`
- // //ChallengeCount int `json:"haveCount"` //磁石购买信息
- // }
- // // 挑战某一关
- // type EnterClimbFloor struct {
- // PlayerID int64 `json:"userId"`
- // Floor int `json:"floor"`
- // CostType int `json:"costType"` // 0:次数 1:磁石
- // }
- // type ResponseEnterClimbFloor struct {
- // ErrCode int `json:"errCode"` // 为0
- // Msg string `json:"msg,omitempty"`
- // Data *EnterClimbFloorData `json:"data"`
- // }
- // type EnterClimbFloorData struct {
- // CostType int `json:"costType"` // 0:次数 1:磁石
- // Floor *model.DropMaterial `json:"floor"`
- // Cost []*model.DropMaterial `json:"cost"`
- // //DayBuyUse *model.DayBuyAdUse `json:"dayBuyUse"`
- // }
- // // 扫荡某一关
- // type MopClimbFloor struct {
- // PlayerID int64 `json:"userId"`
- // Floor int `json:"floor"`
- // CostType int `json:"costType"` // 0:次数 1:磁石
- // }
- // type ResponseMopClimbFloor struct {
- // ErrCode int `json:"errCode"` // 为0
- // Msg string `json:"msg,omitempty"`
- // Data *MopClimbFloorData `json:"data"`
- // }
- // type MopClimbFloorData struct {
- // CostType int `json:"costType"` // 0:次数 1:磁石
- // UseCount int `json:"haveCount"` //剩余免费次数
- // Floor int `json:"floor"` //挑战了几次
- // Cost []*model.DropMaterial `json:"cost"`
- // Materials []*model.DropMaterial `json:"restores"` //增加的材料
- // }
- // // 购买星石
- // type BuyLimitGoods struct {
- // PlayerID int64 `json:"userId"`
- // CostType int `json:"costType"` //0:无广告 钻石 2:广告券 3:看广告 4:底部广告
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseBuyLimitGoods struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *BuyLimitGoodsData `json:"data"`
- // }
- // type BuyLimitGoodsData struct {
- // CostType int `json:"costType"` //0:无广告 钻石 2:广告券 3:看广告 4:底部广告
- // GoodsId int64 `json:"goodsId"`
- // BuyCount int `json:"buyCount"`
- // AdCount int `json:"adCount"`
- // DoubleAdCount int `json:"doubleAdCount"` //剩余双倍广告数
- // CD int64 `json:"cd"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 查询快捷购买项
- // type QueryLimitGoods struct {
- // PlayerID int64 `json:"userId"`
- // GoodsId int64 `json:"goodsId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseQueryLimitGoods struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *QueryLimitGoodsData `json:"data"`
- // }
- // type QueryLimitGoodsData struct {
- // GoodsId int64 `json:"goodsId"`
- // BuyCount int `json:"buyCount"`
- // AdCount int `json:"adCount"`
- // CD int64 `json:"cd"`
- // }
- // // 金榜题名排行
- // type IdiomRank struct {
- // PlayerId int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseIdiomRank struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *IdiomRankData `json:"data"`
- // }
- // type IdiomRankData struct {
- // RankList []*IdiomRankItem `json:"rankList"`
- // SelfRank *IdiomRankItem `json:"selfRank"`
- // }
- // type IdiomRankItem struct {
- // PlayerID int64 `json:"-"` //不用传给客户端,但服务端要用
- // Score int `json:"score"`
- // Rank int `json:"rank"`
- // // NickName string `json:"nickName"`
- // // HeadImg string `json:"headImg"`
- // CombatEffe int64 `json:"combatEffe"`
- // PersonalItem `json:"personalItem"`
- // }
- // // 金榜题名
- // type IdiomActivity struct {
- // PlayerId int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseIdiomActivity struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *IdiomActivityData `json:"data"`
- // }
- // type IdiomActivityData struct {
- // Id int `json:"Id"` //活动ID
- // RewardId int `json:"rewardId"` //奖励ID
- // ActivityCD int64 `json:"cd"` //活动CD
- // Ink *InkItem `json:"ink"` //墨水
- // Score *IdiomScore `json:"score"` //积分
- // HelpCD int64 `json:"helpCd"` //锦囊CD
- // // Scene *model.SceneState `json:"scene"` //通过关卡
- // }
- // type InkItem struct {
- // Value int `json:"ink"` //剩余墨水数
- // BuyCount int `json:"buyCount"` //钻石购买次数
- // ADCount int `json:"adCount"` //广告购买次数
- // RecoverCD int64 `json:"recoverCD"` // 最后恢复时间
- // AdCD int64 `json:"adCD"` // 最后看广告时间
- // }
- // type IdiomScore struct {
- // DayScore int `json:"dayScore"` //日积分
- // Reward []int `json:"reward"` //领取箱子
- // }
- // // 开始闯关
- // type StartIdiom struct {
- // PlayerId int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // // SceneId int `json:"sceneId"`
- // }
- // type ResponseStartIdiom struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *StartIdiomData `json:"data"` //墨水
- // }
- // type StartIdiomData struct {
- // SceneId int `json:"scene"` //当前关卡
- // SceneSum int `json:"sum"` //已完成
- // Ink *InkItem `json:"ink"` //墨水
- // IdiomRewards [][]int64 `json:"idiomRewards"` //完成成语的奖励
- // }
- // // 成语结算
- // type IdiomSettle struct {
- // PlayerId int64 `json:"userId"`
- // SceneId int `json:"sceneId"` // 场景ID
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseIdiomSettle struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *IdiomSettleData `json:"data"` //积分
- // }
- // type IdiomSettleData struct {
- // Score int `json:"score"` //本次得分
- // DayScore int `json:"dayScore"` //日积分
- // }
- // // 成语开宝箱
- // type IdiomBox struct {
- // PlayerId int64 `json:"userId"`
- // BoxIds []int `json:"boxId"` //领取箱子ID
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseIdiomBox struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *IdiomBoxData `json:"data"`
- // }
- // type IdiomBoxData struct {
- // BoxId []int `json:"boxId"` //领取箱子ID
- // Materials []*model.DropMaterial `json:"materials"` //领取物品
- // }
- // // 墨水补给
- // // 0:钻石 2:广告券 3:看广告 4:底部广告
- // // 6:钻石 2:广告券 3:看广告 4:底部广告 0:免费
- // type InkSupply struct {
- // PlayerId int64 `json:"userId"`
- // CostType int `json:"type"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseInkSupply struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *InkSupplyData `json:"data"`
- // }
- // type InkSupplyData struct {
- // CostType int `json:"costType"`
- // Ink *InkItem `json:"ink"` //墨水
- // Cost []*model.DropMaterial `json:"cost"`
- // Materials []*model.DropMaterial `json:"materials"`
- // // EnableADCount int `json:"enableADCount"`
- // }
- // // 恢复墨水
- // type RestoreInk struct {
- // PlayerId int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseRestoreInk struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *InkItem `json:"data"`
- // }
- // // 成语结算
- // type IdiomReward struct {
- // PlayerId int64 `json:"userId"`
- // SceneId int `json:"sceneId"` // 场景ID
- // Rewards []int `json:"reward"` // 成语奖励奖品索引 0,1,...
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseIdiomReward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data []*model.DropMaterial `json:"data"` //积分
- // }
- // // 使用锦囊
- // type IdiomUseHelp struct {
- // PlayerId int64 `json:"userId"`
- // CostType int `json:"costType"` //2:广告券 3:看广告 6 钻石
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseIdiomUseHelp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *IdiomUseHelpData `json:"data"`
- // }
- // type IdiomUseHelpData struct {
- // Cost []*model.DropMaterial `json:"cost"`
- // Materials []*model.DropMaterial `json:"materials"`
- // CostType int `json:"costType"`
- // Cd int64 `json:"cd"`
- // }
- // // type IdiomRewardData struct {
- // // Score int `json:"score"` //本次得分
- // // DayScore int `json:"dayScore"` //日积分
- // // }
- // // // 使用锦囊
- // // type UseHelp struct {
- // // PlayerId int64 `json:"userId"`
- // // }
- // // type ResponseUseHelp struct {
- // // ErrCode int `json:"errCode"`
- // // Msg string `json:"msg,omitempty"`
- // // }
- // // NoviceDetails 获取任务详情
- // type NoviceDetails struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseNoviceDetails struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *NoviceDetailsData `json:"data"`
- // }
- // type NoviceDetailsData struct {
- // UnlockDays int64 `json:"unlockDays"` // 当前开启的任务天数
- // CD int64 `json:"closeDown"` // 活动关闭倒计时
- // Integral int64 `json:"integral"` // 积分
- // Active []*model.NoviceRewardItem `json:"active"` // 活跃度任务进度
- // Task []*model.NoviceTaskItem `json:"task"` // 每天任务进度
- // }
- // // NoviceTaskAward 领取单个任务奖励
- // type NoviceTaskAward struct {
- // PlayerID int64 `json:"userId"`
- // ID int64 `json:"ID"`
- // }
- // type ResponseNoviceTaskAward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data NoviceTaskAwardData `json:"data"`
- // }
- // type NoviceTaskAwardData struct {
- // ServerTime int64 `json:"serverTime"` //服务器时间
- // ID int `json:"id"` // 任务id
- // NewIntegral int64 `json:"newIntegral"` // 更新后的总活跃度
- // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
- // Materials []*model.DropMaterial `json:"restores"` //增加的材料
- // }
- // // NoviceActiveAward 领取活跃度奖励
- // type NoviceActiveAward struct {
- // PlayerID int64 `json:"userId"`
- // ID int64 `json:"ID"`
- // }
- // type ResponseNoviceActiveAward struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data NoviceActiveAwardData `json:"data"`
- // }
- // type NoviceActiveAwardData struct {
- // ServerTime int64 `json:"serverTime"` //服务器时间
- // ID int `json:"id"` // 任务id
- // Equipments []*model.DropEquipment `json:"equipments"` //增加的装备
- // Materials []*model.DropMaterial `json:"restores"` //增加的材料
- // RoleId int64 `json:"roleId"` // 增加的角色
- // }
- // // GemOneSynth 宝石一键合成
- // type GemOneSynth struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseGemOneSynth struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *GemOneSynthData `json:"data"`
- // }
- // type GemOneSynthData struct {
- // News []*model.DropMaterial `json:"news"` // 新获得材料
- // Cost []*model.DropMaterial `json:"cost"` // 消耗材料
- // Count int `json:"count"` // 合成次数
- // }
- // // 宝石升级 三合一
- // type GemLevelUp struct {
- // PlayerID int64 `json:"userId"`
- // GemId int64 `json:"gem"`
- // }
- // type ResponseGemLevelUp struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *GemLevelUpData `json:"data"`
- // }
- // type GemLevelUpData struct {
- // News []*model.DropMaterial `json:"news"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // 宝石镶嵌
- // type GemInlay struct {
- // PlayerID int64 `json:"userId"`
- // Part int `json:"part"` //部位 1-6
- // Index int `json:"index"` //套装位置 0-2
- // Slot int `json:"slot"` // 1-4
- // GemId int64 `json:"gem"` //宝石ID
- // }
- // type ResponseGemInlay struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *GemInlayData `json:"data"`
- // }
- // type GemInlayData struct {
- // Part int `json:"part"` //部位 1-6
- // Slots []int64 `json:"slots"` // 1-4
- // Index int `json:"index"` //套装位置 0-2
- // }
- // // 宝石挖出
- // type GemDigOut struct {
- // PlayerID int64 `json:"userId"`
- // Part int `json:"part"` //部位 1-6
- // Slot int `json:"slot"` // 1-4
- // Index int `json:"index"` //套装位置 0-2
- // }
- // type ResponseGemDigOut struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *GemInlayData `json:"data"`
- // }
- // // 兑换码兑换物品
- // type RedeemGoods struct {
- // PlayerId int64 `json:"userId"`
- // Code string `json:"code"`
- // }
- // type ResponseRedeemGoods struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RedeemGoodsData `json:"data"`
- // }
- // type RedeemGoodsData struct {
- // ErrCode int `json:"errCode"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Equipments []*model.DropEquipment `json:"equipments"`
- // }
- // // 服务器内部协议
- // type RedeemGoodsIs struct {
- // PlayerId int64 `json:"userId"`
- // OpenId string `json:"openId"`
- // GateId int `json:"gateId"`
- // Code string `json:"code"`
- // }
- // // 前三个字段必传
- // type ResponseRedeemGoodsIs struct {
- // ErrCode int `json:"errCode"`
- // PlayerId int64 `json:"userId"`
- // GateId int `json:"gateId"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Equipments []int64 `json:"equipments"`
- // }
- // // 添加新手引导材料
- // type AddGuideMaterials struct {
- // PlayerId int64 `json:"userId"`
- // Guide int `json:"guide"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type ResponseAddGuideMaterials struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *AddCurioMaterialsIsData `json:"data"`
- // }
- // type AddCurioMaterialsIs struct {
- // PlayerId int64 `json:"userId"`
- // Guide int `json:"guide"`
- // Materials []*model.DropMaterial `json:"Materials"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type AddCurioMaterialsIsData struct {
- // ErrCode int `json:"errCode"`
- // Guide int `json:"guide"`
- // Materials []*model.DropMaterial `json:"materials"`
- // CombineBox []int64 `json:"combineBox"` //合成箱
- // Curios map[int64]int `json:"curios"` //古玩
- // }
- // // 元宵活动
- // type YearFifteen struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseYearFifteen struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *YearFifteenData `json:"data"`
- // }
- // type YearFifteenData struct {
- // StartCD int64 `json:"startCD"`
- // EndCD int64 `json:"endCD"`
- // ShowCD int64 `json:"showCD"`
- // Exchanges map[int]int `json:"exchanges"`
- // Items map[int64]int `json:"items"` //拥有的道具 数量
- // }
- // // 制作元宵
- // type FifteenCompose struct {
- // PlayerId int64 `json:"userId"`
- // Num int `json:"num"` //制作次数:1或10
- // }
- // type ResponseFifteenCompose struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *FifteenComposeData `json:"data"`
- // }
- // type FifteenComposeData struct {
- // Materials [][]*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // Effect int `json:"effect"`
- // }
- // // 元宵排行
- // type FifteenRank struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseFifteenRank struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *FifteenRankData `json:"data"`
- // }
- // type FifteenRankData struct {
- // RankList []*FifteenRankItem `json:"rankList"`
- // SelfRank *FifteenRankItem `json:"selfRank"`
- // }
- // type FifteenRankItem struct {
- // PlayerID int64 `json:"userId"`
- // Score int64 `json:"score"`
- // Rank int `json:"rank"`
- // //NickName string `json:"nickName"`
- // CombatEffe int64 `json:"combatEffe"`
- // PersonalItem `json:"personalItem"`
- // }
- // // 汤圆兑换
- // type ExchangeFifteen struct {
- // PlayerId int64 `json:"userId"`
- // GoodsId int `json:"goodsId"`
- // }
- // type ResponseExchangeFifteen struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ExchangeFifteenData `json:"data"`
- // }
- // type ExchangeFifteenData struct {
- // GoodsId int `json:"goodsId"`
- // Limit int `json:"limit"`
- // Materials []*model.DropMaterial `json:"materials"`
- // Cost []*model.DropMaterial `json:"cost"`
- // }
- // // AddYearFifteenMaterialIs 增加元宵节材料
- // type AddYearFifteenMaterialIs struct {
- // PlayerId int64 `json:"userId"`
- // Materials []*model.DropMaterial `json:"materials"`
- // }
- // // 用户分享游戏
- // type UseShareGame struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseUseShareGame struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data int64 `json:"data"`
- // }
- // // ChapterWatchAdv 关卡看广告
- // type ChapterWatchAdv struct {
- // PlayerID int64 `json:"userId"`
- // }
- // type ResponseChapterWatchAdv struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *ChapterWatchAdvData `json:"data"`
- // }
- // type ChapterWatchAdvData struct {
- // WatchAdvTimes int64 `json:"watchAdvTimes"` // 累计观看次数
- // }
- // // 设置装备
- // type SetPvpBodyParts struct {
- // PlayerId int64 `json:"userId"`
- // Suits [6]int `json:"indexs"`
- // // 以下客户端不用
- // BodyParts [6]*model.BodyPart2 `json:"parts"`
- // }
- // type ResponseSetPvpBodyParts struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data [6]int `json:"data"`
- // }
- // // 返回装备
- // type GetPvpBodyParts struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseGetPvpBodyParts struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data [6]int `json:"data"`
- // }
- // // 生成游戏随机种子
- // type GameCheckToken struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type ResponseGameCheckToken struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data string `json:"data"`
- // }
- // // 玩家成就
- // type HeadAchievement struct {
- // PlayerId int64 `json:"userId"`
- // }
- // type HeadAchievementData struct {
- // MaxChapterProcess model.ChapterProcess `json:"maxChapterProcess"`
- // MaxEndlessLevel int `json:"maxEndlessLevel"`
- // MaxMasterTier int `json:"maxMasterTier"`
- // }
- // type ResponseHeadAchievement struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *HeadAchievementData `json:"data"`
- // }
- // // 个人信息
- // type PersonalItem struct {
- // HeadId int `json:"headId"` // 头像 -1 代表使用 AvatarURL 微信授权头像
- // FrameId int `json:"frameId"` // 头像框
- // NickName string `json:"nickName"`
- // HeadImg string `json:"headImg"`
- // }
- // // SetInviterStatus 邀请设置
- // type InviterStatus struct {
- // PlayerId int64 `json:"userId"`
- // InviterStatus int `json:"inviterStatus"`
- // }
- // type ResponseInviterStatus struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data int `json:"data"`
- // }
- // type SendGiftIs struct {
- // PlayerId int64 `json:"userId"`
- // Gift int64 `json:"gift"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // // 小地图传送
- // type TeleportCost struct {
- // PlayerID int64 `json:"userId"`
- // ChapterID uint `json:"activeId"`
- // Difficulty int `json:"difficulty"` //普通 困难模式
- // }
- // type ResponseTeleportCost struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Cost []*model.DropMaterial `json:"data"`
- // }
- // type AddChapterBuffMaterialsIs struct {
- // PlayerID int64 `json:"userId"`
- // VipIds []int64 `json:"vipIds"`
- // }
- // // 等级变动
- // type LevelChangeAfter struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"ClientPlat"`
- // Level int `json:"level"` //用户等级
- // }
- // // 专属宝物获取
- // type RoleTreasureGet struct {
- // PlayerID int64 `json:"userId"`
- // Id int `json:"id"` // 宝物Id
- // }
- // type RoleTreasureGetData struct {
- // RoleTreasure []*model.RoleTreasureInfo `json:"roleTreasure"` // 专属宝物
- // }
- // type ResponseRoleTreasureGet struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleTreasureGetData `json:"data"`
- // }
- // // 专属宝物升级
- // type RoleTreasureLevel struct {
- // PlayerID int64 `json:"userId"`
- // Id int `json:"id"` // 宝物Id
- // }
- // type RoleTreasureLevelData struct {
- // Id int `json:"id"` // 宝物Id
- // Level int `json:"level"` // 宝物lev
- // Cost []*model.DropMaterial `json:"cost"` // 消耗道具
- // }
- // type ResponseRoleTreasureLevel struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *RoleTreasureLevelData `json:"data"`
- // }
- // // 魔君数据
- // type MonarchGift struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type MonarchGiftData struct {
- // StartCD int64 `json:"startCd"` // 开始CD
- // EndCD int64 `json:"endCd"` // 结束CD
- // ShowCD int64 `json:"showCd"` // 结束展示CD
- // StartTime int64 `json:"startTime"` // 活动开始时间(哪一期活动的开始标记)
- // ShopTypes []int64 `json:"shopTypes"` // 商品类型
- // DayFreeTime int64 `json:"dayFreeTime"` // 每天免费领奖时间
- // GoodBuys map[int64]int `json:"goodBuys"` // 商品购买数据
- // GiftBuys map[int64]int `json:"giftBuys"` // 礼包购买数据
- // }
- // type ResponseMonarchGift struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *MonarchGiftData `json:"data"`
- // }
- // // 魔君每日领奖
- // type MonarchDayFree struct {
- // PlayerID int64 `json:"userId"`
- // ClientPlat string `json:"clientPlat"`
- // }
- // type MonarchDayFreeData struct {
- // DayFreeTime int64 `json:"dayFreeTime"` // 每天免费领奖时间
- // Material []*model.DropMaterial `json:"material"` // 奖励
- // }
- // type ResponseMonarchDayFree struct {
- // ErrCode int `json:"errCode"`
- // Msg string `json:"msg,omitempty"`
- // Data *MonarchDayFreeData `json:"data"`
- // }
- // // 服务端用
- // type MonarchDayFreeIs struct {
- // RpcRequestMsg
- // PlayerId int64 `json:"userId"`
- // Rewards []*model.DropMaterial `json:"rewards"` //道具
- // }
- // type ResponseMonarchDayFreeIs struct {
- // RpcResponseMsg
- // }
|