account

package
v0.0.0-...-6c3f072 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExists

func PathExists(path string) bool

func SearchName

func SearchName(Name string) (int64, error)

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