Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateFileSample(request *CreateFileSampleRequest) (response *CreateFileSampleResponse, err error)
- func (c *Client) CreateTextSample(request *CreateTextSampleRequest) (response *CreateTextSampleResponse, err error)
- func (c *Client) DeleteFileSample(request *DeleteFileSampleRequest) (response *DeleteFileSampleResponse, err error)
- func (c *Client) DeleteTextSample(request *DeleteTextSampleRequest) (response *DeleteTextSampleResponse, err error)
- func (c *Client) DescribeFileSample(request *DescribeFileSampleRequest) (response *DescribeFileSampleResponse, err error)
- func (c *Client) DescribeTextSample(request *DescribeTextSampleRequest) (response *DescribeTextSampleResponse, err error)
- func (c *Client) ImageModeration(request *ImageModerationRequest) (response *ImageModerationResponse, err error)
- func (c *Client) TextModeration(request *TextModerationRequest) (response *TextModerationResponse, err error)
- type CodeDetail
- type CodeDetect
- type CodePosition
- type CreateFileSampleRequest
- type CreateFileSampleResponse
- type CreateTextSampleRequest
- type CreateTextSampleResponse
- type DeleteFileSampleRequest
- type DeleteFileSampleResponse
- type DeleteTextSampleRequest
- type DeleteTextSampleResponse
- type DescribeFileSampleRequest
- type DescribeFileSampleResponse
- type DescribeTextSampleRequest
- type DescribeTextSampleResponse
- type FileSample
- type FileSampleInfo
- type Filter
- type ImageData
- type ImageHotDetect
- type ImageIllegalDetect
- type ImageModerationRequest
- type ImageModerationResponse
- type ImagePolityDetect
- type ImagePornDetect
- type ImageTerrorDetect
- type Logo
- type LogoDetail
- type OCRDetect
- type RrectF
- type Similar
- type TextData
- type TextModerationRequest
- type TextModerationResponse
- type TextOutputComm
- type TextOutputID
- type TextOutputRes
- type TextSample
Constants ¶
View Source
const APIVersion = "2019-03-21"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateFileSample ¶
func (c *Client) CreateFileSample(request *CreateFileSampleRequest) (response *CreateFileSampleResponse, err error)
本文档适用于图片内容安全、视频内容安全自定义识别库的管理。 <br> 通过该接口可以将图片新增到样本库。
func (*Client) CreateTextSample ¶
func (c *Client) CreateTextSample(request *CreateTextSampleRequest) (response *CreateTextSampleResponse, err error)
本文档适用于文本内容安全、音频内容安全自定义识别库的管理。 <br> 通过该接口可以将文本新增到样本库。
func (*Client) DeleteFileSample ¶
func (c *Client) DeleteFileSample(request *DeleteFileSampleRequest) (response *DeleteFileSampleResponse, err error)
本文档适用于图片内容安全、视频内容安全自定义识别库的管理。 <br> 删除图片样本库,支持批量删除,一次提交不超过20个。
func (*Client) DeleteTextSample ¶
func (c *Client) DeleteTextSample(request *DeleteTextSampleRequest) (response *DeleteTextSampleResponse, err error)
本文档适用于文本内容安全、音频内容安全自定义识别库的管理。 <br> 删除文本样本库,暂时只支持单个删除。
func (*Client) DescribeFileSample ¶
func (c *Client) DescribeFileSample(request *DescribeFileSampleRequest) (response *DescribeFileSampleResponse, err error)
本文档适用于图片内容安全、视频内容安全自定义识别库的管理。 <br> 查询图片样本库,支持批量查询。
func (*Client) DescribeTextSample ¶
func (c *Client) DescribeTextSample(request *DescribeTextSampleRequest) (response *DescribeTextSampleResponse, err error)
本文档适用于文本内容安全、音频内容安全自定义识别库的管理。 <br> 支持批量查询文本样本库。
func (*Client) ImageModeration ¶
func (c *Client) ImageModeration(request *ImageModerationRequest) (response *ImageModerationResponse, err error)
图片内容检测服务(Image Moderation, IM)能自动扫描图片,识别涉黄、涉恐、涉政、涉毒等有害内容,同时支持用户配置图片黑名单,打击自定义的违规图片。
func (*Client) TextModeration ¶
func (c *Client) TextModeration(request *TextModerationRequest) (response *TextModerationResponse, err error)
文本内容检测(Text Moderation)服务使用了深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。
type CodeDetail ¶
type CodeDetail struct {
// 二维码在图片中的位置,由边界点的坐标表示
CodePosition []*CodePosition `json:"CodePosition,omitempty" name:"CodePosition" list`
// 二维码文本的编码格式
CodeCharset *string `json:"CodeCharset,omitempty" name:"CodeCharset"`
// 二维码的文本内容
CodeText *string `json:"CodeText,omitempty" name:"CodeText"`
// 二维码的类型:1:ONED_BARCODE,2:QRCOD,3:WXCODE,4:PDF417,5:DATAMATRIX
CodeType *int64 `json:"CodeType,omitempty" name:"CodeType"`
}
type CodeDetect ¶
type CodeDetect struct {
// 从图片中检测到的二维码,可能为多个
ModerationDetail []*CodeDetail `json:"ModerationDetail,omitempty" name:"ModerationDetail" list`
// 检测是否成功,0:成功,-1:出错
ModerationCode *int64 `json:"ModerationCode,omitempty" name:"ModerationCode"`
}
type CodePosition ¶
type CreateFileSampleRequest ¶
type CreateFileSampleRequest struct {
*tchttp.BaseRequest
// 文件类型结构数组
Contents []*FileSample `json:"Contents,omitempty" name:"Contents" list`
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 24001:暴恐
// 20105:广告引流
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// image:图片
FileType *string `json:"FileType,omitempty" name:"FileType"`
// 样本类型
// 1:黑库
// 2:白库
Label *uint64 `json:"Label,omitempty" name:"Label"`
}
func NewCreateFileSampleRequest ¶
func NewCreateFileSampleRequest() (request *CreateFileSampleRequest)
func (*CreateFileSampleRequest) FromJsonString ¶
func (r *CreateFileSampleRequest) FromJsonString(s string) error
func (*CreateFileSampleRequest) ToJsonString ¶
func (r *CreateFileSampleRequest) ToJsonString() string
type CreateFileSampleResponse ¶
type CreateFileSampleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 任务状态
// 1:已完成
// 2:处理中
Progress *uint64 `json:"Progress,omitempty" name:"Progress"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateFileSampleResponse ¶
func NewCreateFileSampleResponse() (response *CreateFileSampleResponse)
func (*CreateFileSampleResponse) FromJsonString ¶
func (r *CreateFileSampleResponse) FromJsonString(s string) error
func (*CreateFileSampleResponse) ToJsonString ¶
func (r *CreateFileSampleResponse) ToJsonString() string
type CreateTextSampleRequest ¶
type CreateTextSampleRequest struct {
*tchttp.BaseRequest
// 关键词数组
Contents []*string `json:"Contents,omitempty" name:"Contents" list`
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 24001:暴恐
// 20105:广告引流
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 样本类型
// 1:黑库
// 2:白库
Label *uint64 `json:"Label,omitempty" name:"Label"`
// 测试修改参数
Test *string `json:"Test,omitempty" name:"Test"`
}
func NewCreateTextSampleRequest ¶
func NewCreateTextSampleRequest() (request *CreateTextSampleRequest)
func (*CreateTextSampleRequest) FromJsonString ¶
func (r *CreateTextSampleRequest) FromJsonString(s string) error
func (*CreateTextSampleRequest) ToJsonString ¶
func (r *CreateTextSampleRequest) ToJsonString() string
type CreateTextSampleResponse ¶
type CreateTextSampleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 操作样本失败时返回的错误信息示例: "样本1":错误码,"样本2":错误码
ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
// 任务状态
// 1:已完成
// 2:处理中
Progress *uint64 `json:"Progress,omitempty" name:"Progress"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateTextSampleResponse ¶
func NewCreateTextSampleResponse() (response *CreateTextSampleResponse)
func (*CreateTextSampleResponse) FromJsonString ¶
func (r *CreateTextSampleResponse) FromJsonString(s string) error
func (*CreateTextSampleResponse) ToJsonString ¶
func (r *CreateTextSampleResponse) ToJsonString() string
type DeleteFileSampleRequest ¶
type DeleteFileSampleRequest struct {
*tchttp.BaseRequest
// 唯一标识数组
Ids []*string `json:"Ids,omitempty" name:"Ids" list`
}
func NewDeleteFileSampleRequest ¶
func NewDeleteFileSampleRequest() (request *DeleteFileSampleRequest)
func (*DeleteFileSampleRequest) FromJsonString ¶
func (r *DeleteFileSampleRequest) FromJsonString(s string) error
func (*DeleteFileSampleRequest) ToJsonString ¶
func (r *DeleteFileSampleRequest) ToJsonString() string
type DeleteFileSampleResponse ¶
type DeleteFileSampleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 任务状态
// 1:已完成
// 2:处理中
Progress *uint64 `json:"Progress,omitempty" name:"Progress"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteFileSampleResponse ¶
func NewDeleteFileSampleResponse() (response *DeleteFileSampleResponse)
func (*DeleteFileSampleResponse) FromJsonString ¶
func (r *DeleteFileSampleResponse) FromJsonString(s string) error
func (*DeleteFileSampleResponse) ToJsonString ¶
func (r *DeleteFileSampleResponse) ToJsonString() string
type DeleteTextSampleRequest ¶
type DeleteTextSampleRequest struct {
*tchttp.BaseRequest
// 唯一标识数组,目前暂时只支持单个删除
Ids []*string `json:"Ids,omitempty" name:"Ids" list`
}
func NewDeleteTextSampleRequest ¶
func NewDeleteTextSampleRequest() (request *DeleteTextSampleRequest)
func (*DeleteTextSampleRequest) FromJsonString ¶
func (r *DeleteTextSampleRequest) FromJsonString(s string) error
func (*DeleteTextSampleRequest) ToJsonString ¶
func (r *DeleteTextSampleRequest) ToJsonString() string
type DeleteTextSampleResponse ¶
type DeleteTextSampleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 任务状态
// 1:已完成
// 2:处理中
Progress *uint64 `json:"Progress,omitempty" name:"Progress"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteTextSampleResponse ¶
func NewDeleteTextSampleResponse() (response *DeleteTextSampleResponse)
func (*DeleteTextSampleResponse) FromJsonString ¶
func (r *DeleteTextSampleResponse) FromJsonString(s string) error
func (*DeleteTextSampleResponse) ToJsonString ¶
func (r *DeleteTextSampleResponse) ToJsonString() string
type DescribeFileSampleRequest ¶
type DescribeFileSampleRequest struct {
*tchttp.BaseRequest
// 支持通过标签值进行筛选
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
// 数量限制,默认为20,最大值为100
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 偏移量,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 升序(asc)还是降序(desc),默认:desc
OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"`
// 按某个字段排序,目前仅支持CreatedAt排序
OrderField *string `json:"OrderField,omitempty" name:"OrderField"`
}
func NewDescribeFileSampleRequest ¶
func NewDescribeFileSampleRequest() (request *DescribeFileSampleRequest)
func (*DescribeFileSampleRequest) FromJsonString ¶
func (r *DescribeFileSampleRequest) FromJsonString(s string) error
func (*DescribeFileSampleRequest) ToJsonString ¶
func (r *DescribeFileSampleRequest) ToJsonString() string
type DescribeFileSampleResponse ¶
type DescribeFileSampleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 符合要求的样本的信息
FileSampleSet []*FileSampleInfo `json:"FileSampleSet,omitempty" name:"FileSampleSet" list`
// 符合要求的样本的数量
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeFileSampleResponse ¶
func NewDescribeFileSampleResponse() (response *DescribeFileSampleResponse)
func (*DescribeFileSampleResponse) FromJsonString ¶
func (r *DescribeFileSampleResponse) FromJsonString(s string) error
func (*DescribeFileSampleResponse) ToJsonString ¶
func (r *DescribeFileSampleResponse) ToJsonString() string
type DescribeTextSampleRequest ¶
type DescribeTextSampleRequest struct {
*tchttp.BaseRequest
// 支持通过标签值进行筛选
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
// 数量限制,默认为20,最大值为100
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 偏移量,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 升序(asc)还是降序(desc),默认:desc
OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"`
// 按某个字段排序,目前仅支持CreatedAt排序
OrderField *string `json:"OrderField,omitempty" name:"OrderField"`
}
func NewDescribeTextSampleRequest ¶
func NewDescribeTextSampleRequest() (request *DescribeTextSampleRequest)
func (*DescribeTextSampleRequest) FromJsonString ¶
func (r *DescribeTextSampleRequest) FromJsonString(s string) error
func (*DescribeTextSampleRequest) ToJsonString ¶
func (r *DescribeTextSampleRequest) ToJsonString() string
type DescribeTextSampleResponse ¶
type DescribeTextSampleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 符合要求的样本的信息
TextSampleSet []*TextSample `json:"TextSampleSet,omitempty" name:"TextSampleSet" list`
// 符合要求的样本的数量
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeTextSampleResponse ¶
func NewDescribeTextSampleResponse() (response *DescribeTextSampleResponse)
func (*DescribeTextSampleResponse) FromJsonString ¶
func (r *DescribeTextSampleResponse) FromJsonString(s string) error
func (*DescribeTextSampleResponse) ToJsonString ¶
func (r *DescribeTextSampleResponse) ToJsonString() string
type FileSample ¶
type FileSample struct {
// 文件md5
FileMd5 *string `json:"FileMd5,omitempty" name:"FileMd5"`
// 文件名称
FileName *string `json:"FileName,omitempty" name:"FileName"`
// 文件url
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
// 文件压缩后云url
CompressFileUrl *string `json:"CompressFileUrl,omitempty" name:"CompressFileUrl"`
}
type FileSampleInfo ¶
type FileSampleInfo struct {
// 处理错误码
Code *int64 `json:"Code,omitempty" name:"Code"`
// 创建时间戳
CreatedAt *uint64 `json:"CreatedAt,omitempty" name:"CreatedAt"`
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 24001:暴恐
EvilType *uint64 `json:"EvilType,omitempty" name:"EvilType"`
// 文件的md5
FileMd5 *string `json:"FileMd5,omitempty" name:"FileMd5"`
// 文件名称
FileName *string `json:"FileName,omitempty" name:"FileName"`
// 文件类型
FileType *string `json:"FileType,omitempty" name:"FileType"`
// 唯一标识
Id *string `json:"Id,omitempty" name:"Id"`
// 样本类型
// 1:黑库
// 2:白库
Label *uint64 `json:"Label,omitempty" name:"Label"`
// 任务状态
// 1:已完成
// 2:处理中
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 文件压缩后云url
CompressFileUrl *string `json:"CompressFileUrl,omitempty" name:"CompressFileUrl"`
// 文件的url
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
}
type ImageData ¶
type ImageData struct {
// 是否恶意 0:正常 1:可疑
EvilFlag *int64 `json:"EvilFlag,omitempty" name:"EvilFlag"`
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 20103:性感
// 24001:暴恐
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 图片二维码详情
CodeDetect *CodeDetect `json:"CodeDetect,omitempty" name:"CodeDetect"`
// 图片性感详情
HotDetect *ImageHotDetect `json:"HotDetect,omitempty" name:"HotDetect"`
// 图片违法详情
IllegalDetect *ImageIllegalDetect `json:"IllegalDetect,omitempty" name:"IllegalDetect"`
// logo详情
LogoDetect *LogoDetail `json:"LogoDetect,omitempty" name:"LogoDetect"`
// 图片OCR详情
OCRDetect *OCRDetect `json:"OCRDetect,omitempty" name:"OCRDetect"`
// 图片涉政详情
PolityDetect *ImagePolityDetect `json:"PolityDetect,omitempty" name:"PolityDetect"`
// 图片涉黄详情
PornDetect *ImagePornDetect `json:"PornDetect,omitempty" name:"PornDetect"`
// 图片相似度详情
Similar *Similar `json:"Similar,omitempty" name:"Similar"`
// 图片暴恐详情
TerrorDetect *ImageTerrorDetect `json:"TerrorDetect,omitempty" name:"TerrorDetect"`
}
type ImageHotDetect ¶
type ImageHotDetect struct {
// 恶意类型
// 100:正常
// 20103:性感
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 处置判定 0:正常 1:可疑
HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
// 关键词明细
Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
// 性感标签:性感特征中文描述
Labels []*string `json:"Labels,omitempty" name:"Labels" list`
// 性感分:分值范围 0-100,分数越高性感倾向越明显
Score *int64 `json:"Score,omitempty" name:"Score"`
}
type ImageIllegalDetect ¶
type ImageIllegalDetect struct {
// 恶意类型
// 100:正常
// 20006:涉毒违法
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 处置判定 0:正常 1:可疑
HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
// 关键词明细
Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
// 违法标签:返回违法特征中文描述,如赌桌,枪支
Labels []*string `json:"Labels,omitempty" name:"Labels" list`
// 违法分:分值范围 0-100,分数越高违法倾向越明显
Score *int64 `json:"Score,omitempty" name:"Score"`
}
type ImageModerationRequest ¶
type ImageModerationRequest struct {
*tchttp.BaseRequest
// 文件内容 Base64,与FileUrl必须二填一
FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
// 文件MD5值
FileMD5 *string `json:"FileMD5,omitempty" name:"FileMD5"`
// 文件地址
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
}
func NewImageModerationRequest ¶
func NewImageModerationRequest() (request *ImageModerationRequest)
func (*ImageModerationRequest) FromJsonString ¶
func (r *ImageModerationRequest) FromJsonString(s string) error
func (*ImageModerationRequest) ToJsonString ¶
func (r *ImageModerationRequest) ToJsonString() string
type ImageModerationResponse ¶
type ImageModerationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 识别结果
Data *ImageData `json:"Data,omitempty" name:"Data"`
// 业务返回码
BusinessCode *int64 `json:"BusinessCode,omitempty" name:"BusinessCode"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewImageModerationResponse ¶
func NewImageModerationResponse() (response *ImageModerationResponse)
func (*ImageModerationResponse) FromJsonString ¶
func (r *ImageModerationResponse) FromJsonString(s string) error
func (*ImageModerationResponse) ToJsonString ¶
func (r *ImageModerationResponse) ToJsonString() string
type ImagePolityDetect ¶
type ImagePolityDetect struct {
// 恶意类型
// 100:正常
// 20001:政治
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 处置判定 0:正常 1:可疑
HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
// 命中的logo标签信息
PolityLogoDetail []*Logo `json:"PolityLogoDetail,omitempty" name:"PolityLogoDetail" list`
// 命中的人脸名称
FaceNames []*string `json:"FaceNames,omitempty" name:"FaceNames" list`
// 关键词明细
Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
// 命中的政治物品名称
PolityItems []*string `json:"PolityItems,omitempty" name:"PolityItems" list`
// 政治(人脸)分:分值范围 0-100,分数越高可疑程度越高
Score *int64 `json:"Score,omitempty" name:"Score"`
}
type ImagePornDetect ¶
type ImagePornDetect struct {
// 恶意类型
// 100:正常
// 20002:色情
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 处置判定 0:正常 1:可疑
HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
// 关键词明细
Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
// 色情标签:色情特征中文描述
Labels []*string `json:"Labels,omitempty" name:"Labels" list`
// 色情分:分值范围 0-100,分数越高色情倾向越明显
Score *int64 `json:"Score,omitempty" name:"Score"`
}
type ImageTerrorDetect ¶
type ImageTerrorDetect struct {
// 恶意类型
// 100:正常
// 24001:暴恐
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 处置判定 0:正常 1:可疑
HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
// 关键词明细
Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
// 暴恐标签:返回暴恐特征中文描述
Labels []*string `json:"Labels,omitempty" name:"Labels" list`
// 暴恐分:分值范围0--100,分数越高暴恐倾向越明显
Score *int64 `json:"Score,omitempty" name:"Score"`
}
type LogoDetail ¶
type LogoDetail struct {
// 命中的Applogo详情
AppLogoDetail []*Logo `json:"AppLogoDetail,omitempty" name:"AppLogoDetail" list`
}
type OCRDetect ¶
type OCRDetect struct {
// 识别到的文本信息
TextInfo *string `json:"TextInfo,omitempty" name:"TextInfo"`
}
type RrectF ¶
type RrectF struct {
// logo横坐标
Cx *float64 `json:"Cx,omitempty" name:"Cx"`
// logo纵坐标
Cy *float64 `json:"Cy,omitempty" name:"Cy"`
// logo图标高度
Height *float64 `json:"Height,omitempty" name:"Height"`
// logo图标中心旋转度
Rotate *float64 `json:"Rotate,omitempty" name:"Rotate"`
// logo图标宽度
Width *float64 `json:"Width,omitempty" name:"Width"`
}
type Similar ¶
type Similar struct {
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 24001:暴恐
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 处置判定 0:未匹配到 1:恶意 2:白样本
HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
// 返回的种子url
SeedUrl *string `json:"SeedUrl,omitempty" name:"SeedUrl"`
}
type TextData ¶
type TextData struct {
// 是否恶意 0:正常 1:可疑
EvilFlag *int64 `json:"EvilFlag,omitempty" name:"EvilFlag"`
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 20105:广告引流
// 24001:暴恐
EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
// 消息类公共相关参数
Common *TextOutputComm `json:"Common,omitempty" name:"Common"`
// 消息类ID信息
ID *TextOutputID `json:"ID,omitempty" name:"ID"`
// 消息类输出结果
Res *TextOutputRes `json:"Res,omitempty" name:"Res"`
// 命中的关键词
Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
}
type TextModerationRequest ¶
type TextModerationRequest struct {
*tchttp.BaseRequest
// 文本内容Base64编码。原文长度需小于15000字节,即5000个汉字以内。
Content *string `json:"Content,omitempty" name:"Content"`
}
func NewTextModerationRequest ¶
func NewTextModerationRequest() (request *TextModerationRequest)
func (*TextModerationRequest) FromJsonString ¶
func (r *TextModerationRequest) FromJsonString(s string) error
func (*TextModerationRequest) ToJsonString ¶
func (r *TextModerationRequest) ToJsonString() string
type TextModerationResponse ¶
type TextModerationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 识别结果
Data *TextData `json:"Data,omitempty" name:"Data"`
// 业务返回码
BusinessCode *int64 `json:"BusinessCode,omitempty" name:"BusinessCode"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewTextModerationResponse ¶
func NewTextModerationResponse() (response *TextModerationResponse)
func (*TextModerationResponse) FromJsonString ¶
func (r *TextModerationResponse) FromJsonString(s string) error
func (*TextModerationResponse) ToJsonString ¶
func (r *TextModerationResponse) ToJsonString() string
type TextOutputComm ¶
type TextOutputComm struct {
// 接入业务的唯一ID
AppID *int64 `json:"AppID,omitempty" name:"AppID"`
// 接口唯一ID,旁路调用接口返回有该字段,标识唯一接口
BUCtrlID *int64 `json:"BUCtrlID,omitempty" name:"BUCtrlID"`
// 消息发送时间
SendTime *int64 `json:"SendTime,omitempty" name:"SendTime"`
// 请求字段里的Common.Uin
Uin *int64 `json:"Uin,omitempty" name:"Uin"`
}
type TextOutputID ¶
type TextOutputRes ¶
type TextOutputRes struct {
// 操作人,信安处理人企业微信ID
Operator *string `json:"Operator,omitempty" name:"Operator"`
// 恶意操作码,
// 删除(1), 通过(2), 先审后发(100012)
ResultCode *int64 `json:"ResultCode,omitempty" name:"ResultCode"`
// 操作结果备注说明
ResultMsg *string `json:"ResultMsg,omitempty" name:"ResultMsg"`
// 恶意类型,广告(10001), 政治(20001), 色情(20002), 社会事件(20004), 暴力(20011), 低俗(20012), 违法犯罪(20006), 欺诈(20008), 版权(20013), 谣言(20104), 其他(21000)
ResultType *int64 `json:"ResultType,omitempty" name:"ResultType"`
}
type TextSample ¶
type TextSample struct {
// 处理错误码
Code *int64 `json:"Code,omitempty" name:"Code"`
// 关键词
Content *string `json:"Content,omitempty" name:"Content"`
// 创建时间戳
CreatedAt *uint64 `json:"CreatedAt,omitempty" name:"CreatedAt"`
// 恶意类型
// 100:正常
// 20001:政治
// 20002:色情
// 20006:涉毒违法
// 20007:谩骂
// 20105:广告引流
// 24001:暴恐
EvilType *uint64 `json:"EvilType,omitempty" name:"EvilType"`
// 唯一标识
Id *string `json:"Id,omitempty" name:"Id"`
// 样本类型
// 1:黑库
// 2:白库
Label *uint64 `json:"Label,omitempty" name:"Label"`
// 任务状态
// 1:已完成
// 2:处理中
Status *uint64 `json:"Status,omitempty" name:"Status"`
}
Click to show internal directories.
Click to hide internal directories.