蛋蛋星球 后台端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

docs.go 3.1 KiB

1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Code generated by swaggo/swag. DO NOT EDIT.
  2. package docs
  3. import "github.com/swaggo/swag"
  4. const docTemplate = `{
  5. "schemes": {{ marshal .Schemes }},
  6. "swagger": "2.0",
  7. "info": {
  8. "description": "{{escape .Description}}",
  9. "title": "{{.Title}}",
  10. "termsOfService": "http://swagger.io/terms/",
  11. "contact": {
  12. "name": "dengbiao",
  13. "url": "http://www.swagger.io/support",
  14. "email": "1239118001@qq.com"
  15. },
  16. "license": {
  17. "name": "Apache 2.0",
  18. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  19. },
  20. "version": "{{.Version}}"
  21. },
  22. "host": "{{.Host}}",
  23. "basePath": "{{.BasePath}}",
  24. "paths": {
  25. "/api/demo": {
  26. "post": {
  27. "description": "Demo样例测试",
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "Demo"
  36. ],
  37. "summary": "Demo测试",
  38. "parameters": [
  39. {
  40. "description": "用户名密码",
  41. "name": "req",
  42. "in": "body",
  43. "required": true,
  44. "schema": {
  45. "type": "object"
  46. }
  47. }
  48. ],
  49. "responses": {
  50. "200": {
  51. "description": "token",
  52. "schema": {
  53. "type": "object",
  54. "additionalProperties": true
  55. }
  56. },
  57. "400": {
  58. "description": "具体错误",
  59. "schema": {
  60. "$ref": "#/definitions/md.Response"
  61. }
  62. }
  63. }
  64. }
  65. }
  66. },
  67. "definitions": {
  68. "md.Response": {
  69. "type": "object",
  70. "properties": {
  71. "code": {
  72. "type": "string",
  73. "example": "响应码"
  74. },
  75. "data": {
  76. "description": "内容"
  77. },
  78. "msg": {
  79. "type": "string",
  80. "example": "具体错误原因"
  81. }
  82. }
  83. }
  84. },
  85. "securityDefinitions": {
  86. "MasterID": {
  87. "type": "apiKey",
  88. "name": "MasterID",
  89. "in": "header"
  90. }
  91. }
  92. }`
  93. // SwaggerInfo holds exported Swagger Info so clients can modify it
  94. var SwaggerInfo = &swag.Spec{
  95. Version: "1.0",
  96. Host: "localhost:4001",
  97. BasePath: "",
  98. Schemes: []string{},
  99. Title: "蛋蛋星球-管理后台",
  100. Description: "管理后台接口文档",
  101. InfoInstanceName: "swagger",
  102. SwaggerTemplate: docTemplate,
  103. }
  104. func init() {
  105. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  106. }