Documentation ¶
Index ¶
- Constants
- Variables
- func AesCBCEncryptWithBase64(secretKey, origData string) (string, error)
- func GetServiceInfo(region string, host string, timeout time.Duration) *base.ServiceInfo
- func ToUrlValues(i interface{}) (values url.Values)
- func UnmarshalResultInto(data []byte, result interface{}) error
- type AccessConfigCreateInfo
- type AccessConfigListData
- type AccessConfigListResponse
- type ActivateRiskBasePackageInfo
- type ActivateRiskBasePackageReq
- type ActivateRiskBasePackageResp
- type ActivateRiskResultInfo
- type ActivateRiskResultReq
- type ActivateRiskResultResp
- type ActivateRiskSampleDataInfo
- type ActivateRiskSampleDataReq
- type ActivateRiskSampleDataResp
- type AsyncRiskDetectionRequest
- type AsyncRiskDetectionResponse
- type AsyncVideoRiskResponse
- type AudioDetail
- type AudioDetailV2
- type AudioLiveDetailV2
- type AudioLiveResult
- type AudioLiveResultResponse
- type AudioResult
- type AudioResultResponse
- type AudioResultV2
- type BusinessSecurity
- func (p *BusinessSecurity) ActivateRiskBasePackage(req *ActivateRiskBasePackageReq) (*ActivateRiskBasePackageResp, error)
- func (p *BusinessSecurity) ActivateRiskResult(req *ActivateRiskResultReq) (*ActivateRiskResultResp, error)
- func (p *BusinessSecurity) ActivateRiskSampleData(req *ActivateRiskSampleDataReq) (*ActivateRiskSampleDataResp, error)
- func (p *BusinessSecurity) AsyncAudioRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) AsyncImageRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) AsyncImageRiskV2(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) AsyncLiveAudioRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) AsyncLiveVideoRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) AsyncRiskDetection(req *AsyncRiskDetectionRequest) (*AsyncRiskDetectionResponse, error)
- func (p *BusinessSecurity) AsyncVideoRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) AudioRisk(req *RiskDetectionRequest) (*AudioResultResponse, error)
- func (p *BusinessSecurity) ChangeCustomContentsStatus(req *ChangeCustomLibStatusRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) CloseAudioLiveRisk(req *VideoResultRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) CloseRetry()
- func (p *BusinessSecurity) CloseVideoLiveRisk(req *VideoResultRequest) (*AsyncVideoRiskResponse, error)
- func (p *BusinessSecurity) ContentRiskStat(req *CommonProductStatisticsReq) (*ContentRiskStatResponse, error)
- func (p *BusinessSecurity) CreateAccessConfig(req *CreateAccessConfigRequest) (*CreateAccessConfigResponse, error)
- func (p *BusinessSecurity) CreateApp(req *CreateAppReq) (*CreateAppResponse, error)
- func (p *BusinessSecurity) CreateCustomContents(req *NewCustomContentsReq) (*CustomContentResponse, error)
- func (p *BusinessSecurity) CreateCustomLib(req *CreateCustomLibRequest) (*CreateCustomLibResponse, error)
- func (p *BusinessSecurity) DataReport(req *DataReportRequest) (*DataReportResponse, error)
- func (p *BusinessSecurity) DelSystemNameListItem(req *DelSystemNameListItemReq) (*DelSystemNameListItemResp, error)
- func (p *BusinessSecurity) DeleteCustomContents(req *ModifyTextContent) (*CustomContentResponse, error)
- func (p *BusinessSecurity) DeleteCustomLib(req *DeleteCustomLibRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) DeleteImageLibContent(req *DeleteCustomImgRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) DeleteTextLibContent(req *DeleteCustomTextRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) DisableCustomContents(req *UpdateContentReq) (*AsyncRiskDetectionResponse, error)
- func (p *BusinessSecurity) ElementVerifyEncrypted(encryptedType string, secretKey string, req *ElementVerifyRequest) (*ElementVerifyResponseV2, error)
- func (p *BusinessSecurity) ElementVerifyV2(req *ElementVerifyRequest) (*ElementVerifyResponseV2, error)
- func (p *BusinessSecurity) EnableCustomContents(req *UpdateContentReq) (*CustomContentResponse, error)
- func (p *BusinessSecurity) GetAccessConfig(req *GetAccessConfigStatusRequest) (*AccessConfigListResponse, error)
- func (p *BusinessSecurity) GetAudioLiveResult(req *VideoResultRequest) (*AudioLiveResultResponse, error)
- func (p *BusinessSecurity) GetAudioResult(req *VideoResultRequest) (*AudioResultResponse, error)
- func (p *BusinessSecurity) GetCustomLib(req *GetCustomLibRequest) (*CustomLibListResponse, error)
- func (p *BusinessSecurity) GetImageLibContent(req *GetCustomImgLibRequest) (*CustomImgLibListResponse, error)
- func (p *BusinessSecurity) GetImageResult(req *VideoResultRequest) (*ImageResultResponse, error)
- func (p *BusinessSecurity) GetImageResultV2(req *VideoResultRequest) (*ImageResultResponse, error)
- func (p *BusinessSecurity) GetTextLibContent(req *GetCustomTextLibRequest) (*CustomTextLibListResponse, error)
- func (p *BusinessSecurity) GetVideoLiveResult(req *VideoResultRequest) (*VideoLiveResultResponse, error)
- func (p *BusinessSecurity) ImageContentRisk(req *RiskDetectionRequest) (*ImageResultResponse, error)
- func (p *BusinessSecurity) ImageContentRiskV2(req *RiskDetectionRequest) (*ImageResultResponse, error)
- func (p *BusinessSecurity) ListApps(req *ListAppsReq) (*ListAppsResponse, error)
- func (p *BusinessSecurity) MobileStatusV2(req *MobileStatusRequest) (*MobileStatusResponseV2, error)
- func (p *BusinessSecurity) QuerySystemNameListItem(req *QuerySystemNameListItemReq) (*QuerySystemNameListItemResp, error)
- func (p *BusinessSecurity) Retry() bool
- func (p *BusinessSecurity) RiskDetection(req *RiskDetectionRequest) (*RiskDetectionResponse, error)
- func (p *BusinessSecurity) RiskResult(req *RiskResultRequest) (*RiskResultResponse, error)
- func (p *BusinessSecurity) SetRegion(region string) error
- func (p *BusinessSecurity) SimpleRiskStat(req *CommonProductStatisticsReq) (*SimpleRiskStatResponse, error)
- func (p *BusinessSecurity) TextRisk(req *RiskDetectionRequest) (*TextResultResponse, error)
- func (p *BusinessSecurity) TextSliceRisk(req *RiskDetectionRequest) (*TextSliceResultResponse, error)
- func (p *BusinessSecurity) TextSliceRiskWithCtx(ctx context.Context, req *RiskDetectionRequest) (*TextSliceResultResponse, error)
- func (p *BusinessSecurity) UpdateAccessConfig(req *UpdateAccessConfigRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) UpdateConfigStatus(req *UpdateAccessConfigStatusRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) UpdateCustomLib(req *UpdateCustomLibRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) UploadCustomContents(req *ModifyTextContent) (*CustomContentResponse, error)
- func (p *BusinessSecurity) UploadImageLibContent(req *UploadCustomImgRequest) (*UploadCustomImgResponse, error)
- func (p *BusinessSecurity) UploadTextLibContent(req *UploadCustomTextRequest) (*CommonResponse, error)
- func (p *BusinessSecurity) VideoResult(req *VideoResultRequest) (*VideoResultResponse, error)
- type ChangeCustomLibStatusRequest
- type CommonProductStatisticsParams
- type CommonProductStatisticsReq
- type CommonProductStatisticsResultDetail
- type CommonProductStatisticsResultTotal
- type CommonResponse
- type ContentProductStatisticsParams
- type ContentProductStatisticsResult
- type ContentProductStatisticsResultDetail
- type ContentProductStatisticsResultTotal
- type ContentRiskStatResponse
- type ContentRiskStatResult
- type Context
- type CreateAccessConfigRequest
- type CreateAccessConfigResponse
- type CreateAppReq
- type CreateAppResponse
- type CreateAppResult
- type CreateCustomLibRequest
- type CreateCustomLibResponse
- type CustomContentResponse
- type CustomImgInfo
- type CustomImgLibListData
- type CustomImgLibListResponse
- type CustomLibCreateInfo
- type CustomLibListData
- type CustomLibListResponse
- type CustomTextLibListData
- type CustomTextLibListResponse
- type DataReportRequest
- type DataReportResponse
- type DecisionData
- type DelSystemNameListItemReq
- type DelSystemNameListItemResp
- type DelSystemNameListItemResult
- type DeleteCustomImgRequest
- type DeleteCustomLibRequest
- type DeleteCustomTextRequest
- type DetPointsRelative
- type DeviceInfo
- type ElementVerifyData
- type ElementVerifyDataDetail
- type ElementVerifyDataV2
- type ElementVerifyRequest
- type ElementVerifyResponse
- type ElementVerifyResponseV2
- type Frame
- type FrameResult
- type FrameResultV2
- type GetAccessConfigStatusRequest
- type GetCustomImgLibRequest
- type GetCustomLibRequest
- type GetCustomTextLibRequest
- type ImageContentFrame
- type ImageContentFrameDetail
- type ImageContentRiskResp
- type ImageContentRiskTag
- type ImageResultResponse
- type Label
- type ListAppsAppModel
- type ListAppsReq
- type ListAppsResponse
- type ListAppsResult
- type LiveFrame
- type LiveResult
- type MobileStatusData
- type MobileStatusDataV2
- type MobileStatusDetail
- type MobileStatusRequest
- type MobileStatusResponse
- type MobileStatusResponseV2
- type ModifyTextContent
- type NewCustomContentsReq
- type OpenResult
- type Page
- type Position
- type Positions
- type QuerySystemNameListItemReq
- type QuerySystemNameListItemResp
- type QuerySystemNameListItemResult
- type RequestData
- type Result
- type RiskDetectionRequest
- type RiskDetectionResponse
- type RiskResultRequest
- type RiskResultResponse
- type SampleData
- type SecuritySecurityClient
- type SecuritySourceData
- type SecuritySourceReferences
- type SecuritySourceResponse
- type SimpleProductStatisticsParams
- type SimpleProductStatisticsResult
- type SimpleProductStatisticsResultDetail
- type SimpleProductStatisticsResultTotal
- type SimpleRiskStatResponse
- type SimpleRiskStatResult
- type TextResult
- type TextResultResponse
- type TextRiskRespV2
- type TextRiskRespV3
- type TextSliceResultResponse
- type UpdateAccessConfigRequest
- type UpdateAccessConfigStatusRequest
- type UpdateContentReq
- type UpdateCustomLibRequest
- type UploadCustomImgInfo
- type UploadCustomImgRequest
- type UploadCustomImgResponse
- type UploadCustomTextRequest
- type VideoLiveResp
- type VideoLiveResult
- type VideoLiveResultResponse
- type VideoResp
- type VideoResult
- type VideoResultRequest
- type VideoResultResponse
Constants ¶
const ( PrdBusinessSecurity = "business_security" PrdAdblocker = "adblocker" PrdElemVerify = "element_verify" PRDMobileRisk = "mobile_security" PRDContentRisk = "content_security" )
Product
const ( ServiceContentVideoRisk = "video_risk" ServiceContentImageContentRisk = "image_content_risk" ServiceContentTextRisk = "text_risk" ServiceContentAudioRisk = "audio_risk" ServiceContentVideoLiveRisk = "video_live_risk" ServiceContentAudioLiveRisk = "audio_live_risk" )
service for content_security product
const ( MONTHLY = "month" DAILY = "day" )
unit type
const ( RiskTypeText = "text" RiskTypeImage = "image" RiskTypeAudio = "audio" )
RiskType
Variables ¶
var ( ServiceInfoMap = map[string]*base.ServiceInfo{ base.RegionCnNorth1: { Timeout: 5 * time.Second, Host: "riskcontrol.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionCnNorth1, Service: "BusinessSecurity"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "RiskDetection": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"RiskDetection"}, "Version": []string{"2021-02-02"}, }, }, "AsyncRiskDetection": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncRiskDetection"}, "Version": []string{"2021-02-25"}, }, }, "RiskResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"RiskResult"}, "Version": []string{"2021-03-10"}, }, }, "DataReport": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DataReport"}, "Version": []string{"2021-08-31"}, }, }, "TextRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"TextRisk"}, "Version": []string{"2022-01-26"}, }, }, "AsyncVideoRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncVideoRisk"}, "Version": []string{"2021-11-29"}, }, }, "VideoResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"VideoResult"}, "Version": []string{"2021-11-29"}, }, }, "AsyncImageRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncImageRisk"}, "Version": []string{"2021-11-29"}, }, }, "AsyncImageRiskV2": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncImageRisk"}, "Version": []string{"2022-08-26"}, }, }, "ImageContentRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ImageContentRisk"}, "Version": []string{"2021-11-29"}, }, }, "ImageContentRiskV2": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ImageContentRiskV2"}, "Version": []string{"2021-11-29"}, }, }, "GetImageResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetImageResult"}, "Version": []string{"2021-11-29"}, }, }, "GetImageResultV2": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ImageResult"}, "Version": []string{"2022-08-26"}, }, }, "AsyncAudioRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncAudioRisk"}, "Version": []string{"2022-04-01"}, }, }, "GetAudioResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetAudioResult"}, "Version": []string{"2022-04-01"}, }, }, "AudioRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AudioRisk"}, "Version": []string{"2022-04-01"}, }, }, "AsyncLiveVideoRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncLiveVideoRisk"}, "Version": []string{"2022-04-25"}, }, }, "GetVideoLiveResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetVideoLiveResult"}, "Version": []string{"2022-04-25"}, }, }, "CloseVideoLiveRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CloseVideoLive"}, "Version": []string{"2022-04-25"}, }, }, "AsyncLiveAudioRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AsyncLiveAudioRisk"}, "Version": []string{"2022-04-25"}, }, }, "GetAudioLiveResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetAudioLiveResult"}, "Version": []string{"2022-04-25"}, }, }, "CloseAudioLiveRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CloseAudioLive"}, "Version": []string{"2022-04-25"}, }, }, "EnableCustomContents": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"EnableCustomContents"}, "Version": []string{"2022-04-28"}, }, }, "DisableCustomContents": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DisableCustomContents"}, "Version": []string{"2022-04-28"}, }, }, "CreateCustomContents": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CreateCustomContents"}, "Version": []string{"2022-01-22"}, }, }, "UploadCustomContents": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UploadCustomContents"}, "Version": []string{"2022-02-07"}, }, }, "DeleteCustomContents": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteCustomContents"}, "Version": []string{"2022-04-28"}, }, }, "ElementVerify": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ElementVerify"}, "Version": []string{"2021-11-23"}, }, }, "MobileStatus": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"MobileStatus"}, "Version": []string{"2020-12-25"}, }, }, "ElementVerifyV2": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ElementVerify"}, "Version": []string{"2022-04-13"}, }, }, "ElementVerifyEncrypted": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ElementVerifyEncrypted"}, "Version": []string{"2022-11-24"}, }, }, "MobileStatusV2": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"MobileStatus"}, "Version": []string{"2022-04-13"}, }, }, "TextSliceRisk": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"TextSliceRisk"}, "Version": []string{"2022-11-07"}, }, }, "SimpleRiskStat": { Method: http.MethodGet, Path: "/", Timeout: 10 * time.Second, Query: url.Values{ "Action": []string{"SimpleRiskStat"}, "Version": []string{"2022-12-23"}, }, }, "ContentRiskStat": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"ContentRiskStat"}, "Version": []string{"2022-12-23"}, }, }, "DelSystemNameListItem": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"DelSystemNameListItem"}, "Version": []string{"2022-12-23"}, }, }, "QuerySystemNameListItem": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"QuerySystemNameListItem"}, "Version": []string{"2022-12-23"}, }, }, "CreateCustomLib": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"CreateCustomLib"}, "Version": []string{"2023-10-01"}, }, }, "UpdateCustomLib": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"UpdateCustomLib"}, "Version": []string{"2023-10-01"}, }, }, "ChangeCustomContentsStatus": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"ChangeCustomContentsStatus"}, "Version": []string{"2023-10-01"}, }, }, "DeleteCustomLib": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"DeleteCustomLib"}, "Version": []string{"2023-10-01"}, }, }, "GetCustomLib": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"GetCustomLib"}, "Version": []string{"2023-10-01"}, }, }, "CreateAccessConfig": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"CreateAccessConfig"}, "Version": []string{"2023-10-01"}, }, }, "UpdateAccessConfig": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"UpdateAccessConfig"}, "Version": []string{"2023-10-01"}, }, }, "UpdateConfigStatus": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"UpdateConfigStatus"}, "Version": []string{"2023-10-01"}, }, }, "GetAccessConfig": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"GetAccessConfig"}, "Version": []string{"2023-10-01"}, }, }, "GetTextLibContent": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"GetTextLibContent"}, "Version": []string{"2023-10-01"}, }, }, "DeleteTextLibContent": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"DeleteTextLibContent"}, "Version": []string{"2023-10-01"}, }, }, "UploadTextLibContent": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"UploadTextLibContent"}, "Version": []string{"2023-10-01"}, }, }, "GetImageLibContent": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"GetImageLibContent"}, "Version": []string{"2023-10-01"}, }, }, "DeleteImageLibContent": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"DeleteImageLibContent"}, "Version": []string{"2023-10-01"}, }, }, "UploadImageLibContent": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"UploadImageLibContent"}, "Version": []string{"2023-10-01"}, }, }, "CreateApp": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"CreateApp"}, "Version": []string{"2022-12-23"}, }, }, "ListApps": { Method: http.MethodGet, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"ListApps"}, "Version": []string{"2022-12-23"}, }, }, "ActivateRiskSampleData": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"ActivateRiskSampleData"}, "Version": []string{"2023-10-01"}, }, }, "ActivateRiskBasePackage": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"ActivateRiskBasePackage"}, "Version": []string{"2023-10-01"}, }, }, "ActivateRiskResult": { Method: http.MethodPost, Timeout: 10 * time.Second, Path: "/", Query: url.Values{ "Action": []string{"ActivateRiskResult"}, "Version": []string{"2023-10-01"}, }, }, } )
var DefaultInstance = NewInstance()
var ( SecuritySourceApiInfoList = map[string]*base.ApiInfo{ "SecuritySource": { Method: http.MethodPost, Timeout: 5 * time.Minute, Path: "/openapi/v1/sse/security_source", Query: url.Values{ "Action": []string{"SecuritySource"}, "Version": []string{"2022-08-26"}, }, }, "SecuritySourceStream": { Method: http.MethodPost, Timeout: 5 * time.Minute, Path: "/openapi/v1/sse/security_source_stream", Query: url.Values{ "Action": []string{"SecuritySourceStream"}, "Version": []string{"2022-08-26"}, }, }, } )
var SecuritySourceInstance = NewSecuritySourceInstance()
Functions ¶
func AesCBCEncryptWithBase64 ¶
AesCBCEncryptWithBase64 encrypt
func GetServiceInfo ¶ added in v1.0.132
func ToUrlValues ¶
func UnmarshalResultInto ¶
Types ¶
type AccessConfigCreateInfo ¶ added in v1.0.159
type AccessConfigCreateInfo struct {
Id int `json:"id"`
}
type AccessConfigListData ¶ added in v1.0.158
type AccessConfigListData struct { Id int64 `json:"id"` BizType string `json:"biztype"` Labels string `json:"labels"` Name string `json:"name"` Scene string `json:"scene"` Status int64 `json:"status"` OcrLabels string `json:"ocrLabels"` AsrLabels string `json:"asrLabels"` TextLibs string `json:"textLibs"` ImageLibs string `json:"imageLibs"` }
type AccessConfigListResponse ¶ added in v1.0.158
type AccessConfigListResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data []*AccessConfigListData `json:"Data"` }
type ActivateRiskBasePackageInfo ¶ added in v1.0.166
type ActivateRiskBasePackageReq ¶ added in v1.0.166
type ActivateRiskBasePackageResp ¶ added in v1.0.166
type ActivateRiskBasePackageResp struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data ActivateRiskBasePackageInfo `json:"Data"` }
type ActivateRiskResultInfo ¶ added in v1.0.166
type ActivateRiskResultInfo struct {
Success bool `json:"Success"`
}
type ActivateRiskResultReq ¶ added in v1.0.166
type ActivateRiskResultResp ¶ added in v1.0.166
type ActivateRiskResultResp struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data ActivateRiskResultInfo `json:"Data"` }
type ActivateRiskSampleDataInfo ¶ added in v1.0.166
type ActivateRiskSampleDataInfo struct {
Status int `json:"Status"`
}
type ActivateRiskSampleDataReq ¶ added in v1.0.166
type ActivateRiskSampleDataResp ¶ added in v1.0.166
type ActivateRiskSampleDataResp struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data ActivateRiskSampleDataInfo `json:"Data"` }
type AsyncVideoRiskResponse ¶
type AsyncVideoRiskResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data RequestData `json:"Data"` }
type AudioDetail ¶
type AudioDetail struct { StartTime float64 `json:"StartTime"` EndTime float64 `json:"EndTime"` FrameUrl string `json:"FrameUrl"` AudioText string `json:"AudioText"` FrameResults []*FrameResult `json:"FrameResults"` }
type AudioDetailV2 ¶
type AudioDetailV2 struct { StartTime int `json:"StartTime"` EndTime int `json:"EndTime"` FrameUrl string `json:"FrameUrl"` AudioText string `json:"AudioText"` SliceId string `json:"SliceId"` UserId string `json:"UserId"` Decision string `json:"Decision"` DecisionDetail string `json:"DecisionDetail"` FrameResults []*FrameResultV2 `json:"FrameResults"` }
type AudioLiveDetailV2 ¶ added in v1.0.149
type AudioLiveDetailV2 struct { StartTime int `json:"StartTime"` EndTime int `json:"EndTime"` FrameUrl string `json:"FrameUrl"` AudioText string `json:"AudioText"` SliceId string `json:"SliceId"` UserId string `json:"UserId"` Decision string `json:"Decision"` FrameResults []*FrameResultV2 `json:"FrameResults"` LiveFirstGetStreamTime int64 `json:"LiveFirstGetStreamTime"` }
type AudioLiveResult ¶ added in v1.0.149
type AudioLiveResult struct { Decision string `json:"Decision"` DataId string `json:"DataId"` AudioText string `json:"AudioText"` Details []*AudioLiveDetailV2 `json:"Details"` PassThrough string `json:"PassThrough"` }
type AudioLiveResultResponse ¶ added in v1.0.149
type AudioLiveResultResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` AudioLiveResp AudioLiveResult `json:"Data"` }
type AudioResult ¶
type AudioResult struct { Decision string `json:"Decision"` Details []*AudioDetail `json:"Details"` DataId string `json:"DataId"` }
type AudioResultResponse ¶
type AudioResultResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` AudioResp AudioResultV2 `json:"Data"` }
func (*AudioResultResponse) String ¶
func (resp *AudioResultResponse) String() string
type AudioResultV2 ¶
type BusinessSecurity ¶
func NewInstance ¶
func NewInstance() *BusinessSecurity
func (*BusinessSecurity) ActivateRiskBasePackage ¶ added in v1.0.166
func (p *BusinessSecurity) ActivateRiskBasePackage(req *ActivateRiskBasePackageReq) (*ActivateRiskBasePackageResp, error)
func (*BusinessSecurity) ActivateRiskResult ¶ added in v1.0.166
func (p *BusinessSecurity) ActivateRiskResult(req *ActivateRiskResultReq) (*ActivateRiskResultResp, error)
func (*BusinessSecurity) ActivateRiskSampleData ¶ added in v1.0.166
func (p *BusinessSecurity) ActivateRiskSampleData(req *ActivateRiskSampleDataReq) (*ActivateRiskSampleDataResp, error)
func (*BusinessSecurity) AsyncAudioRisk ¶
func (p *BusinessSecurity) AsyncAudioRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
Asynchronous audio risk detection 内容安全音频异步接口
func (*BusinessSecurity) AsyncImageRisk ¶
func (p *BusinessSecurity) AsyncImageRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
Asynchronous video risk detection 内容安全图片异步接口
func (*BusinessSecurity) AsyncImageRiskV2 ¶
func (p *BusinessSecurity) AsyncImageRiskV2(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
func (*BusinessSecurity) AsyncLiveAudioRisk ¶
func (p *BusinessSecurity) AsyncLiveAudioRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
Asynchronous audio risk detection 内容安全音频异步接口
func (*BusinessSecurity) AsyncLiveVideoRisk ¶
func (p *BusinessSecurity) AsyncLiveVideoRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
Asynchronous video risk detection 内容安全图片异步接口
func (*BusinessSecurity) AsyncRiskDetection ¶
func (p *BusinessSecurity) AsyncRiskDetection(req *AsyncRiskDetectionRequest) (*AsyncRiskDetectionResponse, error)
Asynchronous risk detection 风险识别异步接口
func (*BusinessSecurity) AsyncVideoRisk ¶
func (p *BusinessSecurity) AsyncVideoRisk(req *AsyncRiskDetectionRequest) (*AsyncVideoRiskResponse, error)
Asynchronous video risk detection 内容安全视频异步接口
func (*BusinessSecurity) AudioRisk ¶ added in v1.0.113
func (p *BusinessSecurity) AudioRisk(req *RiskDetectionRequest) (*AudioResultResponse, error)
audio Risk 风险识别接口
func (*BusinessSecurity) ChangeCustomContentsStatus ¶ added in v1.0.158
func (p *BusinessSecurity) ChangeCustomContentsStatus(req *ChangeCustomLibStatusRequest) (*CommonResponse, error)
func (*BusinessSecurity) CloseAudioLiveRisk ¶
func (p *BusinessSecurity) CloseAudioLiveRisk(req *VideoResultRequest) (*AsyncVideoRiskResponse, error)
close audio Risk 风险识别异步关闭接口
func (*BusinessSecurity) CloseRetry ¶
func (p *BusinessSecurity) CloseRetry()
func (*BusinessSecurity) CloseVideoLiveRisk ¶
func (p *BusinessSecurity) CloseVideoLiveRisk(req *VideoResultRequest) (*AsyncVideoRiskResponse, error)
close audio Risk 风险识别异步关闭接口
func (*BusinessSecurity) ContentRiskStat ¶ added in v1.0.104
func (p *BusinessSecurity) ContentRiskStat(req *CommonProductStatisticsReq) (*ContentRiskStatResponse, error)
func (*BusinessSecurity) CreateAccessConfig ¶ added in v1.0.158
func (p *BusinessSecurity) CreateAccessConfig(req *CreateAccessConfigRequest) (*CreateAccessConfigResponse, error)
func (*BusinessSecurity) CreateApp ¶ added in v1.0.158
func (p *BusinessSecurity) CreateApp(req *CreateAppReq) (*CreateAppResponse, error)
CreateApp 创建app接口
func (*BusinessSecurity) CreateCustomContents ¶
func (p *BusinessSecurity) CreateCustomContents(req *NewCustomContentsReq) (*CustomContentResponse, error)
CreateCustomContents 创建自定义库
func (*BusinessSecurity) CreateCustomLib ¶ added in v1.0.158
func (p *BusinessSecurity) CreateCustomLib(req *CreateCustomLibRequest) (*CreateCustomLibResponse, error)
func (*BusinessSecurity) DataReport ¶
func (p *BusinessSecurity) DataReport(req *DataReportRequest) (*DataReportResponse, error)
func (*BusinessSecurity) DelSystemNameListItem ¶ added in v1.0.121
func (p *BusinessSecurity) DelSystemNameListItem(req *DelSystemNameListItemReq) (*DelSystemNameListItemResp, error)
delete system name list item 删除系统名单内容,进行解封
func (*BusinessSecurity) DeleteCustomContents ¶
func (p *BusinessSecurity) DeleteCustomContents(req *ModifyTextContent) (*CustomContentResponse, error)
delete custom contents 删除文本自定义库内容
func (*BusinessSecurity) DeleteCustomLib ¶ added in v1.0.158
func (p *BusinessSecurity) DeleteCustomLib(req *DeleteCustomLibRequest) (*CommonResponse, error)
func (*BusinessSecurity) DeleteImageLibContent ¶ added in v1.0.158
func (p *BusinessSecurity) DeleteImageLibContent(req *DeleteCustomImgRequest) (*CommonResponse, error)
func (*BusinessSecurity) DeleteTextLibContent ¶ added in v1.0.158
func (p *BusinessSecurity) DeleteTextLibContent(req *DeleteCustomTextRequest) (*CommonResponse, error)
func (*BusinessSecurity) DisableCustomContents ¶
func (p *BusinessSecurity) DisableCustomContents(req *UpdateContentReq) (*AsyncRiskDetectionResponse, error)
disable custom contents 禁用文本自定义库
func (*BusinessSecurity) ElementVerifyEncrypted ¶
func (p *BusinessSecurity) ElementVerifyEncrypted(encryptedType string, secretKey string, req *ElementVerifyRequest) (*ElementVerifyResponseV2, error)
ElementVerifyEncrypted 加密要素验证 encryptedType - 加密类型,例如:AES secretKey - 秘钥(需要申请)
func (*BusinessSecurity) ElementVerifyV2 ¶
func (p *BusinessSecurity) ElementVerifyV2(req *ElementVerifyRequest) (*ElementVerifyResponseV2, error)
要素验证
func (*BusinessSecurity) EnableCustomContents ¶
func (p *BusinessSecurity) EnableCustomContents(req *UpdateContentReq) (*CustomContentResponse, error)
EnableCustomContents 启用文本自定义库
func (*BusinessSecurity) GetAccessConfig ¶ added in v1.0.158
func (p *BusinessSecurity) GetAccessConfig(req *GetAccessConfigStatusRequest) (*AccessConfigListResponse, error)
func (*BusinessSecurity) GetAudioLiveResult ¶
func (p *BusinessSecurity) GetAudioLiveResult(req *VideoResultRequest) (*AudioLiveResultResponse, error)
audio Risk result 风险识别结果获取接口
func (*BusinessSecurity) GetAudioResult ¶
func (p *BusinessSecurity) GetAudioResult(req *VideoResultRequest) (*AudioResultResponse, error)
audio Risk result 风险识别结果获取接口
func (*BusinessSecurity) GetCustomLib ¶ added in v1.0.158
func (p *BusinessSecurity) GetCustomLib(req *GetCustomLibRequest) (*CustomLibListResponse, error)
func (*BusinessSecurity) GetImageLibContent ¶ added in v1.0.158
func (p *BusinessSecurity) GetImageLibContent(req *GetCustomImgLibRequest) (*CustomImgLibListResponse, error)
func (*BusinessSecurity) GetImageResult ¶
func (p *BusinessSecurity) GetImageResult(req *VideoResultRequest) (*ImageResultResponse, error)
Risk result 风险识别结果获取接口
func (*BusinessSecurity) GetImageResultV2 ¶
func (p *BusinessSecurity) GetImageResultV2(req *VideoResultRequest) (*ImageResultResponse, error)
func (*BusinessSecurity) GetTextLibContent ¶ added in v1.0.158
func (p *BusinessSecurity) GetTextLibContent(req *GetCustomTextLibRequest) (*CustomTextLibListResponse, error)
func (*BusinessSecurity) GetVideoLiveResult ¶
func (p *BusinessSecurity) GetVideoLiveResult(req *VideoResultRequest) (*VideoLiveResultResponse, error)
Risk result 风险识别结果获取接口
func (*BusinessSecurity) ImageContentRisk ¶
func (p *BusinessSecurity) ImageContentRisk(req *RiskDetectionRequest) (*ImageResultResponse, error)
image risk deteciton 已废弃-使用ImageContentRiskV2 Deprecated
func (*BusinessSecurity) ImageContentRiskV2 ¶ added in v1.0.100
func (p *BusinessSecurity) ImageContentRiskV2(req *RiskDetectionRequest) (*ImageResultResponse, error)
image risk deteciton 内容安全图片实时接口
func (*BusinessSecurity) ListApps ¶ added in v1.0.158
func (p *BusinessSecurity) ListApps(req *ListAppsReq) (*ListAppsResponse, error)
ListApps 获取APP列表
func (*BusinessSecurity) MobileStatusV2 ¶
func (p *BusinessSecurity) MobileStatusV2(req *MobileStatusRequest) (*MobileStatusResponseV2, error)
号码状态
func (*BusinessSecurity) QuerySystemNameListItem ¶ added in v1.0.121
func (p *BusinessSecurity) QuerySystemNameListItem(req *QuerySystemNameListItemReq) (*QuerySystemNameListItemResp, error)
query system name list item 查询系统名单内容
func (*BusinessSecurity) Retry ¶
func (p *BusinessSecurity) Retry() bool
func (*BusinessSecurity) RiskDetection ¶
func (p *BusinessSecurity) RiskDetection(req *RiskDetectionRequest) (*RiskDetectionResponse, error)
Synchronous risk detection 风险识别实时接口
func (*BusinessSecurity) RiskResult ¶
func (p *BusinessSecurity) RiskResult(req *RiskResultRequest) (*RiskResultResponse, error)
Risk result 风险识别结果获取接口
func (*BusinessSecurity) SetRegion ¶
func (p *BusinessSecurity) SetRegion(region string) error
func (*BusinessSecurity) SimpleRiskStat ¶ added in v1.0.104
func (p *BusinessSecurity) SimpleRiskStat(req *CommonProductStatisticsReq) (*SimpleRiskStatResponse, error)
func (*BusinessSecurity) TextRisk ¶
func (p *BusinessSecurity) TextRisk(req *RiskDetectionRequest) (*TextResultResponse, error)
text risk detection 已废弃-使用TextSliceRisk Deprecated
func (*BusinessSecurity) TextSliceRisk ¶
func (p *BusinessSecurity) TextSliceRisk(req *RiskDetectionRequest) (*TextSliceResultResponse, error)
text slice risk detection 内容安全文本切片检测实时接口
func (*BusinessSecurity) TextSliceRiskWithCtx ¶ added in v1.0.156
func (p *BusinessSecurity) TextSliceRiskWithCtx(ctx context.Context, req *RiskDetectionRequest) (*TextSliceResultResponse, error)
text slice risk detection with context 内容安全文本切片检测实时接口
func (*BusinessSecurity) UpdateAccessConfig ¶ added in v1.0.158
func (p *BusinessSecurity) UpdateAccessConfig(req *UpdateAccessConfigRequest) (*CommonResponse, error)
func (*BusinessSecurity) UpdateConfigStatus ¶ added in v1.0.158
func (p *BusinessSecurity) UpdateConfigStatus(req *UpdateAccessConfigStatusRequest) (*CommonResponse, error)
func (*BusinessSecurity) UpdateCustomLib ¶ added in v1.0.158
func (p *BusinessSecurity) UpdateCustomLib(req *UpdateCustomLibRequest) (*CommonResponse, error)
func (*BusinessSecurity) UploadCustomContents ¶
func (p *BusinessSecurity) UploadCustomContents(req *ModifyTextContent) (*CustomContentResponse, error)
upload custom contents 上传文本自定义库内容
func (*BusinessSecurity) UploadImageLibContent ¶ added in v1.0.158
func (p *BusinessSecurity) UploadImageLibContent(req *UploadCustomImgRequest) (*UploadCustomImgResponse, error)
func (*BusinessSecurity) UploadTextLibContent ¶ added in v1.0.158
func (p *BusinessSecurity) UploadTextLibContent(req *UploadCustomTextRequest) (*CommonResponse, error)
func (*BusinessSecurity) VideoResult ¶
func (p *BusinessSecurity) VideoResult(req *VideoResultRequest) (*VideoResultResponse, error)
Risk result 风险识别结果获取接口
type ChangeCustomLibStatusRequest ¶ added in v1.0.158
type CommonProductStatisticsParams ¶ added in v1.0.104
type CommonProductStatisticsReq ¶ added in v1.0.104
type CommonProductStatisticsReq struct { Product string `json:"Product" form:"Product" query:"Product"` UnitType string `json:"UnitType" form:"UnitType" query:"UnitType"` Parameters string `json:"Parameters" form:"Parameters" query:"Parameters"` AppId *int64 `json:"AppId" form:"AppId" query:"AppId"` Service *string `json:"Service" form:"Service" query:"Service"` }
type CommonProductStatisticsResultDetail ¶ added in v1.0.104
type CommonProductStatisticsResultDetail struct { AccountId int64 `json:"AccountId"` RequestCnt int64 `json:"RequestCnt"` DateTime string `json:"DateTime"` ChargeRequestCnt *int64 `json:"ChargeRequestCnt,omitempty"` Service *string `json:"Service,omitempty"` AppId *int64 `json:"AppId,omitempty"` AppName *string `json:"AppName,omitempty"` }
type CommonProductStatisticsResultTotal ¶ added in v1.0.104
type CommonResponse ¶ added in v1.0.158
type ContentProductStatisticsParams ¶ added in v1.0.104
type ContentProductStatisticsParams struct { CommonProductStatisticsParams Biztype string `json:"biztype"` NeedBizTypeDetail bool `json:"need_biz_type_detail"` RiskType string `json:"risk_type"` NeedRiskTypeDetail bool `json:"need_risk_type_detail"` }
type ContentProductStatisticsResult ¶ added in v1.0.104
type ContentProductStatisticsResult struct { Total *ContentProductStatisticsResultTotal `json:"Total"` Detail []*ContentProductStatisticsResultDetail `json:"Detail"` }
type ContentProductStatisticsResultDetail ¶ added in v1.0.104
type ContentProductStatisticsResultDetail struct { CommonProductStatisticsResultDetail Biztype *string `json:"Biztype,omitempty"` RequestWordCnt *int64 `json:"RequestWordCnt,omitempty"` RiskType *string `json:"RiskType,omitempty"` RequestFrameCnt *int64 `json:"RequestFrameCnt,omitempty"` RequestDuration *float64 `json:"RequestAudioDuration,omitempty"` }
type ContentProductStatisticsResultTotal ¶ added in v1.0.104
type ContentProductStatisticsResultTotal struct { CommonProductStatisticsResultTotal RequestWordCnt *int64 `json:"RequestWordCnt,omitempty"` RequestFrameCnt *int64 `json:"RequestFrameCnt,omitempty"` RequestDuration *float64 `json:"RequestAudioDuration,omitempty"` }
type ContentRiskStatResponse ¶ added in v1.0.104
type ContentRiskStatResponse struct {
Result *ContentRiskStatResult `json:"Result"`
}
type ContentRiskStatResult ¶ added in v1.0.104
type ContentRiskStatResult struct { OpenResult Data *ContentProductStatisticsResult `json:"Data"` }
type CreateAccessConfigRequest ¶ added in v1.0.158
type CreateAccessConfigRequest struct { AppId int64 `json:"app_id"` Service string `json:"service_item"` Name string `json:"name"` BizType string `json:"biztype"` Scene string `json:"scene"` Labels string `json:"labels"` OcrLabels string `json:"ocr_labels"` AsrLabels string `json:"asr_labels"` TextLibs string `json:"text_libs"` ImageLibs string `json:"image_libs"` }
type CreateAccessConfigResponse ¶ added in v1.0.159
type CreateAccessConfigResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data AccessConfigCreateInfo `json:"Data"` }
type CreateAppReq ¶ added in v1.0.158
type CreateAppReq struct { AppName string `json:"AppName" form:"AppName" query:"AppName"` AppNameZh string `json:"AppNameZh" form:"AppNameZh" query:"AppNameZh"` AppType string `json:"AppType" form:"AppType" query:"AppType"` Description string `json:"Description" form:"Description" query:"Description"` }
func (*CreateAppReq) ToQuery ¶ added in v1.0.158
func (r *CreateAppReq) ToQuery() url.Values
type CreateAppResponse ¶ added in v1.0.158
type CreateAppResponse struct { OpenResult Data CreateAppResult `json:"Data"` }
type CreateAppResult ¶ added in v1.0.158
type CreateCustomLibRequest ¶ added in v1.0.158
type CreateCustomLibRequest struct { AppId int64 `json:"app_id"` Name string `json:"name"` Description string `json:"description"` MatchType string `json:"match_type"` Decision string `json:"decision"` BizTypes string `json:"biztypes"` Service string `json:"service"` LibType string `json:"lib_type"` }
type CreateCustomLibResponse ¶ added in v1.0.159
type CreateCustomLibResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data CustomLibCreateInfo `json:"Data"` }
type CustomContentResponse ¶
type CustomImgInfo ¶ added in v1.0.158
type CustomImgLibListData ¶ added in v1.0.158
type CustomImgLibListResponse ¶ added in v1.0.158
type CustomImgLibListResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data []*CustomImgLibListData `json:"Data"` Total int `json:"TotalCnt"` }
type CustomLibCreateInfo ¶ added in v1.0.159
type CustomLibCreateInfo struct {
Id int `json:"id"`
}
type CustomLibListData ¶ added in v1.0.158
type CustomLibListResponse ¶ added in v1.0.158
type CustomLibListResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data []*CustomLibListData `json:"Data"` }
type CustomTextLibListData ¶ added in v1.0.158
type CustomTextLibListResponse ¶ added in v1.0.158
type CustomTextLibListResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data []*CustomTextLibListData `json:"Data"` Total int `json:"TotalCnt"` }
type DataReportRequest ¶
type DataReportResponse ¶
type DecisionData ¶
type DecisionData struct { Score int `json:"Score"` Tags []string `json:"Tags"` Detail string `json:"Detail"` DeviceInfo DeviceInfo `json:"DeviceInfo"` }
type DelSystemNameListItemReq ¶ added in v1.0.121
type DelSystemNameListItemResp ¶ added in v1.0.121
type DelSystemNameListItemResp struct { OpenResult Data *DelSystemNameListItemResult `json:"Data"` }
type DelSystemNameListItemResult ¶ added in v1.0.121
type DelSystemNameListItemResult struct {
Status int `json:"Status"`
}
type DeleteCustomImgRequest ¶ added in v1.0.158
type DeleteCustomLibRequest ¶ added in v1.0.158
type DeleteCustomTextRequest ¶ added in v1.0.158
type DetPointsRelative ¶ added in v1.0.157
type DeviceInfo ¶
type ElementVerifyData ¶
type ElementVerifyDataDetail ¶
type ElementVerifyDataDetail struct { BankName string `json:"BankName,omitempty"` CardType string `json:"CardType,omitempty"` CardCategory string `json:"CardCategory,omitempty"` EnterpriseCode string `json:"EnterpriseCode,omitempty"` EnterpriseName string `json:"EnterpriseName,omitempty"` IdCardNo string `json:"IdCardNo,omitempty"` IdCardName string `json:"IdCardName,omitempty"` Reason int64 `json:"Reason,omitempty"` }
type ElementVerifyDataV2 ¶
type ElementVerifyDataV2 struct { Status int `json:"Status"` Detail ElementVerifyDataDetail `json:"Detail"` }
type ElementVerifyRequest ¶
type ElementVerifyResponse ¶
type ElementVerifyResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data ElementVerifyData `json:"Data"` }
type ElementVerifyResponseV2 ¶
type ElementVerifyResponseV2 struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data ElementVerifyDataV2 `json:"Data"` }
type FrameResult ¶
type FrameResultV2 ¶
type GetAccessConfigStatusRequest ¶ added in v1.0.158
type GetCustomImgLibRequest ¶ added in v1.0.158
type GetCustomLibRequest ¶ added in v1.0.158
type GetCustomTextLibRequest ¶ added in v1.0.158
type ImageContentFrame ¶
type ImageContentFrameDetail ¶ added in v1.0.157
type ImageContentRiskResp ¶
type ImageContentRiskResp struct { DataId string `json:"DataId"` Decision string `json:"Decision"` OcrText string `json:"OcrText"` DecisionDetail string `json:"DecisionDetail"` Results []*ImageContentRiskTag `json:"Results"` Scores map[string]float64 `json:"Scores"` OcrDetails []*ImageContentFrameDetail `json:"OcrDetails"` }
type ImageContentRiskTag ¶
type ImageContentRiskTag struct { Label string `json:"Label"` SubLabel string `json:"SubLabel"` Decision string `json:"Decision"` Score float64 `json:"score"` Detail interface{} `json:"Detail"` Frames []*ImageContentFrame `json:"Frames"` }
type ImageResultResponse ¶
type ImageResultResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` ImageResp ImageContentRiskResp `json:"Data"` }
type ListAppsAppModel ¶ added in v1.0.158
type ListAppsAppModel struct { AppId uint `json:"AppId"` AppName string `json:"AppName"` AppNameZh string `json:"AppNameZh"` AppType string `json:"AppType"` Description string `json:"Description"` CreatedTime string `json:"CreatedTime"` UpdatedTime string `json:"UpdatedTime"` IsFavor bool `json:"IsFavor"` }
type ListAppsReq ¶ added in v1.0.158
type ListAppsReq struct { Limit int `json:"Limit" form:"Limit" query:"Limit"` Offset int `json:"Offset" form:"Offset" query:"Offset"` }
func (*ListAppsReq) ToQuery ¶ added in v1.0.158
func (r *ListAppsReq) ToQuery() url.Values
type ListAppsResponse ¶ added in v1.0.158
type ListAppsResponse struct { OpenResult Data ListAppsResult `json:"Data"` }
type ListAppsResult ¶ added in v1.0.158
type ListAppsResult struct { Total int `json:"Total"` Limit int `json:"Limit"` Offset int `json:"Offset"` Apps []*ListAppsAppModel `json:"Apps"` }
type LiveResult ¶ added in v1.0.149
type MobileStatusData ¶
type MobileStatusDataV2 ¶
type MobileStatusDataV2 struct { Status int `json:"Status"` Mobile string `json:"Mobile"` Detail MobileStatusDetail `json:"Detail"` }
type MobileStatusDetail ¶
type MobileStatusDetail struct { Province string `json:"Province"` ProvinceCode string `json:"ProvinceCode"` City string `json:"City"` CityCode string `json:"CityCode"` ISP string `json:"ISP"` Mobile string `json:"Mobile"` PostCode string `json:"PostCode"` OldISP int `json:"OldISP"` NewISP int `json:"NewISP"` }
type MobileStatusRequest ¶
type MobileStatusResponse ¶
type MobileStatusResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data MobileStatusData `json:"Data"` }
type MobileStatusResponseV2 ¶
type MobileStatusResponseV2 struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data MobileStatusDataV2 `json:"Data"` }
type ModifyTextContent ¶
type NewCustomContentsReq ¶
type NewCustomContentsReq struct { AppID int64 `json:"app_id" form:"app_id" query:"app_id"` Service string `json:"service" form:"service" query:"service"` Name string `json:"name" form:"name" query:"name"` Description string `json:"description" form:"description" query:"description"` Decision string `json:"decision" form:"decision" query:"decision"` MatchType string `json:"match_type" form:"match_type" query:"match_type"` LibType string `json:"lib_type" form:"lib_type" query:"lib_type"` Biztypes string `json:"biztypes" form:"biztypes" query:"biztypes"` }
type OpenResult ¶ added in v1.0.104
type OpenResult struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` }
func (*OpenResult) GetErr ¶ added in v1.0.104
func (result *OpenResult) GetErr() error
type Positions ¶ added in v1.0.157
type Positions struct { DetPointsRelative []*DetPointsRelative `json:"DetPointsRelative"` Text string `json:"Text"` }
type QuerySystemNameListItemReq ¶ added in v1.0.121
type QuerySystemNameListItemReq struct { Product string `json:"Product" form:"Product" query:"Product"` AppId int64 `json:"AppId" form:"AppId" query:"AppId"` Service string `json:"Service" form:"Service" query:"Service"` Object string `json:"Object" form:"Object" query:"Object"` }
func (*QuerySystemNameListItemReq) ToQuery ¶ added in v1.0.121
func (r *QuerySystemNameListItemReq) ToQuery() url.Values
type QuerySystemNameListItemResp ¶ added in v1.0.121
type QuerySystemNameListItemResp struct { OpenResult Data *QuerySystemNameListItemResult `json:"Data"` }
type QuerySystemNameListItemResult ¶ added in v1.0.121
type QuerySystemNameListItemResult struct {
IsHit bool `json:"IsHit"`
}
type RequestData ¶
type RequestData struct {
PassThrough string `json:"PassThrough"`
}
type RiskDetectionRequest ¶
type RiskDetectionResponse ¶
type RiskDetectionResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data DecisionData `json:"Data"` }
type RiskResultRequest ¶
type RiskResultRequest struct { AppId int64 `json:"AppId" form:"AppId"` Service string `json:"Service" form:"Service"` StartTime int64 `json:"StartTime" form:"StartTime"` EndTime int64 `json:"EndTime" form:"EndTime"` Page }
func (*RiskResultRequest) ToQuery ¶
func (r *RiskResultRequest) ToQuery() url.Values
type RiskResultResponse ¶
type SampleData ¶ added in v1.0.166
type SecuritySecurityClient ¶ added in v1.0.132
func NewSecuritySourceInstance ¶ added in v1.0.132
func NewSecuritySourceInstance() *SecuritySecurityClient
func (*SecuritySecurityClient) SecuritySource ¶ added in v1.0.132
func (p *SecuritySecurityClient) SecuritySource(req *RiskDetectionRequest) (*SecuritySourceResponse, error)
func (*SecuritySecurityClient) SecuritySourceStream ¶ added in v1.0.132
func (p *SecuritySecurityClient) SecuritySourceStream(req *RiskDetectionRequest) (<-chan *SecuritySourceResponse, error)
func (*SecuritySecurityClient) SetRegion ¶ added in v1.0.132
func (p *SecuritySecurityClient) SetRegion(region string) error
type SecuritySourceData ¶ added in v1.0.132
type SecuritySourceData struct { Content string `json:"Content"` References []*SecuritySourceReferences `json:"References"` FinishReason string `json:"FinishReason"` }
type SecuritySourceReferences ¶ added in v1.0.132
type SecuritySourceResponse ¶ added in v1.0.132
type SecuritySourceResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data SecuritySourceData `json:"Data"` }
type SimpleProductStatisticsParams ¶ added in v1.0.104
type SimpleProductStatisticsParams struct { CommonProductStatisticsParams NeedServiceDetail bool `json:"need_service_detail"` }
type SimpleProductStatisticsResult ¶ added in v1.0.104
type SimpleProductStatisticsResult struct { Total *SimpleProductStatisticsResultTotal `json:"Total"` Detail []*SimpleProductStatisticsResultDetail `json:"Detail"` }
type SimpleProductStatisticsResultDetail ¶ added in v1.0.104
type SimpleProductStatisticsResultDetail CommonProductStatisticsResultDetail
type SimpleProductStatisticsResultTotal ¶ added in v1.0.104
type SimpleProductStatisticsResultTotal CommonProductStatisticsResultTotal
type SimpleRiskStatResponse ¶ added in v1.0.104
type SimpleRiskStatResponse struct {
Result *SimpleRiskStatResult `json:"Result"`
}
openapi
type SimpleRiskStatResult ¶ added in v1.0.104
type SimpleRiskStatResult struct { OpenResult Data *SimpleProductStatisticsResult `json:"Data"` }
type TextResult ¶
type TextResultResponse ¶
type TextResultResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` VideoResp TextRiskRespV2 `json:"Data"` }
type TextRiskRespV2 ¶
type TextRiskRespV3 ¶
type TextRiskRespV3 struct { Decision string `json:"Decision"` DecisionDetail string `json:"DecisionDetail"` FinalLabel string `json:"FinalLabel"` TextCount int `json:"TextCount"` Results []*TextResult `json:"Results"` }
type TextSliceResultResponse ¶
type TextSliceResultResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` VideoResp TextRiskRespV3 `json:"Data"` }
func (*TextSliceResultResponse) String ¶
func (resp *TextSliceResultResponse) String() string
type UpdateAccessConfigRequest ¶ added in v1.0.158
type UpdateAccessConfigRequest struct { Id int64 `json:"id"` AppId int64 `json:"app_id"` Service string `json:"service_item"` Name string `json:"name"` BizType string `json:"biztype"` Scene string `json:"scene"` Labels string `json:"labels"` OcrLabels string `json:"ocr_labels"` AsrLabels string `json:"asr_labels"` TextLibs string `json:"text_libs"` ImageLibs string `json:"image_libs"` }
type UpdateAccessConfigStatusRequest ¶ added in v1.0.158
type UpdateContentReq ¶
type UpdateContentReq struct { AppID int64 `json:"app_id" form:"app_id" query:"app_id"` Service string `json:"service" form:"service" query:"service"` LibType string `json:"lib_type" form:"lib_type" query:"lib_type"` Name string `json:"name" form:"name" query:"name"` Status int `json:"status" form:"status" query:"status"` }
type UpdateCustomLibRequest ¶ added in v1.0.158
type UploadCustomImgInfo ¶ added in v1.0.159
type UploadCustomImgInfo struct {
Ids []int `json:"ids"`
}
type UploadCustomImgRequest ¶ added in v1.0.158
type UploadCustomImgRequest struct { AppId int64 `json:"app_id"` Service string `json:"service"` Name string `json:"name"` Data []*CustomImgInfo `json:"data"` }
type UploadCustomImgResponse ¶ added in v1.0.159
type UploadCustomImgResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` Data UploadCustomImgInfo `json:"Data"` }
type UploadCustomTextRequest ¶ added in v1.0.158
type VideoLiveResp ¶ added in v1.0.149
type VideoLiveResp struct { DataId string `json:"DataId"` VideoResult VideoLiveResult `json:"VideoResults"` AudioResults AudioLiveResult `json:"AudioResults"` PassThrough string `json:"PassThrough"` }
type VideoLiveResult ¶ added in v1.0.149
type VideoLiveResultResponse ¶ added in v1.0.149
type VideoLiveResultResponse struct { RequestId string `json:"RequestId"` Code int `json:"Code"` Message string `json:"Message"` VideoLiveResp VideoLiveResp `json:"Data"` }
type VideoResp ¶
type VideoResp struct { DataId string `json:"DataId"` VideoResult VideoResult `json:"VideoResults"` AudioResults AudioResultV2 `json:"AudioResults"` PassThrough string `json:"PassThrough"` }
type VideoResult ¶
type VideoResultRequest ¶
type VideoResultRequest struct { DataId string `json:"DataId"` AppId int64 `json:"AppId"` Service string `json:"Service"` }
func (*VideoResultRequest) ToQuery ¶
func (r *VideoResultRequest) ToQuery() url.Values