account

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

Documentation

Index

Constants

View Source
const (
	// IsUp is up
	IsUp = 1
	// NotUp not up
	NotUp = 0
)

Variables

View Source
var (
	// IdentifyEnum define
	IdentifyEnum = map[int]string{
		0: "已实名认证",
		1: "根据国家实名制认证的相关要求,您需要换绑一个非170/171的手机号,才能继续进行操作。",
		2: "根据国家实名制认证的相关要求,您需要绑定手机号,才能继续进行操作。",
	}
)

Functions

func IsUper

func IsUper(up *UpInfo) (ok bool)

IsUper judge up auth by archive/article/pic/blink.

Types

type Friend

type Friend struct {
	Mid          int64  `json:"mid"`
	Name         string `json:"name"`
	Face         string `json:"face"`
	Sign         string `json:"sign"`
	Comment      string `json:"comment"`
	ShouldFollow int8   `json:"should_follow"`
}

Friend str

type IdentifyInfo

type IdentifyInfo struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

IdentifyInfo str

type MyInfo

type MyInfo struct {
	Mid          int64           `json:"mid"`
	Name         string          `json:"uname"`
	Face         string          `json:"face"`
	Banned       bool            `json:"banned"`
	Level        int             `json:"level"`
	Activated    bool            `json:"activated"`
	Deftime      time.Time       `json:"deftime"`
	DeftimeEnd   time.Time       `json:"deftime_end"`
	DeftimeMsg   string          `json:"deftime_msg"`
	Commercial   int             `json:"commercial"`
	VideoRate    uint            `json:"video_rate,omitempty"`
	AudioRate    uint            `json:"audio_rate,omitempty"`
	IdentifyInfo *IdentifyInfo   `json:"identify_check"`
	DmSubtitle   bool            `json:"subtitle"`   //弹幕子业务之字幕协同创作
	DymcLottery  bool            `json:"lottery"`    //动态子业务之抽奖
	UploadSize   map[string]bool `json:"uploadsize"` // upload_size <= 8G
}

MyInfo get user info for pre archive.

type SearchUp

type SearchUp struct {
	Mid      int64  `json:"mid"`
	Name     string `json:"name"`
	Face     string `json:"face"`
	IsBlock  bool   `json:"is_block"`
	Relation int    `json:"relation"`
	Silence  int32  `json:"silence"`
}

SearchUp UP主搜索结果

type UpInfo

type UpInfo struct {
	Archive int `json:"archive"`
	Article int `json:"article"`
	Pic     int `json:"pic"`
	Blink   int `json:"blink"`
}

UpInfo up type infos.

Jump to

Keyboard shortcuts

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