user

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuotaReq

type QuotaReq struct {
	Checkfree   types.BoolInt `query:"checkfree"`   // 是否检查免费信息,0为不查,1为查,默认为0
	Checkexpire types.BoolInt `query:"checkexpire"` // 是否检查过期信息,0为不查,1为查,默认为0
}

type QuotaRes

type QuotaRes struct {
	Total  types.SizeB `json:"total"`  // 总空间大小,单位B
	Expire bool        `json:"expire"` // 7天内是否有容量到期
	Used   types.SizeB `json:"used"`   // 已使用大小,单位B
	Free   types.SizeB `json:"free"`   // 免费容量,单位B
}

func GetQuota

func GetQuota(req *QuotaReq) (*QuotaRes, error)

type UserInfoReq

type UserInfoReq struct {
	VipVersion string `query:"vip_version"` // 可以选择v2
}

type UserInfoRes

type UserInfoRes struct {
	BaiduName   string        `json:"baidu_name"`   // 百度账号
	NetDiskName string        `json:"netdisk_name"` // 网盘账号
	AvatarUrl   string        `json:"avatar_url"`   // 头像地址
	VipType     types.VipType `json:"vip_type"`     // 会员类型。旧含义0普通用户、1普通会员、2超级会员。指定vip_version字段为v2时,0普通用户、1会员VIP用户、2超级会员SVIP用户
	Uk          int           `json:"uk"`           // 用户ID
}

func GetUserInfo

func GetUserInfo(req *UserInfoReq) (*UserInfoRes, error)

Jump to

Keyboard shortcuts

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