 Documentation
      ¶
      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) ManualReview(request *ManualReviewRequest) (response *ManualReviewResponse, err error)
- func (c *Client) TextModeration(request *TextModerationRequest) (response *TextModerationResponse, err error)
 
- type CodeDetail
- type CodeDetect
- type CodePosition
- type Coordinate
- type CreateFileSampleRequest
- type CreateFileSampleResponse
- type CreateTextSampleRequest
- type CreateTextSampleResponse
- type CustomResult
- type DeleteFileSampleRequest
- type DeleteFileSampleResponse
- type DeleteTextSampleRequest
- type DeleteTextSampleResponse
- type DescribeFileSampleRequest
- type DescribeFileSampleResponse
- type DescribeTextSampleRequest
- type DescribeTextSampleResponse
- type DetailResult
- type Device
- 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 ManualReviewContent
- type ManualReviewData
- type ManualReviewRequest
- type ManualReviewResponse
- type OCRDetect
- type OCRItem
- type PhoneDetect
- type RiskDetails
- type RrectF
- type Similar
- type TextData
- type TextModerationRequest
- type TextModerationResponse
- type TextOutputComm
- type TextOutputID
- type TextOutputRes
- type TextSample
- type User
Constants ¶
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) ManualReview ¶
func (c *Client) ManualReview(request *ManualReviewRequest) (response *ManualReviewResponse, err error)
人工审核对外接口
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 Coordinate ¶
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTextSampleResponse) ToJsonString ¶
func (r *CreateTextSampleResponse) ToJsonString() string
type CustomResult ¶
type CustomResult struct {
	// 命中的自定义关键词
	Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
	// 自定义库id
	LibId *string `json:"LibId,omitempty" name:"LibId"`
	// 自定义词库名称
	LibName *string `json:"LibName,omitempty" name:"LibName"`
	// 命中的自定义关键词的类型
	Type *string `json:"Type,omitempty" name:"Type"`
}
    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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTextSampleResponse) ToJsonString ¶
func (r *DescribeTextSampleResponse) ToJsonString() string
type DetailResult ¶
type DetailResult struct {
	// 恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词
	EvilLabel *string `json:"EvilLabel,omitempty" name:"EvilLabel"`
	// 恶意类型
	// 100:正常
	// 20001:政治
	// 20002:色情
	// 20006:涉毒违法
	// 20007:谩骂
	// 20105:广告引流
	// 24001:暴恐
	EvilType *uint64 `json:"EvilType,omitempty" name:"EvilType"`
	// 该标签下命中的关键词
	Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
	// 该标签模型命中的分值
	Score *uint64 `json:"Score,omitempty" name:"Score"`
}
    type Device ¶
type Device struct {
	// 设备指纹ID
	DeviceId *string `json:"DeviceId,omitempty" name:"DeviceId"`
	// IOS设备,Identifier For Advertising(广告标识符)
	IDFA *string `json:"IDFA,omitempty" name:"IDFA"`
	// IOS设备,IDFV - Identifier For Vendor(应用开发商标识符)
	IDFV *string `json:"IDFV,omitempty" name:"IDFV"`
	// 设备序列号
	IMEI *string `json:"IMEI,omitempty" name:"IMEI"`
	// 用户IP
	IP *string `json:"IP,omitempty" name:"IP"`
	// Mac地址
	Mac *string `json:"Mac,omitempty" name:"Mac"`
	// 设备指纹Token
	TokenId *string `json:"TokenId,omitempty" name:"TokenId"`
}
    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:添加处理中
	// 3:下载中
	// 4:下载完成
	// 5:上传完成
	// 6:步骤完成
	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"`
	// 手机检测详情
	PhoneDetect *PhoneDetect `json:"PhoneDetect,omitempty" name:"PhoneDetect"`
	// 图片涉政详情
	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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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 ManualReviewContent ¶
type ManualReviewContent struct {
	// 审核批次号
	BatchId *string `json:"BatchId,omitempty" name:"BatchId"`
	// 审核内容
	Content *string `json:"Content,omitempty" name:"Content"`
	// 消息Id
	ContentId *string `json:"ContentId,omitempty" name:"ContentId"`
	// 审核内容类型 1 图片 2 视频 3 文本 4 音频
	ContentType *int64 `json:"ContentType,omitempty" name:"ContentType"`
	// 用户信息
	UserInfo *User `json:"UserInfo,omitempty" name:"UserInfo"`
	// 机器审核类型,与腾讯机器审核定义一致
	// 100 正常
	// 20001 政治
	// 20002 色情
	// 20006 违法
	// 20007 谩骂
	// 24001 暴恐
	// 20105 广告
	// 20103 性感
	AutoDetailCode *int64 `json:"AutoDetailCode,omitempty" name:"AutoDetailCode"`
	// 机器审核结果 0 放过 1 拦截
	AutoResult *int64 `json:"AutoResult,omitempty" name:"AutoResult"`
	// 回调信息标识,回传数据时原样返回
	CallBackInfo *string `json:"CallBackInfo,omitempty" name:"CallBackInfo"`
	// 创建时间 格式“2020-01-01 00:00:12”
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
	// 审核优先级,可选值 [1,2,3,4],其中 1 最高,4 最低
	Priority *int64 `json:"Priority,omitempty" name:"Priority"`
	// 标题
	Title *string `json:"Title,omitempty" name:"Title"`
}
    type ManualReviewData ¶
type ManualReviewRequest ¶
type ManualReviewRequest struct {
	*tchttp.BaseRequest
	// 人工审核信息
	ReviewContent *ManualReviewContent `json:"ReviewContent,omitempty" name:"ReviewContent"`
}
    func NewManualReviewRequest ¶
func NewManualReviewRequest() (request *ManualReviewRequest)
func (*ManualReviewRequest) FromJsonString ¶
func (r *ManualReviewRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManualReviewRequest) ToJsonString ¶
func (r *ManualReviewRequest) ToJsonString() string
type ManualReviewResponse ¶
type ManualReviewResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 人审接口同步响应结果
		Data *ManualReviewData `json:"Data,omitempty" name:"Data"`
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewManualReviewResponse ¶
func NewManualReviewResponse() (response *ManualReviewResponse)
func (*ManualReviewResponse) FromJsonString ¶
func (r *ManualReviewResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManualReviewResponse) ToJsonString ¶
func (r *ManualReviewResponse) ToJsonString() string
type OCRItem ¶
type OCRItem struct {
	// 检测到的文本坐标信息
	TextPosition *Coordinate `json:"TextPosition,omitempty" name:"TextPosition"`
	// 文本命中具体标签
	EvilLabel *string `json:"EvilLabel,omitempty" name:"EvilLabel"`
	// 文本命中恶意违规类型
	EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
	// 文本命中违规的关键词
	Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
	// 文本涉嫌违规分值
	Rate *int64 `json:"Rate,omitempty" name:"Rate"`
	// 检测到的文本信息
	TextContent *string `json:"TextContent,omitempty" name:"TextContent"`
}
    type PhoneDetect ¶
type PhoneDetect struct {
	// 恶意类型
	// 100:正常
	// 21000:综合
	EvilType *int64 `json:"EvilType,omitempty" name:"EvilType"`
	// 处置判定 0:正常 1:可疑
	HitFlag *int64 `json:"HitFlag,omitempty" name:"HitFlag"`
	// 特征中文描述
	Labels []*string `json:"Labels,omitempty" name:"Labels" list`
	// 分值范围 0-100,分数越高倾向越明显
	Score *int64 `json:"Score,omitempty" name:"Score"`
}
    type RiskDetails ¶
type RiskDetails struct {
	// 预留字段,暂时不使用
	Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
	// 风险类别,RiskAccount,RiskIP, RiskIMEI
	Label *string `json:"Label,omitempty" name:"Label"`
	// 预留字段,暂时不用
	Lable *string `json:"Lable,omitempty" name:"Lable"`
	// 风险等级,1:疑似,2:恶意
	Level *int64 `json:"Level,omitempty" name:"Level"`
}
    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"`
	// 返回的自定义词库结果
	CustomResult []*CustomResult `json:"CustomResult,omitempty" name:"CustomResult" list`
	// 返回的详细结果
	DetailResult []*DetailResult `json:"DetailResult,omitempty" name:"DetailResult" list`
	// 消息类ID信息
	ID *TextOutputID `json:"ID,omitempty" name:"ID"`
	// 消息类输出结果
	Res *TextOutputRes `json:"Res,omitempty" name:"Res"`
	// 账号风险检测结果
	RiskDetails []*RiskDetails `json:"RiskDetails,omitempty" name:"RiskDetails" list`
	// 最终使用的BizType
	BizType *uint64 `json:"BizType,omitempty" name:"BizType"`
	// 和请求中的DataId一致,原样返回
	DataId *string `json:"DataId,omitempty" name:"DataId"`
	// 恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词
	EvilLabel *string `json:"EvilLabel,omitempty" name:"EvilLabel"`
	// 输出的其他信息,不同客户内容不同
	Extra *string `json:"Extra,omitempty" name:"Extra"`
	// 命中的关键词
	Keywords []*string `json:"Keywords,omitempty" name:"Keywords" list`
	// 命中的模型分值
	Score *uint64 `json:"Score,omitempty" name:"Score"`
	// 建议值,Block:打击,Review:待复审,Normal:正常
	Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"`
}
    type TextModerationRequest ¶
type TextModerationRequest struct {
	*tchttp.BaseRequest
	// 文本内容Base64编码。原文长度需小于15000字节,即5000个汉字以内。
	Content *string `json:"Content,omitempty" name:"Content"`
	// 设备相关信息
	Device *Device `json:"Device,omitempty" name:"Device"`
	// 用户相关信息
	User *User `json:"User,omitempty" name:"User"`
	// 该字段用于标识业务场景。您可以在内容安全控制台创建对应的ID,配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略
	BizType *uint64 `json:"BizType,omitempty" name:"BizType"`
	// 数据ID,英文字母、下划线、-组成,不超过64个字符
	DataId *string `json:"DataId,omitempty" name:"DataId"`
	// 业务应用ID
	SdkAppId *uint64 `json:"SdkAppId,omitempty" name:"SdkAppId"`
}
    func NewTextModerationRequest ¶
func NewTextModerationRequest() (request *TextModerationRequest)
func (*TextModerationRequest) FromJsonString ¶
func (r *TextModerationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
}
    type User ¶
type User struct {
	// 账号类别,"1-微信uin 2-QQ号 3-微信群uin 4-qq群号 5-微信openid 6-QQopenid 7-其它string"
	AccountType *int64 `json:"AccountType,omitempty" name:"AccountType"`
	// 年龄 默认0 未知
	Age *int64 `json:"Age,omitempty" name:"Age"`
	// 性别 默认0 未知 1 男性 2 女性
	Gender *int64 `json:"Gender,omitempty" name:"Gender"`
	// 用户等级,默认0 未知 1 低 2 中 3 高
	Level *int64 `json:"Level,omitempty" name:"Level"`
	// 用户昵称
	Nickname *string `json:"Nickname,omitempty" name:"Nickname"`
	// 手机号
	Phone *string `json:"Phone,omitempty" name:"Phone"`
	// 用户账号ID,如填写,会根据账号历史恶意情况,判定消息有害结果,特别是有利于可疑恶意情况下的辅助判断。账号可以填写微信uin、QQ号、微信openid、QQopenid、字符串等。该字段和账号类别确定唯一账号。
	UserId *string `json:"UserId,omitempty" name:"UserId"`
}