You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

238 lines
6.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2020-05-20 14:45:12.3054401 +0800 CST m=+0.096772501
package docs
import (
"bytes"
"encoding/json"
"strings"
"github.com/alecthomas/template"
"github.com/swaggo/swag"
)
var doc = `{
"definitions": {
"Model.Res": {
"properties": {
"count": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"error_code": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"list": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"message": {
"description": "omitempty有值就输出没值则不输出",
"type": "object"
},
"success": {
"type": "object"
}
},
"type": "object"
}
},
"host": "127.0.0.1:8006",
"info": {
"contact": {
"email": "support@swagger.io",
"name": "API Support",
"url": "http://www.swagger.io/support"
},
"description": "分布式,大并发,高可用",
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"title": "智慧校园API",
"version": "1.0"
},
"paths": {
"/dsSzxy/fileRelate/fileUpdate": {
"post": {
"X-EmptyLimit": [
"file_id",
"file_name"
],
"X-TableName": [
"t_zhxy_file"
],
"consumes": [
"application/x-www-form-urlencoded"
],
"description": "修改文件名称",
"parameters": [
{
"description": "文件ID",
"in": "formData",
"name": "file_id",
"required": true,
"type": "string"
},
{
"description": "文件名称",
"in": "formData",
"name": "file_name",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"summary": "修改文件名称",
"tags": [
"文件系统管理"
]
}
},
"/dsSzxy/fileRelate/fileUpload": {
"post": {
"X-IntRangeLimit": [
{
"identity_id": "5"
},
{
"person_id": "1,999999999999"
},
{
"target_group_id": "1,999999999999"
},
{
"target_identity_id": "5"
},
{
"target_person_id": "1,999999999999"
},
{
"system_id": "1,20"
}
],
"X-TableName": [
"t_zhxy_file"
],
"consumes": [
"application/x-www-form-urlencoded"
],
"description": "文件上传",
"parameters": [
{
"description": "上传人身份ID",
"in": "formData",
"name": "identity_id",
"required": true,
"type": "string"
},
{
"description": "上传人ID",
"in": "formData",
"name": "person_id",
"required": true,
"type": "string"
},
{
"description": "目标群组ID",
"in": "formData",
"name": "target_group_id",
"required": true,
"type": "string"
},
{
"description": "目标人身份ID",
"in": "formData",
"name": "target_identity_id",
"required": true,
"type": "string"
},
{
"description": "目标人ID",
"in": "formData",
"name": "target_person_id",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Model.Res"
}
}
},
"summary": "文件上传",
"tags": [
"文件系统管理"
]
}
}
},
"swagger": "2.0"
}`
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{
Version: "1.0",
Host: "127.0.0.1:8002",
BasePath: "",
Schemes: []string{},
Title: "基础数据API",
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)
},
}).Parse(doc)
if err != nil {
return doc
}
var tpl bytes.Buffer
if err := t.Execute(&tpl, sInfo); err != nil {
return doc
}
return tpl.String()
}
func init() {
swag.Register(swag.Name, &s{})
}