123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
- // This file was generated by swaggo/swag
- package docs
- import (
- "bytes"
- "encoding/json"
- "strings"
- "github.com/alecthomas/template"
- "github.com/swaggo/swag"
- )
- var doc = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{.Description}}",
- "title": "{{.Title}}",
- "contact": {},
- "license": {},
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "paths": {
- "/dust_excessive_img": {
- "post": {
- "description": "扬尘超标数据图片",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "扬尘超标数据图片"
- ],
- "summary": "扬尘超标数据图片",
- "parameters": [
- {
- "description": "sn",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/v1.ExcessiveImgBody"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/v1.ExcessiveImgResponse"
- }
- },
- "500": {
- "description": "Internal Server Error",
- "schema": {
- "$ref": "#/definitions/base.HTTPError"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "base.HTTPError": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "format": "int",
- "example": 500
- },
- "message": {
- "type": "string",
- "example": "status bad request"
- }
- }
- },
- "v1.ExcessiveImgBody": {
- "type": "object",
- "required": [
- "mn"
- ],
- "properties": {
- "ecode": {
- "description": "超标数据编号",
- "type": "string"
- },
- "imageBase64": {
- "description": "图片",
- "type": "string"
- },
- "mn": {
- "type": "string"
- }
- }
- },
- "v1.ExcessiveImgResponse": {
- "type": "object",
- "properties": {
- "code": {
- "description": "返回码",
- "type": "integer",
- "format": "int",
- "default": 0
- },
- "message": {
- "description": "消息",
- "type": "string",
- "default": "success"
- }
- }
- }
- }
- }`
- 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: "",
- 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)
- },
- }).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{})
- }
|