relation

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByMTime

type ByMTime []*relation.Following

ByMTime implements sort.Interface for []model.Following based on the MTime field.

func (ByMTime) Len

func (mt ByMTime) Len() int

func (ByMTime) Less

func (mt ByMTime) Less(i, j int) bool

func (ByMTime) Swap

func (mt ByMTime) Swap(i, j int)

type Following

type Following struct {
	*relation.Following
	Uname          string             `json:"uname"`
	Face           string             `json:"face"`
	Sign           string             `json:"sign"`
	OfficialVerify accv1.OfficialInfo `json:"official_verify"`
	Vip            Vip                `json:"vip"`
	Live           int                `json:"live"`
}

Following is user followinng info.

type Tag

type Tag struct {
	Mid            int64              `json:"mid"`
	Uname          string             `json:"uname"`
	Face           string             `json:"face"`
	Sign           string             `json:"sign"`
	OfficialVerify accv1.OfficialInfo `json:"official_verify"`
	Vip            Vip                `json:"vip"`
	Live           int                `json:"live"`
}

type Vip

type Vip struct {
	Type          int    `json:"vipType"`
	DueDate       int64  `json:"vipDueDate"`
	DueRemark     string `json:"dueRemark"`
	AccessStatus  int    `json:"accessStatus"`
	VipStatus     int    `json:"vipStatus"`
	VipStatusWarn string `json:"vipStatusWarn"`
}

Jump to

Keyboard shortcuts

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