You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1760 lines
44 KiB
1760 lines
44 KiB
// Code generated by protoc-gen-gogo. DO NOT EDIT. |
|
// source: app/service/main/vip/model/vip.proto |
|
|
|
/* |
|
Package model is a generated protocol buffer package. |
|
|
|
It is generated from these files: |
|
app/service/main/vip/model/vip.proto |
|
|
|
It has these top-level messages: |
|
VipInfo |
|
VipInfoDB |
|
VipPanelInfo |
|
OpenBindInfo |
|
OpenInfo |
|
*/ |
|
package model |
|
|
|
import proto "github.com/gogo/protobuf/proto" |
|
import fmt "fmt" |
|
import math "math" |
|
import _ "github.com/gogo/protobuf/gogoproto" |
|
|
|
import go_common_library_time "go-common/library/time" |
|
|
|
import binary "encoding/binary" |
|
|
|
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.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
|
|
|
type VipInfo struct { |
|
*VipInfoDB `protobuf:"bytes,1,opt,name=VipInfoDB,embedded=VipInfoDB" json:""` |
|
AutoRenewed int32 `protobuf:"varint,2,opt,name=AutoRenewed,proto3" json:"auto_renewed"` |
|
} |
|
|
|
func (m *VipInfo) Reset() { *m = VipInfo{} } |
|
func (m *VipInfo) String() string { return proto.CompactTextString(m) } |
|
func (*VipInfo) ProtoMessage() {} |
|
func (*VipInfo) Descriptor() ([]byte, []int) { return fileDescriptorVip, []int{0} } |
|
|
|
type VipInfoDB struct { |
|
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"` |
|
Mid int64 `protobuf:"varint,2,opt,name=Mid,proto3" json:"mid"` |
|
VipType int32 `protobuf:"varint,3,opt,name=VipType,proto3" json:"vip_type"` |
|
VipPayType int32 `protobuf:"varint,4,opt,name=VipPayType,proto3" json:"vip_pay_type"` |
|
PayChannelID int32 `protobuf:"varint,5,opt,name=PayChannelID,proto3" json:"pay_channel_id"` |
|
VipStatus int32 `protobuf:"varint,6,opt,name=VipStatus,proto3" json:"vip_status"` |
|
VipStartTime go_common_library_time.Time `protobuf:"varint,7,opt,name=VipStartTime,proto3,casttype=go-common/library/time.Time" json:"vip_start_time"` |
|
VipRecentTime go_common_library_time.Time `protobuf:"varint,8,opt,name=VipRecentTime,proto3,casttype=go-common/library/time.Time" json:"vip_recent_time"` |
|
VipOverdueTime go_common_library_time.Time `protobuf:"varint,9,opt,name=VipOverdueTime,proto3,casttype=go-common/library/time.Time" json:"vip_overdue_time"` |
|
AnnualVipOverdueTime go_common_library_time.Time `protobuf:"varint,10,opt,name=AnnualVipOverdueTime,proto3,casttype=go-common/library/time.Time" json:"annual_vip_overdue_time"` |
|
Ctime go_common_library_time.Time `protobuf:"varint,11,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"` |
|
Mtime go_common_library_time.Time `protobuf:"varint,12,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"` |
|
IosOverdueTime go_common_library_time.Time `protobuf:"varint,13,opt,name=IosOverdueTime,proto3,casttype=go-common/library/time.Time" json:"ios_overdue_time"` |
|
Ver int64 `protobuf:"varint,14,opt,name=Ver,proto3" json:"ver"` |
|
} |
|
|
|
func (m *VipInfoDB) Reset() { *m = VipInfoDB{} } |
|
func (m *VipInfoDB) String() string { return proto.CompactTextString(m) } |
|
func (*VipInfoDB) ProtoMessage() {} |
|
func (*VipInfoDB) Descriptor() ([]byte, []int) { return fileDescriptorVip, []int{1} } |
|
|
|
type VipPanelInfo struct { |
|
Month int32 `protobuf:"varint,1,opt,name=Month,proto3" json:"month"` |
|
PdName string `protobuf:"bytes,2,opt,name=PdName,proto3" json:"product_name"` |
|
PdID string `protobuf:"bytes,3,opt,name=PdID,proto3" json:"product_id"` |
|
SubType int32 `protobuf:"varint,4,opt,name=SubType,proto3" json:"sub_type"` |
|
SuitType int32 `protobuf:"varint,5,opt,name=SuitType,proto3" json:"suit_type"` |
|
OPrice float64 `protobuf:"fixed64,6,opt,name=OPrice,proto3" json:"original_price"` |
|
DPrice float64 `protobuf:"fixed64,7,opt,name=DPrice,proto3" json:"discount_price"` |
|
DRate string `protobuf:"bytes,8,opt,name=DRate,proto3" json:"discount_rate"` |
|
Remark string `protobuf:"bytes,9,opt,name=Remark,proto3" json:"remark"` |
|
Selected int32 `protobuf:"varint,10,opt,name=Selected,proto3" json:"selected"` |
|
Id int64 `protobuf:"varint,11,opt,name=Id,proto3" json:"id"` |
|
Type int32 `protobuf:"varint,12,opt,name=Type,proto3" json:"type"` |
|
} |
|
|
|
func (m *VipPanelInfo) Reset() { *m = VipPanelInfo{} } |
|
func (m *VipPanelInfo) String() string { return proto.CompactTextString(m) } |
|
func (*VipPanelInfo) ProtoMessage() {} |
|
func (*VipPanelInfo) Descriptor() ([]byte, []int) { return fileDescriptorVip, []int{2} } |
|
|
|
type OpenBindInfo struct { |
|
Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` |
|
AppID int64 `protobuf:"varint,2,opt,name=AppID,proto3" json:"app_id"` |
|
OutOpenID string `protobuf:"bytes,3,opt,name=OutOpenID,proto3" json:"out_open_id"` |
|
State int32 `protobuf:"varint,4,opt,name=State,proto3" json:"state"` |
|
Ver int64 `protobuf:"varint,5,opt,name=Ver,proto3" json:"ver"` |
|
ID int64 `protobuf:"varint,6,opt,name=ID,proto3" json:"-"` |
|
} |
|
|
|
func (m *OpenBindInfo) Reset() { *m = OpenBindInfo{} } |
|
func (m *OpenBindInfo) String() string { return proto.CompactTextString(m) } |
|
func (*OpenBindInfo) ProtoMessage() {} |
|
func (*OpenBindInfo) Descriptor() ([]byte, []int) { return fileDescriptorVip, []int{3} } |
|
|
|
type OpenInfo struct { |
|
Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` |
|
AppID int64 `protobuf:"varint,2,opt,name=AppID,proto3" json:"app_id"` |
|
OpenID string `protobuf:"bytes,3,opt,name=OpenID,proto3" json:"open_id"` |
|
} |
|
|
|
func (m *OpenInfo) Reset() { *m = OpenInfo{} } |
|
func (m *OpenInfo) String() string { return proto.CompactTextString(m) } |
|
func (*OpenInfo) ProtoMessage() {} |
|
func (*OpenInfo) Descriptor() ([]byte, []int) { return fileDescriptorVip, []int{4} } |
|
|
|
func init() { |
|
proto.RegisterType((*VipInfo)(nil), "account.service.vip.VipInfo") |
|
proto.RegisterType((*VipInfoDB)(nil), "account.service.vip.VipInfoDB") |
|
proto.RegisterType((*VipPanelInfo)(nil), "account.service.vip.VipPanelInfo") |
|
proto.RegisterType((*OpenBindInfo)(nil), "account.service.vip.OpenBindInfo") |
|
proto.RegisterType((*OpenInfo)(nil), "account.service.vip.OpenInfo") |
|
} |
|
func (m *VipInfo) 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 *VipInfo) MarshalTo(dAtA []byte) (int, error) { |
|
var i int |
|
_ = i |
|
var l int |
|
_ = l |
|
if m.VipInfoDB != nil { |
|
dAtA[i] = 0xa |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipInfoDB.Size())) |
|
n1, err := m.VipInfoDB.MarshalTo(dAtA[i:]) |
|
if err != nil { |
|
return 0, err |
|
} |
|
i += n1 |
|
} |
|
if m.AutoRenewed != 0 { |
|
dAtA[i] = 0x10 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.AutoRenewed)) |
|
} |
|
return i, nil |
|
} |
|
|
|
func (m *VipInfoDB) 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 *VipInfoDB) MarshalTo(dAtA []byte) (int, error) { |
|
var i int |
|
_ = i |
|
var l int |
|
_ = l |
|
if m.ID != 0 { |
|
dAtA[i] = 0x8 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.ID)) |
|
} |
|
if m.Mid != 0 { |
|
dAtA[i] = 0x10 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Mid)) |
|
} |
|
if m.VipType != 0 { |
|
dAtA[i] = 0x18 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipType)) |
|
} |
|
if m.VipPayType != 0 { |
|
dAtA[i] = 0x20 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipPayType)) |
|
} |
|
if m.PayChannelID != 0 { |
|
dAtA[i] = 0x28 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.PayChannelID)) |
|
} |
|
if m.VipStatus != 0 { |
|
dAtA[i] = 0x30 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipStatus)) |
|
} |
|
if m.VipStartTime != 0 { |
|
dAtA[i] = 0x38 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipStartTime)) |
|
} |
|
if m.VipRecentTime != 0 { |
|
dAtA[i] = 0x40 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipRecentTime)) |
|
} |
|
if m.VipOverdueTime != 0 { |
|
dAtA[i] = 0x48 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.VipOverdueTime)) |
|
} |
|
if m.AnnualVipOverdueTime != 0 { |
|
dAtA[i] = 0x50 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.AnnualVipOverdueTime)) |
|
} |
|
if m.Ctime != 0 { |
|
dAtA[i] = 0x58 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Ctime)) |
|
} |
|
if m.Mtime != 0 { |
|
dAtA[i] = 0x60 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Mtime)) |
|
} |
|
if m.IosOverdueTime != 0 { |
|
dAtA[i] = 0x68 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.IosOverdueTime)) |
|
} |
|
if m.Ver != 0 { |
|
dAtA[i] = 0x70 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Ver)) |
|
} |
|
return i, nil |
|
} |
|
|
|
func (m *VipPanelInfo) 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 *VipPanelInfo) MarshalTo(dAtA []byte) (int, error) { |
|
var i int |
|
_ = i |
|
var l int |
|
_ = l |
|
if m.Month != 0 { |
|
dAtA[i] = 0x8 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Month)) |
|
} |
|
if len(m.PdName) > 0 { |
|
dAtA[i] = 0x12 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(len(m.PdName))) |
|
i += copy(dAtA[i:], m.PdName) |
|
} |
|
if len(m.PdID) > 0 { |
|
dAtA[i] = 0x1a |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(len(m.PdID))) |
|
i += copy(dAtA[i:], m.PdID) |
|
} |
|
if m.SubType != 0 { |
|
dAtA[i] = 0x20 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.SubType)) |
|
} |
|
if m.SuitType != 0 { |
|
dAtA[i] = 0x28 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.SuitType)) |
|
} |
|
if m.OPrice != 0 { |
|
dAtA[i] = 0x31 |
|
i++ |
|
binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.OPrice)))) |
|
i += 8 |
|
} |
|
if m.DPrice != 0 { |
|
dAtA[i] = 0x39 |
|
i++ |
|
binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DPrice)))) |
|
i += 8 |
|
} |
|
if len(m.DRate) > 0 { |
|
dAtA[i] = 0x42 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(len(m.DRate))) |
|
i += copy(dAtA[i:], m.DRate) |
|
} |
|
if len(m.Remark) > 0 { |
|
dAtA[i] = 0x4a |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(len(m.Remark))) |
|
i += copy(dAtA[i:], m.Remark) |
|
} |
|
if m.Selected != 0 { |
|
dAtA[i] = 0x50 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Selected)) |
|
} |
|
if m.Id != 0 { |
|
dAtA[i] = 0x58 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Id)) |
|
} |
|
if m.Type != 0 { |
|
dAtA[i] = 0x60 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Type)) |
|
} |
|
return i, nil |
|
} |
|
|
|
func (m *OpenBindInfo) 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 *OpenBindInfo) MarshalTo(dAtA []byte) (int, error) { |
|
var i int |
|
_ = i |
|
var l int |
|
_ = l |
|
if m.Mid != 0 { |
|
dAtA[i] = 0x8 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Mid)) |
|
} |
|
if m.AppID != 0 { |
|
dAtA[i] = 0x10 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.AppID)) |
|
} |
|
if len(m.OutOpenID) > 0 { |
|
dAtA[i] = 0x1a |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(len(m.OutOpenID))) |
|
i += copy(dAtA[i:], m.OutOpenID) |
|
} |
|
if m.State != 0 { |
|
dAtA[i] = 0x20 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.State)) |
|
} |
|
if m.Ver != 0 { |
|
dAtA[i] = 0x28 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Ver)) |
|
} |
|
if m.ID != 0 { |
|
dAtA[i] = 0x30 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.ID)) |
|
} |
|
return i, nil |
|
} |
|
|
|
func (m *OpenInfo) 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 *OpenInfo) MarshalTo(dAtA []byte) (int, error) { |
|
var i int |
|
_ = i |
|
var l int |
|
_ = l |
|
if m.Mid != 0 { |
|
dAtA[i] = 0x8 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.Mid)) |
|
} |
|
if m.AppID != 0 { |
|
dAtA[i] = 0x10 |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(m.AppID)) |
|
} |
|
if len(m.OpenID) > 0 { |
|
dAtA[i] = 0x1a |
|
i++ |
|
i = encodeVarintVip(dAtA, i, uint64(len(m.OpenID))) |
|
i += copy(dAtA[i:], m.OpenID) |
|
} |
|
return i, nil |
|
} |
|
|
|
func encodeVarintVip(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 *VipInfo) Size() (n int) { |
|
var l int |
|
_ = l |
|
if m.VipInfoDB != nil { |
|
l = m.VipInfoDB.Size() |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
if m.AutoRenewed != 0 { |
|
n += 1 + sovVip(uint64(m.AutoRenewed)) |
|
} |
|
return n |
|
} |
|
|
|
func (m *VipInfoDB) Size() (n int) { |
|
var l int |
|
_ = l |
|
if m.ID != 0 { |
|
n += 1 + sovVip(uint64(m.ID)) |
|
} |
|
if m.Mid != 0 { |
|
n += 1 + sovVip(uint64(m.Mid)) |
|
} |
|
if m.VipType != 0 { |
|
n += 1 + sovVip(uint64(m.VipType)) |
|
} |
|
if m.VipPayType != 0 { |
|
n += 1 + sovVip(uint64(m.VipPayType)) |
|
} |
|
if m.PayChannelID != 0 { |
|
n += 1 + sovVip(uint64(m.PayChannelID)) |
|
} |
|
if m.VipStatus != 0 { |
|
n += 1 + sovVip(uint64(m.VipStatus)) |
|
} |
|
if m.VipStartTime != 0 { |
|
n += 1 + sovVip(uint64(m.VipStartTime)) |
|
} |
|
if m.VipRecentTime != 0 { |
|
n += 1 + sovVip(uint64(m.VipRecentTime)) |
|
} |
|
if m.VipOverdueTime != 0 { |
|
n += 1 + sovVip(uint64(m.VipOverdueTime)) |
|
} |
|
if m.AnnualVipOverdueTime != 0 { |
|
n += 1 + sovVip(uint64(m.AnnualVipOverdueTime)) |
|
} |
|
if m.Ctime != 0 { |
|
n += 1 + sovVip(uint64(m.Ctime)) |
|
} |
|
if m.Mtime != 0 { |
|
n += 1 + sovVip(uint64(m.Mtime)) |
|
} |
|
if m.IosOverdueTime != 0 { |
|
n += 1 + sovVip(uint64(m.IosOverdueTime)) |
|
} |
|
if m.Ver != 0 { |
|
n += 1 + sovVip(uint64(m.Ver)) |
|
} |
|
return n |
|
} |
|
|
|
func (m *VipPanelInfo) Size() (n int) { |
|
var l int |
|
_ = l |
|
if m.Month != 0 { |
|
n += 1 + sovVip(uint64(m.Month)) |
|
} |
|
l = len(m.PdName) |
|
if l > 0 { |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
l = len(m.PdID) |
|
if l > 0 { |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
if m.SubType != 0 { |
|
n += 1 + sovVip(uint64(m.SubType)) |
|
} |
|
if m.SuitType != 0 { |
|
n += 1 + sovVip(uint64(m.SuitType)) |
|
} |
|
if m.OPrice != 0 { |
|
n += 9 |
|
} |
|
if m.DPrice != 0 { |
|
n += 9 |
|
} |
|
l = len(m.DRate) |
|
if l > 0 { |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
l = len(m.Remark) |
|
if l > 0 { |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
if m.Selected != 0 { |
|
n += 1 + sovVip(uint64(m.Selected)) |
|
} |
|
if m.Id != 0 { |
|
n += 1 + sovVip(uint64(m.Id)) |
|
} |
|
if m.Type != 0 { |
|
n += 1 + sovVip(uint64(m.Type)) |
|
} |
|
return n |
|
} |
|
|
|
func (m *OpenBindInfo) Size() (n int) { |
|
var l int |
|
_ = l |
|
if m.Mid != 0 { |
|
n += 1 + sovVip(uint64(m.Mid)) |
|
} |
|
if m.AppID != 0 { |
|
n += 1 + sovVip(uint64(m.AppID)) |
|
} |
|
l = len(m.OutOpenID) |
|
if l > 0 { |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
if m.State != 0 { |
|
n += 1 + sovVip(uint64(m.State)) |
|
} |
|
if m.Ver != 0 { |
|
n += 1 + sovVip(uint64(m.Ver)) |
|
} |
|
if m.ID != 0 { |
|
n += 1 + sovVip(uint64(m.ID)) |
|
} |
|
return n |
|
} |
|
|
|
func (m *OpenInfo) Size() (n int) { |
|
var l int |
|
_ = l |
|
if m.Mid != 0 { |
|
n += 1 + sovVip(uint64(m.Mid)) |
|
} |
|
if m.AppID != 0 { |
|
n += 1 + sovVip(uint64(m.AppID)) |
|
} |
|
l = len(m.OpenID) |
|
if l > 0 { |
|
n += 1 + l + sovVip(uint64(l)) |
|
} |
|
return n |
|
} |
|
|
|
func sovVip(x uint64) (n int) { |
|
for { |
|
n++ |
|
x >>= 7 |
|
if x == 0 { |
|
break |
|
} |
|
} |
|
return n |
|
} |
|
func sozVip(x uint64) (n int) { |
|
return sovVip(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
|
} |
|
func (m *VipInfo) 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 ErrIntOverflowVip |
|
} |
|
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: VipInfo: wiretype end group for non-group") |
|
} |
|
if fieldNum <= 0 { |
|
return fmt.Errorf("proto: VipInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
|
} |
|
switch fieldNum { |
|
case 1: |
|
if wireType != 2 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipInfoDB", wireType) |
|
} |
|
var msglen int |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
msglen |= (int(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
if msglen < 0 { |
|
return ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + msglen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
if m.VipInfoDB == nil { |
|
m.VipInfoDB = &VipInfoDB{} |
|
} |
|
if err := m.VipInfoDB.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
return err |
|
} |
|
iNdEx = postIndex |
|
case 2: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field AutoRenewed", wireType) |
|
} |
|
m.AutoRenewed = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.AutoRenewed |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
default: |
|
iNdEx = preIndex |
|
skippy, err := skipVip(dAtA[iNdEx:]) |
|
if err != nil { |
|
return err |
|
} |
|
if skippy < 0 { |
|
return ErrInvalidLengthVip |
|
} |
|
if (iNdEx + skippy) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
iNdEx += skippy |
|
} |
|
} |
|
|
|
if iNdEx > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
return nil |
|
} |
|
func (m *VipInfoDB) 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 ErrIntOverflowVip |
|
} |
|
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: VipInfoDB: wiretype end group for non-group") |
|
} |
|
if fieldNum <= 0 { |
|
return fmt.Errorf("proto: VipInfoDB: 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 ErrIntOverflowVip |
|
} |
|
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 ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Mid |= (int64(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 3: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipType", wireType) |
|
} |
|
m.VipType = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.VipType |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 4: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipPayType", wireType) |
|
} |
|
m.VipPayType = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.VipPayType |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 5: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field PayChannelID", wireType) |
|
} |
|
m.PayChannelID = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.PayChannelID |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 6: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipStatus", wireType) |
|
} |
|
m.VipStatus = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.VipStatus |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 7: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipStartTime", wireType) |
|
} |
|
m.VipStartTime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.VipStartTime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 8: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipRecentTime", wireType) |
|
} |
|
m.VipRecentTime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.VipRecentTime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 9: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field VipOverdueTime", wireType) |
|
} |
|
m.VipOverdueTime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.VipOverdueTime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 10: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field AnnualVipOverdueTime", wireType) |
|
} |
|
m.AnnualVipOverdueTime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.AnnualVipOverdueTime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 11: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType) |
|
} |
|
m.Ctime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 12: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType) |
|
} |
|
m.Mtime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 13: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field IosOverdueTime", wireType) |
|
} |
|
m.IosOverdueTime = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.IosOverdueTime |= (go_common_library_time.Time(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 14: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Ver", wireType) |
|
} |
|
m.Ver = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Ver |= (int64(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
default: |
|
iNdEx = preIndex |
|
skippy, err := skipVip(dAtA[iNdEx:]) |
|
if err != nil { |
|
return err |
|
} |
|
if skippy < 0 { |
|
return ErrInvalidLengthVip |
|
} |
|
if (iNdEx + skippy) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
iNdEx += skippy |
|
} |
|
} |
|
|
|
if iNdEx > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
return nil |
|
} |
|
func (m *VipPanelInfo) 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 ErrIntOverflowVip |
|
} |
|
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: VipPanelInfo: wiretype end group for non-group") |
|
} |
|
if fieldNum <= 0 { |
|
return fmt.Errorf("proto: VipPanelInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
|
} |
|
switch fieldNum { |
|
case 1: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Month", wireType) |
|
} |
|
m.Month = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Month |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 2: |
|
if wireType != 2 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field PdName", wireType) |
|
} |
|
var stringLen uint64 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
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 ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + intStringLen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
m.PdName = string(dAtA[iNdEx:postIndex]) |
|
iNdEx = postIndex |
|
case 3: |
|
if wireType != 2 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field PdID", wireType) |
|
} |
|
var stringLen uint64 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
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 ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + intStringLen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
m.PdID = string(dAtA[iNdEx:postIndex]) |
|
iNdEx = postIndex |
|
case 4: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field SubType", wireType) |
|
} |
|
m.SubType = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.SubType |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 5: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field SuitType", wireType) |
|
} |
|
m.SuitType = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.SuitType |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 6: |
|
if wireType != 1 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field OPrice", wireType) |
|
} |
|
var v uint64 |
|
if (iNdEx + 8) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
|
iNdEx += 8 |
|
m.OPrice = float64(math.Float64frombits(v)) |
|
case 7: |
|
if wireType != 1 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field DPrice", wireType) |
|
} |
|
var v uint64 |
|
if (iNdEx + 8) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
|
iNdEx += 8 |
|
m.DPrice = float64(math.Float64frombits(v)) |
|
case 8: |
|
if wireType != 2 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field DRate", wireType) |
|
} |
|
var stringLen uint64 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
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 ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + intStringLen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
m.DRate = string(dAtA[iNdEx:postIndex]) |
|
iNdEx = postIndex |
|
case 9: |
|
if wireType != 2 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Remark", wireType) |
|
} |
|
var stringLen uint64 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
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 ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + intStringLen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
m.Remark = string(dAtA[iNdEx:postIndex]) |
|
iNdEx = postIndex |
|
case 10: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Selected", wireType) |
|
} |
|
m.Selected = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Selected |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 11: |
|
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 ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Id |= (int64(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 12: |
|
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 ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Type |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
default: |
|
iNdEx = preIndex |
|
skippy, err := skipVip(dAtA[iNdEx:]) |
|
if err != nil { |
|
return err |
|
} |
|
if skippy < 0 { |
|
return ErrInvalidLengthVip |
|
} |
|
if (iNdEx + skippy) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
iNdEx += skippy |
|
} |
|
} |
|
|
|
if iNdEx > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
return nil |
|
} |
|
func (m *OpenBindInfo) 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 ErrIntOverflowVip |
|
} |
|
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: OpenBindInfo: wiretype end group for non-group") |
|
} |
|
if fieldNum <= 0 { |
|
return fmt.Errorf("proto: OpenBindInfo: 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 ErrIntOverflowVip |
|
} |
|
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 ErrIntOverflowVip |
|
} |
|
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 OutOpenID", wireType) |
|
} |
|
var stringLen uint64 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
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 ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + intStringLen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
m.OutOpenID = string(dAtA[iNdEx:postIndex]) |
|
iNdEx = postIndex |
|
case 4: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) |
|
} |
|
m.State = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.State |= (int32(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 5: |
|
if wireType != 0 { |
|
return fmt.Errorf("proto: wrong wireType = %d for field Ver", wireType) |
|
} |
|
m.Ver = 0 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.Ver |= (int64(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
case 6: |
|
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 ErrIntOverflowVip |
|
} |
|
if iNdEx >= l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
b := dAtA[iNdEx] |
|
iNdEx++ |
|
m.ID |= (int64(b) & 0x7F) << shift |
|
if b < 0x80 { |
|
break |
|
} |
|
} |
|
default: |
|
iNdEx = preIndex |
|
skippy, err := skipVip(dAtA[iNdEx:]) |
|
if err != nil { |
|
return err |
|
} |
|
if skippy < 0 { |
|
return ErrInvalidLengthVip |
|
} |
|
if (iNdEx + skippy) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
iNdEx += skippy |
|
} |
|
} |
|
|
|
if iNdEx > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
return nil |
|
} |
|
func (m *OpenInfo) 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 ErrIntOverflowVip |
|
} |
|
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: OpenInfo: wiretype end group for non-group") |
|
} |
|
if fieldNum <= 0 { |
|
return fmt.Errorf("proto: OpenInfo: 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 ErrIntOverflowVip |
|
} |
|
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 ErrIntOverflowVip |
|
} |
|
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 OpenID", wireType) |
|
} |
|
var stringLen uint64 |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return ErrIntOverflowVip |
|
} |
|
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 ErrInvalidLengthVip |
|
} |
|
postIndex := iNdEx + intStringLen |
|
if postIndex > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
m.OpenID = string(dAtA[iNdEx:postIndex]) |
|
iNdEx = postIndex |
|
default: |
|
iNdEx = preIndex |
|
skippy, err := skipVip(dAtA[iNdEx:]) |
|
if err != nil { |
|
return err |
|
} |
|
if skippy < 0 { |
|
return ErrInvalidLengthVip |
|
} |
|
if (iNdEx + skippy) > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
iNdEx += skippy |
|
} |
|
} |
|
|
|
if iNdEx > l { |
|
return io.ErrUnexpectedEOF |
|
} |
|
return nil |
|
} |
|
func skipVip(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, ErrIntOverflowVip |
|
} |
|
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, ErrIntOverflowVip |
|
} |
|
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, ErrIntOverflowVip |
|
} |
|
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, ErrInvalidLengthVip |
|
} |
|
return iNdEx, nil |
|
case 3: |
|
for { |
|
var innerWire uint64 |
|
var start int = iNdEx |
|
for shift := uint(0); ; shift += 7 { |
|
if shift >= 64 { |
|
return 0, ErrIntOverflowVip |
|
} |
|
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 := skipVip(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 ( |
|
ErrInvalidLengthVip = fmt.Errorf("proto: negative length found during unmarshaling") |
|
ErrIntOverflowVip = fmt.Errorf("proto: integer overflow") |
|
) |
|
|
|
func init() { proto.RegisterFile("app/service/main/vip/model/vip.proto", fileDescriptorVip) } |
|
|
|
var fileDescriptorVip = []byte{ |
|
// 910 bytes of a gzipped FileDescriptorProto |
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcf, 0x6f, 0xe3, 0x44, |
|
0x14, 0xae, 0x9b, 0xda, 0x49, 0x26, 0x69, 0x77, 0x19, 0x7e, 0x05, 0x16, 0x65, 0xaa, 0x80, 0x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