swagger.yaml 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  1. basePath: /
  2. definitions:
  3. activity.ActivityList:
  4. properties:
  5. activityId:
  6. type: integer
  7. activityName:
  8. description: 活动名称
  9. type: string
  10. activityState:
  11. description: 活动状态 1-本周预告 2-进行中 3-已结束
  12. type: integer
  13. activityTypeId:
  14. description: 活动类型ID
  15. type: integer
  16. activityTypeName:
  17. description: 活动类型名称
  18. type: string
  19. city:
  20. description: 城市
  21. type: string
  22. endTime:
  23. description: 活动结束时间
  24. type: string
  25. firstActivityTypeId:
  26. description: 第一级的活动类型ID
  27. type: integer
  28. firstActivityTypeName:
  29. description: 第一级的活动类型名称
  30. type: string
  31. hasPlayBack:
  32. description: 是否有回放
  33. type: integer
  34. hasRemind:
  35. description: 是否已提醒
  36. type: integer
  37. registerState:
  38. description: 报名状态 0-取消报名 1-已报名
  39. type: integer
  40. speaker:
  41. description: 主讲人
  42. type: string
  43. speakerBackgroundPic:
  44. description: 主讲人背景图
  45. type: string
  46. speakerHeadPic:
  47. description: 主讲人头像
  48. type: string
  49. startTime:
  50. description: 活动开始时间
  51. type: string
  52. voiceList:
  53. description: 音频列表
  54. items:
  55. $ref: '#/definitions/yb_activity_voice.YbActivityVoice'
  56. type: array
  57. weekString:
  58. description: 周几
  59. type: string
  60. type: object
  61. activity.RegisterCheckInfo:
  62. properties:
  63. msg:
  64. type: string
  65. specific:
  66. type: integer
  67. type:
  68. type: string
  69. type: object
  70. activity.RemindCheckInfo:
  71. properties:
  72. msg:
  73. type: string
  74. specific:
  75. type: integer
  76. type:
  77. type: string
  78. type: object
  79. admin.Admin:
  80. properties:
  81. adminName:
  82. type: string
  83. authority:
  84. description: 管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员
  85. type: integer
  86. createdTime:
  87. description: 创建时间
  88. type: string
  89. departmentId:
  90. description: 部门id
  91. type: integer
  92. departmentName:
  93. description: 部门名称
  94. type: string
  95. email:
  96. type: string
  97. enabled:
  98. description: 1:有效,0:禁用
  99. type: integer
  100. groupId:
  101. description: 分组id
  102. type: integer
  103. groupName:
  104. description: 分组名称
  105. type: string
  106. lastLoginTime:
  107. description: 最近登陆时间
  108. type: string
  109. lastUpdatedPasswordTime:
  110. type: string
  111. lastUpdatedTime:
  112. type: string
  113. mobile:
  114. description: 手机号
  115. type: string
  116. password:
  117. type: string
  118. position:
  119. description: 职位
  120. type: string
  121. realName:
  122. type: string
  123. role:
  124. description: 用户角色
  125. type: string
  126. roleId:
  127. description: 角色id
  128. type: integer
  129. roleName:
  130. description: 角色名称
  131. type: string
  132. roleType:
  133. description: 角色类型:1需要录入指标,0:不需要
  134. type: integer
  135. roleTypeCode:
  136. description: 角色编码
  137. type: string
  138. type: object
  139. chart_edb_mapping.ChartEdbInfoMapping:
  140. properties:
  141. chartColor:
  142. type: string
  143. chartEdbMappingId:
  144. type: integer
  145. chartInfoId:
  146. type: integer
  147. chartStyle:
  148. type: string
  149. chartWidth:
  150. type: number
  151. dataList: {}
  152. edbCode:
  153. type: string
  154. edbInfoId:
  155. type: integer
  156. edbInfoType:
  157. type: integer
  158. edbName:
  159. type: string
  160. edbType:
  161. type: integer
  162. endDate:
  163. type: string
  164. frequency:
  165. type: string
  166. isAxis:
  167. type: integer
  168. isOrder:
  169. type: boolean
  170. latestDate:
  171. type: string
  172. latestValue:
  173. type: number
  174. leadUnit:
  175. type: string
  176. leadValue:
  177. type: integer
  178. maxData:
  179. type: number
  180. minData:
  181. type: number
  182. modifyTime:
  183. type: string
  184. source:
  185. type: integer
  186. sourceName:
  187. type: string
  188. startDate:
  189. type: string
  190. uniqueCode:
  191. type: string
  192. unit:
  193. type: string
  194. type: object
  195. chart_info.ChartInfoDetailResp:
  196. properties:
  197. chartInfo:
  198. $ref: '#/definitions/chart_info.ChartInfoView'
  199. edbInfoList:
  200. items:
  201. $ref: '#/definitions/chart_edb_mapping.ChartEdbInfoMapping'
  202. type: array
  203. type: object
  204. chart_info.ChartInfoView:
  205. properties:
  206. calendar:
  207. type: string
  208. chartClassifyId:
  209. type: integer
  210. chartClassifyName:
  211. type: string
  212. chartImage:
  213. type: string
  214. chartInfoId:
  215. type: integer
  216. chartName:
  217. type: string
  218. chartType:
  219. type: integer
  220. createTime:
  221. type: string
  222. dateType:
  223. type: integer
  224. edbEndDate:
  225. type: string
  226. edbInfoIds:
  227. type: string
  228. endDate:
  229. type: string
  230. isAdd:
  231. type: boolean
  232. isSetName:
  233. type: integer
  234. leftMax:
  235. type: string
  236. leftMin:
  237. type: string
  238. modifyTime:
  239. type: string
  240. myChartClassifyId:
  241. type: string
  242. myChartId:
  243. type: integer
  244. rightMax:
  245. type: string
  246. rightMin:
  247. type: string
  248. seasonEndDate:
  249. type: string
  250. seasonStartDate:
  251. type: string
  252. sort:
  253. type: integer
  254. startDate:
  255. type: string
  256. sysUserId:
  257. type: integer
  258. sysUserRealName:
  259. type: string
  260. uniqueCode:
  261. type: string
  262. type: object
  263. chart_info.ChartSaveItem:
  264. properties:
  265. chartColor:
  266. type: string
  267. chartStyle:
  268. type: string
  269. chartWidth:
  270. type: number
  271. edbInfoId:
  272. type: integer
  273. edbInfoType:
  274. type: integer
  275. isAxis:
  276. type: integer
  277. isOrder:
  278. type: boolean
  279. leadUnit:
  280. type: string
  281. leadValue:
  282. type: integer
  283. maxData:
  284. type: number
  285. minData:
  286. type: number
  287. type: object
  288. chart_info.SaveChartInfoReq:
  289. properties:
  290. calendar:
  291. type: string
  292. chartEdbInfoList:
  293. items:
  294. $ref: '#/definitions/chart_info.ChartSaveItem'
  295. type: array
  296. chartInfoId:
  297. type: integer
  298. dateType:
  299. type: integer
  300. endDate:
  301. type: string
  302. leftMax:
  303. type: string
  304. leftMin:
  305. type: string
  306. rightMax:
  307. type: string
  308. rightMin:
  309. type: string
  310. seasonEndDate:
  311. type: string
  312. seasonStartDate:
  313. type: string
  314. startDate:
  315. type: string
  316. type: object
  317. logic.ApplyVariety:
  318. properties:
  319. name:
  320. type: string
  321. permission_name:
  322. type: string
  323. pic_url:
  324. type: string
  325. type: object
  326. my_chart.MoveMyChartReq:
  327. properties:
  328. myChartClassifyId:
  329. type: integer
  330. myChartId:
  331. type: integer
  332. nextMyChartId:
  333. type: integer
  334. prevMyChartId:
  335. type: integer
  336. type: object
  337. my_chart.MyChartClassifyListResp:
  338. properties:
  339. private_classify:
  340. items:
  341. $ref: '#/definitions/my_chart_classify.MyChartClassify'
  342. type: array
  343. public_classify:
  344. items:
  345. $ref: '#/definitions/my_chart_classify.MyChartClassify'
  346. type: array
  347. type: object
  348. my_chart.MyChartList:
  349. properties:
  350. calendar:
  351. type: string
  352. chartClassifyId:
  353. type: integer
  354. chartImage:
  355. type: string
  356. chartInfoId:
  357. type: integer
  358. chartName:
  359. type: string
  360. chartType:
  361. type: integer
  362. createTime:
  363. type: string
  364. dateType:
  365. type: integer
  366. edbEndDate:
  367. type: string
  368. edbInfoIds:
  369. type: string
  370. endDate:
  371. type: string
  372. isAdd:
  373. type: boolean
  374. isSetName:
  375. type: integer
  376. modifyTime:
  377. type: string
  378. myChartClassifyId:
  379. type: string
  380. myChartClassifyName:
  381. type: string
  382. myChartId:
  383. type: integer
  384. seasonEndDate:
  385. type: string
  386. seasonStartDate:
  387. type: string
  388. sort:
  389. type: integer
  390. startDate:
  391. type: string
  392. sysUserId:
  393. type: integer
  394. sysUserRealName:
  395. type: string
  396. uniqueCode:
  397. type: string
  398. type: object
  399. my_chart_classify.MyChartClassify:
  400. properties:
  401. adminId:
  402. description: 用户id
  403. type: integer
  404. companyPublicTime:
  405. description: 用户可见公开时间
  406. type: string
  407. createTime:
  408. type: string
  409. isCompanyPublic:
  410. description: 是否用户可见:0-否 1-是
  411. type: integer
  412. isPublic:
  413. description: 是否所有人可见,0:仅自己可见,1:所有人可见
  414. type: integer
  415. modifyTime:
  416. type: string
  417. myChartClassifyId:
  418. type: integer
  419. myChartClassifyName:
  420. description: 分类名称
  421. type: string
  422. publicTime:
  423. description: 公开时间
  424. type: string
  425. sort:
  426. description: 排序字段,值越小,越靠前
  427. type: integer
  428. type: object
  429. response.LoginResp:
  430. properties:
  431. authorization:
  432. type: string
  433. is_bind:
  434. type: boolean
  435. user_id:
  436. type: integer
  437. type: object
  438. user.ApplyReq:
  439. properties:
  440. business_card_url:
  441. type: string
  442. company_name:
  443. type: string
  444. permission:
  445. type: string
  446. real_name:
  447. type: string
  448. source:
  449. type: integer
  450. type: object
  451. user.CompanyPermission:
  452. properties:
  453. name:
  454. type: string
  455. permission_list:
  456. items:
  457. $ref: '#/definitions/user.PermissionList'
  458. type: array
  459. type: object
  460. user.Detail:
  461. properties:
  462. admin_info:
  463. $ref: '#/definitions/admin.Admin'
  464. company_name:
  465. type: string
  466. email:
  467. type: string
  468. is_inner:
  469. type: integer
  470. is_suspend:
  471. type: integer
  472. mobile:
  473. type: string
  474. permission_list:
  475. items:
  476. $ref: '#/definitions/user.CompanyPermission'
  477. type: array
  478. real_name:
  479. type: string
  480. seal_mobile:
  481. type: string
  482. seal_name:
  483. type: string
  484. status:
  485. type: string
  486. type: object
  487. user.LoginReq:
  488. properties:
  489. area_num:
  490. type: integer
  491. bind_type:
  492. type: integer
  493. email:
  494. type: string
  495. mobile:
  496. type: string
  497. verify_code:
  498. type: string
  499. type: object
  500. user.LoginResp:
  501. properties:
  502. email:
  503. type: string
  504. mobile:
  505. type: string
  506. token:
  507. type: string
  508. user_id:
  509. type: integer
  510. type: object
  511. user.PermissionList:
  512. properties:
  513. end_date:
  514. type: string
  515. name:
  516. type: string
  517. start_date:
  518. type: string
  519. status:
  520. type: string
  521. type: object
  522. user.Record:
  523. properties:
  524. business_card_url:
  525. type: string
  526. company_name:
  527. type: string
  528. mobile:
  529. type: string
  530. real_name:
  531. type: string
  532. type: object
  533. yb_activity.ActivityDetail:
  534. properties:
  535. activityId:
  536. type: integer
  537. activityName:
  538. description: 活动名称
  539. type: string
  540. activityState:
  541. description: 活动状态 1-本周预告 2-进行中 3-已结束
  542. type: integer
  543. activityTypeId:
  544. description: 活动类型ID
  545. type: integer
  546. activityTypeName:
  547. description: 活动类型名称
  548. type: string
  549. address:
  550. description: 活动地址
  551. type: string
  552. americaTel:
  553. description: 美国拨入
  554. type: string
  555. city:
  556. description: 城市
  557. type: string
  558. endTime:
  559. description: 活动结束时间
  560. type: string
  561. firstActivityTypeId:
  562. description: 第一级的活动类型ID
  563. type: integer
  564. firstActivityTypeName:
  565. description: 第一级的活动类型名称
  566. type: string
  567. hasPlayBack:
  568. description: 是否有回放
  569. type: integer
  570. hasRemind:
  571. description: 是否已提醒
  572. type: integer
  573. hongKongTel:
  574. description: 香港拨入
  575. type: string
  576. isLimitPeople:
  577. description: 是否限制人数 1是,0否
  578. type: integer
  579. limitPeopleNum:
  580. description: 限制人数数量
  581. type: integer
  582. linkParticipants:
  583. description: 参会链接
  584. type: string
  585. mainlandTel:
  586. description: 大陆拨入
  587. type: string
  588. participationCode:
  589. description: 参会密码
  590. type: string
  591. registerState:
  592. description: 报名状态 0-取消报名 1-已报名
  593. type: integer
  594. registeredNum:
  595. description: 已报名人数
  596. type: integer
  597. reportLink:
  598. description: 报告链接
  599. type: string
  600. reportName:
  601. description: 报告名称
  602. type: string
  603. singaporeTel:
  604. description: 新加坡拨入
  605. type: string
  606. speaker:
  607. description: 主讲人
  608. type: string
  609. speakerBackgroundPic:
  610. description: 主讲人背景图
  611. type: string
  612. speakerHeadPic:
  613. description: 主讲人头像
  614. type: string
  615. startTime:
  616. description: 活动开始时间
  617. type: string
  618. taiwanTel:
  619. description: 台湾拨入
  620. type: string
  621. weekString:
  622. description: 周几
  623. type: string
  624. type: object
  625. yb_activity_voice.YbActivityVoice:
  626. properties:
  627. activityId:
  628. description: 活动id
  629. type: integer
  630. createTime:
  631. type: string
  632. voiceName:
  633. description: 音频名称
  634. type: string
  635. voicePlaySeconds:
  636. description: 音频时长
  637. type: string
  638. voiceUrl:
  639. description: 音频地址
  640. type: string
  641. type: object
  642. host: 127.0.0.1:8607
  643. info:
  644. contact:
  645. email: pyan@hzinsights.com
  646. name: www.hzinsights.com/
  647. url: https://www.hzinsights.com/
  648. description: 这是弘则研报API接口文档
  649. license:
  650. name: Apache 2.0
  651. url: http://www.apache.org/licenses/LICENSE-2.0.html
  652. termsOfService: https://www.hzinsights.com/
  653. title: 弘则研报API接口文档
  654. version: "1.0"
  655. paths:
  656. /activity/addRemind:
  657. post:
  658. consumes:
  659. - application/json
  660. description: 添加提醒
  661. parameters:
  662. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  663. in: header
  664. name: Authorization
  665. required: true
  666. type: string
  667. - description: 活动ID
  668. in: query
  669. name: activity_id
  670. required: true
  671. type: integer
  672. responses:
  673. "200":
  674. description: 操作成功
  675. schema:
  676. type: string
  677. "400":
  678. description: 操作失败
  679. schema:
  680. type: string
  681. "4001":
  682. description: 指定错误
  683. schema:
  684. $ref: '#/definitions/activity.RemindCheckInfo'
  685. security:
  686. - ApiKeyAuth: []
  687. summary: 添加提醒
  688. tags:
  689. - 活动模块
  690. /activity/cancelRegister:
  691. post:
  692. consumes:
  693. - application/json
  694. description: 取消报名
  695. parameters:
  696. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  697. in: header
  698. name: Authorization
  699. required: true
  700. type: string
  701. - description: 活动ID
  702. in: query
  703. name: activity_id
  704. required: true
  705. type: integer
  706. responses:
  707. "200":
  708. description: 操作成功
  709. schema:
  710. type: string
  711. "400":
  712. description: 操作失败
  713. schema:
  714. type: string
  715. security:
  716. - ApiKeyAuth: []
  717. summary: 取消报名
  718. tags:
  719. - 活动模块
  720. /activity/cancelRemind:
  721. post:
  722. consumes:
  723. - application/json
  724. description: 取消提醒
  725. parameters:
  726. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  727. in: header
  728. name: Authorization
  729. required: true
  730. type: string
  731. - description: 活动ID
  732. in: query
  733. name: activity_id
  734. required: true
  735. type: integer
  736. responses:
  737. "200":
  738. description: 操作成功
  739. schema:
  740. type: string
  741. "400":
  742. description: 操作失败
  743. schema:
  744. type: string
  745. security:
  746. - ApiKeyAuth: []
  747. summary: 取消提醒
  748. tags:
  749. - 活动模块
  750. /activity/getActivityDetail:
  751. get:
  752. consumes:
  753. - application/json
  754. description: 获取活动详情
  755. parameters:
  756. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  757. in: header
  758. name: Authorization
  759. required: true
  760. type: string
  761. - description: 活动ID
  762. in: query
  763. name: activity_id
  764. required: true
  765. type: integer
  766. responses:
  767. "200":
  768. description: OK
  769. schema:
  770. $ref: '#/definitions/yb_activity.ActivityDetail'
  771. "400":
  772. description: 获取失败
  773. schema:
  774. type: string
  775. security:
  776. - ApiKeyAuth: []
  777. summary: 获取活动详情
  778. tags:
  779. - 活动模块
  780. /activity/getActivityShareImg:
  781. get:
  782. consumes:
  783. - application/json
  784. description: 生成活动分享图片
  785. parameters:
  786. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  787. in: header
  788. name: Authorization
  789. required: true
  790. type: string
  791. - description: 活动ID
  792. in: query
  793. name: activity_id
  794. required: true
  795. type: integer
  796. responses:
  797. "200":
  798. description: 获取成功
  799. schema:
  800. type: string
  801. "400":
  802. description: 获取失败
  803. schema:
  804. type: string
  805. security:
  806. - ApiKeyAuth: []
  807. summary: 生成活动分享图片
  808. tags:
  809. - 活动模块
  810. /activity/getActivityVoices:
  811. get:
  812. consumes:
  813. - application/json
  814. description: 获取活动录音
  815. parameters:
  816. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  817. in: header
  818. name: Authorization
  819. required: true
  820. type: string
  821. - description: 活动ID
  822. in: query
  823. name: activity_id
  824. required: true
  825. type: integer
  826. responses:
  827. "200":
  828. description: OK
  829. schema:
  830. items:
  831. $ref: '#/definitions/yb_activity_voice.YbActivityVoice'
  832. type: array
  833. "400":
  834. description: 获取失败
  835. schema:
  836. type: string
  837. security:
  838. - ApiKeyAuth: []
  839. summary: 获取活动录音
  840. tags:
  841. - 活动模块
  842. /activity/getPageList:
  843. get:
  844. consumes:
  845. - application/json
  846. description: 获取活动列表
  847. parameters:
  848. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  849. in: header
  850. name: Authorization
  851. required: true
  852. type: string
  853. - description: 活动类别/标题
  854. in: query
  855. name: title
  856. type: string
  857. - description: 活动状态 1-本周预告 2-进行中 3-已结束
  858. in: query
  859. name: active_state
  860. type: integer
  861. - description: 活动类型 1-线上会议 3-线下沙龙
  862. in: query
  863. name: activity_type
  864. type: integer
  865. - description: 是否查看仅有权限的 0-否 1-是
  866. in: query
  867. name: has_permission
  868. type: integer
  869. - description: 当前页码
  870. in: query
  871. name: page
  872. type: integer
  873. - description: 每页数量
  874. in: query
  875. name: limit
  876. type: integer
  877. responses:
  878. "200":
  879. description: OK
  880. schema:
  881. items:
  882. $ref: '#/definitions/activity.ActivityList'
  883. type: array
  884. "400":
  885. description: 活动获取失败
  886. schema:
  887. type: string
  888. security:
  889. - ApiKeyAuth: []
  890. summary: 活动列表
  891. tags:
  892. - 活动模块
  893. /activity/registerActivity:
  894. post:
  895. consumes:
  896. - application/json
  897. description: 报名活动
  898. parameters:
  899. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  900. in: header
  901. name: Authorization
  902. required: true
  903. type: string
  904. - description: 活动ID
  905. in: query
  906. name: activity_id
  907. required: true
  908. type: integer
  909. responses:
  910. "200":
  911. description: 操作成功
  912. schema:
  913. type: string
  914. "400":
  915. description: 操作失败
  916. schema:
  917. type: string
  918. "4001":
  919. description: 指定错误
  920. schema:
  921. $ref: '#/definitions/activity.RegisterCheckInfo'
  922. security:
  923. - ApiKeyAuth: []
  924. summary: 报名活动
  925. tags:
  926. - 活动模块
  927. /chart/getChartChassify:
  928. get:
  929. consumes:
  930. - application/json
  931. description: 获取图表分类列表
  932. parameters:
  933. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  934. in: header
  935. name: Authorization
  936. required: true
  937. type: string
  938. - description: 分类名称关键词
  939. in: query
  940. name: Keywords
  941. type: string
  942. responses:
  943. "200":
  944. description: OK
  945. schema:
  946. $ref: '#/definitions/my_chart.MyChartClassifyListResp'
  947. "400":
  948. description: 分类列表获取失败
  949. schema:
  950. type: string
  951. security:
  952. - ApiKeyAuth: []
  953. summary: 获取图表分类
  954. tags:
  955. - 图库模块
  956. /chart/getChartList:
  957. get:
  958. consumes:
  959. - application/json
  960. description: 获取图表列表
  961. parameters:
  962. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  963. in: header
  964. name: Authorization
  965. required: true
  966. type: string
  967. - description: 图表名称关键词
  968. in: query
  969. name: Keywords
  970. type: string
  971. - description: 图表分类ID
  972. in: query
  973. name: ClassifyId
  974. type: string
  975. - description: 当前页页码,从1开始
  976. in: query
  977. name: Page
  978. type: integer
  979. - description: 每页数据量
  980. in: query
  981. name: Limit
  982. type: integer
  983. responses:
  984. "200":
  985. description: OK
  986. schema:
  987. items:
  988. $ref: '#/definitions/my_chart.MyChartList'
  989. type: array
  990. "400":
  991. description: 图库列表获取失败
  992. schema:
  993. type: string
  994. security:
  995. - ApiKeyAuth: []
  996. summary: 获取图表列表
  997. tags:
  998. - 图库模块
  999. /my_chart/editChartInfo:
  1000. post:
  1001. consumes:
  1002. - application/json
  1003. description: 编辑图表信息
  1004. parameters:
  1005. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1006. in: header
  1007. name: Authorization
  1008. required: true
  1009. type: string
  1010. - description: 请求参数
  1011. in: body
  1012. name: data
  1013. required: true
  1014. schema:
  1015. $ref: '#/definitions/chart_info.SaveChartInfoReq'
  1016. responses:
  1017. "200":
  1018. description: 操作成功
  1019. schema:
  1020. type: string
  1021. "400":
  1022. description: 操作失败
  1023. schema:
  1024. type: string
  1025. security:
  1026. - ApiKeyAuth: []
  1027. summary: 编辑图表信息
  1028. tags:
  1029. - 图库模块
  1030. /my_chart/getChartInfoDetail:
  1031. get:
  1032. consumes:
  1033. - application/json
  1034. description: 获取图表详情
  1035. parameters:
  1036. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1037. in: header
  1038. name: Authorization
  1039. required: true
  1040. type: string
  1041. - description: 时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今;
  1042. 8-19年至今; 9-20年至今
  1043. in: query
  1044. name: DateType
  1045. type: string
  1046. - description: 图表分类ID
  1047. in: query
  1048. name: ClassifyId
  1049. type: string
  1050. responses:
  1051. "200":
  1052. description: OK
  1053. schema:
  1054. $ref: '#/definitions/chart_info.ChartInfoDetailResp'
  1055. "400":
  1056. description: 图表详情获取失败
  1057. schema:
  1058. type: string
  1059. security:
  1060. - ApiKeyAuth: []
  1061. summary: 获取图表详情
  1062. tags:
  1063. - 图库模块
  1064. /my_chart/moveMyChart:
  1065. post:
  1066. consumes:
  1067. - application/json
  1068. description: 移动我的图表
  1069. parameters:
  1070. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1071. in: header
  1072. name: Authorization
  1073. required: true
  1074. type: string
  1075. - description: 请求参数
  1076. in: body
  1077. name: data
  1078. required: true
  1079. schema:
  1080. $ref: '#/definitions/my_chart.MoveMyChartReq'
  1081. responses:
  1082. "200":
  1083. description: 操作成功
  1084. schema:
  1085. type: string
  1086. "400":
  1087. description: 操作失败
  1088. schema:
  1089. type: string
  1090. security:
  1091. - ApiKeyAuth: []
  1092. summary: 移动我的图表
  1093. tags:
  1094. - 图库模块
  1095. /public/get_apply_variety_list:
  1096. get:
  1097. consumes:
  1098. - application/json
  1099. description: 获取所有可以申请的品种权限列表
  1100. parameters:
  1101. - description: 微信登录后获取到的token
  1102. in: header
  1103. name: Authorization
  1104. required: true
  1105. type: string
  1106. responses:
  1107. "200":
  1108. description: 获取成功
  1109. schema:
  1110. items:
  1111. $ref: '#/definitions/logic.ApplyVariety'
  1112. type: array
  1113. "400":
  1114. description: 获取失败
  1115. schema:
  1116. type: string
  1117. security:
  1118. - ApiKeyAuth: []
  1119. summary: 获取所有可以申请的品种权限列表
  1120. tags:
  1121. - 公共模块
  1122. /public/upload:
  1123. post:
  1124. consumes:
  1125. - multipart/form-data
  1126. description: 文件上传
  1127. parameters:
  1128. - description: 微信登录后获取到的token
  1129. in: header
  1130. name: Authorization
  1131. required: true
  1132. type: string
  1133. - description: 操作描述
  1134. in: formData
  1135. name: file
  1136. type: file
  1137. responses:
  1138. "200":
  1139. description: 上传成功
  1140. schema:
  1141. type: string
  1142. "400":
  1143. description: 上传失败,存储目录创建失败
  1144. schema:
  1145. type: string
  1146. security:
  1147. - ApiKeyAuth: []
  1148. summary: 文件上传
  1149. tags:
  1150. - 公共模块
  1151. /report/research_report:
  1152. get:
  1153. consumes:
  1154. - application/json
  1155. description: 获取报告详情
  1156. parameters:
  1157. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1158. in: header
  1159. name: Authorization
  1160. required: true
  1161. type: string
  1162. - description: 活动ID
  1163. in: query
  1164. name: research_report_id
  1165. required: true
  1166. type: integer
  1167. responses:
  1168. "200":
  1169. description: OK
  1170. schema:
  1171. $ref: '#/definitions/yb_activity.ActivityDetail'
  1172. "400":
  1173. description: 获取失败
  1174. schema:
  1175. type: string
  1176. security:
  1177. - ApiKeyAuth: []
  1178. summary: 获取报告详情
  1179. tags:
  1180. - 报告接口
  1181. /user/apply:
  1182. post:
  1183. consumes:
  1184. - application/json
  1185. description: 用户申请
  1186. parameters:
  1187. - description: 微信登录后获取到的token
  1188. in: header
  1189. name: Authorization
  1190. required: true
  1191. type: string
  1192. - description: 请求参数
  1193. in: body
  1194. name: data
  1195. required: true
  1196. schema:
  1197. $ref: '#/definitions/user.ApplyReq'
  1198. responses:
  1199. "200":
  1200. description: OK
  1201. schema:
  1202. $ref: '#/definitions/user.LoginResp'
  1203. security:
  1204. - ApiKeyAuth: []
  1205. summary: 用户申请
  1206. tags:
  1207. - 用户模块
  1208. /user/get_email_code:
  1209. get:
  1210. consumes:
  1211. - application/json
  1212. description: 获取邮箱验证码
  1213. parameters:
  1214. - description: 微信登录后获取到的token
  1215. in: header
  1216. name: Authorization
  1217. required: true
  1218. type: string
  1219. - description: 电子邮箱账号
  1220. in: query
  1221. name: email
  1222. required: true
  1223. type: string
  1224. responses:
  1225. "200":
  1226. description: OK
  1227. schema:
  1228. type: string
  1229. "400":
  1230. description: Bad Request
  1231. schema:
  1232. type: string
  1233. security:
  1234. - ApiKeyAuth: []
  1235. summary: 获取邮箱验证码
  1236. tags:
  1237. - 用户模块
  1238. /user/get_last_apply_record:
  1239. get:
  1240. consumes:
  1241. - application/json
  1242. description: 获取最近一条申请单信息
  1243. parameters:
  1244. - description: 微信登录后获取到的token
  1245. in: header
  1246. name: Authorization
  1247. required: true
  1248. type: string
  1249. responses:
  1250. "200":
  1251. description: 获取成功
  1252. schema:
  1253. $ref: '#/definitions/user.Record'
  1254. "400":
  1255. description: 获取失败
  1256. schema:
  1257. type: string
  1258. security:
  1259. - ApiKeyAuth: []
  1260. summary: 获取最近一条申请单信息
  1261. tags:
  1262. - 用户模块
  1263. /user/get_sms_code:
  1264. get:
  1265. consumes:
  1266. - application/json
  1267. description: 获取短信验证码接口
  1268. parameters:
  1269. - description: 微信登录后获取到的token
  1270. in: header
  1271. name: Authorization
  1272. required: true
  1273. type: string
  1274. - description: 手机号
  1275. in: query
  1276. name: mobile
  1277. required: true
  1278. type: string
  1279. - description: 手机国际区号(中国大陆:86)
  1280. in: query
  1281. name: area_num
  1282. required: true
  1283. type: string
  1284. responses:
  1285. "200":
  1286. description: OK
  1287. schema:
  1288. type: string
  1289. "400":
  1290. description: Bad Request
  1291. schema:
  1292. type: string
  1293. security:
  1294. - ApiKeyAuth: []
  1295. summary: 获取短信验证码
  1296. tags:
  1297. - 用户模块
  1298. /user/get_tab_bar:
  1299. get:
  1300. consumes:
  1301. - application/json
  1302. description: 获取用户的菜单栏权限
  1303. parameters:
  1304. - description: 微信登录后获取到的token
  1305. in: header
  1306. name: Authorization
  1307. required: true
  1308. type: string
  1309. responses:
  1310. "200":
  1311. description: 获取成功
  1312. schema:
  1313. items:
  1314. type: string
  1315. type: array
  1316. "400":
  1317. description: 获取失败
  1318. schema:
  1319. type: string
  1320. security:
  1321. - ApiKeyAuth: []
  1322. summary: 获取用户的菜单栏权限
  1323. tags:
  1324. - 用户模块
  1325. /user/info:
  1326. get:
  1327. consumes:
  1328. - application/json
  1329. description: 我的详情
  1330. parameters:
  1331. - description: 微信登录后获取到的token
  1332. in: header
  1333. name: Authorization
  1334. required: true
  1335. type: string
  1336. responses:
  1337. "200":
  1338. description: 获取成功
  1339. schema:
  1340. $ref: '#/definitions/user.Detail'
  1341. "400":
  1342. description: 获取失败
  1343. schema:
  1344. type: string
  1345. security:
  1346. - ApiKeyAuth: []
  1347. summary: 我的详情
  1348. tags:
  1349. - 用户模块
  1350. /user/login:
  1351. post:
  1352. consumes:
  1353. - application/json
  1354. description: 用户手机号/邮箱登录
  1355. parameters:
  1356. - description: 微信登录后获取到的token
  1357. in: header
  1358. name: Authorization
  1359. required: true
  1360. type: string
  1361. - description: 请求参数
  1362. in: body
  1363. name: data
  1364. required: true
  1365. schema:
  1366. $ref: '#/definitions/user.LoginReq'
  1367. responses:
  1368. "200":
  1369. description: OK
  1370. schema:
  1371. $ref: '#/definitions/user.LoginResp'
  1372. security:
  1373. - ApiKeyAuth: []
  1374. summary: 用户登录
  1375. tags:
  1376. - 用户模块
  1377. /wechat/getEncryptInfo:
  1378. post:
  1379. consumes:
  1380. - application/json
  1381. description: 消息解密
  1382. parameters:
  1383. - description: 加密数据
  1384. in: query
  1385. name: encryptedData
  1386. required: true
  1387. type: string
  1388. - description: 加密算法初始向量
  1389. in: query
  1390. name: iv
  1391. required: true
  1392. type: string
  1393. responses:
  1394. "200":
  1395. description: 获取成功
  1396. schema:
  1397. type: string
  1398. summary: 消息解密
  1399. tags:
  1400. - 微信相关接口
  1401. /wechat/login:
  1402. get:
  1403. consumes:
  1404. - application/json
  1405. description: 微信登录
  1406. parameters:
  1407. - description: 微信code
  1408. in: query
  1409. name: code
  1410. required: true
  1411. type: string
  1412. responses:
  1413. "200":
  1414. description: OK
  1415. schema:
  1416. $ref: '#/definitions/response.LoginResp'
  1417. summary: 微信登录
  1418. tags:
  1419. - 微信相关接口
  1420. swagger: "2.0"