v1

package
v1.1.48 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 5 Imported by: 0

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

func NewService(conf *config.Config) *Service

type Term

type Term struct {
	From            string   `json:"from,omitempty"`
	To              string   `json:"to,omitempty"`
	ForceSendFields []string `json:"-"`
}

func (*Term) MarshalJSON

func (s *Term) MarshalJSON() ([]byte, error)

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

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

type TextTranslateResult

type TextTranslateResult struct {
	Text string `json:"text,omitempty"`
}

Jump to

Keyboard shortcuts

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