123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: user.proto
- /*
- Package model is a generated protocol buffer package.
- It is generated from these files:
- user.proto
- It has these top-level messages:
- 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 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 fileDescriptorUser, []int{0} }
- 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 fileDescriptorUser, []int{1} }
- 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 fileDescriptorUser, []int{2} }
- 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"`
- JoinIPV6 []byte `protobuf:"bytes,3,opt,name=JoinIPV6,proto3" json:"join_ip_v6"`
- Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port"`
- JoinTime int64 `protobuf:"varint,5,opt,name=JoinTime,proto3" json:"join_time"`
- Origin int32 `protobuf:"varint,6,opt,name=Origin,proto3" json:"origin"`
- RegType int32 `protobuf:"varint,7,opt,name=RegType,proto3" json:"reg_type"`
- AppID int64 `protobuf:"varint,8,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 fileDescriptorUser, []int{3} }
- 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) GetJoinIPV6() []byte {
- if m != nil {
- return m.JoinIPV6
- }
- return nil
- }
- func (m *UserRegOriginProto) GetPort() int32 {
- if m != nil {
- return m.Port
- }
- 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 fileDescriptorUser, []int{4} }
- 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 fileDescriptorUser, []int{5} }
- 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((*UserBaseProto)(nil), "passport.job.user.UserBaseProto")
- proto.RegisterType((*UserEmailProto)(nil), "passport.job.user.UserEmailProto")
- proto.RegisterType((*UserTelProto)(nil), "passport.job.user.UserTelProto")
- proto.RegisterType((*UserRegOriginProto)(nil), "passport.job.user.UserRegOriginProto")
- proto.RegisterType((*UserSafeQuestionProto)(nil), "passport.job.user.UserSafeQuestionProto")
- proto.RegisterType((*UserThirdBindProto)(nil), "passport.job.user.UserThirdBindProto")
- }
- 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 = encodeVarintUser(dAtA, i, uint64(m.Mid))
- }
- if len(m.UserID) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.UserID)))
- i += copy(dAtA[i:], m.UserID)
- }
- if len(m.Pwd) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.Pwd)))
- i += copy(dAtA[i:], m.Pwd)
- }
- if len(m.Salt) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.Salt)))
- i += copy(dAtA[i:], m.Salt)
- }
- if m.Status != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintUser(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 = encodeVarintUser(dAtA, i, uint64(m.Mid))
- }
- if len(m.Email) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.Email)))
- i += copy(dAtA[i:], m.Email)
- }
- if m.Verified != 0 {
- dAtA[i] = 0x18
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.Verified))
- }
- if m.EmailBindTime != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintUser(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 = encodeVarintUser(dAtA, i, uint64(m.Mid))
- }
- if len(m.Tel) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.Tel)))
- i += copy(dAtA[i:], m.Tel)
- }
- if len(m.Cid) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.Cid)))
- i += copy(dAtA[i:], m.Cid)
- }
- if m.TelBindTime != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintUser(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 = encodeVarintUser(dAtA, i, uint64(m.Mid))
- }
- if m.JoinIP != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.JoinIP))
- }
- if len(m.JoinIPV6) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.JoinIPV6)))
- i += copy(dAtA[i:], m.JoinIPV6)
- }
- if m.Port != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.Port))
- }
- if m.JoinTime != 0 {
- dAtA[i] = 0x28
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.JoinTime))
- }
- if m.Origin != 0 {
- dAtA[i] = 0x30
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.Origin))
- }
- if m.RegType != 0 {
- dAtA[i] = 0x38
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.RegType))
- }
- if m.AppID != 0 {
- dAtA[i] = 0x40
- i++
- i = encodeVarintUser(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 = encodeVarintUser(dAtA, i, uint64(m.Mid))
- }
- if m.SafeQuestion != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.SafeQuestion))
- }
- if len(m.SafeAnswer) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.SafeAnswer)))
- i += copy(dAtA[i:], m.SafeAnswer)
- }
- if m.SafeBindTime != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintUser(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 = encodeVarintUser(dAtA, i, uint64(m.ID))
- }
- if m.Mid != 0 {
- dAtA[i] = 0x10
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.Mid))
- }
- if len(m.OpenID) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.OpenID)))
- i += copy(dAtA[i:], m.OpenID)
- }
- if m.PlatForm != 0 {
- dAtA[i] = 0x20
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.PlatForm))
- }
- if len(m.Token) > 0 {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintUser(dAtA, i, uint64(len(m.Token)))
- i += copy(dAtA[i:], m.Token)
- }
- if m.Expires != 0 {
- dAtA[i] = 0x30
- i++
- i = encodeVarintUser(dAtA, i, uint64(m.Expires))
- }
- return i, nil
- }
- func encodeVarintUser(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 *UserBaseProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovUser(uint64(m.Mid))
- }
- l = len(m.UserID)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- l = len(m.Pwd)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- l = len(m.Salt)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.Status != 0 {
- n += 1 + sovUser(uint64(m.Status))
- }
- return n
- }
- func (m *UserEmailProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovUser(uint64(m.Mid))
- }
- l = len(m.Email)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.Verified != 0 {
- n += 1 + sovUser(uint64(m.Verified))
- }
- if m.EmailBindTime != 0 {
- n += 1 + sovUser(uint64(m.EmailBindTime))
- }
- return n
- }
- func (m *UserTelProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovUser(uint64(m.Mid))
- }
- l = len(m.Tel)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- l = len(m.Cid)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.TelBindTime != 0 {
- n += 1 + sovUser(uint64(m.TelBindTime))
- }
- return n
- }
- func (m *UserRegOriginProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovUser(uint64(m.Mid))
- }
- if m.JoinIP != 0 {
- n += 1 + sovUser(uint64(m.JoinIP))
- }
- l = len(m.JoinIPV6)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.Port != 0 {
- n += 1 + sovUser(uint64(m.Port))
- }
- if m.JoinTime != 0 {
- n += 1 + sovUser(uint64(m.JoinTime))
- }
- if m.Origin != 0 {
- n += 1 + sovUser(uint64(m.Origin))
- }
- if m.RegType != 0 {
- n += 1 + sovUser(uint64(m.RegType))
- }
- if m.AppID != 0 {
- n += 1 + sovUser(uint64(m.AppID))
- }
- return n
- }
- func (m *UserSafeQuestionProto) Size() (n int) {
- var l int
- _ = l
- if m.Mid != 0 {
- n += 1 + sovUser(uint64(m.Mid))
- }
- if m.SafeQuestion != 0 {
- n += 1 + sovUser(uint64(m.SafeQuestion))
- }
- l = len(m.SafeAnswer)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.SafeBindTime != 0 {
- n += 1 + sovUser(uint64(m.SafeBindTime))
- }
- return n
- }
- func (m *UserThirdBindProto) Size() (n int) {
- var l int
- _ = l
- if m.ID != 0 {
- n += 1 + sovUser(uint64(m.ID))
- }
- if m.Mid != 0 {
- n += 1 + sovUser(uint64(m.Mid))
- }
- l = len(m.OpenID)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.PlatForm != 0 {
- n += 1 + sovUser(uint64(m.PlatForm))
- }
- l = len(m.Token)
- if l > 0 {
- n += 1 + l + sovUser(uint64(l))
- }
- if m.Expires != 0 {
- n += 1 + sovUser(uint64(m.Expires))
- }
- return n
- }
- func sovUser(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
- }
- func sozUser(x uint64) (n int) {
- return sovUser(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 := skipUser(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 := skipUser(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 := skipUser(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.JoinIP |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field JoinIPV6", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthUser
- }
- postIndex := iNdEx + byteLen
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.JoinIPV6 = append(m.JoinIPV6[:0], dAtA[iNdEx:postIndex]...)
- if m.JoinIPV6 == nil {
- m.JoinIPV6 = []byte{}
- }
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
- }
- m.Port = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Port |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.JoinTime |= (int64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Origin |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.RegType |= (int32(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- 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 ErrIntOverflowUser
- }
- 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 := skipUser(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 := skipUser(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrIntOverflowUser
- }
- 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 ErrInvalidLengthUser
- }
- 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 ErrIntOverflowUser
- }
- 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 := skipUser(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthUser
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipUser(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, ErrIntOverflowUser
- }
- 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, ErrIntOverflowUser
- }
- 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, ErrIntOverflowUser
- }
- 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, ErrInvalidLengthUser
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowUser
- }
- 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 := skipUser(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 (
- ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowUser = fmt.Errorf("proto: integer overflow")
- )
- func init() { proto.RegisterFile("user.proto", fileDescriptorUser) }
- var fileDescriptorUser = []byte{
- // 717 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x6e, 0xd3, 0x4c,
- 0x14, 0xfd, 0x9c, 0xd4, 0xf9, 0x99, 0x26, 0xad, 0xea, 0x4f, 0x80, 0x8b, 0x50, 0x26, 0x0a, 0x02,
- 0x05, 0x24, 0xd2, 0x45, 0x45, 0x25, 0x96, 0x75, 0x53, 0xa4, 0x20, 0xa1, 0x86, 0x69, 0xe8, 0x82,
- 0x4d, 0xe4, 0xd4, 0x37, 0xe9, 0x94, 0xd8, 0x33, 0xd8, 0x93, 0x96, 0xbe, 0x07, 0x0b, 0xde, 0x81,
- 0x15, 0x1b, 0x9e, 0x81, 0x25, 0x62, 0x8f, 0x85, 0xca, 0xce, 0x4f, 0x81, 0xe6, 0x8e, 0x9b, 0xa6,
- 0x15, 0x52, 0x36, 0x51, 0xe6, 0x9c, 0xfb, 0x73, 0xee, 0xdc, 0xe3, 0x21, 0x64, 0x96, 0x40, 0xdc,
- 0x91, 0xb1, 0x50, 0xc2, 0xd9, 0x90, 0x7e, 0x92, 0x48, 0x11, 0xab, 0xce, 0xa9, 0x18, 0x75, 0x34,
- 0x71, 0xff, 0xd9, 0x84, 0xab, 0x93, 0xd9, 0xa8, 0x73, 0x2c, 0xc2, 0xad, 0x89, 0x98, 0x88, 0x2d,
- 0x8c, 0x1c, 0xcd, 0xc6, 0x78, 0xc2, 0x03, 0xfe, 0x33, 0x15, 0x5a, 0x5f, 0x2c, 0x52, 0x7f, 0x9b,
- 0x40, 0xec, 0xf9, 0x09, 0xf4, 0xb1, 0xe6, 0x26, 0x29, 0xbe, 0xe6, 0x81, 0x6b, 0x35, 0xad, 0x76,
- 0xd1, 0x2b, 0x67, 0x29, 0x2d, 0x86, 0x3c, 0x60, 0x1a, 0x73, 0x5a, 0xa4, 0xa4, 0x63, 0x7b, 0x5d,
- 0xb7, 0xd0, 0xb4, 0xda, 0x55,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