model

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResultItemsBody

type CheckResultItemsBody struct {
	Url *string `json:"url,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`

	Detail *ImageDetectionResultDetail `json:"detail,omitempty"`

	CategorySuggestions map[string]string `json:"category_suggestions,omitempty"`
}

func (CheckResultItemsBody) String

func (o CheckResultItemsBody) String() string

type CheckResultResultBody

type CheckResultResultBody struct {
	JobId *string `json:"job_id,omitempty"`

	Status *string `json:"status,omitempty"`

	CreateTime *string `json:"create_time,omitempty"`

	UpdateTime *string `json:"update_time,omitempty"`

	Items *[]CheckResultItemsBody `json:"items,omitempty"`
}

func (CheckResultResultBody) String

func (o CheckResultResultBody) String() string

type CheckTaskJobsItemsBody

type CheckTaskJobsItemsBody struct {
	JobId *string `json:"job_id,omitempty"`

	Status *string `json:"status,omitempty"`

	CreateTime *string `json:"create_time,omitempty"`

	UpdateTime *string `json:"update_time,omitempty"`
}

func (CheckTaskJobsItemsBody) String

func (o CheckTaskJobsItemsBody) String() string

type ImageBatchModerationReq

type ImageBatchModerationReq struct {
	Urls []string `json:"urls"`

	Categories *[]ImageBatchModerationReqCategories `json:"categories,omitempty"`

	Threshold *float64 `json:"threshold,omitempty"`
}

func (ImageBatchModerationReq) String

func (o ImageBatchModerationReq) String() string

type ImageBatchModerationReqCategories

type ImageBatchModerationReqCategories struct {
	// contains filtered or unexported fields
}

func (ImageBatchModerationReqCategories) MarshalJSON

func (c ImageBatchModerationReqCategories) MarshalJSON() ([]byte, error)

func (*ImageBatchModerationReqCategories) UnmarshalJSON

func (c *ImageBatchModerationReqCategories) UnmarshalJSON(b []byte) error

type ImageBatchModerationResultBody

type ImageBatchModerationResultBody struct {
	Url *string `json:"url,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`

	Detail *ImageDetectionResultDetail `json:"detail,omitempty"`

	CategorySuggestions *interface{} `json:"category_suggestions,omitempty"`
}

func (ImageBatchModerationResultBody) String

type ImageDetectionReq

type ImageDetectionReq struct {
	Url *string `json:"url,omitempty"`

	Image string `json:"image,omitempty"`

	ModerationRule *string `json:"moderation_rule,omitempty"`

	Categories *[]ImageDetectionReqCategories `json:"categories,omitempty"`

	AdGlossaries *[]string `json:"ad_glossaries,omitempty"`

	AdCategories *[]string `json:"ad_categories,omitempty"`

	Threshold *float32 `json:"threshold,omitempty"`
}

func (ImageDetectionReq) String

func (o ImageDetectionReq) String() string

type ImageDetectionReqCategories

type ImageDetectionReqCategories struct {
	// contains filtered or unexported fields
}

func (ImageDetectionReqCategories) MarshalJSON

func (c ImageDetectionReqCategories) MarshalJSON() ([]byte, error)

func (*ImageDetectionReqCategories) UnmarshalJSON

func (c *ImageDetectionReqCategories) UnmarshalJSON(b []byte) error

type ImageDetectionResultAdDetail

type ImageDetectionResultAdDetail struct {
	Confidence *float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`

	HitContexts *[]string `json:"hit_contexts,omitempty"`
}

广告检测详情

func (ImageDetectionResultAdDetail) String

type ImageDetectionResultBody

type ImageDetectionResultBody struct {
	Detail *ImageDetectionResultDetail `json:"detail,omitempty"`

	Suggestion *string `json:"suggestion,omitempty"`

	CategorySuggestions map[string]string `json:"category_suggestions,omitempty"`
}

func (ImageDetectionResultBody) String

func (o ImageDetectionResultBody) String() string

type ImageDetectionResultDetail

type ImageDetectionResultDetail struct {
	Politics *[]ImageDetectionResultDetailPolitics `json:"politics,omitempty"`

	Porn *[]ImageDetectionResultSimpleDetail `json:"porn,omitempty"`

	Terrorism *[]ImageDetectionResultSimpleDetail `json:"terrorism,omitempty"`

	Ad *[]ImageDetectionResultAdDetail `json:"ad,omitempty"`
}

func (ImageDetectionResultDetail) String

type ImageDetectionResultDetailFaceDetail

type ImageDetectionResultDetailFaceDetail struct {
	H *int32 `json:"h,omitempty"`

	W *int32 `json:"w,omitempty"`

	X *int32 `json:"x,omitempty"`

	Y *int32 `json:"y,omitempty"`
}

涉政场景中的人物面部信息。

func (ImageDetectionResultDetailFaceDetail) String

type ImageDetectionResultDetailPolitics

type ImageDetectionResultDetailPolitics struct {
	Confidence *float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`

	FaceDetail *ImageDetectionResultDetailFaceDetail `json:"face_detail,omitempty"`
}

func (ImageDetectionResultDetailPolitics) String

type ImageDetectionResultSimpleDetail

type ImageDetectionResultSimpleDetail struct {
	Confidence *float32 `json:"confidence,omitempty"`

	Label *string `json:"label,omitempty"`
}

反黄,暴恐检测详情

func (ImageDetectionResultSimpleDetail) String

type RunCheckResultRequest

type RunCheckResultRequest struct {
	JobId string `json:"job_id"`
}

Request Object

func (RunCheckResultRequest) String

func (o RunCheckResultRequest) String() string

type RunCheckResultResponse

type RunCheckResultResponse struct {
	Result         *CheckResultResultBody `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (RunCheckResultResponse) String

func (o RunCheckResultResponse) String() string

type RunCheckTaskJobsRequest

type RunCheckTaskJobsRequest struct {
	Status *RunCheckTaskJobsRequestStatus `json:"status,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (RunCheckTaskJobsRequest) String

func (o RunCheckTaskJobsRequest) String() string

type RunCheckTaskJobsRequestStatus

type RunCheckTaskJobsRequestStatus struct {
	// contains filtered or unexported fields
}

func (RunCheckTaskJobsRequestStatus) MarshalJSON

func (c RunCheckTaskJobsRequestStatus) MarshalJSON() ([]byte, error)

func (*RunCheckTaskJobsRequestStatus) UnmarshalJSON

func (c *RunCheckTaskJobsRequestStatus) UnmarshalJSON(b []byte) error

type RunCheckTaskJobsResponse

type RunCheckTaskJobsResponse struct {
	Result *[]CheckTaskJobsItemsBody `json:"result,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (RunCheckTaskJobsResponse) String

func (o RunCheckTaskJobsResponse) String() string

type RunImageBatchModerationRequest

type RunImageBatchModerationRequest struct {
	Body *ImageBatchModerationReq `json:"body,omitempty"`
}

Request Object

func (RunImageBatchModerationRequest) String

type RunImageBatchModerationResponse

type RunImageBatchModerationResponse struct {
	Result         *[]ImageBatchModerationResultBody `json:"result,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

Response Object

func (RunImageBatchModerationResponse) String

type RunImageModerationRequest

type RunImageModerationRequest struct {
	Body *ImageDetectionReq `json:"body,omitempty"`
}

Request Object

func (RunImageModerationRequest) String

func (o RunImageModerationRequest) String() string

type RunImageModerationResponse

type RunImageModerationResponse struct {
	Result         *ImageDetectionResultBody `json:"result,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (RunImageModerationResponse) String

type RunTaskSumbitRequest

type RunTaskSumbitRequest struct {
	Body *TaskSumbitReq `json:"body,omitempty"`
}

Request Object

func (RunTaskSumbitRequest) String

func (o RunTaskSumbitRequest) String() string

type RunTaskSumbitResponse

type RunTaskSumbitResponse struct {
	Result         *TaskSumbitResponseResult `json:"result,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (RunTaskSumbitResponse) String

func (o RunTaskSumbitResponse) String() string

type RunTextModerationRequest

type RunTextModerationRequest struct {
	Body *TextDetectionReq `json:"body,omitempty"`
}

Request Object

func (RunTextModerationRequest) String

func (o RunTextModerationRequest) String() string

type RunTextModerationResponse

type RunTextModerationResponse struct {
	Result         *TextDetectionResponseResult `json:"result,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (RunTextModerationResponse) String

func (o RunTextModerationResponse) String() string

type TaskSumbitReq

type TaskSumbitReq struct {
	Urls []string `json:"urls"`

	Categories *[]TaskSumbitReqCategories `json:"categories,omitempty"`
}

func (TaskSumbitReq) String

func (o TaskSumbitReq) String() string

type TaskSumbitReqCategories

type TaskSumbitReqCategories struct {
	// contains filtered or unexported fields
}

func (TaskSumbitReqCategories) MarshalJSON

func (c TaskSumbitReqCategories) MarshalJSON() ([]byte, error)

func (*TaskSumbitReqCategories) UnmarshalJSON

func (c *TaskSumbitReqCategories) UnmarshalJSON(b []byte) error

type TaskSumbitReqCategoriesEnum

type TaskSumbitReqCategoriesEnum struct {
	POLITICS  TaskSumbitReqCategories
	PORN      TaskSumbitReqCategories
	TERRORISM TaskSumbitReqCategories
}

func GetTaskSumbitReqCategoriesEnum

func GetTaskSumbitReqCategoriesEnum() TaskSumbitReqCategoriesEnum

type TaskSumbitResponseResult

type TaskSumbitResponseResult struct {
	JobId *string `json:"job_id,omitempty"`
}

调用成功时表示调用结果。 调用失败时无此字段。

func (TaskSumbitResponseResult) String

func (o TaskSumbitResponseResult) String() string

type TextDetectionItemsReq

type TextDetectionItemsReq struct {
	Text string `json:"text"`

	Type *string `json:"type,omitempty"`
}

func (TextDetectionItemsReq) String

func (o TextDetectionItemsReq) String() string

type TextDetectionReq

type TextDetectionReq struct {
	Categories *[]string `json:"categories,omitempty"`

	Items []TextDetectionItemsReq `json:"items"`
}

func (TextDetectionReq) String

func (o TextDetectionReq) String() string

type TextDetectionResponseResult

type TextDetectionResponseResult struct {
	Suggestion *string `json:"suggestion,omitempty"`

	Detail *interface{} `json:"detail,omitempty"`
}

调用成功时表示调用结果。 调用失败时无此字段。

func (TextDetectionResponseResult) String

Jump to

Keyboard shortcuts

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