v20200713

package
v1.0.940 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (

	// CAM签名/鉴权错误。
	AUTHFAILURE = "AuthFailure"

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 请求超时。
	INTERNALERROR_ERRTEXTTIMEOUT = "InternalError.ErrTextTimeOut"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 错误的action。
	INVALIDPARAMETER_ERRACTION = "InvalidParameter.ErrAction"

	// 请求的文本长度过长。
	INVALIDPARAMETER_ERRTEXTCONTENTLEN = "InvalidParameter.ErrTextContentLen"

	// 文本类型错误,需要base64的文本。
	INVALIDPARAMETER_ERRTEXTCONTENTTYPE = "InvalidParameter.ErrTextContentType"

	// 参数内容格式错误。
	INVALIDPARAMETER_INVALIDPARAMETERCONTENT = "InvalidParameter.InvalidParameterContent"

	// 参数取值错误。
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// 请求的文本格式错误(需要base64编码格式的文本)。
	INVALIDPARAMETERVALUE_ERRTEXTCONTENTTYPE = "InvalidParameterValue.ErrTextContentType"

	// EvilContent参数太长。
	INVALIDPARAMETERVALUE_INVALIDEVILCONTENT = "InvalidParameterValue.InvalidEvilContent"

	// EvilType取值错误。
	INVALIDPARAMETERVALUE_INVALIDEVILTYPE = "InvalidParameterValue.InvalidEvilType"

	// ReportedAccount参数错误。
	INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNT = "InvalidParameterValue.InvalidReportedAccount"

	// ReportedAccount参数太长。
	INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNTLENGTH = "InvalidParameterValue.InvalidReportedAccountLength"

	// ReportedAccountType参数错误。
	INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNTTYPE = "InvalidParameterValue.InvalidReportedAccountType"

	// SenderAccount参数错误。
	INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNT = "InvalidParameterValue.InvalidSenderAccount"

	// SenderAccount参数太长。
	INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNTLENGTH = "InvalidParameterValue.InvalidSenderAccountLength"

	// SenderAccountType参数错误。
	INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNTTYPE = "InvalidParameterValue.InvalidSenderAccountType"

	// SenderIP参数错误。
	INVALIDPARAMETERVALUE_INVALIDSENDERIP = "InvalidParameterValue.InvalidSenderIP"

	// 超过配额限制。
	LIMITEXCEEDED = "LimitExceeded"

	// 缺少参数错误。
	MISSINGPARAMETER = "MissingParameter"

	// 资源被占用。
	RESOURCEINUSE = "ResourceInUse"

	// 资源不存在。
	RESOURCENOTFOUND = "ResourceNotFound"

	// 未获取到接口授权。
	UNAUTHORIZEDOPERATION_UNAUTHORIZED = "UnauthorizedOperation.Unauthorized"
)
View Source
const APIVersion = "2020-07-13"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountTipoffAccessRequest

type AccountTipoffAccessRequest struct {
	*tchttp.BaseRequest

	// 被举报账号,长度低于 128 个字符
	ReportedAccount *string `json:"ReportedAccount,omitnil,omitempty" name:"ReportedAccount"`

	// 被举报账号类型(1-手机号 2-QQ号 3-微信号 4-QQ群号 5-微信openid 6-QQopenid 0-其它)
	ReportedAccountType *int64 `json:"ReportedAccountType,omitnil,omitempty" name:"ReportedAccountType"`

	// 被举报账号所属恶意类型(1-诈骗,2-骚扰,3-广告,4-违法违规,5-赌博传销,0-其他)
	EvilType *int64 `json:"EvilType,omitnil,omitempty" name:"EvilType"`

	// 举报者账号,长度低于 128 个字符
	SenderAccount *string `json:"SenderAccount,omitnil,omitempty" name:"SenderAccount"`

	// 举报者账号类型(1-手机号 2-QQ号 3-微信号 4-QQ群号 5-微信openid 6-QQopenid 0-其它)
	SenderAccountType *int64 `json:"SenderAccountType,omitnil,omitempty" name:"SenderAccountType"`

	// 举报者IP地址
	SenderIP *string `json:"SenderIP,omitnil,omitempty" name:"SenderIP"`

	// 包含被举报账号的恶意内容(比如文本、图片链接,长度低于1024个字符)
	EvilContent *string `json:"EvilContent,omitnil,omitempty" name:"EvilContent"`
}

func NewAccountTipoffAccessRequest

func NewAccountTipoffAccessRequest() (request *AccountTipoffAccessRequest)

func (*AccountTipoffAccessRequest) FromJsonString

func (r *AccountTipoffAccessRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AccountTipoffAccessRequest) ToJsonString

func (r *AccountTipoffAccessRequest) ToJsonString() string

type AccountTipoffAccessRequestParams added in v1.0.426

type AccountTipoffAccessRequestParams struct {
	// 被举报账号,长度低于 128 个字符
	ReportedAccount *string `json:"ReportedAccount,omitnil,omitempty" name:"ReportedAccount"`

	// 被举报账号类型(1-手机号 2-QQ号 3-微信号 4-QQ群号 5-微信openid 6-QQopenid 0-其它)
	ReportedAccountType *int64 `json:"ReportedAccountType,omitnil,omitempty" name:"ReportedAccountType"`

	// 被举报账号所属恶意类型(1-诈骗,2-骚扰,3-广告,4-违法违规,5-赌博传销,0-其他)
	EvilType *int64 `json:"EvilType,omitnil,omitempty" name:"EvilType"`

	// 举报者账号,长度低于 128 个字符
	SenderAccount *string `json:"SenderAccount,omitnil,omitempty" name:"SenderAccount"`

	// 举报者账号类型(1-手机号 2-QQ号 3-微信号 4-QQ群号 5-微信openid 6-QQopenid 0-其它)
	SenderAccountType *int64 `json:"SenderAccountType,omitnil,omitempty" name:"SenderAccountType"`

	// 举报者IP地址
	SenderIP *string `json:"SenderIP,omitnil,omitempty" name:"SenderIP"`

	// 包含被举报账号的恶意内容(比如文本、图片链接,长度低于1024个字符)
	EvilContent *string `json:"EvilContent,omitnil,omitempty" name:"EvilContent"`
}

Predefined struct for user

type AccountTipoffAccessResponse

type AccountTipoffAccessResponse struct {
	*tchttp.BaseResponse
	Response *AccountTipoffAccessResponseParams `json:"Response"`
}

func NewAccountTipoffAccessResponse

func NewAccountTipoffAccessResponse() (response *AccountTipoffAccessResponse)

func (*AccountTipoffAccessResponse) FromJsonString

func (r *AccountTipoffAccessResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AccountTipoffAccessResponse) ToJsonString

func (r *AccountTipoffAccessResponse) ToJsonString() string

type AccountTipoffAccessResponseParams added in v1.0.426

type AccountTipoffAccessResponseParams struct {
	// 举报接口响应数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	Data *TipoffResponse `json:"Data,omitnil,omitempty" name:"Data"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) AccountTipoffAccess

func (c *Client) AccountTipoffAccess(request *AccountTipoffAccessRequest) (response *AccountTipoffAccessResponse, err error)

AccountTipoffAccess 举报恶意账号

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER_ERRACTION = "InvalidParameter.ErrAction"
INVALIDPARAMETER_INVALIDPARAMETERCONTENT = "InvalidParameter.InvalidParameterContent"
INVALIDPARAMETERVALUE_INVALIDEVILCONTENT = "InvalidParameterValue.InvalidEvilContent"
INVALIDPARAMETERVALUE_INVALIDEVILTYPE = "InvalidParameterValue.InvalidEvilType"
INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNT = "InvalidParameterValue.InvalidReportedAccount"
INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNTLENGTH = "InvalidParameterValue.InvalidReportedAccountLength"
INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNTTYPE = "InvalidParameterValue.InvalidReportedAccountType"
INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNT = "InvalidParameterValue.InvalidSenderAccount"
INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNTLENGTH = "InvalidParameterValue.InvalidSenderAccountLength"
INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNTTYPE = "InvalidParameterValue.InvalidSenderAccountType"
INVALIDPARAMETERVALUE_INVALIDSENDERIP = "InvalidParameterValue.InvalidSenderIP"

func (*Client) AccountTipoffAccessWithContext added in v1.0.324

func (c *Client) AccountTipoffAccessWithContext(ctx context.Context, request *AccountTipoffAccessRequest) (response *AccountTipoffAccessResponse, err error)

AccountTipoffAccess 举报恶意账号

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER_ERRACTION = "InvalidParameter.ErrAction"
INVALIDPARAMETER_INVALIDPARAMETERCONTENT = "InvalidParameter.InvalidParameterContent"
INVALIDPARAMETERVALUE_INVALIDEVILCONTENT = "InvalidParameterValue.InvalidEvilContent"
INVALIDPARAMETERVALUE_INVALIDEVILTYPE = "InvalidParameterValue.InvalidEvilType"
INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNT = "InvalidParameterValue.InvalidReportedAccount"
INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNTLENGTH = "InvalidParameterValue.InvalidReportedAccountLength"
INVALIDPARAMETERVALUE_INVALIDREPORTEDACCOUNTTYPE = "InvalidParameterValue.InvalidReportedAccountType"
INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNT = "InvalidParameterValue.InvalidSenderAccount"
INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNTLENGTH = "InvalidParameterValue.InvalidSenderAccountLength"
INVALIDPARAMETERVALUE_INVALIDSENDERACCOUNTTYPE = "InvalidParameterValue.InvalidSenderAccountType"
INVALIDPARAMETERVALUE_INVALIDSENDERIP = "InvalidParameterValue.InvalidSenderIP"

func (*Client) DescribeTextLib

func (c *Client) DescribeTextLib(request *DescribeTextLibRequest) (response *DescribeTextLibResponse, err error)

DescribeTextLib 控制台获取用户词库列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeTextLibWithContext added in v1.0.324

func (c *Client) DescribeTextLibWithContext(ctx context.Context, request *DescribeTextLibRequest) (response *DescribeTextLibResponse, err error)

DescribeTextLib 控制台获取用户词库列表

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
MISSINGPARAMETER = "MissingParameter"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeTextStat

func (c *Client) DescribeTextStat(request *DescribeTextStatRequest) (response *DescribeTextStatResponse, err error)

DescribeTextStat 控制台识别统计

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_ERRTEXTTIMEOUT = "InternalError.ErrTextTimeOut"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = "InvalidParameter.ErrTextContentType"

func (*Client) DescribeTextStatWithContext added in v1.0.324

func (c *Client) DescribeTextStatWithContext(ctx context.Context, request *DescribeTextStatRequest) (response *DescribeTextStatResponse, err error)

DescribeTextStat 控制台识别统计

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_ERRTEXTTIMEOUT = "InternalError.ErrTextTimeOut"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = "InvalidParameter.ErrTextContentType"

func (*Client) TextModeration

func (c *Client) TextModeration(request *TextModerationRequest) (response *TextModerationResponse, err error)

TextModeration 文本内容检测(Text Moderation)服务使用了深度学习技术,识别可能令人反感、不安全或不适宜的文本内容,同时支持用户配置词库黑白名单,打击自定义识别类型的图片。

可能返回的错误码:

INTERNALERROR_ERRTEXTTIMEOUT = "InternalError.ErrTextTimeOut"
INVALIDPARAMETER_ERRACTION = "InvalidParameter.ErrAction"
INVALIDPARAMETER_ERRTEXTCONTENTLEN = "InvalidParameter.ErrTextContentLen"
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = "InvalidParameter.ErrTextContentType"
INVALIDPARAMETERVALUE_ERRTEXTCONTENTTYPE = "InvalidParameterValue.ErrTextContentType"
UNAUTHORIZEDOPERATION_UNAUTHORIZED = "UnauthorizedOperation.Unauthorized"

func (*Client) TextModerationWithContext added in v1.0.324

func (c *Client) TextModerationWithContext(ctx context.Context, request *TextModerationRequest) (response *TextModerationResponse, err error)

TextModeration 文本内容检测(Text Moderation)服务使用了深度学习技术,识别可能令人反感、不安全或不适宜的文本内容,同时支持用户配置词库黑白名单,打击自定义识别类型的图片。

可能返回的错误码:

INTERNALERROR_ERRTEXTTIMEOUT = "InternalError.ErrTextTimeOut"
INVALIDPARAMETER_ERRACTION = "InvalidParameter.ErrAction"
INVALIDPARAMETER_ERRTEXTCONTENTLEN = "InvalidParameter.ErrTextContentLen"
INVALIDPARAMETER_ERRTEXTCONTENTTYPE = "InvalidParameter.ErrTextContentType"
INVALIDPARAMETERVALUE_ERRTEXTCONTENTTYPE = "InvalidParameterValue.ErrTextContentType"
UNAUTHORIZEDOPERATION_UNAUTHORIZED = "UnauthorizedOperation.Unauthorized"

type DescribeTextLibRequest

type DescribeTextLibRequest struct {
	*tchttp.BaseRequest

	// 内容类型 text: 1; image: 2; audio: 3; video: 4
	StrategyType *int64 `json:"StrategyType,omitnil,omitempty" name:"StrategyType"`
}

func NewDescribeTextLibRequest

func NewDescribeTextLibRequest() (request *DescribeTextLibRequest)

func (*DescribeTextLibRequest) FromJsonString

func (r *DescribeTextLibRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTextLibRequest) ToJsonString

func (r *DescribeTextLibRequest) ToJsonString() string

type DescribeTextLibRequestParams added in v1.0.426

type DescribeTextLibRequestParams struct {
	// 内容类型 text: 1; image: 2; audio: 3; video: 4
	StrategyType *int64 `json:"StrategyType,omitnil,omitempty" name:"StrategyType"`
}

Predefined struct for user

type DescribeTextLibResponse

type DescribeTextLibResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTextLibResponseParams `json:"Response"`
}

func NewDescribeTextLibResponse

func NewDescribeTextLibResponse() (response *DescribeTextLibResponse)

func (*DescribeTextLibResponse) FromJsonString

func (r *DescribeTextLibResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTextLibResponse) ToJsonString

func (r *DescribeTextLibResponse) ToJsonString() string

type DescribeTextLibResponseParams added in v1.0.426

type DescribeTextLibResponseParams struct {
	// 文本库id和name列表
	TextLib []*TextLib `json:"TextLib,omitnil,omitempty" name:"TextLib"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeTextStatRequest

type DescribeTextStatRequest struct {
	*tchttp.BaseRequest

	// 审核类型 1: 机器审核; 2: 人工审核
	AuditType *int64 `json:"AuditType,omitnil,omitempty" name:"AuditType"`

	// 查询条件
	Filters []*Filters `json:"Filters,omitnil,omitempty" name:"Filters"`
}

func NewDescribeTextStatRequest

func NewDescribeTextStatRequest() (request *DescribeTextStatRequest)

func (*DescribeTextStatRequest) FromJsonString

func (r *DescribeTextStatRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTextStatRequest) ToJsonString

func (r *DescribeTextStatRequest) ToJsonString() string

type DescribeTextStatRequestParams added in v1.0.426

type DescribeTextStatRequestParams struct {
	// 审核类型 1: 机器审核; 2: 人工审核
	AuditType *int64 `json:"AuditType,omitnil,omitempty" name:"AuditType"`

	// 查询条件
	Filters []*Filters `json:"Filters,omitnil,omitempty" name:"Filters"`
}

Predefined struct for user

type DescribeTextStatResponse

type DescribeTextStatResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTextStatResponseParams `json:"Response"`
}

func NewDescribeTextStatResponse

func NewDescribeTextStatResponse() (response *DescribeTextStatResponse)

func (*DescribeTextStatResponse) FromJsonString

func (r *DescribeTextStatResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTextStatResponse) ToJsonString

func (r *DescribeTextStatResponse) ToJsonString() string

type DescribeTextStatResponseParams added in v1.0.426

type DescribeTextStatResponseParams struct {
	// 识别结果统计
	Overview *Overview `json:"Overview,omitnil,omitempty" name:"Overview"`

	// 识别量统计
	TrendCount []*TrendCount `json:"TrendCount,omitnil,omitempty" name:"TrendCount"`

	// 违规数据分布
	// 注意:此字段可能返回 null,表示取不到有效值。
	EvilCount []*EvilCount `json:"EvilCount,omitnil,omitempty" name:"EvilCount"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DetailResults

type DetailResults struct {
	// 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
	// 以及令人反感、不安全或不适宜的内容类型。
	Label *string `json:"Label,omitnil,omitempty" name:"Label"`

	// 建议您拿到判断结果后的执行操作。
	// 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
	// 注意:此字段可能返回 null,表示取不到有效值。
	Suggestion *string `json:"Suggestion,omitnil,omitempty" name:"Suggestion"`

	// 该标签下命中的关键词
	// 注意:此字段可能返回 null,表示取不到有效值。
	Keywords []*string `json:"Keywords,omitnil,omitempty" name:"Keywords"`

	// 该标签模型命中的分值
	// 注意:此字段可能返回 null,表示取不到有效值。
	Score *int64 `json:"Score,omitnil,omitempty" name:"Score"`

	// 仅当Label为Custom自定义关键词时有效,表示自定义关键词库类型,1:黑白库,2:自定义库
	// 注意:此字段可能返回 null,表示取不到有效值。
	LibType *int64 `json:"LibType,omitnil,omitempty" name:"LibType"`

	// 仅当Label为Custom自定义关键词时有效,表示自定义库id
	// 注意:此字段可能返回 null,表示取不到有效值。
	LibId *string `json:"LibId,omitnil,omitempty" name:"LibId"`

	// 仅当Labe为Custom自定义关键词时有效,表示自定义库名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	LibName *string `json:"LibName,omitnil,omitempty" name:"LibName"`
}

type Device

type Device struct {
	// 用户IP
	IP *string `json:"IP,omitnil,omitempty" name:"IP"`

	// Mac地址
	Mac *string `json:"Mac,omitnil,omitempty" name:"Mac"`

	// 设备指纹Token
	TokenId *string `json:"TokenId,omitnil,omitempty" name:"TokenId"`

	// 设备指纹ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 设备序列号
	IMEI *string `json:"IMEI,omitnil,omitempty" name:"IMEI"`

	// IOS设备,Identifier For Advertising(广告标识符)
	IDFA *string `json:"IDFA,omitnil,omitempty" name:"IDFA"`

	// IOS设备,IDFV - Identifier For Vendor(应用开发商标识符)
	IDFV *string `json:"IDFV,omitnil,omitempty" name:"IDFV"`
}

type EvilCount

type EvilCount struct {
	// ----非必选,该参数功能暂未对外开放
	EvilType *string `json:"EvilType,omitnil,omitempty" name:"EvilType"`

	// 分布类型总量
	Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`
}

type Filters

type Filters struct {
	// 查询字段:
	// 策略BizType
	// 子账号SubUin
	// 日期区间DateRange
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 查询值
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
}

type Overview

type Overview struct {
	// 总调用量
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 总调用时长
	TotalHour *int64 `json:"TotalHour,omitnil,omitempty" name:"TotalHour"`

	// 通过量
	PassCount *int64 `json:"PassCount,omitnil,omitempty" name:"PassCount"`

	// 通过时长
	PassHour *int64 `json:"PassHour,omitnil,omitempty" name:"PassHour"`

	// 违规量
	EvilCount *int64 `json:"EvilCount,omitnil,omitempty" name:"EvilCount"`

	// 违规时长
	EvilHour *int64 `json:"EvilHour,omitnil,omitempty" name:"EvilHour"`

	// 疑似违规量
	SuspectCount *int64 `json:"SuspectCount,omitnil,omitempty" name:"SuspectCount"`

	// 疑似违规时长
	SuspectHour *int64 `json:"SuspectHour,omitnil,omitempty" name:"SuspectHour"`
}

type RiskDetails

type RiskDetails struct {
	// 风险类别,RiskAccount,RiskIP, RiskIMEI
	Label *string `json:"Label,omitnil,omitempty" name:"Label"`

	// 风险等级,1:疑似,2:恶意
	Level *int64 `json:"Level,omitnil,omitempty" name:"Level"`
}

type TextLib

type TextLib struct {
	// 库id
	LibId *int64 `json:"LibId,omitnil,omitempty" name:"LibId"`

	// 库名
	LibName *string `json:"LibName,omitnil,omitempty" name:"LibName"`
}

type TextModerationRequest

type TextModerationRequest struct {
	*tchttp.BaseRequest

	// 文本内容Base64编码。限制原文长度不能超过10000个unicode字符
	Content *string `json:"Content,omitnil,omitempty" name:"Content"`

	// 该字段用于标识业务场景。您可以在内容安全控制台创建对应的ID,配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略
	BizType *string `json:"BizType,omitnil,omitempty" name:"BizType"`

	// 数据ID,英文字母、下划线、-组成,不超过64个字符
	DataId *string `json:"DataId,omitnil,omitempty" name:"DataId"`

	// 账号相关信息字段,填入后可识别违规风险账号
	User *User `json:"User,omitnil,omitempty" name:"User"`

	// 设备相关信息字段,填入后可识别违规风险设备
	Device *Device `json:"Device,omitnil,omitempty" name:"Device"`
}

func NewTextModerationRequest

func NewTextModerationRequest() (request *TextModerationRequest)

func (*TextModerationRequest) FromJsonString

func (r *TextModerationRequest) FromJsonString(s string) error

FromJsonString 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 TextModerationRequestParams added in v1.0.426

type TextModerationRequestParams struct {
	// 文本内容Base64编码。限制原文长度不能超过10000个unicode字符
	Content *string `json:"Content,omitnil,omitempty" name:"Content"`

	// 该字段用于标识业务场景。您可以在内容安全控制台创建对应的ID,配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略
	BizType *string `json:"BizType,omitnil,omitempty" name:"BizType"`

	// 数据ID,英文字母、下划线、-组成,不超过64个字符
	DataId *string `json:"DataId,omitnil,omitempty" name:"DataId"`

	// 账号相关信息字段,填入后可识别违规风险账号
	User *User `json:"User,omitnil,omitempty" name:"User"`

	// 设备相关信息字段,填入后可识别违规风险设备
	Device *Device `json:"Device,omitnil,omitempty" name:"Device"`
}

Predefined struct for user

type TextModerationResponse

type TextModerationResponse struct {
	*tchttp.BaseResponse
	Response *TextModerationResponseParams `json:"Response"`
}

func NewTextModerationResponse

func NewTextModerationResponse() (response *TextModerationResponse)

func (*TextModerationResponse) FromJsonString

func (r *TextModerationResponse) FromJsonString(s string) error

FromJsonString 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 TextModerationResponseParams added in v1.0.426

type TextModerationResponseParams struct {
	// 您在入参时所填入的Biztype参数
	BizType *string `json:"BizType,omitnil,omitempty" name:"BizType"`

	// 数据是否属于恶意类型,0:正常 1:可疑
	EvilFlag *int64 `json:"EvilFlag,omitnil,omitempty" name:"EvilFlag"`

	// 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库,以及令人反感、不安全或不适宜的内容类型
	Label *string `json:"Label,omitnil,omitempty" name:"Label"`

	// 建议您拿到判断结果后的执行操作
	// 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
	Suggestion *string `json:"Suggestion,omitnil,omitempty" name:"Suggestion"`

	// 文本命中的关键词信息,用于提示您文本违规的具体原因,可能会返回多个命中的关键词。(如:加我微信)
	// 如返回值为空,Score不为空,即识别结果(Label)是来自于语义模型判断的返回值
	// 注意:此字段可能返回 null,表示取不到有效值。
	Keywords []*string `json:"Keywords,omitnil,omitempty" name:"Keywords"`

	// 机器判断当前分类的置信度,取值范围:0.00~100.00。分数越高,表示越有可能属于当前分类。
	// (如:色情 99.99,则该样本属于色情的置信度非常高。)
	Score *int64 `json:"Score,omitnil,omitempty" name:"Score"`

	// 接口识别样本后返回的详细结果
	// 注意:此字段可能返回 null,表示取不到有效值。
	DetailResults []*DetailResults `json:"DetailResults,omitnil,omitempty" name:"DetailResults"`

	// 接口识别样本中存在违规账号风险的检测结果
	// 注意:此字段可能返回 null,表示取不到有效值。
	RiskDetails []*RiskDetails `json:"RiskDetails,omitnil,omitempty" name:"RiskDetails"`

	// 扩展字段,用于特定信息返回,不同客户/Biztype下返回信息不同
	// 注意:此字段可能返回 null,表示取不到有效值。
	Extra *string `json:"Extra,omitnil,omitempty" name:"Extra"`

	// 请求参数中的DataId
	// 注意:此字段可能返回 null,表示取不到有效值。
	DataId *string `json:"DataId,omitnil,omitempty" name:"DataId"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type TipoffResponse

type TipoffResponse struct {
	// 举报结果, "0-举报数据提交成功  99-举报数据提交失败"
	ResultCode *int64 `json:"ResultCode,omitnil,omitempty" name:"ResultCode"`

	// 结果描述
	ResultMsg *string `json:"ResultMsg,omitnil,omitempty" name:"ResultMsg"`
}

type TrendCount

type TrendCount struct {
	// 总调用量
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 总调用时长
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalHour *int64 `json:"TotalHour,omitnil,omitempty" name:"TotalHour"`

	// 通过量
	// 注意:此字段可能返回 null,表示取不到有效值。
	PassCount *int64 `json:"PassCount,omitnil,omitempty" name:"PassCount"`

	// 通过时长
	// 注意:此字段可能返回 null,表示取不到有效值。
	PassHour *int64 `json:"PassHour,omitnil,omitempty" name:"PassHour"`

	// 违规量
	// 注意:此字段可能返回 null,表示取不到有效值。
	EvilCount *int64 `json:"EvilCount,omitnil,omitempty" name:"EvilCount"`

	// 违规时长
	// 注意:此字段可能返回 null,表示取不到有效值。
	EvilHour *int64 `json:"EvilHour,omitnil,omitempty" name:"EvilHour"`

	// 疑似违规量
	// 注意:此字段可能返回 null,表示取不到有效值。
	SuspectCount *int64 `json:"SuspectCount,omitnil,omitempty" name:"SuspectCount"`

	// 疑似违规时长
	// 注意:此字段可能返回 null,表示取不到有效值。
	SuspectHour *int64 `json:"SuspectHour,omitnil,omitempty" name:"SuspectHour"`

	// 日期
	// 注意:此字段可能返回 null,表示取不到有效值。
	Date *string `json:"Date,omitnil,omitempty" name:"Date"`
}

type User

type User struct {
	// 用户账号ID,如填写,会根据账号历史恶意情况,判定消息有害结果,特别是有利于可疑恶意情况下的辅助判断。账号可以填写微信uin、QQ号、微信openid、QQopenid、字符串等。该字段和账号类别确定唯一账号。
	UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"`

	// 用户昵称
	Nickname *string `json:"Nickname,omitnil,omitempty" name:"Nickname"`

	// 账号类别,"1-微信uin 2-QQ号 3-微信群uin 4-qq群号 5-微信openid 6-QQopenid 7-其它string"
	AccountType *int64 `json:"AccountType,omitnil,omitempty" name:"AccountType"`

	// 性别 默认0 未知 1 男性 2 女性
	Gender *int64 `json:"Gender,omitnil,omitempty" name:"Gender"`

	// 年龄 默认0 未知
	Age *int64 `json:"Age,omitnil,omitempty" name:"Age"`

	// 用户等级,默认0 未知 1 低 2 中 3 高
	Level *int64 `json:"Level,omitnil,omitempty" name:"Level"`

	// 手机号
	Phone *string `json:"Phone,omitnil,omitempty" name:"Phone"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL