mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
25 lines
500 B
Go
25 lines
500 B
Go
package function
|
|
|
|
import "chatplus/core/types"
|
|
|
|
type Function interface {
|
|
Invoke(...interface{}) (string, error)
|
|
Name() string
|
|
}
|
|
|
|
type resVo struct {
|
|
Code types.BizCode `json:"code"`
|
|
Message string `json:"message"`
|
|
Data struct {
|
|
Title string `json:"title"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
Items []dataItem `json:"items"`
|
|
} `json:"data"`
|
|
}
|
|
|
|
type dataItem struct {
|
|
Title string `json:"title"`
|
|
Url string `json:"url"`
|
|
Remark string `json:"remark"`
|
|
}
|