model

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchAddDataMaskRequest

type BatchAddDataMaskRequest struct {
	Body *DynamicDataMask `json:"body,omitempty"`
}

Request Object

func (BatchAddDataMaskRequest) String

func (o BatchAddDataMaskRequest) String() string

type BatchAddDataMaskResponse

type BatchAddDataMaskResponse struct {
	MaskedData     *[]map[string]interface{} `json:"masked_data,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (BatchAddDataMaskResponse) String

func (o BatchAddDataMaskResponse) String() string

type Columns

type Columns struct {
	Name string `json:"name"`

	Type ColumnsType `json:"type"`

	PrimaryKey bool `json:"primary_key"`
}

字段类型列表,最大长度100

func (Columns) String

func (o Columns) String() string

type ColumnsType

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

func (ColumnsType) MarshalJSON

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

func (*ColumnsType) UnmarshalJSON

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

type ColumnsTypeEnum

type ColumnsTypeEnum struct {
	INTEGER ColumnsType
	STRING  ColumnsType
	DOUBLE  ColumnsType
}

func GetColumnsTypeEnum

func GetColumnsTypeEnum() ColumnsTypeEnum

type CreateDatabaseWaterMarkRequest

type CreateDatabaseWaterMarkRequest struct {
	Body *EmbeddedDatabaseWatermark `json:"body,omitempty"`
}

Request Object

func (CreateDatabaseWaterMarkRequest) String

type CreateDatabaseWaterMarkResponse

type CreateDatabaseWaterMarkResponse struct {
	MarkedData     *[]map[string]interface{} `json:"marked_data,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (CreateDatabaseWaterMarkResponse) String

type CreateDocWatermarkRequest

type CreateDocWatermarkRequest struct {
	Body *CreateDocWatermarkRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (CreateDocWatermarkRequest) String

func (o CreateDocWatermarkRequest) String() string

type CreateDocWatermarkRequestBody

type CreateDocWatermarkRequestBody struct {
	// 要嵌入水印的文档类型
	DocType *def.MultiPart `json:"doc_type"`

	// 解密文件的密码, 最大支持长度256。添加水印后的文件不带密码。如果Office文档有读密码或域控的权限密码,请输入读密码,或者有读权限的域控密码。
	FilePassword *def.MultiPart `json:"file_password,omitempty"`

	// 明水印内容,与“blind_watermark”字段至少有一个不为空
	VisibleWatermark *def.MultiPart `json:"visible_watermark,omitempty"`

	// 明水印字体大小,取值为[1,100],默认值50
	FontSize *def.MultiPart `json:"font_size,omitempty"`

	// 明水印旋转角度,逆时针方向,取值为[0,90],默认值45
	Rotation *def.MultiPart `json:"rotation,omitempty"`

	// 明水印的透明度,取值[0,1],默认值为0.3;
	Opacity *def.MultiPart `json:"opacity,omitempty"`

	// 暗水印内容,与“visible_watermark”字段至少有一个不为空
	BlindWatermark *def.MultiPart `json:"blind_watermark,omitempty"`

	// 要添加水印的文档
	File *def.FilePart `json:"file"`

	// 图形水印的字节流。图形文件的格式必须为“png”或“jpg”,否则返回参数错误;图像文件大小不超过1MB;在分段的请求体“Content-Disposition”部分,参数“name”的值必须为“image_mark”。
	ImageMark *def.FilePart `json:"image_mark,omitempty"`

	// 该字段为空时,默认为**TEXT**类型。  当该字段为**IMAGE**时: - 请求的表单中必须包含名为“image”的图像文件,图像格式必须为“png”或“jpg”,否则返回参数错误; - 图像文件大小不超过1MB; - “visible_watermark”,“font_size”,“rotation”和“opacity”字段无效。
	VisibleType *def.MultiPart `json:"visible_type,omitempty"`
}

func (CreateDocWatermarkRequestBody) String

func (*CreateDocWatermarkRequestBody) UnmarshalJSON added in v0.0.67

func (o *CreateDocWatermarkRequestBody) UnmarshalJSON(b []byte) error

type CreateDocWatermarkRequestBodyDocType

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

func (CreateDocWatermarkRequestBodyDocType) MarshalJSON

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

func (*CreateDocWatermarkRequestBodyDocType) UnmarshalJSON

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

type CreateDocWatermarkRequestBodyVisibleType

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

func (CreateDocWatermarkRequestBodyVisibleType) MarshalJSON

func (*CreateDocWatermarkRequestBodyVisibleType) UnmarshalJSON

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

type CreateDocWatermarkResponse

type CreateDocWatermarkResponse struct {
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

Response Object

func (CreateDocWatermarkResponse) Consume

func (o CreateDocWatermarkResponse) Consume(writer io.Writer) (int64, error)

func (CreateDocWatermarkResponse) String

type CreateImageWatermarkRequest

type CreateImageWatermarkRequest struct {
	Body *CreateImageWatermarkRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (CreateImageWatermarkRequest) String

type CreateImageWatermarkRequestBody

type CreateImageWatermarkRequestBody struct {
	// 要添加水印的图片文件,添加的图片短边尺寸需要超过512像素。
	File *def.FilePart `json:"file"`

	// 嵌入暗水印的内容,长度不超过32个字符。当前仅支持数字及英文大小写。
	BlindWatermark *def.MultiPart `json:"blind_watermark"`
}

func (CreateImageWatermarkRequestBody) String

func (*CreateImageWatermarkRequestBody) UnmarshalJSON added in v0.0.67

func (o *CreateImageWatermarkRequestBody) UnmarshalJSON(b []byte) error

type CreateImageWatermarkResponse

type CreateImageWatermarkResponse struct {
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

Response Object

func (CreateImageWatermarkResponse) Consume

func (o CreateImageWatermarkResponse) Consume(writer io.Writer) (int64, error)

func (CreateImageWatermarkResponse) String

type DynamicDataMask

type DynamicDataMask struct {
	MaskStrategies []MaskStrategies `json:"mask_strategies"`

	Data []map[string]interface{} `json:"data"`
}

func (DynamicDataMask) String

func (o DynamicDataMask) String() string

type EmbeddedDatabaseWatermark

type EmbeddedDatabaseWatermark struct {
	WatermarkContent string `json:"watermark_content"`

	WatermarkKey string `json:"watermark_key"`

	Columns []Columns `json:"columns"`

	Data []map[string]interface{} `json:"data"`
}

func (EmbeddedDatabaseWatermark) String

func (o EmbeddedDatabaseWatermark) String() string

type ExtractedDatabaseWatermark

type ExtractedDatabaseWatermark struct {
	WatermarkKey string `json:"watermark_key"`

	Columns []Columns `json:"columns"`

	Data []map[string]interface{} `json:"data"`
}

func (ExtractedDatabaseWatermark) String

type MaskStrategies

type MaskStrategies struct {
	Name string `json:"name"`

	Algorithm MaskStrategiesAlgorithm `json:"algorithm"`

	Parameters map[string]interface{} `json:"parameters,omitempty"`
}

脱敏策略列表,每个策略对应一个字段,脱敏策略数最多100个。详情见“动态脱敏策略配置”。

func (MaskStrategies) String

func (o MaskStrategies) String() string

type MaskStrategiesAlgorithm

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

func (MaskStrategiesAlgorithm) MarshalJSON

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

func (*MaskStrategiesAlgorithm) UnmarshalJSON

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

type ShowDatabaseWaterMarkRequest

type ShowDatabaseWaterMarkRequest struct {
	Body *ExtractedDatabaseWatermark `json:"body,omitempty"`
}

Request Object

func (ShowDatabaseWaterMarkRequest) String

type ShowDatabaseWaterMarkResponse

type ShowDatabaseWaterMarkResponse struct {
	Watermarks     *[]string `json:"watermarks,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowDatabaseWaterMarkResponse) String

type ShowDocWatermarkRequest

type ShowDocWatermarkRequest struct {
	Body *ShowDocWatermarkRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (ShowDocWatermarkRequest) String

func (o ShowDocWatermarkRequest) String() string

type ShowDocWatermarkRequestBody

type ShowDocWatermarkRequestBody struct {
	// 待提取水印的文档类型
	DocType *def.MultiPart `json:"doc_type"`

	// 解密文件的密码, 最大支持长度256。如果Office文档有读密码或域控的权限密码,请输入读密码,或者有读权限的域控密码。
	FilePassword *def.MultiPart `json:"file_password,omitempty"`

	// 上传要提取水印的文档
	File *def.FilePart `json:"file"`
}

func (ShowDocWatermarkRequestBody) String

func (*ShowDocWatermarkRequestBody) UnmarshalJSON added in v0.0.67

func (o *ShowDocWatermarkRequestBody) UnmarshalJSON(b []byte) error

type ShowDocWatermarkRequestBodyDocType

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

func (ShowDocWatermarkRequestBodyDocType) MarshalJSON

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

func (*ShowDocWatermarkRequestBodyDocType) UnmarshalJSON

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

type ShowDocWatermarkResponse

type ShowDocWatermarkResponse struct {
	Watermark      *string `json:"watermark,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDocWatermarkResponse) String

func (o ShowDocWatermarkResponse) String() string

type ShowImageWatermarkRequest

type ShowImageWatermarkRequest struct {
	Body *ShowImageWatermarkRequestBody `json:"body,omitempty" type:"multipart"`
}

Request Object

func (ShowImageWatermarkRequest) String

func (o ShowImageWatermarkRequest) String() string

type ShowImageWatermarkRequestBody

type ShowImageWatermarkRequestBody struct {
	// 待提取暗水印的图片文件。
	File *def.FilePart `json:"file"`

	// 指定待提取水印的长度,mark_len长度大于0,小于32。设置后可以提升水印提取性能
	MarkLen *def.MultiPart `json:"mark_len,omitempty"`
}

func (ShowImageWatermarkRequestBody) String

func (*ShowImageWatermarkRequestBody) UnmarshalJSON added in v0.0.67

func (o *ShowImageWatermarkRequestBody) UnmarshalJSON(b []byte) error

type ShowImageWatermarkResponse

type ShowImageWatermarkResponse struct {
	Watermark      *string `json:"watermark,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowImageWatermarkResponse) String

Jump to

Keyboard shortcuts

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