新增分享码功能
This commit is contained in:
@@ -23,6 +23,17 @@ func NewModelListHandler(searchClient *search.Client, log *zap.Logger) *ModelLis
|
||||
}
|
||||
}
|
||||
|
||||
// ModelList 搜索型号列表
|
||||
//
|
||||
// @Summary 搜索型号列表(基于 Meilisearch)
|
||||
// @Tags Model
|
||||
// @Produce json
|
||||
// @Param key query string false "搜索关键词"
|
||||
// @Param count query int false "返回数量上限"default(100)
|
||||
// @Param base64Resp query string false "是否返回 base64 编码响应"
|
||||
// @Success 200 {array} string
|
||||
// @Failure 500 {object} object
|
||||
// @Router /audio/modelList [get]
|
||||
func (h *ModelListHandler) ModelList(c *gin.Context) {
|
||||
key := c.Query("key")
|
||||
base64Resp := encode.ParseBase64Param(c)
|
||||
|
||||
Reference in New Issue
Block a user