account

package
v1.0.3-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoVupAttentionError = errors.New("no vup attention")
View Source
var UserNotFoundError = errors.New("user not found")

Functions

This section is empty.

Types

type BiliAccountType

type BiliAccountType struct {
	Type string `json:"type"`
	Id   string `json:"id"`
}

type User

type User struct {
	UID           int64     `json:"uid"`
	Name          string    `json:"username"`
	Rank          int       `json:"rank"`
	Sex           string    `json:"sex"`
	Face          string    `json:"face"`
	FaceFile      string    `json:"face_file"`
	Sign          string    `json:"sign"`
	Coins         float64   `json:"coins"`
	RegTime       int       `json:"regtime"`
	Fans          int       `json:"fans"`
	Attention     int       `json:"attention"`
	AttentionSum  int       `json:"attention_sum"`
	CurrentExp    int       `json:"current_exp"`
	Attentions    []int64   `json:"attentions"`
	VupAttentions []Vup     `json:"vup_attentions"`
	UserGuard     UserGuard `json:"user_guard"`
	Permit        bool      `json:"permit"`
}

func (*User) GetUser

func (u *User) GetUser() error

type UserGuard

type UserGuard struct {
	Uname string    `json:"uname"`
	Face  string    `json:"face"`
	Mid   int64     `json:"mid"`
	Dd    [][]int64 `json:"dd"`
}

type Vup

type Vup struct {
	Mid    int64  `json:"mid"`
	Uname  string `json:"uname"`
	RoomId int64  `json:"roomid"`
	Living bool   `json:"living"`
	IsBot  bool   `json:"is_bot"`
	Group  string `json:"group"`
}

type VupInfo

type VupInfo struct {
	Accounts struct {
		Bilibili interface{} `json:"bilibili"`
	} `json:"accounts"`
	Group string `json:"group"`
	Bot   bool   `json:"bot"`
}

Jump to

Keyboard shortcuts

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