apis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncAudioScanRequest

type AsyncAudioScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见audioTask。 (Optional) */
	Tasks []censor.AudioTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncAudioScanRequest

func NewAsyncAudioScanRequest() *AsyncAudioScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncAudioScanRequestWithAllParams

func NewAsyncAudioScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.AudioTask,
	callback *string,
	seed *string,
) *AsyncAudioScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见audioTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncAudioScanRequestWithoutParam

func NewAsyncAudioScanRequestWithoutParam() *AsyncAudioScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncAudioScanRequest) GetRegionId

func (r AsyncAudioScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncAudioScanRequest) SetBizType

func (r *AsyncAudioScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*AsyncAudioScanRequest) SetCallback

func (r *AsyncAudioScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncAudioScanRequest) SetScenes

func (r *AsyncAudioScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncAudioScanRequest) SetSeed

func (r *AsyncAudioScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncAudioScanRequest) SetTasks

func (r *AsyncAudioScanRequest) SetTasks(tasks []censor.AudioTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见audioTask。(Optional)

type AsyncAudioScanResponse

type AsyncAudioScanResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AsyncAudioScanResult `json:"result"`
}

type AsyncAudioScanResult

type AsyncAudioScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type AsyncAudioScanV2Request

type AsyncAudioScanV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 最大长度512, 语音文件url (Optional) */
	Url *string `json:"url"`

	/* 最大长度4,接口版本号,可选值 v3.5 (Optional) */
	Version *string `json:"version"`

	/* 最大长度512,文件标题 (Optional) */
	Title *string `json:"title"`

	/* 最大长度32,用户IP地址 (Optional) */
	Ip *string `json:"ip"`

	/* 最大长度128,用户唯一标识,如果无需登录则为空 (Optional) */
	Account *string `json:"account"`

	/* 最大长度128,用户设备 id,与设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送 (Optional) */
	DeviceId *string `json:"deviceId"`

	/* 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5 (Optional) */
	DeviceType *int `json:"deviceType"`

	/* 最大长度2^16-1,数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。 (Optional) */
	Callback *string `json:"callback"`

	/* 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional) */
	CallbackUrl *string `json:"callbackUrl"`
}

func NewAsyncAudioScanV2Request

func NewAsyncAudioScanV2Request() *AsyncAudioScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncAudioScanV2RequestWithAllParams

func NewAsyncAudioScanV2RequestWithAllParams(
	bizType *string,
	url *string,
	version *string,
	title *string,
	ip *string,
	account *string,
	deviceId *string,
	deviceType *int,
	callback *string,
	callbackUrl *string,
) *AsyncAudioScanV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param url: 最大长度512, 语音文件url (Optional) * param version: 最大长度4,接口版本号,可选值 v3.5 (Optional) * param title: 最大长度512,文件标题 (Optional) * param ip: 最大长度32,用户IP地址 (Optional) * param account: 最大长度128,用户唯一标识,如果无需登录则为空 (Optional) * param deviceId: 最大长度128,用户设备 id,与设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送 (Optional) * param deviceType: 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5 (Optional) * param callback: 最大长度2^16-1,数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。 (Optional) * param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional)

func NewAsyncAudioScanV2RequestWithoutParam

func NewAsyncAudioScanV2RequestWithoutParam() *AsyncAudioScanV2Request

This constructor has better compatible ability when API parameters changed

func (AsyncAudioScanV2Request) GetRegionId

func (r AsyncAudioScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncAudioScanV2Request) SetAccount

func (r *AsyncAudioScanV2Request) SetAccount(account string)

param account: 最大长度128,用户唯一标识,如果无需登录则为空(Optional)

func (*AsyncAudioScanV2Request) SetBizType

func (r *AsyncAudioScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AsyncAudioScanV2Request) SetCallback

func (r *AsyncAudioScanV2Request) SetCallback(callback string)

param callback: 最大长度2^16-1,数据回调参数,调用方根据业务情况自行设计,当调用离线结果获取接口时,该接口会原样返回该字段,详细见音频离线检测结果获取。作为数据处理标识,因此该字段应该设计为能唯一定位到该次请求的数据结构,如对用户的昵称进行检测,dataId可设为用户标识(用户ID),用户修改多次,每次请求数据的dataId可能一致,但是callback参数可以设计成定位该次请求的数据结构,比如callback字段设计成json,包含dataId和请求的时间戳等信息,当然如果不想做区分,也可以直接把callback设置成dataId的值。(Optional)

func (*AsyncAudioScanV2Request) SetCallbackUrl

func (r *AsyncAudioScanV2Request) SetCallbackUrl(callbackUrl string)

param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。(Optional)

func (*AsyncAudioScanV2Request) SetDeviceId

func (r *AsyncAudioScanV2Request) SetDeviceId(deviceId string)

param deviceId: 最大长度128,用户设备 id,与设备画像库匹配,明文请转大写传入;MD5加密请明文转大写后MD5计算,再转大写传入,建议抄送(Optional)

func (*AsyncAudioScanV2Request) SetDeviceType

func (r *AsyncAudioScanV2Request) SetDeviceType(deviceType int)

param deviceType: 用户设备id的类型,0:其他,10:IMEI,11:AndroidID,12:IDFA,13:IDFV,14:MAC ,20:IMEI_MD5,21:AndroidID_MD5,22:IDFA_MD5,23:IDFV_MD5,24:MAC_MD5(Optional)

func (*AsyncAudioScanV2Request) SetIp

func (r *AsyncAudioScanV2Request) SetIp(ip string)

param ip: 最大长度32,用户IP地址(Optional)

func (*AsyncAudioScanV2Request) SetTitle

func (r *AsyncAudioScanV2Request) SetTitle(title string)

param title: 最大长度512,文件标题(Optional)

func (*AsyncAudioScanV2Request) SetUrl

func (r *AsyncAudioScanV2Request) SetUrl(url string)

param url: 最大长度512, 语音文件url(Optional)

func (*AsyncAudioScanV2Request) SetVersion

func (r *AsyncAudioScanV2Request) SetVersion(version string)

param version: 最大长度4,接口版本号,可选值 v3.5(Optional)

type AsyncAudioScanV2Response

type AsyncAudioScanV2Response struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    AsyncAudioScanV2Result `json:"result"`
}

type AsyncAudioScanV2Result

type AsyncAudioScanV2Result struct {
	Result censor.AudioTaskData `json:"result"`
}

type AsyncImageScanRequest

type AsyncImageScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。 (Optional) */
	Tasks []censor.ImageTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncImageScanRequest

func NewAsyncImageScanRequest() *AsyncImageScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncImageScanRequestWithAllParams

func NewAsyncImageScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.ImageTask,
	callback *string,
	seed *string,
) *AsyncImageScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncImageScanRequestWithoutParam

func NewAsyncImageScanRequestWithoutParam() *AsyncImageScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncImageScanRequest) GetRegionId

func (r AsyncImageScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncImageScanRequest) SetBizType

func (r *AsyncImageScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*AsyncImageScanRequest) SetCallback

func (r *AsyncImageScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncImageScanRequest) SetScenes

func (r *AsyncImageScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncImageScanRequest) SetSeed

func (r *AsyncImageScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncImageScanRequest) SetTasks

func (r *AsyncImageScanRequest) SetTasks(tasks []censor.ImageTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。(Optional)

type AsyncImageScanResponse

type AsyncImageScanResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AsyncImageScanResult `json:"result"`
}

type AsyncImageScanResult

type AsyncImageScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type AsyncVideoScanRequest

type AsyncVideoScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 是否直播。默认为false,表示为普通视频检测;若是直播检测,该值必须传入true。 (Optional) */
	Live *bool `json:"live"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 视频中语音的检测场景 (Optional) */
	AudioScenes []string `json:"audioScenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见videoTask。 (Optional) */
	Tasks []censor.VideoTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncVideoScanRequest

func NewAsyncVideoScanRequest() *AsyncVideoScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncVideoScanRequestWithAllParams

func NewAsyncVideoScanRequestWithAllParams(
	bizType *string,
	live *bool,
	scenes []string,
	audioScenes []string,
	tasks []censor.VideoTask,
	callback *string,
	seed *string,
) *AsyncVideoScanRequest

* param bizType: 机审策略,eg: default (Optional) * param live: 是否直播。默认为false,表示为普通视频检测;若是直播检测,该值必须传入true。 (Optional) * param scenes: 指定检测场景 (Optional) * param audioScenes: 视频中语音的检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见videoTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncVideoScanRequestWithoutParam

func NewAsyncVideoScanRequestWithoutParam() *AsyncVideoScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncVideoScanRequest) GetRegionId

func (r AsyncVideoScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncVideoScanRequest) SetAudioScenes

func (r *AsyncVideoScanRequest) SetAudioScenes(audioScenes []string)

param audioScenes: 视频中语音的检测场景(Optional)

func (*AsyncVideoScanRequest) SetBizType

func (r *AsyncVideoScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*AsyncVideoScanRequest) SetCallback

func (r *AsyncVideoScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncVideoScanRequest) SetLive

func (r *AsyncVideoScanRequest) SetLive(live bool)

param live: 是否直播。默认为false,表示为普通视频检测;若是直播检测,该值必须传入true。(Optional)

func (*AsyncVideoScanRequest) SetScenes

func (r *AsyncVideoScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncVideoScanRequest) SetSeed

func (r *AsyncVideoScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncVideoScanRequest) SetTasks

func (r *AsyncVideoScanRequest) SetTasks(tasks []censor.VideoTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见videoTask。(Optional)

type AsyncVideoScanResponse

type AsyncVideoScanResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AsyncVideoScanResult `json:"result"`
}

type AsyncVideoScanResult

type AsyncVideoScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type AsyncVideoScanV2Request

type AsyncVideoScanV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 最大长度512, 点播视频地址 (Optional) */
	Url *string `json:"url"`

	/* 最大长度128,点播视频唯一标识 (Optional) */
	DataId *string `json:"dataId"`

	/* 接口版本号,可选值 v3.2 (Optional) */
	Version *string `json:"version"`

	/* 最大长度512,视频名称 (Optional) */
	Title *string `json:"title"`

	/* 最大长度512,数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,内容安全服务会返回该字段 (Optional) */
	Callback *string `json:"callback"`

	/* 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional) */
	CallbackUrl *string `json:"callbackUrl"`

	/* 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) */
	UniqueKey *string `json:"uniqueKey"`

	/* 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) */
	ScFrequency *int `json:"scFrequency"`

	/* 高级截帧设置,此项填写,默认截帧策略失效 (Optional) */
	AdvancedFrequency *censor.AdvancedFrequency `json:"advancedFrequency"`
}

func NewAsyncVideoScanV2Request

func NewAsyncVideoScanV2Request() *AsyncVideoScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncVideoScanV2RequestWithAllParams

func NewAsyncVideoScanV2RequestWithAllParams(
	bizType *string,
	url *string,
	dataId *string,
	version *string,
	title *string,
	callback *string,
	callbackUrl *string,
	uniqueKey *string,
	scFrequency *int,
	advancedFrequency *censor.AdvancedFrequency,
) *AsyncVideoScanV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param url: 最大长度512, 点播视频地址 (Optional) * param dataId: 最大长度128,点播视频唯一标识 (Optional) * param version: 接口版本号,可选值 v3.2 (Optional) * param title: 最大长度512,视频名称 (Optional) * param callback: 最大长度512,数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,内容安全服务会返回该字段 (Optional) * param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。 (Optional) * param uniqueKey: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) * param scFrequency: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例 (Optional) * param advancedFrequency: 高级截帧设置,此项填写,默认截帧策略失效 (Optional)

func NewAsyncVideoScanV2RequestWithoutParam

func NewAsyncVideoScanV2RequestWithoutParam() *AsyncVideoScanV2Request

This constructor has better compatible ability when API parameters changed

func (AsyncVideoScanV2Request) GetRegionId

func (r AsyncVideoScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AsyncVideoScanV2Request) SetAdvancedFrequency

func (r *AsyncVideoScanV2Request) SetAdvancedFrequency(advancedFrequency *censor.AdvancedFrequency)

param advancedFrequency: 高级截帧设置,此项填写,默认截帧策略失效(Optional)

func (*AsyncVideoScanV2Request) SetBizType

func (r *AsyncVideoScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AsyncVideoScanV2Request) SetCallback

func (r *AsyncVideoScanV2Request) SetCallback(callback string)

param callback: 最大长度512,数据回调参数,产品根据业务情况自行设计,当获取离线检测结果时,内容安全服务会返回该字段(Optional)

func (*AsyncVideoScanV2Request) SetCallbackUrl

func (r *AsyncVideoScanV2Request) SetCallbackUrl(callbackUrl string)

param callbackUrl: 最大长度256,离线结果回调通知到客户的URL。主动回调数据接口超时时间设置为2s,为了保证顺利接收数据,需保证接收接口性能稳定并且保证幂等性。(Optional)

func (*AsyncVideoScanV2Request) SetDataId

func (r *AsyncVideoScanV2Request) SetDataId(dataId string)

param dataId: 最大长度128,点播视频唯一标识(Optional)

func (*AsyncVideoScanV2Request) SetScFrequency

func (r *AsyncVideoScanV2Request) SetScFrequency(scFrequency int)

param scFrequency: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例(Optional)

func (*AsyncVideoScanV2Request) SetTitle

func (r *AsyncVideoScanV2Request) SetTitle(title string)

param title: 最大长度512,视频名称(Optional)

func (*AsyncVideoScanV2Request) SetUniqueKey

func (r *AsyncVideoScanV2Request) SetUniqueKey(uniqueKey string)

param uniqueKey: 最大长度64,客户个性化视频唯一性标识,传入后,将以此值作为重复检测依据,若不传,默认以URL作为查重依据,如果重复提交会被拒绝,返回报错信息请求重复,以及原提交taskID值,具体返回请查看响应示例(Optional)

func (*AsyncVideoScanV2Request) SetUrl

func (r *AsyncVideoScanV2Request) SetUrl(url string)

param url: 最大长度512, 点播视频地址(Optional)

func (*AsyncVideoScanV2Request) SetVersion

func (r *AsyncVideoScanV2Request) SetVersion(version string)

param version: 接口版本号,可选值 v3.2(Optional)

type AsyncVideoScanV2Response

type AsyncVideoScanV2Response struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    AsyncVideoScanV2Result `json:"result"`
}

type AsyncVideoScanV2Result

type AsyncVideoScanV2Result struct {
	Result censor.VideoTaskData `json:"result"`
}

type AudioCallbackV2Request

type AudioCallbackV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`
}

func NewAudioCallbackV2Request

func NewAudioCallbackV2Request() *AudioCallbackV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAudioCallbackV2RequestWithAllParams

func NewAudioCallbackV2RequestWithAllParams(
	bizType *string,
	version *string,
) *AudioCallbackV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional)

func NewAudioCallbackV2RequestWithoutParam

func NewAudioCallbackV2RequestWithoutParam() *AudioCallbackV2Request

This constructor has better compatible ability when API parameters changed

func (AudioCallbackV2Request) GetRegionId

func (r AudioCallbackV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AudioCallbackV2Request) SetBizType

func (r *AudioCallbackV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AudioCallbackV2Request) SetVersion

func (r *AudioCallbackV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type AudioCallbackV2Response

type AudioCallbackV2Response struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    AudioCallbackV2Result `json:"result"`
}

type AudioCallbackV2Result

type AudioCallbackV2Result struct {
	Antispam []censor.AudioAntispamResult `json:"antispam"`
	Asr      []censor.AudioASRResult      `json:"asr"`
	Language []censor.AudioLanguageResult `json:"language"`
	Voice    []censor.AudioVoiceResult    `json:"voice"`
}

type AudioResultsRequest

type AudioResultsRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewAudioResultsRequest

func NewAudioResultsRequest(
	taskIds []string,
) *AudioResultsRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAudioResultsRequestWithAllParams

func NewAudioResultsRequestWithAllParams(
	taskIds []string,
) *AudioResultsRequest

* param taskIds: (Required)

func NewAudioResultsRequestWithoutParam

func NewAudioResultsRequestWithoutParam() *AudioResultsRequest

This constructor has better compatible ability when API parameters changed

func (AudioResultsRequest) GetRegionId

func (r AudioResultsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AudioResultsRequest) SetTaskIds

func (r *AudioResultsRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type AudioResultsResponse

type AudioResultsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    AudioResultsResult `json:"result"`
}

type AudioResultsResult

type AudioResultsResult struct {
	Data []censor.AudioResult `json:"data"`
}

type AudioResultsV2Request

type AudioResultsV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`

	/* 要查询的taskId (Optional) */
	TaskIds []string `json:"taskIds"`
}

func NewAudioResultsV2Request

func NewAudioResultsV2Request() *AudioResultsV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewAudioResultsV2RequestWithAllParams

func NewAudioResultsV2RequestWithAllParams(
	bizType *string,
	version *string,
	taskIds []string,
) *AudioResultsV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional) * param taskIds: 要查询的taskId (Optional)

func NewAudioResultsV2RequestWithoutParam

func NewAudioResultsV2RequestWithoutParam() *AudioResultsV2Request

This constructor has better compatible ability when API parameters changed

func (AudioResultsV2Request) GetRegionId

func (r AudioResultsV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AudioResultsV2Request) SetBizType

func (r *AudioResultsV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*AudioResultsV2Request) SetTaskIds

func (r *AudioResultsV2Request) SetTaskIds(taskIds []string)

param taskIds: 要查询的taskId(Optional)

func (*AudioResultsV2Request) SetVersion

func (r *AudioResultsV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type AudioResultsV2Response

type AudioResultsV2Response struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    AudioResultsV2Result `json:"result"`
}

type AudioResultsV2Result

type AudioResultsV2Result struct {
	Result []censor.AudioAntispamResult `json:"result"`
}

type DeleteCensorLibItemsRequest

type DeleteCensorLibItemsRequest struct {
	core.JDCloudRequest

	/* 实例所属的地域ID  */
	RegionId string `json:"regionId"`

	/* 敏感库id  */
	LibId string `json:"libId"`

	/* itemId,支持多个,用','分隔,表示批量删除  */
	ItemId string `json:"itemId"`
}

func NewDeleteCensorLibItemsRequest

func NewDeleteCensorLibItemsRequest(
	regionId string,
	libId string,
	itemId string,
) *DeleteCensorLibItemsRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required) * param itemId: itemId,支持多个,用','分隔,表示批量删除 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteCensorLibItemsRequestWithAllParams

func NewDeleteCensorLibItemsRequestWithAllParams(
	regionId string,
	libId string,
	itemId string,
) *DeleteCensorLibItemsRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required) * param itemId: itemId,支持多个,用','分隔,表示批量删除 (Required)

func NewDeleteCensorLibItemsRequestWithoutParam

func NewDeleteCensorLibItemsRequestWithoutParam() *DeleteCensorLibItemsRequest

This constructor has better compatible ability when API parameters changed

func (DeleteCensorLibItemsRequest) GetRegionId

func (r DeleteCensorLibItemsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteCensorLibItemsRequest) SetItemId

func (r *DeleteCensorLibItemsRequest) SetItemId(itemId string)

param itemId: itemId,支持多个,用','分隔,表示批量删除(Required)

func (*DeleteCensorLibItemsRequest) SetLibId

func (r *DeleteCensorLibItemsRequest) SetLibId(libId string)

param libId: 敏感库id(Required)

func (*DeleteCensorLibItemsRequest) SetRegionId

func (r *DeleteCensorLibItemsRequest) SetRegionId(regionId string)

param regionId: 实例所属的地域ID(Required)

type DeleteCensorLibItemsResponse

type DeleteCensorLibItemsResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DeleteCensorLibItemsResult `json:"result"`
}

type DeleteCensorLibItemsResult

type DeleteCensorLibItemsResult struct {
}

type DeleteCensorLibRequest

type DeleteCensorLibRequest struct {
	core.JDCloudRequest

	/* 实例所属的地域ID  */
	RegionId string `json:"regionId"`

	/* 敏感库id  */
	LibId string `json:"libId"`
}

func NewDeleteCensorLibRequest

func NewDeleteCensorLibRequest(
	regionId string,
	libId string,
) *DeleteCensorLibRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteCensorLibRequestWithAllParams

func NewDeleteCensorLibRequestWithAllParams(
	regionId string,
	libId string,
) *DeleteCensorLibRequest

* param regionId: 实例所属的地域ID (Required) * param libId: 敏感库id (Required)

func NewDeleteCensorLibRequestWithoutParam

func NewDeleteCensorLibRequestWithoutParam() *DeleteCensorLibRequest

This constructor has better compatible ability when API parameters changed

func (DeleteCensorLibRequest) GetRegionId

func (r DeleteCensorLibRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteCensorLibRequest) SetLibId

func (r *DeleteCensorLibRequest) SetLibId(libId string)

param libId: 敏感库id(Required)

func (*DeleteCensorLibRequest) SetRegionId

func (r *DeleteCensorLibRequest) SetRegionId(regionId string)

param regionId: 实例所属的地域ID(Required)

type DeleteCensorLibResponse

type DeleteCensorLibResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DeleteCensorLibResult `json:"result"`
}

type DeleteCensorLibResult

type DeleteCensorLibResult struct {
}

type DeleteLimitRequest

type DeleteLimitRequest struct {
	core.JDCloudRequest

	/* 实例所属的地域ID  */
	RegionId string `json:"regionId"`

	/* 限制参数配置id  */
	LimitId string `json:"limitId"`
}

func NewDeleteLimitRequest

func NewDeleteLimitRequest(
	regionId string,
	limitId string,
) *DeleteLimitRequest

* param regionId: 实例所属的地域ID (Required) * param limitId: 限制参数配置id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteLimitRequestWithAllParams

func NewDeleteLimitRequestWithAllParams(
	regionId string,
	limitId string,
) *DeleteLimitRequest

* param regionId: 实例所属的地域ID (Required) * param limitId: 限制参数配置id (Required)

func NewDeleteLimitRequestWithoutParam

func NewDeleteLimitRequestWithoutParam() *DeleteLimitRequest

This constructor has better compatible ability when API parameters changed

func (DeleteLimitRequest) GetRegionId

func (r DeleteLimitRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteLimitRequest) SetLimitId

func (r *DeleteLimitRequest) SetLimitId(limitId string)

param limitId: 限制参数配置id(Required)

func (*DeleteLimitRequest) SetRegionId

func (r *DeleteLimitRequest) SetRegionId(regionId string)

param regionId: 实例所属的地域ID(Required)

type DeleteLimitResponse

type DeleteLimitResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteLimitResult  `json:"result"`
}

type DeleteLimitResult

type DeleteLimitResult struct {
}

type ImageResultsRequest

type ImageResultsRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewImageResultsRequest

func NewImageResultsRequest(
	taskIds []string,
) *ImageResultsRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewImageResultsRequestWithAllParams

func NewImageResultsRequestWithAllParams(
	taskIds []string,
) *ImageResultsRequest

* param taskIds: (Required)

func NewImageResultsRequestWithoutParam

func NewImageResultsRequestWithoutParam() *ImageResultsRequest

This constructor has better compatible ability when API parameters changed

func (ImageResultsRequest) GetRegionId

func (r ImageResultsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImageResultsRequest) SetTaskIds

func (r *ImageResultsRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type ImageResultsResponse

type ImageResultsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImageResultsResult `json:"result"`
}

type ImageResultsResult

type ImageResultsResult struct {
	Data []censor.ImageResult `json:"data"`
}

type ImageScanRequest

type ImageScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。 (Optional) */
	Tasks []censor.ImageTask `json:"tasks"`
}

func NewImageScanRequest

func NewImageScanRequest() *ImageScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewImageScanRequestWithAllParams

func NewImageScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.ImageTask,
) *ImageScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。 (Optional)

func NewImageScanRequestWithoutParam

func NewImageScanRequestWithoutParam() *ImageScanRequest

This constructor has better compatible ability when API parameters changed

func (ImageScanRequest) GetRegionId

func (r ImageScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImageScanRequest) SetBizType

func (r *ImageScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*ImageScanRequest) SetScenes

func (r *ImageScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*ImageScanRequest) SetTasks

func (r *ImageScanRequest) SetTasks(tasks []censor.ImageTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。(Optional)

type ImageScanResponse

type ImageScanResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImageScanResult    `json:"result"`
}

type ImageScanResult

type ImageScanResult struct {
	Data []censor.ImageResult `json:"data"`
}

type ImageScanV2Request

type ImageScanV2Request struct {
	core.JDCloudRequest

	/* 指定检测场景 (Optional) */
	Images []censor.ImageTaskV2 `json:"images"`

	/* 接口版本v4.1 (Optional) */
	Version *string `json:"version"`

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观响应结果 (Optional) */
	CheckLabels []string `json:"checkLabels"`
}

func NewImageScanV2Request

func NewImageScanV2Request() *ImageScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewImageScanV2RequestWithAllParams

func NewImageScanV2RequestWithAllParams(
	images []censor.ImageTaskV2,
	version *string,
	bizType *string,
	checkLabels []string,
) *ImageScanV2Request

* param images: 指定检测场景 (Optional) * param version: 接口版本v4.1 (Optional) * param bizType: 业务bizType,请联系客户经理获取 (Optional) * param checkLabels: 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观响应结果 (Optional)

func NewImageScanV2RequestWithoutParam

func NewImageScanV2RequestWithoutParam() *ImageScanV2Request

This constructor has better compatible ability when API parameters changed

func (ImageScanV2Request) GetRegionId

func (r ImageScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ImageScanV2Request) SetBizType

func (r *ImageScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*ImageScanV2Request) SetCheckLabels

func (r *ImageScanV2Request) SetCheckLabels(checkLabels []string)

param checkLabels: 接口指定过检分类,可多选,过检分类列表:100:色情,110:性感低俗,200:广告,210:二维码,260:广告法,300:暴恐,400:违禁,500:涉政,800:恶心类,900:其他,1100:涉价值观响应结果(Optional)

func (*ImageScanV2Request) SetImages

func (r *ImageScanV2Request) SetImages(images []censor.ImageTaskV2)

param images: 指定检测场景(Optional)

func (*ImageScanV2Request) SetVersion

func (r *ImageScanV2Request) SetVersion(version string)

param version: 接口版本v4.1(Optional)

type ImageScanV2Response

type ImageScanV2Response struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ImageScanV2Result  `json:"result"`
}

type ImageScanV2Result

type ImageScanV2Result struct {
	Antispam []censor.ImageAntispamResult `json:"antispam"`
	Ocr      []censor.OCRResult           `json:"ocr"`
	Face     []censor.FaceResult          `json:"face"`
	Quality  []censor.QualityResult       `json:"quality"`
	Scene    []censor.SceneResult         `json:"scene"`
}

type InnerTextScanRequest

type InnerTextScanRequest struct {
	core.JDCloudRequest

	/* 指定检测场景,固定值:antispam (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional) */
	Tasks []censor.TextTask `json:"tasks"`
}

func NewInnerTextScanRequest

func NewInnerTextScanRequest() *InnerTextScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewInnerTextScanRequestWithAllParams

func NewInnerTextScanRequestWithAllParams(
	scenes []string,
	tasks []censor.TextTask,
) *InnerTextScanRequest

* param scenes: 指定检测场景,固定值:antispam (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional)

func NewInnerTextScanRequestWithoutParam

func NewInnerTextScanRequestWithoutParam() *InnerTextScanRequest

This constructor has better compatible ability when API parameters changed

func (InnerTextScanRequest) GetRegionId

func (r InnerTextScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*InnerTextScanRequest) SetScenes

func (r *InnerTextScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景,固定值:antispam(Optional)

func (*InnerTextScanRequest) SetTasks

func (r *InnerTextScanRequest) SetTasks(tasks []censor.TextTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。(Optional)

type InnerTextScanResponse

type InnerTextScanResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    InnerTextScanResult `json:"result"`
}

type InnerTextScanResult

type InnerTextScanResult struct {
	Data []censor.TextResult `json:"data"`
}

type TextResultsV2Request

type TextResultsV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v4 (Optional) */
	Version *string `json:"version"`
}

func NewTextResultsV2Request

func NewTextResultsV2Request() *TextResultsV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextResultsV2RequestWithAllParams

func NewTextResultsV2RequestWithAllParams(
	bizType *string,
	version *string,
) *TextResultsV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v4 (Optional)

func NewTextResultsV2RequestWithoutParam

func NewTextResultsV2RequestWithoutParam() *TextResultsV2Request

This constructor has better compatible ability when API parameters changed

func (TextResultsV2Request) GetRegionId

func (r TextResultsV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TextResultsV2Request) SetBizType

func (r *TextResultsV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*TextResultsV2Request) SetVersion

func (r *TextResultsV2Request) SetVersion(version string)

param version: 接口版本v4(Optional)

type TextResultsV2Response

type TextResultsV2Response struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    TextResultsV2Result `json:"result"`
}

type TextResultsV2Result

type TextResultsV2Result struct {
	Result []censor.TextResultDetailV2 `json:"result"`
}

type TextScanRequest

type TextScanRequest struct {
	core.JDCloudRequest

	/* 机审策略,eg: default (Optional) */
	BizType *string `json:"bizType"`

	/* 指定检测场景,固定值:antispam (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional) */
	Tasks []censor.TextTask `json:"tasks"`
}

func NewTextScanRequest

func NewTextScanRequest() *TextScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextScanRequestWithAllParams

func NewTextScanRequestWithAllParams(
	bizType *string,
	scenes []string,
	tasks []censor.TextTask,
) *TextScanRequest

* param bizType: 机审策略,eg: default (Optional) * param scenes: 指定检测场景,固定值:antispam (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional)

func NewTextScanRequestWithoutParam

func NewTextScanRequestWithoutParam() *TextScanRequest

This constructor has better compatible ability when API parameters changed

func (TextScanRequest) GetRegionId

func (r TextScanRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TextScanRequest) SetBizType

func (r *TextScanRequest) SetBizType(bizType string)

param bizType: 机审策略,eg: default(Optional)

func (*TextScanRequest) SetScenes

func (r *TextScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景,固定值:antispam(Optional)

func (*TextScanRequest) SetTasks

func (r *TextScanRequest) SetTasks(tasks []censor.TextTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。(Optional)

type TextScanResponse

type TextScanResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    TextScanResult     `json:"result"`
}

type TextScanResult

type TextScanResult struct {
	Data []censor.TextResult `json:"data"`
}

type TextScanV2Request

type TextScanV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本号,固定值 v4 (Optional) */
	Version *string `json:"version"`

	/* 可指定多个垃圾类别进行机器检测,多个垃圾类别以逗号分隔("100,200") (Optional) */
	CheckLabels *string `json:"checkLabels"`

	/* 1-100条文本数据。 (Optional) */
	Texts []censor.TextTaskV2 `json:"texts"`
}

func NewTextScanV2Request

func NewTextScanV2Request() *TextScanV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextScanV2RequestWithAllParams

func NewTextScanV2RequestWithAllParams(
	bizType *string,
	version *string,
	checkLabels *string,
	texts []censor.TextTaskV2,
) *TextScanV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本号,固定值 v4 (Optional) * param checkLabels: 可指定多个垃圾类别进行机器检测,多个垃圾类别以逗号分隔("100,200") (Optional) * param texts: 1-100条文本数据。 (Optional)

func NewTextScanV2RequestWithoutParam

func NewTextScanV2RequestWithoutParam() *TextScanV2Request

This constructor has better compatible ability when API parameters changed

func (TextScanV2Request) GetRegionId

func (r TextScanV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TextScanV2Request) SetBizType

func (r *TextScanV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*TextScanV2Request) SetCheckLabels

func (r *TextScanV2Request) SetCheckLabels(checkLabels string)

param checkLabels: 可指定多个垃圾类别进行机器检测,多个垃圾类别以逗号分隔("100,200")(Optional)

func (*TextScanV2Request) SetTexts

func (r *TextScanV2Request) SetTexts(texts []censor.TextTaskV2)

param texts: 1-100条文本数据。(Optional)

func (*TextScanV2Request) SetVersion

func (r *TextScanV2Request) SetVersion(version string)

param version: 接口版本号,固定值 v4(Optional)

type TextScanV2Response

type TextScanV2Response struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    TextScanV2Result   `json:"result"`
}

type TextScanV2Result

type TextScanV2Result struct {
	Result []censor.TextResultDetailV2 `json:"result"`
}

type VideoCallbackV2Request

type VideoCallbackV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`
}

func NewVideoCallbackV2Request

func NewVideoCallbackV2Request() *VideoCallbackV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewVideoCallbackV2RequestWithAllParams

func NewVideoCallbackV2RequestWithAllParams(
	bizType *string,
	version *string,
) *VideoCallbackV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional)

func NewVideoCallbackV2RequestWithoutParam

func NewVideoCallbackV2RequestWithoutParam() *VideoCallbackV2Request

This constructor has better compatible ability when API parameters changed

func (VideoCallbackV2Request) GetRegionId

func (r VideoCallbackV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*VideoCallbackV2Request) SetBizType

func (r *VideoCallbackV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*VideoCallbackV2Request) SetVersion

func (r *VideoCallbackV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type VideoCallbackV2Response

type VideoCallbackV2Response struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    VideoCallbackV2Result `json:"result"`
}

type VideoCallbackV2Result

type VideoCallbackV2Result struct {
	Result []censor.VideoResultV2 `json:"result"`
}

type VideoResultsRequest

type VideoResultsRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewVideoResultsRequest

func NewVideoResultsRequest(
	taskIds []string,
) *VideoResultsRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewVideoResultsRequestWithAllParams

func NewVideoResultsRequestWithAllParams(
	taskIds []string,
) *VideoResultsRequest

* param taskIds: (Required)

func NewVideoResultsRequestWithoutParam

func NewVideoResultsRequestWithoutParam() *VideoResultsRequest

This constructor has better compatible ability when API parameters changed

func (VideoResultsRequest) GetRegionId

func (r VideoResultsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*VideoResultsRequest) SetTaskIds

func (r *VideoResultsRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type VideoResultsResponse

type VideoResultsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    VideoResultsResult `json:"result"`
}

type VideoResultsResult

type VideoResultsResult struct {
	Data []censor.VideoResult `json:"data"`
}

type VideoResultsV2Request

type VideoResultsV2Request struct {
	core.JDCloudRequest

	/* 业务bizType,请联系客户经理获取 (Optional) */
	BizType *string `json:"bizType"`

	/* 接口版本v1 (Optional) */
	Version *string `json:"version"`

	/* 要查询的taskId (Optional) */
	TaskIds []string `json:"taskIds"`
}

func NewVideoResultsV2Request

func NewVideoResultsV2Request() *VideoResultsV2Request

* * @Deprecated, not compatible when mandatory parameters changed

func NewVideoResultsV2RequestWithAllParams

func NewVideoResultsV2RequestWithAllParams(
	bizType *string,
	version *string,
	taskIds []string,
) *VideoResultsV2Request

* param bizType: 业务bizType,请联系客户经理获取 (Optional) * param version: 接口版本v1 (Optional) * param taskIds: 要查询的taskId (Optional)

func NewVideoResultsV2RequestWithoutParam

func NewVideoResultsV2RequestWithoutParam() *VideoResultsV2Request

This constructor has better compatible ability when API parameters changed

func (VideoResultsV2Request) GetRegionId

func (r VideoResultsV2Request) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*VideoResultsV2Request) SetBizType

func (r *VideoResultsV2Request) SetBizType(bizType string)

param bizType: 业务bizType,请联系客户经理获取(Optional)

func (*VideoResultsV2Request) SetTaskIds

func (r *VideoResultsV2Request) SetTaskIds(taskIds []string)

param taskIds: 要查询的taskId(Optional)

func (*VideoResultsV2Request) SetVersion

func (r *VideoResultsV2Request) SetVersion(version string)

param version: 接口版本v1(Optional)

type VideoResultsV2Response

type VideoResultsV2Response struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    VideoResultsV2Result `json:"result"`
}

type VideoResultsV2Result

type VideoResultsV2Result struct {
	Result []censor.VideoResultV2 `json:"result"`
}

Jump to

Keyboard shortcuts

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