text

package
v0.0.0-...-d449a6d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 1

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