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

docs.go 3.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. "contact": {},
  11. "version": "{{.Version}}"
  12. },
  13. "host": "{{.Host}}",
  14. "basePath": "{{.BasePath}}",
  15. "paths": {
  16. "/api/v1/email/code": {
  17. "post": {
  18. "description": "Use email to send verification code",
  19. "produces": [
  20. "application/json"
  21. ],
  22. "tags": [
  23. "mail"
  24. ],
  25. "summary": "SendCode",
  26. "parameters": [
  27. {
  28. "description": "Email address",
  29. "name": "data",
  30. "in": "body",
  31. "required": true,
  32. "schema": {
  33. "$ref": "#/definitions/param.SendToParams"
  34. }
  35. }
  36. ],
  37. "responses": {
  38. "200": {
  39. "description": "Send success",
  40. "schema": {
  41. "allOf": [
  42. {
  43. "$ref": "#/definitions/response.Response"
  44. },
  45. {
  46. "type": "object",
  47. "properties": {
  48. "msg": {
  49. "type": "string"
  50. }
  51. }
  52. }
  53. ]
  54. }
  55. }
  56. }
  57. }
  58. }
  59. },
  60. "definitions": {
  61. "param.SendToParams": {
  62. "type": "object",
  63. "required": [
  64. "email"
  65. ],
  66. "properties": {
  67. "email": {
  68. "type": "string"
  69. }
  70. }
  71. },
  72. "response.Response": {
  73. "type": "object",
  74. "properties": {
  75. "code": {
  76. "type": "integer"
  77. },
  78. "data": {},
  79. "msg": {
  80. "type": "string"
  81. }
  82. }
  83. }
  84. }
  85. }`
  86. // SwaggerInfo holds exported Swagger Info so clients can modify it
  87. var SwaggerInfo = &swag.Spec{
  88. Version: "",
  89. Host: "",
  90. BasePath: "",
  91. Schemes: []string{},
  92. Title: "",
  93. Description: "",
  94. InfoInstanceName: "swagger",
  95. SwaggerTemplate: docTemplate,
  96. LeftDelim: "{{",
  97. RightDelim: "}}",
  98. }
  99. func init() {
  100. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  101. }