Documentation ¶
Overview ¶
Code generated by lark suite oapi sdk gen
Code generated by lark suite oapi sdk gen
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Texts *TextService // contains filtered or unexported fields }
func NewService ¶
type Term ¶
type Term struct { From string `json:"from,omitempty"` To string `json:"to,omitempty"` ForceSendFields []string `json:"-"` }
func (*Term) MarshalJSON ¶
type TextDetectReqBody ¶
type TextDetectReqBody struct { Text string `json:"text,omitempty"` ForceSendFields []string `json:"-"` }
func (*TextDetectReqBody) MarshalJSON ¶
func (s *TextDetectReqBody) MarshalJSON() ([]byte, error)
type TextDetectReqCall ¶
type TextDetectReqCall struct {
// contains filtered or unexported fields
}
func (*TextDetectReqCall) Do ¶
func (rc *TextDetectReqCall) Do() (*TextDetectResult, error)
type TextDetectResult ¶
type TextDetectResult struct {
Language string `json:"language,omitempty"`
}
type TextService ¶
type TextService struct {
// contains filtered or unexported fields
}
func (*TextService) Detect ¶
func (texts *TextService) Detect(ctx *core.Context, body *TextDetectReqBody, optFns ...request.OptFn) *TextDetectReqCall
func (*TextService) Translate ¶
func (texts *TextService) Translate(ctx *core.Context, body *TextTranslateReqBody, optFns ...request.OptFn) *TextTranslateReqCall
type TextTranslateReqBody ¶
type TextTranslateReqBody struct { SourceLanguage string `json:"source_language,omitempty"` Text string `json:"text,omitempty"` TargetLanguage string `json:"target_language,omitempty"` Glossary []*Term `json:"glossary,omitempty"` ForceSendFields []string `json:"-"` }
func (*TextTranslateReqBody) MarshalJSON ¶
func (s *TextTranslateReqBody) MarshalJSON() ([]byte, error)
type TextTranslateReqCall ¶
type TextTranslateReqCall struct {
// contains filtered or unexported fields
}
func (*TextTranslateReqCall) Do ¶
func (rc *TextTranslateReqCall) Do() (*TextTranslateResult, error)
type TextTranslateResult ¶
type TextTranslateResult struct {
Text string `json:"text,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.