蛋蛋星球-客户端
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

294 řádky
8.9 KiB

  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/v1/comm/getOssUrl": {
  26. "get": {
  27. "description": "上传许可链接(获取)",
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "对象存储"
  36. ],
  37. "summary": "通用请求-对象存储-上传许可链接(获取)",
  38. "parameters": [
  39. {
  40. "type": "string",
  41. "description": "验证参数Bearer和token空格拼接",
  42. "name": "Authorization",
  43. "in": "header",
  44. "required": true
  45. }
  46. ],
  47. "responses": {
  48. "200": {
  49. "description": "许可链接",
  50. "schema": {
  51. "type": "string"
  52. }
  53. },
  54. "400": {
  55. "description": "具体错误",
  56. "schema": {
  57. "$ref": "#/definitions/md.Response"
  58. }
  59. }
  60. }
  61. }
  62. },
  63. "/api/v1/demo": {
  64. "post": {
  65. "description": "Demo样例测试",
  66. "consumes": [
  67. "application/json"
  68. ],
  69. "produces": [
  70. "application/json"
  71. ],
  72. "tags": [
  73. "Demo"
  74. ],
  75. "summary": "Demo测试",
  76. "parameters": [
  77. {
  78. "description": "用户名密码",
  79. "name": "req",
  80. "in": "body",
  81. "required": true,
  82. "schema": {}
  83. }
  84. ],
  85. "responses": {
  86. "200": {
  87. "description": "token",
  88. "schema": {
  89. "type": "object",
  90. "additionalProperties": true
  91. }
  92. },
  93. "400": {
  94. "description": "具体错误",
  95. "schema": {
  96. "$ref": "#/definitions/md.Response"
  97. }
  98. }
  99. }
  100. }
  101. },
  102. "/v1/login": {
  103. "post": {
  104. "description": "登入",
  105. "consumes": [
  106. "application/json"
  107. ],
  108. "produces": [
  109. "application/json"
  110. ],
  111. "tags": [
  112. "登录"
  113. ],
  114. "summary": "登陆",
  115. "parameters": [
  116. {
  117. "description": "用户名密码",
  118. "name": "req",
  119. "in": "body",
  120. "required": true,
  121. "schema": {
  122. "$ref": "#/definitions/md.LoginReq"
  123. }
  124. }
  125. ],
  126. "responses": {
  127. "200": {
  128. "description": "token",
  129. "schema": {
  130. "$ref": "#/definitions/md.LoginResponse"
  131. }
  132. },
  133. "400": {
  134. "description": "具体错误",
  135. "schema": {
  136. "$ref": "#/definitions/md.Response"
  137. }
  138. }
  139. }
  140. }
  141. },
  142. "/v1/register": {
  143. "post": {
  144. "description": "注册",
  145. "consumes": [
  146. "application/json"
  147. ],
  148. "produces": [
  149. "application/json"
  150. ],
  151. "tags": [
  152. "注册"
  153. ],
  154. "summary": "注册",
  155. "parameters": [
  156. {
  157. "description": "注册参数",
  158. "name": "req",
  159. "in": "body",
  160. "required": true,
  161. "schema": {
  162. "$ref": "#/definitions/md.RegisterReq"
  163. }
  164. }
  165. ],
  166. "responses": {
  167. "200": {
  168. "description": "登录成功返回",
  169. "schema": {
  170. "$ref": "#/definitions/md.LoginResponse"
  171. }
  172. },
  173. "400": {
  174. "description": "具体错误",
  175. "schema": {
  176. "$ref": "#/definitions/md.Response"
  177. }
  178. }
  179. }
  180. }
  181. }
  182. },
  183. "definitions": {
  184. "md.LoginReq": {
  185. "type": "object",
  186. "required": [
  187. "password",
  188. "phone"
  189. ],
  190. "properties": {
  191. "code": {
  192. "type": "string",
  193. "example": "验证码"
  194. },
  195. "password": {
  196. "type": "string",
  197. "example": "登录密码"
  198. },
  199. "phone": {
  200. "type": "string",
  201. "example": "手机号"
  202. }
  203. }
  204. },
  205. "md.LoginResponse": {
  206. "type": "object",
  207. "properties": {
  208. "token": {
  209. "type": "string"
  210. }
  211. }
  212. },
  213. "md.RegisterReq": {
  214. "type": "object",
  215. "required": [
  216. "mobile"
  217. ],
  218. "properties": {
  219. "avatar": {
  220. "type": "string",
  221. "example": "头像"
  222. },
  223. "code": {
  224. "type": "string",
  225. "example": "验证码"
  226. },
  227. "invite_code": {
  228. "type": "string",
  229. "example": "邀请码"
  230. },
  231. "mobile": {
  232. "type": "string"
  233. },
  234. "nickname": {
  235. "type": "string",
  236. "example": "昵称"
  237. },
  238. "open_id": {
  239. "type": "string",
  240. "example": "微信openId"
  241. },
  242. "sex": {
  243. "description": "性别(0:未知 1:男 2:女)",
  244. "type": "integer"
  245. },
  246. "type": {
  247. "type": "string",
  248. "example": "app:APP注册、h5:H5注册"
  249. },
  250. "union_id": {
  251. "type": "string",
  252. "example": "微信UnionId"
  253. }
  254. }
  255. },
  256. "md.Response": {
  257. "type": "object",
  258. "properties": {
  259. "code": {
  260. "type": "string",
  261. "example": "响应码"
  262. },
  263. "data": {
  264. "description": "内容"
  265. },
  266. "msg": {
  267. "type": "string",
  268. "example": "具体错误原因"
  269. }
  270. }
  271. }
  272. }
  273. }`
  274. // SwaggerInfo holds exported Swagger Info so clients can modify it
  275. var SwaggerInfo = &swag.Spec{
  276. Version: "1.0",
  277. Host: "ddxq.izhim.com",
  278. BasePath: "/api/v1",
  279. Schemes: []string{},
  280. Title: "蛋蛋星球-APP客户端",
  281. Description: "APP客户端-Api接口",
  282. InfoInstanceName: "swagger",
  283. SwaggerTemplate: docTemplate,
  284. LeftDelim: "{{",
  285. RightDelim: "}}",
  286. }
  287. func init() {
  288. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  289. }