random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvatarAndBGIMGAndSignature

func GetAvatarAndBGIMGAndSignature() (string, string, string)

func Random

func Random(t RType) (string, error)

Random 用于获取随机头像,个性签名,背景图片, 参数:类型( Avatar、Signature、BackgroundIMG)

Types

type AvatarResponse

type AvatarResponse struct {
	Success bool   `json:"success"`
	Avatar  string `json:"avatar"`
}

type BGResponse

type BGResponse struct {
	Success bool `json:"success"`
	Data    Data `json:"data"`
}

type Data

type Data struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type RType

type RType int
const (
	Avatar RType = iota
	Signature
	BackgroundIMG
)

type SignatureResponse

type SignatureResponse struct {
	Success bool   `json:"success"`
	Ishan   string `json:"ishan"`
}

Jump to

Keyboard shortcuts

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