Documentation ¶
Index ¶
- type DetectTextPathReqBodyBuilder
- type DetectTextReq
- type DetectTextReqBody
- type DetectTextReqBodyBuilder
- type DetectTextReqBuilder
- type DetectTextResp
- type DetectTextRespData
- type Term
- type TermBuilder
- type Text
- type TranslateTextPathReqBodyBuilder
- func (builder *TranslateTextPathReqBodyBuilder) Build() (*TranslateTextReqBody, error)
- func (builder *TranslateTextPathReqBodyBuilder) Glossary(glossary []*Term) *TranslateTextPathReqBodyBuilder
- func (builder *TranslateTextPathReqBodyBuilder) SourceLanguage(sourceLanguage string) *TranslateTextPathReqBodyBuilder
- func (builder *TranslateTextPathReqBodyBuilder) TargetLanguage(targetLanguage string) *TranslateTextPathReqBodyBuilder
- func (builder *TranslateTextPathReqBodyBuilder) Text(text string) *TranslateTextPathReqBodyBuilder
- type TranslateTextReq
- type TranslateTextReqBody
- type TranslateTextReqBodyBuilder
- func (builder *TranslateTextReqBodyBuilder) Build() *TranslateTextReqBody
- func (builder *TranslateTextReqBodyBuilder) Glossary(glossary []*Term) *TranslateTextReqBodyBuilder
- func (builder *TranslateTextReqBodyBuilder) SourceLanguage(sourceLanguage string) *TranslateTextReqBodyBuilder
- func (builder *TranslateTextReqBodyBuilder) TargetLanguage(targetLanguage string) *TranslateTextReqBodyBuilder
- func (builder *TranslateTextReqBodyBuilder) Text(text string) *TranslateTextReqBodyBuilder
- type TranslateTextReqBuilder
- type TranslateTextResp
- type TranslateTextRespData
- type TranslationService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectTextPathReqBodyBuilder ¶
type DetectTextPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
上传文件path开始
func NewDetectTextPathReqBodyBuilder ¶
func NewDetectTextPathReqBodyBuilder() *DetectTextPathReqBodyBuilder
func (*DetectTextPathReqBodyBuilder) Build ¶
func (builder *DetectTextPathReqBodyBuilder) Build() (*DetectTextReqBody, error)
func (*DetectTextPathReqBodyBuilder) Text ¶
func (builder *DetectTextPathReqBodyBuilder) Text(text string) *DetectTextPathReqBodyBuilder
type DetectTextReq ¶
type DetectTextReq struct { Body *DetectTextReqBody `body:""` // contains filtered or unexported fields }
type DetectTextReqBody ¶
type DetectTextReqBody struct {
Text *string `json:"text,omitempty"`
}
type DetectTextReqBodyBuilder ¶
type DetectTextReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewDetectTextReqBodyBuilder ¶
func NewDetectTextReqBodyBuilder() *DetectTextReqBodyBuilder
生成body的New构造器
func (*DetectTextReqBodyBuilder) Build ¶
func (builder *DetectTextReqBodyBuilder) Build() *DetectTextReqBody
1.3 生成body的build方法
func (*DetectTextReqBodyBuilder) Text ¶
func (builder *DetectTextReqBodyBuilder) Text(text string) *DetectTextReqBodyBuilder
1.2 生成body的builder属性方法
type DetectTextReqBuilder ¶
type DetectTextReqBuilder struct {
// contains filtered or unexported fields
}
1.4 生成请求的builder结构体
func (*DetectTextReqBuilder) Body ¶
func (builder *DetectTextReqBuilder) Body(body *DetectTextReqBody) *DetectTextReqBuilder
1.5 生成请求的builder属性方法
func (*DetectTextReqBuilder) Build ¶
func (builder *DetectTextReqBuilder) Build() *DetectTextReq
1.5 生成请求的builder的build方法
type DetectTextResp ¶
type DetectTextResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *DetectTextRespData `json:"data"` }
func (*DetectTextResp) Success ¶
func (resp *DetectTextResp) Success() bool
type DetectTextRespData ¶
type DetectTextRespData struct {
Language *string `json:"language,omitempty"`
}
type TermBuilder ¶
type TermBuilder struct {
// contains filtered or unexported fields
}
builder开始
func NewTermBuilder ¶
func NewTermBuilder() *TermBuilder
func (*TermBuilder) Build ¶
func (builder *TermBuilder) Build() *Term
func (*TermBuilder) From ¶
func (builder *TermBuilder) From(from string) *TermBuilder
func (*TermBuilder) To ¶
func (builder *TermBuilder) To(to string) *TermBuilder
type TranslateTextPathReqBodyBuilder ¶
type TranslateTextPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
上传文件path开始
func NewTranslateTextPathReqBodyBuilder ¶
func NewTranslateTextPathReqBodyBuilder() *TranslateTextPathReqBodyBuilder
func (*TranslateTextPathReqBodyBuilder) Build ¶
func (builder *TranslateTextPathReqBodyBuilder) Build() (*TranslateTextReqBody, error)
func (*TranslateTextPathReqBodyBuilder) Glossary ¶
func (builder *TranslateTextPathReqBodyBuilder) Glossary(glossary []*Term) *TranslateTextPathReqBodyBuilder
func (*TranslateTextPathReqBodyBuilder) SourceLanguage ¶
func (builder *TranslateTextPathReqBodyBuilder) SourceLanguage(sourceLanguage string) *TranslateTextPathReqBodyBuilder
func (*TranslateTextPathReqBodyBuilder) TargetLanguage ¶
func (builder *TranslateTextPathReqBodyBuilder) TargetLanguage(targetLanguage string) *TranslateTextPathReqBodyBuilder
func (*TranslateTextPathReqBodyBuilder) Text ¶
func (builder *TranslateTextPathReqBodyBuilder) Text(text string) *TranslateTextPathReqBodyBuilder
type TranslateTextReq ¶
type TranslateTextReq struct { Body *TranslateTextReqBody `body:""` // contains filtered or unexported fields }
type TranslateTextReqBody ¶
type TranslateTextReqBodyBuilder ¶
type TranslateTextReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewTranslateTextReqBodyBuilder ¶
func NewTranslateTextReqBodyBuilder() *TranslateTextReqBodyBuilder
生成body的New构造器
func (*TranslateTextReqBodyBuilder) Build ¶
func (builder *TranslateTextReqBodyBuilder) Build() *TranslateTextReqBody
1.3 生成body的build方法
func (*TranslateTextReqBodyBuilder) Glossary ¶
func (builder *TranslateTextReqBodyBuilder) Glossary(glossary []*Term) *TranslateTextReqBodyBuilder
func (*TranslateTextReqBodyBuilder) SourceLanguage ¶
func (builder *TranslateTextReqBodyBuilder) SourceLanguage(sourceLanguage string) *TranslateTextReqBodyBuilder
1.2 生成body的builder属性方法
func (*TranslateTextReqBodyBuilder) TargetLanguage ¶
func (builder *TranslateTextReqBodyBuilder) TargetLanguage(targetLanguage string) *TranslateTextReqBodyBuilder
func (*TranslateTextReqBodyBuilder) Text ¶
func (builder *TranslateTextReqBodyBuilder) Text(text string) *TranslateTextReqBodyBuilder
type TranslateTextReqBuilder ¶
type TranslateTextReqBuilder struct {
// contains filtered or unexported fields
}
1.4 生成请求的builder结构体
func NewTranslateTextReqBuilder ¶
func NewTranslateTextReqBuilder() *TranslateTextReqBuilder
生成请求的New构造器
func (*TranslateTextReqBuilder) Body ¶
func (builder *TranslateTextReqBuilder) Body(body *TranslateTextReqBody) *TranslateTextReqBuilder
1.5 生成请求的builder属性方法
func (*TranslateTextReqBuilder) Build ¶
func (builder *TranslateTextReqBuilder) Build() *TranslateTextReq
1.5 生成请求的builder的build方法
type TranslateTextResp ¶
type TranslateTextResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *TranslateTextRespData `json:"data"` }
func (*TranslateTextResp) Success ¶
func (resp *TranslateTextResp) Success() bool
type TranslateTextRespData ¶
type TranslateTextRespData struct {
Text *string `json:"text,omitempty"`
}
type TranslationService ¶
type TranslationService struct { Text *text // contains filtered or unexported fields }
业务域服务定义
Click to show internal directories.
Click to hide internal directories.