mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
package ai_api_dto
|
|
|
|
import (
|
|
"github.com/eolinker/go-common/auto"
|
|
)
|
|
|
|
type API struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
Path string `json:"path"`
|
|
Description string `json:"description"`
|
|
Disable bool `json:"disable"`
|
|
AiPrompt *AiPrompt `json:"ai_prompt"`
|
|
AiModel *AiModel `json:"ai_model"`
|
|
Timeout int `json:"timeout"`
|
|
Retry int `json:"retry"`
|
|
}
|
|
|
|
type APIItem struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
RequestPath string `json:"request_path"`
|
|
Description string `json:"description"`
|
|
Disable bool `json:"disable"`
|
|
Creator auto.Label `json:"creator" aolabel:"user"`
|
|
Updater auto.Label `json:"updater" aolabel:"user"`
|
|
CreateTime auto.TimeLabel `json:"create_time"`
|
|
UpdateTime auto.TimeLabel `json:"update_time"`
|
|
Model ModelItem `json:"model"`
|
|
}
|
|
|
|
type ModelItem struct {
|
|
Id string `json:"id"`
|
|
Logo string `json:"logo"`
|
|
}
|