37 lines
914 B
Go
37 lines
914 B
Go
package model
|
|
|
|
// TextScanRequest 文本审核请求结构
|
|
type TextScanRequest struct {
|
|
Tasks []TextTask `json:"tasks"`
|
|
Scenes []string `json:"scenes"`
|
|
}
|
|
|
|
// TextTask 文本任务结构
|
|
type TextTask struct {
|
|
DataID string `json:"dataId"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
// TextScanResponse 文本审核响应结构
|
|
type TextScanResponse struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Data []struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
DataID string `json:"dataId"`
|
|
Results []struct {
|
|
Scene string `json:"scene"`
|
|
Label string `json:"label"`
|
|
Suggestion string `json:"suggestion"`
|
|
Rate float64 `json:"rate"`
|
|
Details []struct {
|
|
Context struct {
|
|
Context string `json:"context"`
|
|
Pos []int `json:"pos"`
|
|
} `json:"context"`
|
|
} `json:"details"`
|
|
} `json:"results"`
|
|
} `json:"data"`
|
|
}
|