|
|
|
|
@ -1,17 +1,10 @@
|
|
|
|
|
// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
|
|
|
// This file was generated by swaggo/swag
|
|
|
|
|
package docs
|
|
|
|
|
// Code generated by swaggo/swag. DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"bytes"
|
|
|
|
|
"encoding/json"
|
|
|
|
|
"strings"
|
|
|
|
|
"text/template"
|
|
|
|
|
package docs
|
|
|
|
|
|
|
|
|
|
"github.com/swaggo/swag"
|
|
|
|
|
)
|
|
|
|
|
import "github.com/swaggo/swag"
|
|
|
|
|
|
|
|
|
|
var doc = `{
|
|
|
|
|
const docTemplate = `{
|
|
|
|
|
"schemes": {{ marshal .Schemes }},
|
|
|
|
|
"swagger": "2.0",
|
|
|
|
|
"info": {
|
|
|
|
|
@ -954,6 +947,35 @@ var doc = `{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/tool/v1/voice/list": {
|
|
|
|
|
"get": {
|
|
|
|
|
"description": "根据表单id获取声音评测内容,返回分组和分组文件信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/x-www-form-urlencoded"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"工具相关 /api/tool/v1/"
|
|
|
|
|
],
|
|
|
|
|
"summary": "获取声音评测内容",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "表单id",
|
|
|
|
|
"name": "form_id",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "返回分组和分组文件信息",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/models.Response"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/webdav/monkey/task/:id/:filename": {
|
|
|
|
|
"put": {
|
|
|
|
|
"description": "上传Logcat日志",
|
|
|
|
|
@ -991,56 +1013,18 @@ var doc = `{
|
|
|
|
|
}
|
|
|
|
|
}`
|
|
|
|
|
|
|
|
|
|
type swaggerInfo struct {
|
|
|
|
|
Version string
|
|
|
|
|
Host string
|
|
|
|
|
BasePath string
|
|
|
|
|
Schemes []string
|
|
|
|
|
Title string
|
|
|
|
|
Description string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
|
|
|
var SwaggerInfo = swaggerInfo{
|
|
|
|
|
var SwaggerInfo = &swag.Spec{
|
|
|
|
|
Version: "",
|
|
|
|
|
Host: "",
|
|
|
|
|
BasePath: "",
|
|
|
|
|
Schemes: []string{},
|
|
|
|
|
Title: "",
|
|
|
|
|
Description: "",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type s struct{}
|
|
|
|
|
|
|
|
|
|
func (s *s) ReadDoc() string {
|
|
|
|
|
sInfo := SwaggerInfo
|
|
|
|
|
sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
|
|
|
|
|
|
|
|
|
|
t, err := template.New("swagger_info").Funcs(template.FuncMap{
|
|
|
|
|
"marshal": func(v interface{}) string {
|
|
|
|
|
a, _ := json.Marshal(v)
|
|
|
|
|
return string(a)
|
|
|
|
|
},
|
|
|
|
|
"escape": func(v interface{}) string {
|
|
|
|
|
// escape tabs
|
|
|
|
|
str := strings.Replace(v.(string), "\t", "\\t", -1)
|
|
|
|
|
// replace " with \", and if that results in \\", replace that with \\\"
|
|
|
|
|
str = strings.Replace(str, "\"", "\\\"", -1)
|
|
|
|
|
return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
|
|
|
|
|
},
|
|
|
|
|
}).Parse(doc)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return doc
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var tpl bytes.Buffer
|
|
|
|
|
if err := t.Execute(&tpl, sInfo); err != nil {
|
|
|
|
|
return doc
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return tpl.String()
|
|
|
|
|
InfoInstanceName: "swagger",
|
|
|
|
|
SwaggerTemplate: docTemplate,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
swag.Register("swagger", &s{})
|
|
|
|
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
|
|
|
|
}
|
|
|
|
|
|