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

docs.go 3.1 KiB

2週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
2週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
3週間前
2週間前
1ヶ月前
3週間前
1ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // Package docs 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. }
  46. ],
  47. "responses": {
  48. "200": {
  49. "description": "token",
  50. "schema": {
  51. "type": "object",
  52. "additionalProperties": true
  53. }
  54. },
  55. "400": {
  56. "description": "具体错误",
  57. "schema": {
  58. "$ref": "#/definitions/md.Response"
  59. }
  60. }
  61. }
  62. }
  63. }
  64. },
  65. "definitions": {
  66. "md.Response": {
  67. "type": "object",
  68. "properties": {
  69. "code": {
  70. "type": "string",
  71. "example": "响应码"
  72. },
  73. "data": {
  74. "description": "内容"
  75. },
  76. "msg": {
  77. "type": "string",
  78. "example": "具体错误原因"
  79. }
  80. }
  81. }
  82. },
  83. "securityDefinitions": {
  84. "MasterID": {
  85. "type": "apiKey",
  86. "name": "MasterID",
  87. "in": "header"
  88. }
  89. }
  90. }`
  91. // SwaggerInfo holds exported Swagger Info so clients can modify it
  92. var SwaggerInfo = &swag.Spec{
  93. Version: "1.0",
  94. Host: "localhost:4001",
  95. BasePath: "",
  96. Schemes: []string{},
  97. Title: "蛋蛋星球-管理后台",
  98. Description: "管理后台接口文档",
  99. InfoInstanceName: "swagger",
  100. SwaggerTemplate: docTemplate,
  101. LeftDelim: "{{",
  102. RightDelim: "}}",
  103. }
  104. func init() {
  105. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  106. }