Documentation
¶
Index ¶
- func GetParamInt(request *http.Request, key string) int
- func GetParamInt64(request *http.Request, key string) int64
- func GetParamInt64D(request *http.Request, key string, defaultVal int64) int64
- func GetParamIntD(request *http.Request, key string, defaultVal int) int
- func GetParamString(request *http.Request, key string) string
- func GetParamStringD(request *http.Request, key string, defaultVal string) string
- type Ctrl
- type Ctrl2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamInt64 ¶
读取http表单参数, 返回int64类型
func GetParamInt64D ¶
读取http表单参数, 返回int64类型
func GetParamIntD ¶
读取http表单参数, 返回int类型
func GetParamString ¶
读取http表单参数, 返回string类型
Types ¶
type Ctrl ¶
type Ctrl struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(fileServcie service.FileService, txAsrService service.TxAsrService, txTtxService service.TxTtsService, chatService service.ChatService) *Ctrl
func (*Ctrl) Audio2text ¶
func (c *Ctrl) Audio2text(w http.ResponseWriter, r *http.Request)
func (*Ctrl) HandleDownload ¶
func (c *Ctrl) HandleDownload(w http.ResponseWriter, r *http.Request)
type Ctrl2 ¶
type Ctrl2 struct {
// contains filtered or unexported fields
}
func NewController2 ¶
func NewController2(fileServcie service.FileService, txAsrService service.TxAsrService, txTtxService service.TxTtsService, chatService service.ChatService) *Ctrl2
func (*Ctrl2) Audio2text ¶
func (c *Ctrl2) Audio2text(w http.ResponseWriter, r *http.Request)
音频转文本接口
func (*Ctrl2) OutputJson ¶
func (c *Ctrl2) OutputJson(w http.ResponseWriter, resp interface{})
func (*Ctrl2) Text2audio ¶
func (c *Ctrl2) Text2audio(w http.ResponseWriter, r *http.Request)
文本转音频接口
Click to show internal directories.
Click to hide internal directories.