Help us shape the future of Go! Take the 2026 Go Developer Survey

hitokoto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHitokotoHandler

func GetHitokotoHandler(ctx context.Context, targetID, quoteID, authorID string, args ...string) (err error)

GetHitokotoHandler 获取一言

@param targetID
@param msgID
@param authorID
@param args
@return err

Types

type RespBody

type RespBody struct {
	ID         int         `json:"id"`
	UUID       string      `json:"uuid"`
	Hitokoto   string      `json:"hitokoto"`
	Type       string      `json:"type"`
	From       string      `json:"from"`
	FromWho    interface{} `json:"from_who"`
	Creator    string      `json:"creator"`
	CreatorUID int         `json:"creator_uid"`
	Reviewer   int         `json:"reviewer"`
	CommitFrom string      `json:"commit_from"`
	CreatedAt  string      `json:"created_at"`
	Length     int         `json:"length"`
}

RespBody 一言返回体

func GetHitokoto

func GetHitokoto(field ...string) (hitokotoRes RespBody, err error)

GetHitokoto 获取一言

@param parameters

Jump to

Keyboard shortcuts

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