text

package
v0.0.0-...-52ac1cc Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaiduCensor

func BaiduCensor(p CensorParam) (bool, string, error)

Types

type CensorParam

type CensorParam struct {
	ApiKey      string // 必填
	SecretKey   string // 必填
	AccessToken string // 非必填,填写时,优先使用,如果过期,再使用key获取新值
	Text        string // 必填
}

type CensorResult

type CensorResult struct {
	LogId          int64  `json:"log_id,omitempty"`
	ErrorCode      int64  `json:"error_code,omitempty"`
	ErrorMsg       string `json:"error_msg,omitempty"`
	Conclusion     string `json:"conclusion,omitempty"`
	ConclusionType int    `json:"conclusionType,omitempty"`
}

Jump to

Keyboard shortcuts

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