| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: model.proto
- /*
- Package model is a generated protocol buffer package.
- It is generated from these files:
- model.proto
- It has these top-level messages:
- CookieProto
- TokenProto
- RefreshProto
- UserBaseProto
- UserEmailProto
- UserTelProto
- UserRegOriginProto
- UserSafeQuestionProto
- UserThirdBindProto
- */
- package model
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/gogo/protobuf/gogoproto"
- import io "io"
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- type CookieProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- Session string `protobuf:"bytes,2,opt,name=Session,proto3" json:"session"`
- CSRF string `protobuf:"bytes,3,opt,name=CSRF,proto3" json:"csrf"`
- Type int64 `protobuf:"varint,4,opt,name=Type,proto3" json:"type"`
- Expires int64 `protobuf:"varint,5,opt,name=Expires,proto3" json:"expires"`
- }
- func (m *CookieProto) Reset() { *m = CookieProto{} }
- func (m *CookieProto) String() string { return proto.CompactTextString(m) }
- func (*CookieProto) ProtoMessage() {}
- func (*CookieProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{0} }
- func (m *CookieProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *CookieProto) GetSession() string {
- if m != nil {
- return m.Session
- }
- return ""
- }
- func (m *CookieProto) GetCSRF() string {
- if m != nil {
- return m.CSRF
- }
- return ""
- }
- func (m *CookieProto) GetType() int64 {
- if m != nil {
- return m.Type
- }
- return 0
- }
- func (m *CookieProto) GetExpires() int64 {
- if m != nil {
- return m.Expires
- }
- return 0
- }
- type TokenProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- AppID int64 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"`
- Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"token"`
- Type int64 `protobuf:"varint,4,opt,name=Type,proto3" json:"type"`
- Expires int64 `protobuf:"varint,5,opt,name=Expires,proto3" json:"expires"`
- }
- func (m *TokenProto) Reset() { *m = TokenProto{} }
- func (m *TokenProto) String() string { return proto.CompactTextString(m) }
- func (*TokenProto) ProtoMessage() {}
- func (*TokenProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{1} }
- func (m *TokenProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *TokenProto) GetAppID() int64 {
- if m != nil {
- return m.AppID
- }
- return 0
- }
- func (m *TokenProto) GetToken() string {
- if m != nil {
- return m.Token
- }
- return ""
- }
- func (m *TokenProto) GetType() int64 {
- if m != nil {
- return m.Type
- }
- return 0
- }
- func (m *TokenProto) GetExpires() int64 {
- if m != nil {
- return m.Expires
- }
- return 0
- }
- type RefreshProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- AppID int64 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"`
- Refresh string `protobuf:"bytes,3,opt,name=Refresh,proto3" json:"refresh"`
- Token string `protobuf:"bytes,4,opt,name=Token,proto3" json:"token"`
- Expires int64 `protobuf:"varint,5,opt,name=Expires,proto3" json:"expires"`
- }
- func (m *RefreshProto) Reset() { *m = RefreshProto{} }
- func (m *RefreshProto) String() string { return proto.CompactTextString(m) }
- func (*RefreshProto) ProtoMessage() {}
- func (*RefreshProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{2} }
- func (m *RefreshProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *RefreshProto) GetAppID() int64 {
- if m != nil {
- return m.AppID
- }
- return 0
- }
- func (m *RefreshProto) GetRefresh() string {
- if m != nil {
- return m.Refresh
- }
- return ""
- }
- func (m *RefreshProto) GetToken() string {
- if m != nil {
- return m.Token
- }
- return ""
- }
- func (m *RefreshProto) GetExpires() int64 {
- if m != nil {
- return m.Expires
- }
- return 0
- }
- type UserBaseProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- UserID string `protobuf:"bytes,2,opt,name=UserID,proto3" json:"userid"`
- Pwd []byte `protobuf:"bytes,3,opt,name=Pwd,proto3" json:"pwd"`
- Salt string `protobuf:"bytes,4,opt,name=Salt,proto3" json:"salt"`
- Status int32 `protobuf:"varint,5,opt,name=Status,proto3" json:"status"`
- }
- func (m *UserBaseProto) Reset() { *m = UserBaseProto{} }
- func (m *UserBaseProto) String() string { return proto.CompactTextString(m) }
- func (*UserBaseProto) ProtoMessage() {}
- func (*UserBaseProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{3} }
- func (m *UserBaseProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UserBaseProto) GetUserID() string {
- if m != nil {
- return m.UserID
- }
- return ""
- }
- func (m *UserBaseProto) GetPwd() []byte {
- if m != nil {
- return m.Pwd
- }
- return nil
- }
- func (m *UserBaseProto) GetSalt() string {
- if m != nil {
- return m.Salt
- }
- return ""
- }
- func (m *UserBaseProto) GetStatus() int32 {
- if m != nil {
- return m.Status
- }
- return 0
- }
- type UserEmailProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- Email []byte `protobuf:"bytes,2,opt,name=Email,proto3" json:"email"`
- Verified int32 `protobuf:"varint,3,opt,name=Verified,proto3" json:"verified"`
- EmailBindTime int64 `protobuf:"varint,4,opt,name=EmailBindTime,proto3" json:"email_bind_time"`
- }
- func (m *UserEmailProto) Reset() { *m = UserEmailProto{} }
- func (m *UserEmailProto) String() string { return proto.CompactTextString(m) }
- func (*UserEmailProto) ProtoMessage() {}
- func (*UserEmailProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{4} }
- func (m *UserEmailProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UserEmailProto) GetEmail() []byte {
- if m != nil {
- return m.Email
- }
- return nil
- }
- func (m *UserEmailProto) GetVerified() int32 {
- if m != nil {
- return m.Verified
- }
- return 0
- }
- func (m *UserEmailProto) GetEmailBindTime() int64 {
- if m != nil {
- return m.EmailBindTime
- }
- return 0
- }
- type UserTelProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- Tel []byte `protobuf:"bytes,2,opt,name=Tel,proto3" json:"tel"`
- Cid string `protobuf:"bytes,3,opt,name=Cid,proto3" json:"cid"`
- TelBindTime int64 `protobuf:"varint,4,opt,name=TelBindTime,proto3" json:"tel_bind_time"`
- }
- func (m *UserTelProto) Reset() { *m = UserTelProto{} }
- func (m *UserTelProto) String() string { return proto.CompactTextString(m) }
- func (*UserTelProto) ProtoMessage() {}
- func (*UserTelProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{5} }
- func (m *UserTelProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UserTelProto) GetTel() []byte {
- if m != nil {
- return m.Tel
- }
- return nil
- }
- func (m *UserTelProto) GetCid() string {
- if m != nil {
- return m.Cid
- }
- return ""
- }
- func (m *UserTelProto) GetTelBindTime() int64 {
- if m != nil {
- return m.TelBindTime
- }
- return 0
- }
- type UserRegOriginProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- JoinIP int64 `protobuf:"varint,2,opt,name=JoinIP,proto3" json:"join_ip"`
- JoinTime int64 `protobuf:"varint,3,opt,name=JoinTime,proto3" json:"join_time"`
- Origin int32 `protobuf:"varint,4,opt,name=Origin,proto3" json:"origin"`
- RegType int32 `protobuf:"varint,5,opt,name=RegType,proto3" json:"reg_type"`
- AppID int64 `protobuf:"varint,6,opt,name=AppID,proto3" json:"appid"`
- }
- func (m *UserRegOriginProto) Reset() { *m = UserRegOriginProto{} }
- func (m *UserRegOriginProto) String() string { return proto.CompactTextString(m) }
- func (*UserRegOriginProto) ProtoMessage() {}
- func (*UserRegOriginProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{6} }
- func (m *UserRegOriginProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UserRegOriginProto) GetJoinIP() int64 {
- if m != nil {
- return m.JoinIP
- }
- return 0
- }
- func (m *UserRegOriginProto) GetJoinTime() int64 {
- if m != nil {
- return m.JoinTime
- }
- return 0
- }
- func (m *UserRegOriginProto) GetOrigin() int32 {
- if m != nil {
- return m.Origin
- }
- return 0
- }
- func (m *UserRegOriginProto) GetRegType() int32 {
- if m != nil {
- return m.RegType
- }
- return 0
- }
- func (m *UserRegOriginProto) GetAppID() int64 {
- if m != nil {
- return m.AppID
- }
- return 0
- }
- type UserSafeQuestionProto struct {
- Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
- SafeQuestion int32 `protobuf:"varint,2,opt,name=SafeQuestion,proto3" json:"safe_question"`
- SafeAnswer []byte `protobuf:"bytes,3,opt,name=SafeAnswer,proto3" json:"safe_answer"`
- SafeBindTime int64 `protobuf:"varint,4,opt,name=SafeBindTime,proto3" json:"safe_bind_time"`
- }
- func (m *UserSafeQuestionProto) Reset() { *m = UserSafeQuestionProto{} }
- func (m *UserSafeQuestionProto) String() string { return proto.CompactTextString(m) }
- func (*UserSafeQuestionProto) ProtoMessage() {}
- func (*UserSafeQuestionProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{7} }
- func (m *UserSafeQuestionProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UserSafeQuestionProto) GetSafeQuestion() int32 {
- if m != nil {
- return m.SafeQuestion
- }
- return 0
- }
- func (m *UserSafeQuestionProto) GetSafeAnswer() []byte {
- if m != nil {
- return m.SafeAnswer
- }
- return nil
- }
- func (m *UserSafeQuestionProto) GetSafeBindTime() int64 {
- if m != nil {
- return m.SafeBindTime
- }
- return 0
- }
- type UserThirdBindProto struct {
- ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
- Mid int64 `protobuf:"varint,2,opt,name=Mid,proto3" json:"mid"`
- OpenID string `protobuf:"bytes,3,opt,name=OpenID,proto3" json:"openid"`
- PlatForm int64 `protobuf:"varint,4,opt,name=PlatForm,proto3" json:"platform"`
- Token string `protobuf:"bytes,5,opt,name=Token,proto3" json:"token"`
- Expires int64 `protobuf:"varint,6,opt,name=Expires,proto3" json:"expires"`
- }
- func (m *UserThirdBindProto) Reset() { *m = UserThirdBindProto{} }
- func (m *UserThirdBindProto) String() string { return proto.CompactTextString(m) }
- func (*UserThirdBindProto) ProtoMessage() {}
- func (*UserThirdBindProto) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{8} }
- func (m *UserThirdBindProto) GetID() int64 {
- if m != nil {
- return m.ID
- }
- return 0
- }
- func (m *UserThirdBindProto) GetMid() int64 {
- if m != nil {
- return m.Mid
- }
- return 0
- }
- func (m *UserThirdBindProto) GetOpenID() string {
- if m != nil {
- return m.OpenID
- }
- return ""
- }
- func (m *UserThirdBindProto) GetPlatForm() int64 {
- if m != nil {
- return m.PlatForm
- }
- return 0
- }
- func (m *UserThirdBindProto) GetToken() string {
- if m != nil {
- return m.Token
- }
- return ""
- }
- func (m *UserThirdBindProto) GetExpires() int64 {
- if m != nil {
- return m.Expires
- }
- return 0
- }
- func init() {
- proto.RegisterType((*CookieProto)(nil), "passport.interface.login.CookieProto")
- proto.RegisterType((*TokenProto)(nil), "passport.interface.login.TokenProto")
- proto.RegisterType((*RefreshProto)(nil), "passport.interface.login.RefreshProto")
- proto.RegisterType((*UserBaseProto)(nil), "passport.interface.login.UserBaseProto")
- proto.RegisterType((*UserEmailProto)(nil), "passport.interface.login.UserEmailProto")
- proto.RegisterType((*UserTelProto)(nil), "passport.interface.login.UserTelProto")
- proto.RegisterType((*UserRegOriginProto)(nil), "passport.interface.login.UserRegOriginProto")
- proto.RegisterType((*UserSafeQuestionProto)(nil), "passport.interface.login.UserSafeQuestionProto")
- proto.RegisterType((*UserThirdBindProto)(nil), "passport.interface.login.UserThirdBindProto")
- }
- func (m *CookieProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *CookieProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if len(m.Session) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Session)))
- i += copy(dAtA[i:], m.Session)
- }
- if len(m.CSRF) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.CSRF)))
- i += copy(dAtA[i:], m.CSRF)
- }
- if m.Type != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Type))
- }
- if m.Expires != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Expires))
- }
- return i, nil
- }
- func (m *TokenProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *TokenProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if m.AppID != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.AppID))
- }
- if len(m.Token) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Token)))
- i += copy(dAtA[i:], m.Token)
- }
- if m.Type != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Type))
- }
- if m.Expires != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Expires))
- }
- return i, nil
- }
- func (m *RefreshProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *RefreshProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if m.AppID != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.AppID))
- }
- if len(m.Refresh) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Refresh)))
- i += copy(dAtA[i:], m.Refresh)
- }
- if len(m.Token) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Token)))
- i += copy(dAtA[i:], m.Token)
- }
- if m.Expires != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Expires))
- }
- return i, nil
- }
- func (m *UserBaseProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *UserBaseProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if len(m.UserID) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.UserID)))
- i += copy(dAtA[i:], m.UserID)
- }
- if len(m.Pwd) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Pwd)))
- i += copy(dAtA[i:], m.Pwd)
- }
- if len(m.Salt) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Salt)))
- i += copy(dAtA[i:], m.Salt)
- }
- if m.Status != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Status))
- }
- return i, nil
- }
- func (m *UserEmailProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *UserEmailProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if len(m.Email) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Email)))
- i += copy(dAtA[i:], m.Email)
- }
- if m.Verified != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Verified))
- }
- if m.EmailBindTime != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.EmailBindTime))
- }
- return i, nil
- }
- func (m *UserTelProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *UserTelProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if len(m.Tel) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Tel)))
- i += copy(dAtA[i:], m.Tel)
- }
- if len(m.Cid) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Cid)))
- i += copy(dAtA[i:], m.Cid)
- }
- if m.TelBindTime != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.TelBindTime))
- }
- return i, nil
- }
- func (m *UserRegOriginProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *UserRegOriginProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if m.JoinIP != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.JoinIP))
- }
- if m.JoinTime != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.JoinTime))
- }
- if m.Origin != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Origin))
- }
- if m.RegType != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.RegType))
- }
- if m.AppID != 0 {
- dAtA[i] = 0x30
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.AppID))
- }
- return i, nil
- }
- func (m *UserSafeQuestionProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *UserSafeQuestionProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.Mid != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if m.SafeQuestion != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.SafeQuestion))
- }
- if len(m.SafeAnswer) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.SafeAnswer)))
- i += copy(dAtA[i:], m.SafeAnswer)
- }
- if m.SafeBindTime != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.SafeBindTime))
- }
- return i, nil
- }
- func (m *UserThirdBindProto) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalTo(dAtA)
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
- func (m *UserThirdBindProto) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if m.ID != 0 {
- dAtA[i] = 0x8
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.ID))
- }
- if m.Mid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Mid))
- }
- if len(m.OpenID) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.OpenID)))
- i += copy(dAtA[i:], m.OpenID)
- }
- if m.PlatForm != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.PlatForm))
- }
- if len(m.Token) > 0 {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintModel(dAtA, i, uint64(len(m.Token)))
- i += copy(dAtA[i:], m.Token)
- }
- if m.Expires != 0 {
- dAtA[i] = 0x30
- i++
- i = encodeVarintModel(dAtA, i, uint64(m.Expires))
- }
- return i, nil
- }
- func encodeVarintModel(dAtA []byte, offset int, v uint64) int {
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return offset + 1
- }
- func (m *CookieProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- l = len(m.Session)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- l = len(m.CSRF)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.Type != 0 {
- n += 1 + sovModel(uint64(m.Type))
- }
- if m.Expires != 0 {
- n += 1 + sovModel(uint64(m.Expires))
- }
- return n
- }
- func (m *TokenProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- if m.AppID != 0 {
- n += 1 + sovModel(uint64(m.AppID))
- }
- l = len(m.Token)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.Type != 0 {
- n += 1 + sovModel(uint64(m.Type))
- }
- if m.Expires != 0 {
- n += 1 + sovModel(uint64(m.Expires))
- }
- return n
- }
- func (m *RefreshProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- if m.AppID != 0 {
- n += 1 + sovModel(uint64(m.AppID))
- }
- l = len(m.Refresh)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- l = len(m.Token)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.Expires != 0 {
- n += 1 + sovModel(uint64(m.Expires))
- }
- return n
- }
- func (m *UserBaseProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- l = len(m.UserID)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- l = len(m.Pwd)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- l = len(m.Salt)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.Status != 0 {
- n += 1 + sovModel(uint64(m.Status))
- }
- return n
- }
- func (m *UserEmailProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- l = len(m.Email)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.Verified != 0 {
- n += 1 + sovModel(uint64(m.Verified))
- }
- if m.EmailBindTime != 0 {
- n += 1 + sovModel(uint64(m.EmailBindTime))
- }
- return n
- }
- func (m *UserTelProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- l = len(m.Tel)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- l = len(m.Cid)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.TelBindTime != 0 {
- n += 1 + sovModel(uint64(m.TelBindTime))
- }
- return n
- }
- func (m *UserRegOriginProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- if m.JoinIP != 0 {
- n += 1 + sovModel(uint64(m.JoinIP))
- }
- if m.JoinTime != 0 {
- n += 1 + sovModel(uint64(m.JoinTime))
- }
- if m.Origin != 0 {
- n += 1 + sovModel(uint64(m.Origin))
- }
- if m.RegType != 0 {
- n += 1 + sovModel(uint64(m.RegType))
- }
- if m.AppID != 0 {
- n += 1 + sovModel(uint64(m.AppID))
- }
- return n
- }
- func (m *UserSafeQuestionProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- if m.SafeQuestion != 0 {
- n += 1 + sovModel(uint64(m.SafeQuestion))
- }
- l = len(m.SafeAnswer)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.SafeBindTime != 0 {
- n += 1 + sovModel(uint64(m.SafeBindTime))
- }
- return n
- }
- func (m *UserThirdBindProto) Size() (n int) {
- var l int
- _ = l
- if m.ID != 0 {
- n += 1 + sovModel(uint64(m.ID))
- }
- if m.Mid != 0 {
- n += 1 + sovModel(uint64(m.Mid))
- }
- l = len(m.OpenID)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.PlatForm != 0 {
- n += 1 + sovModel(uint64(m.PlatForm))
- }
- l = len(m.Token)
- if l > 0 {
- n += 1 + l + sovModel(uint64(l))
- }
- if m.Expires != 0 {
- n += 1 + sovModel(uint64(m.Expires))
- }
- return n
- }
- func sovModel(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozModel(x uint64) (n int) {
- return sovModel(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (m *CookieProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: CookieProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: CookieProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Session", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Session = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CSRF", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.CSRF = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
- }
- m.Expires = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Expires |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *TokenProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: TokenProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: TokenProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType)
- }
- m.AppID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AppID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Token = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
- }
- m.Expires = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Expires |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *RefreshProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RefreshProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RefreshProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType)
- }
- m.AppID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AppID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Refresh", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Refresh = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Token = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
- }
- m.Expires = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Expires |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UserBaseProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UserBaseProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UserBaseProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field UserID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.UserID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Pwd", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + byteLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Pwd = append(m.Pwd[:0], dAtA[iNdEx:postIndex]...)
- if m.Pwd == nil {
- m.Pwd = []byte{}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Salt", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Salt = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- m.Status = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Status |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UserEmailProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UserEmailProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UserEmailProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + byteLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Email = append(m.Email[:0], dAtA[iNdEx:postIndex]...)
- if m.Email == nil {
- m.Email = []byte{}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Verified", wireType)
- }
- m.Verified = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Verified |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field EmailBindTime", wireType)
- }
- m.EmailBindTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.EmailBindTime |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UserTelProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UserTelProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UserTelProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Tel", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + byteLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Tel = append(m.Tel[:0], dAtA[iNdEx:postIndex]...)
- if m.Tel == nil {
- m.Tel = []byte{}
- }
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Cid = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TelBindTime", wireType)
- }
- m.TelBindTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TelBindTime |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UserRegOriginProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UserRegOriginProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UserRegOriginProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field JoinIP", wireType)
- }
- m.JoinIP = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.JoinIP |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field JoinTime", wireType)
- }
- m.JoinTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.JoinTime |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType)
- }
- m.Origin = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Origin |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field RegType", wireType)
- }
- m.RegType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RegType |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType)
- }
- m.AppID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.AppID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UserSafeQuestionProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UserSafeQuestionProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UserSafeQuestionProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SafeQuestion", wireType)
- }
- m.SafeQuestion = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SafeQuestion |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SafeAnswer", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + byteLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.SafeAnswer = append(m.SafeAnswer[:0], dAtA[iNdEx:postIndex]...)
- if m.SafeAnswer == nil {
- m.SafeAnswer = []byte{}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SafeBindTime", wireType)
- }
- m.SafeBindTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.SafeBindTime |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *UserThirdBindProto) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: UserThirdBindProto: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: UserThirdBindProto: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
- }
- m.ID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ID |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
- }
- m.Mid = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mid |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OpenID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.OpenID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field PlatForm", wireType)
- }
- m.PlatForm = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.PlatForm |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthModel
- }
- postIndex := iNdEx + intStringLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Token = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
- }
- m.Expires = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowModel
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Expires |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipModel(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthModel
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipModel(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowModel
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowModel
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- return iNdEx, nil
- case 1:
- iNdEx += 8
- return iNdEx, nil
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowModel
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- iNdEx += length
- if length < 0 {
- return 0, ErrInvalidLengthModel
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowModel
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- innerWire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- innerWireType := int(innerWire & 0x7)
- if innerWireType == 4 {
- break
- }
- next, err := skipModel(dAtA[start:])
- if err != nil {
- return 0, err
- }
- iNdEx = start + next
- }
- return iNdEx, nil
- case 4:
- return iNdEx, nil
- case 5:
- iNdEx += 4
- return iNdEx, nil
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- }
- panic("unreachable")
- }
- var (
- ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowModel = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("model.proto", fileDescriptorModel) }
- var fileDescriptorModel = []byte{
- // 791 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xeb, 0x44,
- 0x14, 0xc6, 0x49, 0x9c, 0x9f, 0x49, 0xd2, 0x0a, 0x23, 0x20, 0x45, 0x28, 0xae, 0x8c, 0x8a, 0xca,
- 0x82, 0x74, 0x51, 0x81, 0xc4, 0xb2, 0x4e, 0x5b, 0x29, 0x48, 0xa8, 0x61, 0x12, 0x58, 0xb0, 0x89,
- 0x9c, 0x78, 0xec, 0x0e, 0xb5, 0x3d, 0x66, 0x66, 0x42, 0xe9, 0x7b, 0xb0, 0xe0, 0x1d, 0x90, 0x90,
- 0x60, 0xc7, 0x1b, 0xb0, 0x44, 0xec, 0xb1, 0xae, 0x7a, 0x77, 0xd6, 0x7d, 0x88, 0xab, 0x39, 0x33,
- 0x69, 0xd2, 0xaa, 0x55, 0x2a, 0xdd, 0xbb, 0xb3, 0xbf, 0xef, 0x3b, 0xe7, 0x7c, 0x67, 0xce, 0x1c,
- 0x1b, 0xb5, 0x53,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