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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(in xtime.Time) string

Date convert timestamp to date

func Datetime

func Datetime(in xtime.Time) string

Datetime convert timestamp to date time

func MidKey

func MidKey(mid int64) string

MidKey is

Types

type AccountSummary

type AccountSummary struct {
	MemberBase

	Exp          *MemberExp       `json:"exp"`
	Official     *MemberOfficial  `json:"official"`
	RelationStat *RelationStat    `json:"relation_stat"`
	Block        *BlockSummary    `json:"block"`
	Passport     *PassportSummary `json:"passport"`
}

AccountSummary is

func NewAccountSummary

func NewAccountSummary() *AccountSummary

NewAccountSummary is

func (*AccountSummary) String

func (sum *AccountSummary) String() string

type ArgMid

type ArgMid struct {
	Mid int64 `form:"mid" validate:"required"`
}

ArgMid is

type AsoAccountRegOrigin

type AsoAccountRegOrigin struct {
	Mid        int64 `json:"mid"`
	OriginType int64 `json:"origin_type"`
	RegType    int64 `json:"reg_type"`
}

AsoAccountRegOrigin is

type BlockSummary

type BlockSummary struct {
	EmbedMid
	BlockStatus int64  `json:"block_status"`
	StartTime   string `json:"start_time"`
	EndTime     string `json:"end_time"`
}

BlockSummary is

func (*BlockSummary) Marshal

func (b *BlockSummary) Marshal() (map[string][]byte, error)

Marshal is

type CanalBinLog

type CanalBinLog struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	Old    json.RawMessage `json:"old"`
	New    json.RawMessage `json:"new"`
}

CanalBinLog is

type EmbedMid

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

EmbedMid is

func (*EmbedMid) Key

func (e *EmbedMid) Key() (string, error)

Key is

type MemberBase

type MemberBase struct {
	EmbedMid
	Birthday string `json:"birthday"`
	Face     string `json:"face"`
	Name     string `json:"name"`
	Rank     int64  `json:"rank"`
	Sex      int64  `json:"sex"`
	Sign     string `json:"sign"`
}

MemberBase is

func (*MemberBase) Marshal

func (b *MemberBase) Marshal() (map[string][]byte, error)

Marshal is

type MemberExp

type MemberExp struct {
	EmbedMid
	Exp int64 `json:"exp"`
}

MemberExp is

func (*MemberExp) Marshal

func (e *MemberExp) Marshal() (map[string][]byte, error)

Marshal is

type MemberOfficial

type MemberOfficial struct {
	EmbedMid
	Role        int64  `json:"role"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

MemberOfficial is

func (*MemberOfficial) Marshal

func (o *MemberOfficial) Marshal() (map[string][]byte, error)

Marshal is

type MidBinLog

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

MidBinLog is

type PassportProfile

type PassportProfile struct {
	Mid          int64      `json:"mid"`
	UName        string     `json:"uname"`
	UserID       string     `json:"user_id"`
	Telphone     string     `json:"telphone"`
	Email        string     `json:"email"`
	NickLock     int        `json:"nick_lock"`
	BindQQ       bool       `json:"bind_qq"`
	BindSina     bool       `json:"bind_sina"`
	SpaceSta     int        `json:"spacesta"`
	LoginTime    xtime.Time `json:"login_time"`
	LoginIP      string     `json:"login_ip"`
	JoinIP       string     `json:"join_ip"`
	JoinTime     xtime.Time `json:"join_time"`
	SafeQuestion int        `json:"safe_question"`
	CountryCode  int64      `json:"country_code"`
}

PassportProfile is

func (*PassportProfile) EmailSuffix

func (p *PassportProfile) EmailSuffix() string

EmailSuffix is

func (*PassportProfile) TelStatus

func (p *PassportProfile) TelStatus() int64

TelStatus is

type PassportSummary

type PassportSummary struct {
	EmbedMid
	TelStatus   int64  `json:"tel_status"`
	CountryID   int64  `json:"country_id"`
	JoinIP      string `json:"join_ip"`
	JoinTime    string `json:"join_time"`
	EmailSuffix string `json:"email_suffix"`
	OriginType  int64  `json:"origin_type"`
	RegType     int64  `json:"reg_type"`
}

PassportSummary is

func (*PassportSummary) Marshal

func (p *PassportSummary) Marshal() (map[string][]byte, error)

Marshal is

type RelationStat

type RelationStat struct {
	EmbedMid
	Following int64 `json:"following"`
	Whisper   int64 `json:"whisper"`
	Black     int64 `json:"black"`
	Follower  int64 `json:"follower"`
}

RelationStat is

func (*RelationStat) Marshal

func (r *RelationStat) Marshal() (map[string][]byte, error)

Marshal is

Jump to

Keyboard shortcuts

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