model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	// FlagNo 否
	FlagNo = int32(0)
	// FlagYes 是
	FlagYes = int32(1)
	// ExpFlagOnLogin 每日登录经验
	ExpFlagOnLogin = int32(1)
	// ExpFlagOnShare 每日分享经验
	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 分享奖励动作
	ExpActOnShare = int64(4)
	// ExpActOnEmail 绑定邮箱动作
	ExpActOnEmail = int64(5)
	// ExpActOnPhone 绑定手机动作
	ExpActOnPhone = int64(6)
	// ExpActOnSafe 绑定密保动作
	ExpActOnSafe = int64(7)
	// ExpActOnIdentify 实名认证动作
	ExpActOnIdentify = int64(8)
)
View Source
const (
	ActUpdateExp   = "updateExp"
	ActUpdateLevel = "updateLevel"
	ActUpdateFace  = "updateFace"
	ActUpdateMoral = "updateMoral"
	ActUpdateUname = "updateUname"
)

consts

View Source
const (
	OfficialRoleUnauth = iota
	OfficialRoleUp
	OfficialRoleIdentify
	OfficialRoleBusiness
	OfficialRoleGov
	OfficialRoleMedia
	OfficialRoleOther
)

official role const.

View Source
const (
	// RealnameCountryChina is.
	RealnameCountryChina = 0
	// RealnameCardTypeIdentity is.
	RealnameCardTypeIdentity = 0
)

Variables

View Source
var (
	ErrInvalidLengthMember = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMember   = fmt.Errorf("proto: integer overflow")
)
View Source
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

func RestrictDate

func RestrictDate(xt xtime.Time) xtime.Time

RestrictDate restric user brithday

func UUID4

func UUID4() string

UUID4 is generate uuid

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) Descriptor() ([]byte, []int)

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) GetFace

func (m *BaseInfo) GetFace() string

func (*BaseInfo) GetMTime

func (m *BaseInfo) GetMTime() go_common_library_time.Time

func (*BaseInfo) GetMid

func (m *BaseInfo) GetMid() int64

func (*BaseInfo) GetName

func (m *BaseInfo) GetName() string

func (*BaseInfo) GetRank

func (m *BaseInfo) GetRank() int64

func (*BaseInfo) GetSex

func (m *BaseInfo) GetSex() int64

func (*BaseInfo) GetSign

func (m *BaseInfo) GetSign() string

func (*BaseInfo) Marshal

func (m *BaseInfo) Marshal() (dAtA []byte, err error)

func (*BaseInfo) MarshalTo

func (m *BaseInfo) MarshalTo(dAtA []byte) (int, error)

func (*BaseInfo) ProtoMessage

func (*BaseInfo) ProtoMessage()

func (*BaseInfo) RandFaceURL

func (b *BaseInfo) RandFaceURL()

RandFaceURL get face URL

func (*BaseInfo) Reset

func (m *BaseInfo) Reset()

func (*BaseInfo) Size

func (m *BaseInfo) Size() (n int)

func (*BaseInfo) String

func (m *BaseInfo) String() string

func (*BaseInfo) Unmarshal

func (m *BaseInfo) Unmarshal(dAtA []byte) error

func (*BaseInfo) XXX_DiscardUnknown

func (m *BaseInfo) XXX_DiscardUnknown()

func (*BaseInfo) XXX_Marshal

func (m *BaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaseInfo) XXX_Merge

func (dst *BaseInfo) XXX_Merge(src proto.Message)

func (*BaseInfo) XXX_Size

func (m *BaseInfo) XXX_Size() int

func (*BaseInfo) XXX_Unmarshal

func (m *BaseInfo) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

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) GetDating

func (m *Detail) GetDating() int64

func (*Detail) GetMTime

func (m *Detail) GetMTime() go_common_library_time.Time

func (*Detail) GetMarital

func (m *Detail) GetMarital() int64

func (*Detail) GetMid

func (m *Detail) GetMid() int64

func (*Detail) GetPlace

func (m *Detail) GetPlace() int64

func (*Detail) GetTags

func (m *Detail) GetTags() string

func (*Detail) Marshal

func (m *Detail) Marshal() (dAtA []byte, err error)

func (*Detail) MarshalTo

func (m *Detail) MarshalTo(dAtA []byte) (int, error)

func (*Detail) ProtoMessage

func (*Detail) ProtoMessage()

func (*Detail) Reset

func (m *Detail) Reset()

func (*Detail) Size

func (m *Detail) Size() (n int)

func (*Detail) String

func (m *Detail) String() string

func (*Detail) Unmarshal

func (m *Detail) Unmarshal(dAtA []byte) error

func (*Detail) XXX_DiscardUnknown

func (m *Detail) XXX_DiscardUnknown()

func (*Detail) XXX_Marshal

func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Detail) XXX_Merge

func (dst *Detail) XXX_Merge(src proto.Message)

func (*Detail) XXX_Size

func (m *Detail) XXX_Size() int

func (*Detail) XXX_Unmarshal

func (m *Detail) XXX_Unmarshal(b []byte) error

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

type ExpMessage struct {
	Mid int64 `json:"mid"`
	Exp int64 `json:"exp"`
}

ExpMessage exp msg

type ExpOper

type ExpOper struct {
	Flag   int32
	Count  int64
	Oper   string
	Reason string
}

ExpOper exp operation

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.

func (*FaceCheckRes) FacePath

func (fcr *FaceCheckRes) FacePath() string

FacePath is

func (*FaceCheckRes) String

func (fcr *FaceCheckRes) String() string

String is.

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) Descriptor() ([]byte, []int)

func (*LevelInfo) GetCur

func (m *LevelInfo) GetCur() int32

func (*LevelInfo) GetMin

func (m *LevelInfo) GetMin() int32

func (*LevelInfo) GetNextExp

func (m *LevelInfo) GetNextExp() int32

func (*LevelInfo) GetNowExp

func (m *LevelInfo) GetNowExp() int32

func (*LevelInfo) Marshal

func (m *LevelInfo) Marshal() (dAtA []byte, err error)

func (*LevelInfo) MarshalTo

func (m *LevelInfo) MarshalTo(dAtA []byte) (int, error)

func (*LevelInfo) ProtoMessage

func (*LevelInfo) ProtoMessage()

func (*LevelInfo) Reset

func (m *LevelInfo) Reset()

func (*LevelInfo) Size

func (m *LevelInfo) Size() (n int)

func (*LevelInfo) String

func (m *LevelInfo) String() string

func (*LevelInfo) Unmarshal

func (m *LevelInfo) Unmarshal(dAtA []byte) error

func (*LevelInfo) XXX_DiscardUnknown

func (m *LevelInfo) XXX_DiscardUnknown()

func (*LevelInfo) XXX_Marshal

func (m *LevelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LevelInfo) XXX_Merge

func (dst *LevelInfo) XXX_Merge(src proto.Message)

func (*LevelInfo) XXX_Size

func (m *LevelInfo) XXX_Size() int

func (*LevelInfo) XXX_Unmarshal

func (m *LevelInfo) XXX_Unmarshal(b []byte) error

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 MemberMid

type MemberMid struct {
	Mid int64 `json:"mid"`
}

MemberMid member mid

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) MarshalTo

func (m *NameplateInfo) MarshalTo(dAtA []byte) (int, 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

func (e *NewExp) FlagDailyReset(now time.Time)

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.

func FromCert

func FromCert(v *MemberVerify) Official

FromCert 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) MarshalTo

func (m *OfficialInfo) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PendantInfo) MarshalTo(dAtA []byte) (int, 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) Country

func (r *RealnameApplyMessage) Country() (t int)

Country 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.

type UserLog

type UserLog struct {
	Mid     int64             `json:"mid"`
	IP      string            `json:"ip"`
	TS      int64             `json:"ts"`
	LogID   string            `json:"log_id"`
	Content map[string]string `json:"content"`
}

UserLog user log.

Directories

Path Synopsis
Package queue includes a regular queue and a priority queue.
Package queue includes a regular queue and a priority queue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL