docs.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // Package docs GENERATED BY SWAG; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import "github.com/swaggo/swag"
  5. const docTemplate = `{
  6. "schemes": {{ marshal .Schemes }},
  7. "swagger": "2.0",
  8. "info": {
  9. "description": "{{escape .Description}}",
  10. "title": "{{.Title}}",
  11. "contact": {},
  12. "version": "{{.Version}}"
  13. },
  14. "host": "{{.Host}}",
  15. "basePath": "{{.BasePath}}",
  16. "paths": {
  17. "/admin/login": {
  18. "post": {
  19. "description": "管理员登陆",
  20. "consumes": [
  21. "application/json"
  22. ],
  23. "produces": [
  24. "application/json"
  25. ],
  26. "tags": [
  27. "管理员借口"
  28. ],
  29. "summary": "管理员登陆",
  30. "operationId": "/admin/login",
  31. "parameters": [
  32. {
  33. "description": "body",
  34. "name": "body",
  35. "in": "body",
  36. "required": true,
  37. "schema": {
  38. "$ref": "#/definitions/dto.AdminLoginInput"
  39. }
  40. }
  41. ],
  42. "responses": {
  43. "200": {
  44. "description": "success",
  45. "schema": {
  46. "allOf": [
  47. {
  48. "$ref": "#/definitions/middleware.Response"
  49. },
  50. {
  51. "type": "object",
  52. "properties": {
  53. "data": {
  54. "$ref": "#/definitions/dto.AdminLoginOutput"
  55. }
  56. }
  57. }
  58. ]
  59. }
  60. }
  61. }
  62. }
  63. }
  64. },
  65. "definitions": {
  66. "dto.AdminLoginInput": {
  67. "type": "object",
  68. "required": [
  69. "password",
  70. "username"
  71. ],
  72. "properties": {
  73. "password": {
  74. "type": "string",
  75. "example": ""
  76. },
  77. "username": {
  78. "type": "string",
  79. "example": ""
  80. }
  81. }
  82. },
  83. "dto.AdminLoginOutput": {
  84. "type": "object",
  85. "properties": {
  86. "token": {
  87. "type": "string",
  88. "example": "token"
  89. }
  90. }
  91. },
  92. "middleware.Response": {
  93. "type": "object",
  94. "properties": {
  95. "data": {},
  96. "errmsg": {
  97. "type": "string"
  98. },
  99. "errno": {
  100. "type": "integer"
  101. },
  102. "stack": {},
  103. "trace_id": {}
  104. }
  105. }
  106. }
  107. }`
  108. // SwaggerInfo holds exported Swagger Info so clients can modify it
  109. var SwaggerInfo = &swag.Spec{
  110. Version: "",
  111. Host: "",
  112. BasePath: "",
  113. Schemes: []string{},
  114. Title: "",
  115. Description: "",
  116. InfoInstanceName: "swagger",
  117. SwaggerTemplate: docTemplate,
  118. }
  119. func init() {
  120. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  121. }