Documentation
¶
Index ¶
- Constants
- Variables
- func RestrictDate(xt xtime.Time) xtime.Time
- func UUID4() string
- type AccountInfo
- type AddExp
- type BaseInfo
- func (*BaseInfo) Descriptor() ([]byte, []int)
- func (m *BaseInfo) GetBirthday() go_common_library_time.Time
- func (m *BaseInfo) GetCTime() go_common_library_time.Time
- func (m *BaseInfo) GetFace() string
- func (m *BaseInfo) GetMTime() go_common_library_time.Time
- func (m *BaseInfo) GetMid() int64
- func (m *BaseInfo) GetName() string
- func (m *BaseInfo) GetRank() int64
- func (m *BaseInfo) GetSex() int64
- func (m *BaseInfo) GetSign() string
- func (m *BaseInfo) Marshal() (dAtA []byte, err error)
- func (m *BaseInfo) MarshalTo(dAtA []byte) (int, error)
- func (*BaseInfo) ProtoMessage()
- func (b *BaseInfo) RandFaceURL()
- func (m *BaseInfo) Reset()
- func (m *BaseInfo) Size() (n int)
- func (m *BaseInfo) String() string
- func (m *BaseInfo) Unmarshal(dAtA []byte) error
- func (m *BaseInfo) XXX_DiscardUnknown()
- func (m *BaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BaseInfo) XXX_Merge(src proto.Message)
- func (m *BaseInfo) XXX_Size() int
- func (m *BaseInfo) XXX_Unmarshal(b []byte) error
- type Detail
- func (*Detail) Descriptor() ([]byte, []int)
- func (m *Detail) GetBirthday() go_common_library_time.Time
- func (m *Detail) GetCTime() go_common_library_time.Time
- func (m *Detail) GetDating() int64
- func (m *Detail) GetMTime() go_common_library_time.Time
- func (m *Detail) GetMarital() int64
- func (m *Detail) GetMid() int64
- func (m *Detail) GetPlace() int64
- func (m *Detail) GetTags() string
- func (m *Detail) Marshal() (dAtA []byte, err error)
- func (m *Detail) MarshalTo(dAtA []byte) (int, error)
- func (*Detail) ProtoMessage()
- func (m *Detail) Reset()
- func (m *Detail) Size() (n int)
- func (m *Detail) String() string
- func (m *Detail) Unmarshal(dAtA []byte) error
- func (m *Detail) XXX_DiscardUnknown()
- func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Detail) XXX_Merge(src proto.Message)
- func (m *Detail) XXX_Size() int
- func (m *Detail) XXX_Unmarshal(b []byte) error
- type Exp
- type ExpLog
- type ExpMessage
- type ExpOper
- type FaceCheckRes
- type Flag
- type LevelInfo
- func (*LevelInfo) Descriptor() ([]byte, []int)
- func (m *LevelInfo) GetCur() int32
- func (m *LevelInfo) GetMin() int32
- func (m *LevelInfo) GetNextExp() int32
- func (m *LevelInfo) GetNowExp() int32
- func (m *LevelInfo) Marshal() (dAtA []byte, err error)
- func (m *LevelInfo) MarshalTo(dAtA []byte) (int, error)
- func (*LevelInfo) ProtoMessage()
- func (m *LevelInfo) Reset()
- func (m *LevelInfo) Size() (n int)
- func (m *LevelInfo) String() string
- func (m *LevelInfo) Unmarshal(dAtA []byte) error
- func (m *LevelInfo) XXX_DiscardUnknown()
- func (m *LevelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LevelInfo) XXX_Merge(src proto.Message)
- func (m *LevelInfo) XXX_Size() int
- func (m *LevelInfo) XXX_Unmarshal(b []byte) error
- type LoginLog
- type LoginLogIPString
- type MemberAso
- type MemberMid
- type MemberVerify
- type Message
- type MoralLog
- type NameplateInfo
- func (*NameplateInfo) Descriptor() ([]byte, []int)
- func (m *NameplateInfo) GetCondition() string
- func (m *NameplateInfo) GetImage() string
- func (m *NameplateInfo) GetImageSmall() string
- func (m *NameplateInfo) GetLevel() string
- func (m *NameplateInfo) GetName() string
- func (m *NameplateInfo) GetNid() int
- func (m *NameplateInfo) Marshal() (dAtA []byte, err error)
- func (m *NameplateInfo) MarshalTo(dAtA []byte) (int, error)
- func (*NameplateInfo) ProtoMessage()
- func (m *NameplateInfo) Reset()
- func (m *NameplateInfo) Size() (n int)
- func (m *NameplateInfo) String() string
- func (m *NameplateInfo) Unmarshal(dAtA []byte) error
- func (m *NameplateInfo) XXX_DiscardUnknown()
- func (m *NameplateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NameplateInfo) XXX_Merge(src proto.Message)
- func (m *NameplateInfo) XXX_Size() int
- func (m *NameplateInfo) XXX_Unmarshal(b []byte) error
- type NewExp
- type NotifyInfo
- type Official
- type OfficialInfo
- func (*OfficialInfo) Descriptor() ([]byte, []int)
- func (m *OfficialInfo) GetDesc() string
- func (m *OfficialInfo) GetType() int8
- func (m *OfficialInfo) Marshal() (dAtA []byte, err error)
- func (m *OfficialInfo) MarshalTo(dAtA []byte) (int, error)
- func (*OfficialInfo) ProtoMessage()
- func (m *OfficialInfo) Reset()
- func (m *OfficialInfo) Size() (n int)
- func (m *OfficialInfo) String() string
- func (m *OfficialInfo) Unmarshal(dAtA []byte) error
- func (m *OfficialInfo) XXX_DiscardUnknown()
- func (m *OfficialInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OfficialInfo) XXX_Merge(src proto.Message)
- func (m *OfficialInfo) XXX_Size() int
- func (m *OfficialInfo) XXX_Unmarshal(b []byte) error
- type PendantInfo
- func (*PendantInfo) Descriptor() ([]byte, []int)
- func (m *PendantInfo) GetExpire() int
- func (m *PendantInfo) GetImage() string
- func (m *PendantInfo) GetName() string
- func (m *PendantInfo) GetPid() int
- func (m *PendantInfo) Marshal() (dAtA []byte, err error)
- func (m *PendantInfo) MarshalTo(dAtA []byte) (int, error)
- func (*PendantInfo) ProtoMessage()
- func (m *PendantInfo) Reset()
- func (m *PendantInfo) Size() (n int)
- func (m *PendantInfo) String() string
- func (m *PendantInfo) Unmarshal(dAtA []byte) error
- func (m *PendantInfo) XXX_DiscardUnknown()
- func (m *PendantInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PendantInfo) XXX_Merge(src proto.Message)
- func (m *PendantInfo) XXX_Size() int
- func (m *PendantInfo) XXX_Unmarshal(b []byte) error
- type RealnameAlipayApply
- type RealnameApply
- type RealnameApplyImgMessage
- type RealnameApplyMessage
- func (r *RealnameApplyMessage) ApplyTime() (t time.Time)
- func (r *RealnameApplyMessage) CardData() (data string)
- func (r *RealnameApplyMessage) CardMD5() (res string)
- func (r *RealnameApplyMessage) CardType() (t int)
- func (r *RealnameApplyMessage) Country() (t int)
- func (r *RealnameApplyMessage) OperaterTime() (t time.Time)
- type RealnameApplyStatus
- type RealnameChannel
- type RealnameInfo
- type RealnamePersonMessage
- type UserLog
Constants ¶
const ( //CacheKeyBase is. CacheKeyBase = "bs_%d" // key of baseInfo //CacheKeyMoral is. CacheKeyMoral = "moral_%d" // key of detail //CacheKeyInfo is. CacheKeyInfo = "i_" //URLNoFace is. URLNoFace = "http://static.hdslb.com/images/member/noface.gif" //TableExpLog is. TableExpLog = "ugc:ExpLog" //TableMoralLog is. TableMoralLog = "ugc:MoralLog" )
const ( // FlagNo 否 FlagNo = int32(0) // FlagYes 是 FlagYes = int32(1) // ExpFlagOnLogin 每日登录经验 ExpFlagOnLogin = int32(1) ExpFlagOnShare = int32(2) // ExpFlagOnView 每日播放经验 ExpFlagOnView = int32(4) // ExpFlagOnEmail 一次性绑定邮箱 ExpFlagOnEmail = int32(8) // ExpFlagOnPhone 一次性绑定手机 ExpFlagOnPhone = int32(16) // ExpFlagOnSafe 一次性绑定密保 ExpFlagOnSafe = int32(32) // ExpFlagOnIdentify 一次性实名认证 ExpFlagOnIdentify = int32(64) // ExpActOnCoin 投币奖励动作 ExpActOnCoin = int64(1) // ExpActOnLogin 登录奖励动作 ExpActOnLogin = int64(2) // ExpActOnView 播放奖励动作 ExpActOnView = int64(3) ExpActOnShare = int64(4) // ExpActOnEmail 绑定邮箱动作 ExpActOnEmail = int64(5) // ExpActOnPhone 绑定手机动作 ExpActOnPhone = int64(6) // ExpActOnSafe 绑定密保动作 ExpActOnSafe = int64(7) // ExpActOnIdentify 实名认证动作 ExpActOnIdentify = int64(8) )
const ( ActUpdateExp = "updateExp" ActUpdateLevel = "updateLevel" ActUpdateFace = "updateFace" ActUpdateMoral = "updateMoral" ActUpdateUname = "updateUname" )
consts
const ( OfficialRoleUnauth = iota OfficialRoleUp OfficialRoleIdentify OfficialRoleBusiness OfficialRoleGov OfficialRoleMedia OfficialRoleOther )
official role const.
const ( // RealnameCountryChina is. RealnameCountryChina = 0 // RealnameCardTypeIdentity is. RealnameCardTypeIdentity = 0 )
Variables ¶
var ( ErrInvalidLengthMember = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMember = fmt.Errorf("proto: integer overflow") )
var ( // ExpFlagOper exp flag map for oper ExpFlagOper = map[string]*ExpOper{"login": login, "share": share, "view": view, "email": email, "phone": phone, "safe": safe, "identify": identify} )
Functions ¶
Types ¶
type AccountInfo ¶
type AccountInfo struct { Mid int64 `json:"mid"` Name string `json:"name"` Cert int64 `json:"cert"` CertDesc string `json:"certdesc"` Ts time.Time `json:"ts"` }
AccountInfo is.
type AddExp ¶
type AddExp struct { Event string `json:"event,omitempty"` Mid int64 `json:"mid,omitempty"` IP string `json:"ip,omitempty"` Ts int64 `json:"ts,omitempty"` }
AddExp databus add exp arg.
type BaseInfo ¶
type BaseInfo struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"` Sex int64 `protobuf:"varint,3,opt,name=Sex,proto3" json:"sex"` Face string `protobuf:"bytes,4,opt,name=Face,proto3" json:"face"` Sign string `protobuf:"bytes,5,opt,name=Sign,proto3" json:"sign"` Rank int64 `protobuf:"varint,8,opt,name=Rank,proto3" json:"rank"` Birthday go_common_library_time.Time `protobuf:"varint,9,opt,name=Birthday,proto3,casttype=go-common/library/time.Time" json:"birthday"` CTime go_common_library_time.Time `protobuf:"varint,10,opt,name=CTime,proto3,casttype=go-common/library/time.Time" json:"ctime"` MTime go_common_library_time.Time `protobuf:"varint,11,opt,name=MTime,proto3,casttype=go-common/library/time.Time" json:"mtime"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BaseInfo) Descriptor ¶
func (*BaseInfo) GetBirthday ¶
func (m *BaseInfo) GetBirthday() go_common_library_time.Time
func (*BaseInfo) GetCTime ¶
func (m *BaseInfo) GetCTime() go_common_library_time.Time
func (*BaseInfo) GetMTime ¶
func (m *BaseInfo) GetMTime() go_common_library_time.Time
func (*BaseInfo) ProtoMessage ¶
func (*BaseInfo) ProtoMessage()
func (*BaseInfo) XXX_DiscardUnknown ¶
func (m *BaseInfo) XXX_DiscardUnknown()
func (*BaseInfo) XXX_Marshal ¶
func (*BaseInfo) XXX_Unmarshal ¶
type Detail ¶
type Detail struct { Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` Birthday go_common_library_time.Time `protobuf:"varint,2,opt,name=Birthday,proto3,casttype=go-common/library/time.Time" json:"birthday"` Place int64 `protobuf:"varint,3,opt,name=Place,proto3" json:"place"` Marital int64 `protobuf:"varint,4,opt,name=Marital,proto3" json:"marital"` Dating int64 `protobuf:"varint,5,opt,name=Dating,proto3" json:"dating"` Tags string `protobuf:"bytes,6,opt,name=Tags,proto3" json:"tags"` CTime go_common_library_time.Time `protobuf:"varint,7,opt,name=CTime,proto3,casttype=go-common/library/time.Time" json:"ctime"` MTime go_common_library_time.Time `protobuf:"varint,8,opt,name=MTime,proto3,casttype=go-common/library/time.Time" json:"mtime"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Detail) Descriptor ¶
func (*Detail) GetBirthday ¶
func (m *Detail) GetBirthday() go_common_library_time.Time
func (*Detail) GetCTime ¶
func (m *Detail) GetCTime() go_common_library_time.Time
func (*Detail) GetMTime ¶
func (m *Detail) GetMTime() go_common_library_time.Time
func (*Detail) GetMarital ¶
func (*Detail) ProtoMessage ¶
func (*Detail) ProtoMessage()
func (*Detail) XXX_DiscardUnknown ¶
func (m *Detail) XXX_DiscardUnknown()
func (*Detail) XXX_Marshal ¶
func (*Detail) XXX_Unmarshal ¶
type Exp ¶
type Exp struct { Mid int64 `json:"mid"` Exp float32 `json:"exp"` Mtime xtime.Time `json:"modify_time"` }
Exp userexp for mysql scan.
type ExpLog ¶
type ExpLog struct { Mid int64 `json:"mid"` FromExp float32 `json:"from_exp"` ToExp float32 `json:"to_exp"` Operater string `json:"operater"` Reason string `json:"reason"` Action int64 `json:"actin_id"` Mtime xtime.Time `json:"modify_time"` }
ExpLog user exp log for mysql
type ExpMessage ¶
ExpMessage exp msg
type FaceCheckRes ¶
type FaceCheckRes struct { FileName string `json:"file_name,omitempty"` Bucket string `json:"bucket,omitempty"` Sex float64 `json:"sex,omitempty"` Politics float64 `json:"politics,omitempty"` }
FaceCheckRes face check result.
type Flag ¶
type Flag struct { Mid int64 `json:"mid,omitempty"` Flag int64 `json:"finish_action"` Exp int64 `json:"modify_exp"` }
Flag is.
type LevelInfo ¶
type LevelInfo struct { Cur int32 `protobuf:"varint,1,opt,name=Cur,proto3" json:"current_level"` Min int32 `protobuf:"varint,2,opt,name=Min,proto3" json:"current_min"` NowExp int32 `protobuf:"varint,3,opt,name=NowExp,proto3" json:"current_exp,omitempty"` NextExp int32 `protobuf:"varint,4,opt,name=NextExp,proto3" json:"next_exp"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LevelInfo) Descriptor ¶
func (*LevelInfo) GetNextExp ¶
func (*LevelInfo) ProtoMessage ¶
func (*LevelInfo) ProtoMessage()
func (*LevelInfo) XXX_DiscardUnknown ¶
func (m *LevelInfo) XXX_DiscardUnknown()
func (*LevelInfo) XXX_Marshal ¶
func (*LevelInfo) XXX_Unmarshal ¶
type LoginLog ¶
type LoginLog struct { Mid int64 `json:"mid,omitempty"` Loginip int64 `json:"loginip,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
LoginLog user login log.
type LoginLogIPString ¶
type LoginLogIPString struct { Mid int64 `json:"mid,omitempty"` Loginip string `json:"loginip,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
LoginLogIPString user login log message with string ip.
type MemberAso ¶
type MemberAso struct { Email string `json:"email"` Telphone string `json:"telphone"` SafeQs int8 `json:"safe_question"` Spacesta int8 `json:"spacesta"` }
MemberAso member aso
type MemberVerify ¶
type MemberVerify struct { Mid int64 `json:"mid"` Type int64 `json:"type"` Desc string `json:"desc"` }
MemberVerify is.
type Message ¶
type Message struct { Action string `json:"action"` Table string `json:"table"` New json.RawMessage `json:"new"` Old json.RawMessage `json:"old"` }
Message binlog databus msg.
type MoralLog ¶
type MoralLog struct { Mid int64 `json:"mid"` IP int64 `json:"ip"` Operater string `json:"operater"` Origin int8 `json:"origin"` Reason string `json:"reason"` Remark string `json:"remark"` Status int8 `json:"status"` FromMoral int64 `json:"from_moral"` ToMoral int64 `json:"to_moral"` ModifyTime time.Time `json:"modify_time"` }
MoralLog is.
type NameplateInfo ¶
type NameplateInfo struct { Nid int `protobuf:"varint,1,opt,name=Nid,proto3,casttype=int" json:"nid"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"` Image string `protobuf:"bytes,3,opt,name=Image,proto3" json:"image"` ImageSmall string `protobuf:"bytes,4,opt,name=ImageSmall,proto3" json:"image_small"` Level string `protobuf:"bytes,5,opt,name=Level,proto3" json:"level"` Condition string `protobuf:"bytes,6,opt,name=Condition,proto3" json:"condition"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NameplateInfo) Descriptor ¶
func (*NameplateInfo) Descriptor() ([]byte, []int)
func (*NameplateInfo) GetCondition ¶
func (m *NameplateInfo) GetCondition() string
func (*NameplateInfo) GetImage ¶
func (m *NameplateInfo) GetImage() string
func (*NameplateInfo) GetImageSmall ¶
func (m *NameplateInfo) GetImageSmall() string
func (*NameplateInfo) GetLevel ¶
func (m *NameplateInfo) GetLevel() string
func (*NameplateInfo) GetName ¶
func (m *NameplateInfo) GetName() string
func (*NameplateInfo) GetNid ¶
func (m *NameplateInfo) GetNid() int
func (*NameplateInfo) Marshal ¶
func (m *NameplateInfo) Marshal() (dAtA []byte, err error)
func (*NameplateInfo) ProtoMessage ¶
func (*NameplateInfo) ProtoMessage()
func (*NameplateInfo) Reset ¶
func (m *NameplateInfo) Reset()
func (*NameplateInfo) Size ¶
func (m *NameplateInfo) Size() (n int)
func (*NameplateInfo) String ¶
func (m *NameplateInfo) String() string
func (*NameplateInfo) Unmarshal ¶
func (m *NameplateInfo) Unmarshal(dAtA []byte) error
func (*NameplateInfo) XXX_DiscardUnknown ¶
func (m *NameplateInfo) XXX_DiscardUnknown()
func (*NameplateInfo) XXX_Marshal ¶
func (m *NameplateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NameplateInfo) XXX_Merge ¶
func (dst *NameplateInfo) XXX_Merge(src proto.Message)
func (*NameplateInfo) XXX_Size ¶
func (m *NameplateInfo) XXX_Size() int
func (*NameplateInfo) XXX_Unmarshal ¶
func (m *NameplateInfo) XXX_Unmarshal(b []byte) error
type NewExp ¶
type NewExp struct { Mid int64 `json:"mid"` Exp int64 `json:"exp"` Flag int32 `json:"flag"` Addtime xtime.Time `json:"addtime"` Mtime xtime.Time `json:"mtime"` }
NewExp userexp for mysql scan.
func (*NewExp) FlagDailyReset ¶
FlagDailyReset reset daily flag with ts.
type NotifyInfo ¶
type NotifyInfo struct { Uname string `json:"uname"` Mid int64 `json:"mid"` Type string `json:"type"` NewName string `json:"newName"` Action string `json:"action"` }
NotifyInfo notify info.
type Official ¶
type Official struct { Role int8 `json:"role"` Title string `json:"title"` Desc string `json:"desc"` }
Official is.
type OfficialInfo ¶
type OfficialInfo struct { Type int8 `protobuf:"varint,7,opt,name=Type,proto3,casttype=int8" json:"type"` Desc string `protobuf:"bytes,8,opt,name=Desc,proto3" json:"desc"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OfficialInfo) Descriptor ¶
func (*OfficialInfo) Descriptor() ([]byte, []int)
func (*OfficialInfo) GetDesc ¶
func (m *OfficialInfo) GetDesc() string
func (*OfficialInfo) GetType ¶
func (m *OfficialInfo) GetType() int8
func (*OfficialInfo) Marshal ¶
func (m *OfficialInfo) Marshal() (dAtA []byte, err error)
func (*OfficialInfo) ProtoMessage ¶
func (*OfficialInfo) ProtoMessage()
func (*OfficialInfo) Reset ¶
func (m *OfficialInfo) Reset()
func (*OfficialInfo) Size ¶
func (m *OfficialInfo) Size() (n int)
func (*OfficialInfo) String ¶
func (m *OfficialInfo) String() string
func (*OfficialInfo) Unmarshal ¶
func (m *OfficialInfo) Unmarshal(dAtA []byte) error
func (*OfficialInfo) XXX_DiscardUnknown ¶
func (m *OfficialInfo) XXX_DiscardUnknown()
func (*OfficialInfo) XXX_Marshal ¶
func (m *OfficialInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OfficialInfo) XXX_Merge ¶
func (dst *OfficialInfo) XXX_Merge(src proto.Message)
func (*OfficialInfo) XXX_Size ¶
func (m *OfficialInfo) XXX_Size() int
func (*OfficialInfo) XXX_Unmarshal ¶
func (m *OfficialInfo) XXX_Unmarshal(b []byte) error
type PendantInfo ¶
type PendantInfo struct { Pid int `protobuf:"varint,1,opt,name=Pid,proto3,casttype=int" json:"pid"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"` Image string `protobuf:"bytes,3,opt,name=Image,proto3" json:"image"` Expire int `protobuf:"varint,4,opt,name=Expire,proto3,casttype=int" json:"expire"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PendantInfo) Descriptor ¶
func (*PendantInfo) Descriptor() ([]byte, []int)
func (*PendantInfo) GetExpire ¶
func (m *PendantInfo) GetExpire() int
func (*PendantInfo) GetImage ¶
func (m *PendantInfo) GetImage() string
func (*PendantInfo) GetName ¶
func (m *PendantInfo) GetName() string
func (*PendantInfo) GetPid ¶
func (m *PendantInfo) GetPid() int
func (*PendantInfo) Marshal ¶
func (m *PendantInfo) Marshal() (dAtA []byte, err error)
func (*PendantInfo) ProtoMessage ¶
func (*PendantInfo) ProtoMessage()
func (*PendantInfo) Reset ¶
func (m *PendantInfo) Reset()
func (*PendantInfo) Size ¶
func (m *PendantInfo) Size() (n int)
func (*PendantInfo) String ¶
func (m *PendantInfo) String() string
func (*PendantInfo) Unmarshal ¶
func (m *PendantInfo) Unmarshal(dAtA []byte) error
func (*PendantInfo) XXX_DiscardUnknown ¶
func (m *PendantInfo) XXX_DiscardUnknown()
func (*PendantInfo) XXX_Marshal ¶
func (m *PendantInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PendantInfo) XXX_Merge ¶
func (dst *PendantInfo) XXX_Merge(src proto.Message)
func (*PendantInfo) XXX_Size ¶
func (m *PendantInfo) XXX_Size() int
func (*PendantInfo) XXX_Unmarshal ¶
func (m *PendantInfo) XXX_Unmarshal(b []byte) error
type RealnameAlipayApply ¶
type RealnameAlipayApply struct { ID int64 `json:"id"` MID int64 `json:"mid"` Realname string `json:"realname"` Card string `json:"card"` IMG string `json:"img"` Status RealnameApplyStatus `json:"status"` Reason string `json:"reason"` Bizno string `json:"bizno"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RealnameAlipayApply is user alipay apply info from alipay channle.
type RealnameApply ¶
type RealnameApply struct { ID int `json:"id"` MID int64 `json:"mid"` Realname string `json:"realname"` Country int16 `json:"country"` CardType int8 `json:"card_type"` CardNum string `json:"card_num"` CardMD5 string `json:"card_md5"` HandIMG int `json:"hand_img"` FrontIMG int `json:"front_img"` BackIMG int `json:"back_img"` Status int `json:"status"` Operator string `json:"operator"` OperatorID int64 `json:"operator_id"` OperatorTime time.Time `json:"operator_time"` Remark string `json:"remark"` RemarkStatus int8 `json:"remark_status"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RealnameApply is user realname apply info from default channel.
type RealnameApplyImgMessage ¶
type RealnameApplyImgMessage struct { ID int `json:"id"` IMGData string `json:"img_data"` AddTimeStr string `json:"add_time"` AddTimeDB time.Time }
RealnameApplyImgMessage is.
func (*RealnameApplyImgMessage) AddTime ¶
func (r *RealnameApplyImgMessage) AddTime() (t time.Time)
AddTime is.
type RealnameApplyMessage ¶
type RealnameApplyMessage struct { ID int `json:"id"` MID int64 `json:"mid"` Realname string `json:"realname"` Type int `json:"type"` CardDataCanal string `json:"card_data"` CardForSearch string `json:"card_for_search"` FrontIMG int `json:"front_img"` BackIMG int `json:"back_img"` FrontIMG2 int `json:"front_img2"` ApplyTimeUnix int64 `json:"apply_time"` Operater string `json:"operater"` OperaterTimeUnix int64 `json:"operater_time"` Status int8 `json:"status"` Remark string `json:"remark"` RemarkStatus int8 `json:"remark_status"` }
RealnameApplyMessage is.
func (*RealnameApplyMessage) ApplyTime ¶
func (r *RealnameApplyMessage) ApplyTime() (t time.Time)
ApplyTime is.
func (*RealnameApplyMessage) CardData ¶
func (r *RealnameApplyMessage) CardData() (data string)
CardData is.
func (*RealnameApplyMessage) CardMD5 ¶
func (r *RealnameApplyMessage) CardMD5() (res string)
CardMD5 is.
func (*RealnameApplyMessage) CardType ¶
func (r *RealnameApplyMessage) CardType() (t int)
CardType is.
func (*RealnameApplyMessage) OperaterTime ¶
func (r *RealnameApplyMessage) OperaterTime() (t time.Time)
OperaterTime is.
type RealnameApplyStatus ¶
type RealnameApplyStatus int8
RealnameApplyStatus is.
const ( // RealnameApplyStatusPending is. RealnameApplyStatusPending RealnameApplyStatus = iota // RealnameApplyStatusPass is. RealnameApplyStatusPass // RealnameApplyStatusBack is. RealnameApplyStatusBack // RealnameApplyStatusNone is. RealnameApplyStatusNone )
func (RealnameApplyStatus) IsPass ¶
func (r RealnameApplyStatus) IsPass() bool
IsPass return is apply passed
type RealnameChannel ¶
type RealnameChannel int8
RealnameChannel is
const ( RealnameChannelMain RealnameChannel = iota RealnameChannelAlipay )
RealnameChannel enum
type RealnameInfo ¶
type RealnameInfo struct { ID int64 `json:"id"` MID int64 `json:"mid"` Channel RealnameChannel `json:"channel"` Realname string `json:"realname"` Country int `json:"country"` CardType int `json:"card_type"` Card string `json:"card"` CardMD5 string `json:"card_md5"` Status RealnameApplyStatus `json:"status"` Reason string `json:"reason"` CTime time.Time `json:"ctime"` MTime time.Time `json:"mtime"` }
RealnameInfo is user realname status info
func (*RealnameInfo) DecryptedCard ¶
func (r *RealnameInfo) DecryptedCard() (string, error)
DecryptedCard is
type RealnamePersonMessage ¶
type RealnamePersonMessage struct { MID int64 `json:"mid"` Realname string `json:"realname"` IdentifyCard string `json:"identify_card"` }
RealnamePersonMessage is.