蛋蛋星球-客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.yaml 23 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 周之前
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 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
1 周之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. basePath: /api/v1
  2. definitions:
  3. applet_app_md.Paginate:
  4. properties:
  5. limit:
  6. description: 每页大小
  7. type: integer
  8. page:
  9. description: 页数
  10. type: integer
  11. total:
  12. description: 总数据量
  13. type: integer
  14. type: object
  15. md.BasalRateResp:
  16. properties:
  17. basal_rate:
  18. description: 基础速率
  19. type: string
  20. consumed_egg_energy:
  21. description: 收益蛋蛋能量
  22. type: string
  23. consumed_egg_point:
  24. description: 消耗蛋蛋积分
  25. type: string
  26. consumed_time:
  27. description: 消耗时间/小时
  28. type: string
  29. estimated_revenue:
  30. description: 预估收益蛋蛋能量
  31. type: string
  32. remaining_egg_energy:
  33. description: 剩余蛋蛋能量
  34. type: string
  35. remaining_time:
  36. description: 剩余时间/小时
  37. type: string
  38. sign_countdown:
  39. description: 收益倒计时
  40. type: string
  41. type: object
  42. md.EggEnergyDetailReq:
  43. properties:
  44. asc:
  45. description: 1.升序 2.倒序
  46. type: string
  47. direction:
  48. description: 类型 1.收入 2.支出 全部则传空
  49. type: string
  50. kind:
  51. description: 类型:1. 个人蛋蛋能量 2.团队蛋蛋能量
  52. type: string
  53. limit:
  54. description: 每页大小
  55. type: integer
  56. page:
  57. description: 页数
  58. type: integer
  59. type:
  60. description: 变动类型 全部则传空
  61. type: string
  62. type: object
  63. md.EggEnergyDetailResp:
  64. properties:
  65. list:
  66. description: 流水数据
  67. items:
  68. additionalProperties:
  69. type: string
  70. type: object
  71. type: array
  72. paginate:
  73. allOf:
  74. - $ref: '#/definitions/applet_app_md.Paginate'
  75. description: 分页信息
  76. person_egg_energy:
  77. description: 个人蛋蛋能量
  78. type: string
  79. team_egg_energy:
  80. description: 团队蛋蛋能量
  81. type: string
  82. total_egg_energy:
  83. description: 总蛋蛋能量
  84. type: string
  85. total_egg_energy_price:
  86. description: 蛋蛋能量总价
  87. type: string
  88. transfer_type_list:
  89. allOf:
  90. - $ref: '#/definitions/md.TransferTypeList'
  91. description: 转账类型列表
  92. type: object
  93. md.EggPointDetailsReq:
  94. properties:
  95. asc:
  96. description: 1.升序 2.倒序
  97. type: string
  98. direction:
  99. description: 类型 1.收入 2.支出 全部则传空
  100. type: string
  101. kind:
  102. description: 类型:1. 个人蛋蛋积分 2.团队蛋蛋积分
  103. type: string
  104. limit:
  105. description: 每页大小
  106. type: integer
  107. page:
  108. description: 页数
  109. type: integer
  110. type:
  111. description: 变动类型 全部则传空
  112. type: string
  113. type: object
  114. md.EggPointDetailsResp:
  115. properties:
  116. list:
  117. description: 流水数据
  118. items:
  119. additionalProperties:
  120. type: string
  121. type: object
  122. type: array
  123. paginate:
  124. allOf:
  125. - $ref: '#/definitions/applet_app_md.Paginate'
  126. description: 分页信息
  127. person_egg_points:
  128. description: 个人蛋蛋积分
  129. type: string
  130. team_egg_points:
  131. description: 团队蛋蛋积分
  132. type: string
  133. total_egg_points:
  134. description: 总蛋蛋积分
  135. type: string
  136. total_egg_points_amount:
  137. description: 蛋蛋积分余额
  138. type: string
  139. transfer_type_list:
  140. allOf:
  141. - $ref: '#/definitions/md.TransferTypeList'
  142. description: 转账类型列表
  143. type: object
  144. md.FastLoginReq:
  145. properties:
  146. invite_code:
  147. example: 邀请码
  148. type: string
  149. token:
  150. example: 一键登录的token
  151. type: string
  152. type: object
  153. md.HomePageResp:
  154. properties:
  155. egg_energy_now_price:
  156. description: 蛋蛋能量当前价格
  157. type: string
  158. initial_price:
  159. description: 蛋蛋能量初始价格
  160. type: string
  161. is_rises:
  162. description: 是否涨价
  163. type: boolean
  164. is_sign:
  165. description: 是否开始签到
  166. type: boolean
  167. nick_name:
  168. description: 用户名称
  169. type: string
  170. now_basal_rate:
  171. description: 当前基础速率/小时
  172. type: string
  173. now_team_rate:
  174. description: 当前团队速率/小时
  175. type: string
  176. rises:
  177. description: 涨/跌价百分比
  178. type: string
  179. sign_end_time:
  180. description: 签到截止时间
  181. type: string
  182. total_active_points:
  183. description: 总蛋蛋积分
  184. type: string
  185. total_egg_energy:
  186. description: 总蛋蛋能量
  187. type: string
  188. user_count:
  189. description: 当前用户数量
  190. type: integer
  191. type: object
  192. md.HomePageWatchAdRuleResp:
  193. properties:
  194. each_round_hour:
  195. description: 每一轮X个小时
  196. type: string
  197. interval_minutes:
  198. description: 间隔X秒
  199. type: string
  200. reward_total_num:
  201. description: 一共X个奖励视屏
  202. type: string
  203. reward_value:
  204. description: 奖励X个活跃积分
  205. type: string
  206. type: object
  207. md.IntegralList:
  208. properties:
  209. expend_list:
  210. description: 支出类型列表
  211. items:
  212. $ref: '#/definitions/md.TransferTypeNode'
  213. type: array
  214. income_list:
  215. description: 收入类型列表
  216. items:
  217. $ref: '#/definitions/md.TransferTypeNode'
  218. type: array
  219. type: object
  220. md.IsCanGetRedPackageResp:
  221. properties:
  222. is_can_get_red_package:
  223. type: boolean
  224. type: object
  225. md.IsCanSignInResp:
  226. properties:
  227. is_can_sign_in:
  228. type: boolean
  229. type: object
  230. md.LoginReq:
  231. properties:
  232. code:
  233. example: 验证码
  234. type: string
  235. password:
  236. example: 登录密码
  237. type: string
  238. phone:
  239. example: 手机号
  240. type: string
  241. required:
  242. - password
  243. - phone
  244. type: object
  245. md.LoginResponse:
  246. properties:
  247. token:
  248. type: string
  249. type: object
  250. md.MyFansResp:
  251. properties:
  252. now_team_assistance_num:
  253. description: 团队助力人数
  254. type: integer
  255. now_team_assistance_reward:
  256. description: 团队助力收益
  257. type: string
  258. now_team_user:
  259. description: 团队人数
  260. type: integer
  261. type: object
  262. md.MyFansUserListResp:
  263. properties:
  264. list:
  265. items:
  266. $ref: '#/definitions/md.OneLineUserNode'
  267. type: array
  268. type: object
  269. md.NineDimensionalSpaceResp:
  270. properties:
  271. a_lot_of_nums:
  272. description: 全网至多用户数
  273. type: string
  274. space_list:
  275. description: 数据列表
  276. items:
  277. $ref: '#/definitions/md.SpaceListNode'
  278. type: array
  279. space_nums:
  280. description: 空间人数
  281. type: string
  282. space_total_nums:
  283. description: 空间总数
  284. type: string
  285. type: object
  286. md.OneLineUserNode:
  287. properties:
  288. avatar_url:
  289. type: string
  290. invite_time:
  291. type: string
  292. is_online:
  293. type: boolean
  294. nickname:
  295. type: string
  296. type: object
  297. md.RealTimePriceResp:
  298. properties:
  299. is_rises:
  300. type: boolean
  301. now_price:
  302. type: string
  303. rises:
  304. type: string
  305. user_count:
  306. type: string
  307. type: object
  308. md.RegisterReq:
  309. properties:
  310. avatar:
  311. example: 头像
  312. type: string
  313. code:
  314. example: 验证码
  315. type: string
  316. invite_code:
  317. example: 邀请码
  318. type: string
  319. mobile:
  320. type: string
  321. nickname:
  322. example: 昵称
  323. type: string
  324. open_id:
  325. example: 微信openId
  326. type: string
  327. sex:
  328. description: 性别(0:未知 1:男 2:女)
  329. type: integer
  330. type:
  331. example: app:APP注册、h5:H5注册
  332. type: string
  333. union_id:
  334. example: 微信UnionId
  335. type: string
  336. required:
  337. - mobile
  338. type: object
  339. md.Response:
  340. properties:
  341. code:
  342. example: 响应码
  343. type: string
  344. data:
  345. description: 内容
  346. msg:
  347. example: 具体错误原因
  348. type: string
  349. type: object
  350. md.SmsSendReq:
  351. properties:
  352. captcha_output:
  353. example: 阿里云图形验证码对应参数
  354. type: string
  355. gen_time:
  356. example: 阿里云图形验证码对应参数
  357. type: string
  358. lot_number:
  359. example: 阿里云图形验证码对应参数
  360. type: string
  361. mobile:
  362. type: string
  363. pass_token:
  364. example: 阿里云图形验证码对应参数
  365. type: string
  366. type:
  367. example: h5Register:h5注册页、wechatBindPhone:微信绑定手机、login:登陆、findPwd:找回密码、changePwd:修改密码
  368. type: string
  369. required:
  370. - mobile
  371. type: object
  372. md.SpaceListNode:
  373. properties:
  374. max_count:
  375. description: 最大容纳人数
  376. type: string
  377. name:
  378. description: 维度
  379. type: string
  380. now_count:
  381. description: 当前人数
  382. type: string
  383. type: object
  384. md.TotalRateResp:
  385. properties:
  386. consumed_personal_egg_point:
  387. description: 消耗个人蛋蛋积分
  388. type: string
  389. consumed_team_egg_point:
  390. description: 消耗团队蛋蛋积分
  391. type: string
  392. now_basal_rate:
  393. description: 当前基础速率/小时
  394. type: string
  395. now_team_rate:
  396. description: 当前团队速率/小时
  397. type: string
  398. now_total_rate:
  399. description: 总速率/小时
  400. type: string
  401. type: object
  402. md.TransferTypeList:
  403. properties:
  404. available_integral_list:
  405. allOf:
  406. - $ref: '#/definitions/md.IntegralList'
  407. description: 可用积分列表
  408. settlement_integral_list:
  409. allOf:
  410. - $ref: '#/definitions/md.IntegralList'
  411. description: 结算积分列表
  412. type: object
  413. md.TransferTypeNode:
  414. properties:
  415. name:
  416. type: string
  417. value:
  418. type: string
  419. type: object
  420. md.UserInfoResp:
  421. properties:
  422. invite_code:
  423. type: string
  424. is_bind_extend:
  425. example: 是否绑定了上级 0否 1是
  426. type: string
  427. nickname:
  428. type: string
  429. phone:
  430. type: string
  431. type: object
  432. host: ddxq.izhim.com
  433. info:
  434. contact:
  435. email: 1239118001@qq.com
  436. name: dengbiao
  437. url: http://www.swagger.io/support
  438. description: APP客户端-Api接口
  439. license:
  440. name: Apache 2.0
  441. url: http://www.apache.org/licenses/LICENSE-2.0.html
  442. termsOfService: http://swagger.io/terms/
  443. title: 蛋蛋星球-APP客户端
  444. version: "1.0"
  445. paths:
  446. /api/v1/addFriend/basalRate:
  447. get:
  448. consumes:
  449. - application/json
  450. description: 基础速率(获取)
  451. parameters:
  452. - description: 验证参数Bearer和token空格拼接
  453. in: header
  454. name: Authorization
  455. required: true
  456. type: string
  457. produces:
  458. - application/json
  459. responses:
  460. "200":
  461. description: 具体数据
  462. schema:
  463. $ref: '#/definitions/md.BasalRateResp'
  464. "400":
  465. description: 具体错误
  466. schema:
  467. $ref: '#/definitions/md.Response'
  468. summary: 蛋蛋星球-添加好友-基础速率(获取)
  469. tags:
  470. - 添加好友
  471. /api/v1/addFriend/eggEnergyDetails:
  472. post:
  473. consumes:
  474. - application/json
  475. description: 蛋蛋能量明细(获取)
  476. parameters:
  477. - description: 验证参数Bearer和token空格拼接
  478. in: header
  479. name: Authorization
  480. required: true
  481. type: string
  482. - description: 分页类型必填
  483. in: body
  484. name: req
  485. required: true
  486. schema:
  487. $ref: '#/definitions/md.EggEnergyDetailReq'
  488. produces:
  489. - application/json
  490. responses:
  491. "200":
  492. description: 具体数据
  493. schema:
  494. $ref: '#/definitions/md.EggEnergyDetailResp'
  495. "400":
  496. description: 具体错误
  497. schema:
  498. $ref: '#/definitions/md.Response'
  499. summary: 蛋蛋星球-添加好友-蛋蛋能量明细(获取)
  500. tags:
  501. - 添加好友
  502. /api/v1/addFriend/eggPointDetails:
  503. post:
  504. consumes:
  505. - application/json
  506. description: 蛋蛋积分明细(获取)
  507. parameters:
  508. - description: 验证参数Bearer和token空格拼接
  509. in: header
  510. name: Authorization
  511. required: true
  512. type: string
  513. - description: 分页类型必填
  514. in: body
  515. name: req
  516. required: true
  517. schema:
  518. $ref: '#/definitions/md.EggPointDetailsReq'
  519. produces:
  520. - application/json
  521. responses:
  522. "200":
  523. description: 具体数据
  524. schema:
  525. $ref: '#/definitions/md.EggPointDetailsResp'
  526. "400":
  527. description: 具体错误
  528. schema:
  529. $ref: '#/definitions/md.Response'
  530. summary: 蛋蛋星球-添加好友-蛋蛋积分明细(获取)
  531. tags:
  532. - 添加好友
  533. /api/v1/addFriend/myFans:
  534. get:
  535. consumes:
  536. - application/json
  537. description: 团队加速速率(获取)
  538. parameters:
  539. - description: 验证参数Bearer和token空格拼接
  540. in: header
  541. name: Authorization
  542. required: true
  543. type: string
  544. produces:
  545. - application/json
  546. responses:
  547. "200":
  548. description: 具体数据
  549. schema:
  550. $ref: '#/definitions/md.MyFansResp'
  551. "400":
  552. description: 具体错误
  553. schema:
  554. $ref: '#/definitions/md.Response'
  555. summary: 蛋蛋星球-添加好友-粉丝团队-我的粉丝-团队加速速率(获取)
  556. tags:
  557. - 添加好友
  558. /api/v1/addFriend/myFansUserList:
  559. get:
  560. consumes:
  561. - application/json
  562. description: 在线好友列表(获取)
  563. parameters:
  564. - description: 验证参数Bearer和token空格拼接
  565. in: header
  566. name: Authorization
  567. required: true
  568. type: string
  569. produces:
  570. - application/json
  571. responses:
  572. "200":
  573. description: 具体数据
  574. schema:
  575. $ref: '#/definitions/md.MyFansUserListResp'
  576. "400":
  577. description: 具体错误
  578. schema:
  579. $ref: '#/definitions/md.Response'
  580. summary: 蛋蛋星球-添加好友-粉丝团队-我的粉丝-在线好友列表(获取)
  581. tags:
  582. - 添加好友
  583. /api/v1/addFriend/nineDimensionalSpace:
  584. get:
  585. consumes:
  586. - application/json
  587. description: 九维空间(获取)
  588. parameters:
  589. - description: 验证参数Bearer和token空格拼接
  590. in: header
  591. name: Authorization
  592. required: true
  593. type: string
  594. produces:
  595. - application/json
  596. responses:
  597. "200":
  598. description: 具体数据
  599. schema:
  600. $ref: '#/definitions/md.NineDimensionalSpaceResp'
  601. "400":
  602. description: 具体错误
  603. schema:
  604. $ref: '#/definitions/md.Response'
  605. summary: 蛋蛋星球-添加好友-粉丝团队-九维空间(获取)
  606. tags:
  607. - 添加好友
  608. /api/v1/addFriend/totalRate:
  609. get:
  610. consumes:
  611. - application/json
  612. description: 总速率(获取)
  613. parameters:
  614. - description: 验证参数Bearer和token空格拼接
  615. in: header
  616. name: Authorization
  617. required: true
  618. type: string
  619. produces:
  620. - application/json
  621. responses:
  622. "200":
  623. description: 具体数据
  624. schema:
  625. $ref: '#/definitions/md.TotalRateResp'
  626. "400":
  627. description: 具体错误
  628. schema:
  629. $ref: '#/definitions/md.Response'
  630. summary: 蛋蛋星球-添加好友-总速率(获取)
  631. tags:
  632. - 添加好友
  633. /api/v1/comm/getOssUrl:
  634. get:
  635. consumes:
  636. - application/json
  637. description: 上传许可链接(获取)
  638. parameters:
  639. - description: 验证参数Bearer和token空格拼接
  640. in: header
  641. name: Authorization
  642. required: true
  643. type: string
  644. produces:
  645. - application/json
  646. responses:
  647. "200":
  648. description: 许可链接
  649. schema:
  650. type: string
  651. "400":
  652. description: 具体错误
  653. schema:
  654. $ref: '#/definitions/md.Response'
  655. summary: 通用请求-对象存储-上传许可链接(获取)
  656. tags:
  657. - 对象存储
  658. /api/v1/fastLogin:
  659. post:
  660. consumes:
  661. - application/json
  662. description: 一键登录
  663. parameters:
  664. - description: 注册参数
  665. in: body
  666. name: req
  667. required: true
  668. schema:
  669. $ref: '#/definitions/md.FastLoginReq'
  670. produces:
  671. - application/json
  672. responses:
  673. "200":
  674. description: 登录成功返回
  675. schema:
  676. $ref: '#/definitions/md.LoginResponse'
  677. "400":
  678. description: 具体错误
  679. schema:
  680. $ref: '#/definitions/md.Response'
  681. summary: 一键登录
  682. tags:
  683. - 一键登录
  684. /api/v1/homePage/adRule:
  685. get:
  686. consumes:
  687. - application/json
  688. description: 视频奖励规则(获取)
  689. parameters:
  690. - description: 验证参数Bearer和token空格拼接
  691. in: header
  692. name: Authorization
  693. required: true
  694. type: string
  695. produces:
  696. - application/json
  697. responses:
  698. "200":
  699. description: 具体数据
  700. schema:
  701. $ref: '#/definitions/md.HomePageWatchAdRuleResp'
  702. "400":
  703. description: 具体错误
  704. schema:
  705. $ref: '#/definitions/md.Response'
  706. summary: 蛋蛋星球-主页-视频奖励规则(获取)
  707. tags:
  708. - 主页
  709. /api/v1/homePage/index:
  710. get:
  711. consumes:
  712. - application/json
  713. description: 基础信息(获取)
  714. parameters:
  715. - description: 验证参数Bearer和token空格拼接
  716. in: header
  717. name: Authorization
  718. required: true
  719. type: string
  720. produces:
  721. - application/json
  722. responses:
  723. "200":
  724. description: 具体数据
  725. schema:
  726. $ref: '#/definitions/md.HomePageResp'
  727. "400":
  728. description: 具体错误
  729. schema:
  730. $ref: '#/definitions/md.Response'
  731. summary: 蛋蛋星球-主页-基础信息(获取)
  732. tags:
  733. - 主页
  734. /api/v1/homePage/isCanGetRedPackage:
  735. get:
  736. consumes:
  737. - application/json
  738. description: 是否可以领取红包(获取)
  739. parameters:
  740. - description: 验证参数Bearer和token空格拼接
  741. in: header
  742. name: Authorization
  743. required: true
  744. type: string
  745. produces:
  746. - application/json
  747. responses:
  748. "200":
  749. description: 具体数据
  750. schema:
  751. $ref: '#/definitions/md.IsCanGetRedPackageResp'
  752. "400":
  753. description: 具体错误
  754. schema:
  755. $ref: '#/definitions/md.Response'
  756. summary: 蛋蛋星球-主页-是否领取红包(获取)
  757. tags:
  758. - 主页
  759. /api/v1/homePage/isCanSignIn:
  760. get:
  761. consumes:
  762. - application/json
  763. description: 是否可以签到(获取)
  764. parameters:
  765. - description: 验证参数Bearer和token空格拼接
  766. in: header
  767. name: Authorization
  768. required: true
  769. type: string
  770. produces:
  771. - application/json
  772. responses:
  773. "200":
  774. description: 具体数据
  775. schema:
  776. $ref: '#/definitions/md.IsCanSignInResp'
  777. "400":
  778. description: 具体错误
  779. schema:
  780. $ref: '#/definitions/md.Response'
  781. summary: 蛋蛋星球-主页-是否能签到(获取)
  782. tags:
  783. - 主页
  784. /api/v1/homePage/realTimePrice:
  785. get:
  786. consumes:
  787. - application/json
  788. description: 实时数据(获取)
  789. parameters:
  790. - description: 验证参数Bearer和token空格拼接
  791. in: header
  792. name: Authorization
  793. required: true
  794. type: string
  795. produces:
  796. - application/json
  797. responses:
  798. "200":
  799. description: 具体数据
  800. schema:
  801. $ref: '#/definitions/md.RealTimePriceResp'
  802. "400":
  803. description: 具体错误
  804. schema:
  805. $ref: '#/definitions/md.Response'
  806. summary: 蛋蛋星球-主页-实时数据(获取)
  807. tags:
  808. - 主页
  809. /api/v1/login:
  810. post:
  811. consumes:
  812. - application/json
  813. description: 登入
  814. parameters:
  815. - description: 用户名密码
  816. in: body
  817. name: req
  818. required: true
  819. schema:
  820. $ref: '#/definitions/md.LoginReq'
  821. produces:
  822. - application/json
  823. responses:
  824. "200":
  825. description: token
  826. schema:
  827. $ref: '#/definitions/md.LoginResponse'
  828. "400":
  829. description: 具体错误
  830. schema:
  831. $ref: '#/definitions/md.Response'
  832. summary: 登陆
  833. tags:
  834. - 登录
  835. /api/v1/register:
  836. post:
  837. consumes:
  838. - application/json
  839. description: 注册
  840. parameters:
  841. - description: 注册参数
  842. in: body
  843. name: req
  844. required: true
  845. schema:
  846. $ref: '#/definitions/md.RegisterReq'
  847. produces:
  848. - application/json
  849. responses:
  850. "200":
  851. description: 登录成功返回
  852. schema:
  853. $ref: '#/definitions/md.LoginResponse'
  854. "400":
  855. description: 具体错误
  856. schema:
  857. $ref: '#/definitions/md.Response'
  858. summary: 注册
  859. tags:
  860. - 注册
  861. /api/v1/smsSend:
  862. post:
  863. consumes:
  864. - application/json
  865. description: 发送短信
  866. parameters:
  867. - description: 注册参数
  868. in: body
  869. name: req
  870. required: true
  871. schema:
  872. $ref: '#/definitions/md.SmsSendReq'
  873. produces:
  874. - application/json
  875. responses:
  876. "200":
  877. description: 成功返回
  878. schema:
  879. type: string
  880. "400":
  881. description: 具体错误
  882. schema:
  883. $ref: '#/definitions/md.Response'
  884. summary: 发送短信
  885. tags:
  886. - 发送短信
  887. /api/v1/test:
  888. get:
  889. consumes:
  890. - application/json
  891. description: Demo样例测试
  892. parameters:
  893. - description: 任意参数
  894. in: body
  895. name: req
  896. required: true
  897. schema:
  898. type: object
  899. produces:
  900. - application/json
  901. responses:
  902. "200":
  903. description: 返回任意参数
  904. schema:
  905. additionalProperties: true
  906. type: object
  907. "400":
  908. description: 具体错误
  909. schema:
  910. $ref: '#/definitions/md.Response'
  911. summary: Demo测试
  912. tags:
  913. - Demo
  914. /api/v1/userInfo:
  915. get:
  916. consumes:
  917. - application/json
  918. description: 用户信息
  919. parameters:
  920. - description: 验证参数Bearer和token空格拼接
  921. in: header
  922. name: Authorization
  923. required: true
  924. type: string
  925. produces:
  926. - application/json
  927. responses:
  928. "200":
  929. description: 具体数据
  930. schema:
  931. $ref: '#/definitions/md.UserInfoResp'
  932. "400":
  933. description: 具体错误
  934. schema:
  935. $ref: '#/definitions/md.Response'
  936. summary: 用户信息
  937. tags:
  938. - 用户信息
  939. swagger: "2.0"