network

package
v0.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MakeUrl

func MakeUrl(OID string)

构建网址

func MatchReplies

func MatchReplies(uid, pwd string) (bool, error)

检查回复

func ReplaceData

func ReplaceData(text string, post *data.Post) string

替换通配符

func Webhook

func Webhook(p *data.Post)

回调博文

Types

type ApiData

type ApiData struct {
	Code int       `json:"code"`
	Data []Replies `json:"data"`
}

type Replies

type Replies struct {
	Member struct {
		Mid   string `json:"mid"`
		Uname string `json:"uname"`
	} `json:"member"`
	Content struct {
		Message string `json:"message"`
	} `json:"content"`
}

func GetReplies

func GetReplies() ([]Replies, error)

返回最近回复

Jump to

Keyboard shortcuts

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