swagger.yaml 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460
  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.MoveMyChartClassifyReq:
  327. properties:
  328. myChartClassifyId:
  329. type: integer
  330. nextClassifyId:
  331. type: integer
  332. prevClassifyId:
  333. type: integer
  334. type: object
  335. my_chart.MoveMyChartReq:
  336. properties:
  337. myChartClassifyId:
  338. type: integer
  339. myChartId:
  340. type: integer
  341. nextMyChartId:
  342. type: integer
  343. prevMyChartId:
  344. type: integer
  345. type: object
  346. my_chart.MyChartClassifyListResp:
  347. properties:
  348. private_classify:
  349. items:
  350. $ref: '#/definitions/my_chart_classify.MyChartClassify'
  351. type: array
  352. public_classify:
  353. items:
  354. $ref: '#/definitions/my_chart_classify.MyChartClassify'
  355. type: array
  356. type: object
  357. my_chart.MyChartList:
  358. properties:
  359. calendar:
  360. type: string
  361. chartClassifyId:
  362. type: integer
  363. chartImage:
  364. type: string
  365. chartInfoId:
  366. type: integer
  367. chartName:
  368. type: string
  369. chartType:
  370. type: integer
  371. createTime:
  372. type: string
  373. dateType:
  374. type: integer
  375. edbEndDate:
  376. type: string
  377. edbInfoIds:
  378. type: string
  379. endDate:
  380. type: string
  381. isAdd:
  382. type: boolean
  383. isSetName:
  384. type: integer
  385. modifyTime:
  386. type: string
  387. myChartClassifyId:
  388. type: string
  389. myChartClassifyName:
  390. type: string
  391. myChartId:
  392. type: integer
  393. seasonEndDate:
  394. type: string
  395. seasonStartDate:
  396. type: string
  397. sort:
  398. type: integer
  399. startDate:
  400. type: string
  401. sysUserId:
  402. type: integer
  403. sysUserRealName:
  404. type: string
  405. uniqueCode:
  406. type: string
  407. type: object
  408. my_chart_classify.MyChartClassify:
  409. properties:
  410. adminId:
  411. description: 用户id
  412. type: integer
  413. companyPublicTime:
  414. description: 用户可见公开时间
  415. type: string
  416. createTime:
  417. type: string
  418. isCompanyPublic:
  419. description: 是否用户可见:0-否 1-是
  420. type: integer
  421. isPublic:
  422. description: 是否所有人可见,0:仅自己可见,1:所有人可见
  423. type: integer
  424. modifyTime:
  425. type: string
  426. myChartClassifyId:
  427. type: integer
  428. myChartClassifyName:
  429. description: 分类名称
  430. type: string
  431. publicTime:
  432. description: 公开时间
  433. type: string
  434. sort:
  435. description: 排序字段,值越小,越靠前
  436. type: integer
  437. type: object
  438. response.LoginResp:
  439. properties:
  440. authorization:
  441. type: string
  442. is_bind:
  443. type: boolean
  444. user_id:
  445. type: integer
  446. type: object
  447. user.ApplyReq:
  448. properties:
  449. business_card_url:
  450. type: string
  451. company_name:
  452. type: string
  453. permission:
  454. type: string
  455. real_name:
  456. type: string
  457. source:
  458. type: integer
  459. type: object
  460. user.CompanyPermission:
  461. properties:
  462. name:
  463. type: string
  464. permission_list:
  465. items:
  466. $ref: '#/definitions/user.PermissionList'
  467. type: array
  468. type: object
  469. user.Detail:
  470. properties:
  471. admin_info:
  472. $ref: '#/definitions/admin.Admin'
  473. company_name:
  474. type: string
  475. email:
  476. type: string
  477. is_inner:
  478. type: integer
  479. is_suspend:
  480. type: integer
  481. mobile:
  482. type: string
  483. permission_list:
  484. items:
  485. $ref: '#/definitions/user.CompanyPermission'
  486. type: array
  487. real_name:
  488. type: string
  489. seal_mobile:
  490. type: string
  491. seal_name:
  492. type: string
  493. status:
  494. type: string
  495. type: object
  496. user.LoginReq:
  497. properties:
  498. area_num:
  499. type: integer
  500. bind_type:
  501. type: integer
  502. email:
  503. type: string
  504. mobile:
  505. type: string
  506. verify_code:
  507. type: string
  508. type: object
  509. user.LoginResp:
  510. properties:
  511. email:
  512. type: string
  513. mobile:
  514. type: string
  515. token:
  516. type: string
  517. user_id:
  518. type: integer
  519. type: object
  520. user.PermissionList:
  521. properties:
  522. end_date:
  523. type: string
  524. name:
  525. type: string
  526. start_date:
  527. type: string
  528. status:
  529. type: string
  530. type: object
  531. user.Record:
  532. properties:
  533. business_card_url:
  534. type: string
  535. company_name:
  536. type: string
  537. mobile:
  538. type: string
  539. real_name:
  540. type: string
  541. type: object
  542. yb_activity.ActivityDetail:
  543. properties:
  544. activityId:
  545. type: integer
  546. activityName:
  547. description: 活动名称
  548. type: string
  549. activityState:
  550. description: 活动状态 1-本周预告 2-进行中 3-已结束
  551. type: integer
  552. activityTypeId:
  553. description: 活动类型ID
  554. type: integer
  555. activityTypeName:
  556. description: 活动类型名称
  557. type: string
  558. address:
  559. description: 活动地址
  560. type: string
  561. americaTel:
  562. description: 美国拨入
  563. type: string
  564. city:
  565. description: 城市
  566. type: string
  567. endTime:
  568. description: 活动结束时间
  569. type: string
  570. firstActivityTypeId:
  571. description: 第一级的活动类型ID
  572. type: integer
  573. firstActivityTypeName:
  574. description: 第一级的活动类型名称
  575. type: string
  576. hasPlayBack:
  577. description: 是否有回放
  578. type: integer
  579. hasRemind:
  580. description: 是否已提醒
  581. type: integer
  582. hongKongTel:
  583. description: 香港拨入
  584. type: string
  585. isLimitPeople:
  586. description: 是否限制人数 1是,0否
  587. type: integer
  588. limitPeopleNum:
  589. description: 限制人数数量
  590. type: integer
  591. linkParticipants:
  592. description: 参会链接
  593. type: string
  594. mainlandTel:
  595. description: 大陆拨入
  596. type: string
  597. participationCode:
  598. description: 参会密码
  599. type: string
  600. registerState:
  601. description: 报名状态 0-取消报名 1-已报名
  602. type: integer
  603. registeredNum:
  604. description: 已报名人数
  605. type: integer
  606. reportLink:
  607. description: 报告链接
  608. type: string
  609. reportName:
  610. description: 报告名称
  611. type: string
  612. singaporeTel:
  613. description: 新加坡拨入
  614. type: string
  615. speaker:
  616. description: 主讲人
  617. type: string
  618. speakerBackgroundPic:
  619. description: 主讲人背景图
  620. type: string
  621. speakerHeadPic:
  622. description: 主讲人头像
  623. type: string
  624. startTime:
  625. description: 活动开始时间
  626. type: string
  627. taiwanTel:
  628. description: 台湾拨入
  629. type: string
  630. weekString:
  631. description: 周几
  632. type: string
  633. type: object
  634. yb_activity_voice.YbActivityVoice:
  635. properties:
  636. activityId:
  637. description: 活动id
  638. type: integer
  639. createTime:
  640. type: string
  641. voiceName:
  642. description: 音频名称
  643. type: string
  644. voicePlaySeconds:
  645. description: 音频时长
  646. type: string
  647. voiceUrl:
  648. description: 音频地址
  649. type: string
  650. type: object
  651. host: 127.0.0.1:8607
  652. info:
  653. contact:
  654. email: pyan@hzinsights.com
  655. name: www.hzinsights.com/
  656. url: https://www.hzinsights.com/
  657. description: 这是弘则研报API接口文档
  658. license:
  659. name: Apache 2.0
  660. url: http://www.apache.org/licenses/LICENSE-2.0.html
  661. termsOfService: https://www.hzinsights.com/
  662. title: 弘则研报API接口文档
  663. version: "1.0"
  664. paths:
  665. /activity/addRemind:
  666. post:
  667. consumes:
  668. - application/json
  669. description: 添加提醒
  670. parameters:
  671. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  672. in: header
  673. name: Authorization
  674. required: true
  675. type: string
  676. - description: 活动ID
  677. in: query
  678. name: activity_id
  679. required: true
  680. type: integer
  681. responses:
  682. "200":
  683. description: 操作成功
  684. schema:
  685. type: string
  686. "400":
  687. description: 操作失败
  688. schema:
  689. type: string
  690. "4001":
  691. description: 指定错误
  692. schema:
  693. $ref: '#/definitions/activity.RemindCheckInfo'
  694. security:
  695. - ApiKeyAuth: []
  696. summary: 添加提醒
  697. tags:
  698. - 活动模块
  699. /activity/cancelRegister:
  700. post:
  701. consumes:
  702. - application/json
  703. description: 取消报名
  704. parameters:
  705. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  706. in: header
  707. name: Authorization
  708. required: true
  709. type: string
  710. - description: 活动ID
  711. in: query
  712. name: activity_id
  713. required: true
  714. type: integer
  715. responses:
  716. "200":
  717. description: 操作成功
  718. schema:
  719. type: string
  720. "400":
  721. description: 操作失败
  722. schema:
  723. type: string
  724. security:
  725. - ApiKeyAuth: []
  726. summary: 取消报名
  727. tags:
  728. - 活动模块
  729. /activity/cancelRemind:
  730. post:
  731. consumes:
  732. - application/json
  733. description: 取消提醒
  734. parameters:
  735. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  736. in: header
  737. name: Authorization
  738. required: true
  739. type: string
  740. - description: 活动ID
  741. in: query
  742. name: activity_id
  743. required: true
  744. type: integer
  745. responses:
  746. "200":
  747. description: 操作成功
  748. schema:
  749. type: string
  750. "400":
  751. description: 操作失败
  752. schema:
  753. type: string
  754. security:
  755. - ApiKeyAuth: []
  756. summary: 取消提醒
  757. tags:
  758. - 活动模块
  759. /activity/getActivityDetail:
  760. get:
  761. consumes:
  762. - application/json
  763. description: 获取活动详情
  764. parameters:
  765. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  766. in: header
  767. name: Authorization
  768. required: true
  769. type: string
  770. - description: 活动ID
  771. in: query
  772. name: activity_id
  773. required: true
  774. type: integer
  775. responses:
  776. "200":
  777. description: OK
  778. schema:
  779. $ref: '#/definitions/yb_activity.ActivityDetail'
  780. "400":
  781. description: 获取失败
  782. schema:
  783. type: string
  784. security:
  785. - ApiKeyAuth: []
  786. summary: 获取活动详情
  787. tags:
  788. - 活动模块
  789. /activity/getActivityShareImg:
  790. get:
  791. consumes:
  792. - application/json
  793. description: 生成活动分享图片
  794. parameters:
  795. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  796. in: header
  797. name: Authorization
  798. required: true
  799. type: string
  800. - description: 活动ID
  801. in: query
  802. name: activity_id
  803. required: true
  804. type: integer
  805. responses:
  806. "200":
  807. description: 获取成功
  808. schema:
  809. type: string
  810. "400":
  811. description: 获取失败
  812. schema:
  813. type: string
  814. security:
  815. - ApiKeyAuth: []
  816. summary: 生成活动分享图片
  817. tags:
  818. - 活动模块
  819. /activity/getActivityVoices:
  820. get:
  821. consumes:
  822. - application/json
  823. description: 获取活动录音
  824. parameters:
  825. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  826. in: header
  827. name: Authorization
  828. required: true
  829. type: string
  830. - description: 活动ID
  831. in: query
  832. name: activity_id
  833. required: true
  834. type: integer
  835. responses:
  836. "200":
  837. description: OK
  838. schema:
  839. items:
  840. $ref: '#/definitions/yb_activity_voice.YbActivityVoice'
  841. type: array
  842. "400":
  843. description: 获取失败
  844. schema:
  845. type: string
  846. security:
  847. - ApiKeyAuth: []
  848. summary: 获取活动录音
  849. tags:
  850. - 活动模块
  851. /activity/getPageList:
  852. get:
  853. consumes:
  854. - application/json
  855. description: 获取活动列表
  856. parameters:
  857. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  858. in: header
  859. name: Authorization
  860. required: true
  861. type: string
  862. - description: 活动类别/标题
  863. in: query
  864. name: title
  865. type: string
  866. - description: 活动状态 1-本周预告 2-进行中 3-已结束
  867. in: query
  868. name: active_state
  869. type: integer
  870. - description: 活动类型 1-线上会议 3-线下沙龙
  871. in: query
  872. name: activity_type
  873. type: integer
  874. - description: 是否查看仅有权限的 0-否 1-是
  875. in: query
  876. name: has_permission
  877. type: integer
  878. - description: 当前页码
  879. in: query
  880. name: page
  881. type: integer
  882. - description: 每页数量
  883. in: query
  884. name: limit
  885. type: integer
  886. responses:
  887. "200":
  888. description: OK
  889. schema:
  890. items:
  891. $ref: '#/definitions/activity.ActivityList'
  892. type: array
  893. "400":
  894. description: 活动获取失败
  895. schema:
  896. type: string
  897. security:
  898. - ApiKeyAuth: []
  899. summary: 活动列表
  900. tags:
  901. - 活动模块
  902. /activity/registerActivity:
  903. post:
  904. consumes:
  905. - application/json
  906. description: 报名活动
  907. parameters:
  908. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  909. in: header
  910. name: Authorization
  911. required: true
  912. type: string
  913. - description: 活动ID
  914. in: query
  915. name: activity_id
  916. required: true
  917. type: integer
  918. responses:
  919. "200":
  920. description: 操作成功
  921. schema:
  922. type: string
  923. "400":
  924. description: 操作失败
  925. schema:
  926. type: string
  927. "4001":
  928. description: 指定错误
  929. schema:
  930. $ref: '#/definitions/activity.RegisterCheckInfo'
  931. security:
  932. - ApiKeyAuth: []
  933. summary: 报名活动
  934. tags:
  935. - 活动模块
  936. /chart/getChartChassify:
  937. get:
  938. consumes:
  939. - application/json
  940. description: 获取图表分类列表
  941. parameters:
  942. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  943. in: header
  944. name: Authorization
  945. required: true
  946. type: string
  947. - description: 分类名称关键词
  948. in: query
  949. name: Keywords
  950. type: string
  951. responses:
  952. "200":
  953. description: OK
  954. schema:
  955. $ref: '#/definitions/my_chart.MyChartClassifyListResp'
  956. "400":
  957. description: 分类列表获取失败
  958. schema:
  959. type: string
  960. security:
  961. - ApiKeyAuth: []
  962. summary: 获取图表分类
  963. tags:
  964. - 图库模块
  965. /chart/getChartList:
  966. get:
  967. consumes:
  968. - application/json
  969. description: 获取图表列表
  970. parameters:
  971. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  972. in: header
  973. name: Authorization
  974. required: true
  975. type: string
  976. - description: 图表名称关键词
  977. in: query
  978. name: Keywords
  979. type: string
  980. - description: 图表分类ID
  981. in: query
  982. name: ClassifyId
  983. type: string
  984. - description: 当前页页码,从1开始
  985. in: query
  986. name: Page
  987. type: integer
  988. - description: 每页数据量
  989. in: query
  990. name: Limit
  991. type: integer
  992. responses:
  993. "200":
  994. description: OK
  995. schema:
  996. items:
  997. $ref: '#/definitions/my_chart.MyChartList'
  998. type: array
  999. "400":
  1000. description: 图库列表获取失败
  1001. schema:
  1002. type: string
  1003. security:
  1004. - ApiKeyAuth: []
  1005. summary: 获取图表列表
  1006. tags:
  1007. - 图库模块
  1008. /my_chart/editChartInfo:
  1009. post:
  1010. consumes:
  1011. - application/json
  1012. description: 编辑图表信息
  1013. parameters:
  1014. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1015. in: header
  1016. name: Authorization
  1017. required: true
  1018. type: string
  1019. - description: 请求参数
  1020. in: body
  1021. name: data
  1022. required: true
  1023. schema:
  1024. $ref: '#/definitions/chart_info.SaveChartInfoReq'
  1025. responses:
  1026. "200":
  1027. description: 操作成功
  1028. schema:
  1029. type: string
  1030. "400":
  1031. description: 操作失败
  1032. schema:
  1033. type: string
  1034. security:
  1035. - ApiKeyAuth: []
  1036. summary: 编辑图表信息
  1037. tags:
  1038. - 图库模块
  1039. /my_chart/getChartInfoDetail:
  1040. get:
  1041. consumes:
  1042. - application/json
  1043. description: 获取图表详情
  1044. parameters:
  1045. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1046. in: header
  1047. name: Authorization
  1048. required: true
  1049. type: string
  1050. - description: 时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今;
  1051. 8-19年至今; 9-20年至今
  1052. in: query
  1053. name: DateType
  1054. type: string
  1055. - description: 图表分类ID
  1056. in: query
  1057. name: ClassifyId
  1058. type: string
  1059. responses:
  1060. "200":
  1061. description: OK
  1062. schema:
  1063. $ref: '#/definitions/chart_info.ChartInfoDetailResp'
  1064. "400":
  1065. description: 图表详情获取失败
  1066. schema:
  1067. type: string
  1068. security:
  1069. - ApiKeyAuth: []
  1070. summary: 获取图表详情
  1071. tags:
  1072. - 图库模块
  1073. /my_chart/moveMyChart:
  1074. post:
  1075. consumes:
  1076. - application/json
  1077. description: 移动我的图表
  1078. parameters:
  1079. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1080. in: header
  1081. name: Authorization
  1082. required: true
  1083. type: string
  1084. - description: 请求参数
  1085. in: body
  1086. name: data
  1087. required: true
  1088. schema:
  1089. $ref: '#/definitions/my_chart.MoveMyChartReq'
  1090. responses:
  1091. "200":
  1092. description: 操作成功
  1093. schema:
  1094. type: string
  1095. "400":
  1096. description: 操作失败
  1097. schema:
  1098. type: string
  1099. security:
  1100. - ApiKeyAuth: []
  1101. summary: 移动我的图表
  1102. tags:
  1103. - 图库模块
  1104. /my_chart/moveMyChartClassify:
  1105. post:
  1106. consumes:
  1107. - application/json
  1108. description: 移动我的图表分类
  1109. parameters:
  1110. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1111. in: header
  1112. name: Authorization
  1113. required: true
  1114. type: string
  1115. - description: 请求参数
  1116. in: body
  1117. name: data
  1118. required: true
  1119. schema:
  1120. $ref: '#/definitions/my_chart.MoveMyChartClassifyReq'
  1121. responses:
  1122. "200":
  1123. description: 操作成功
  1124. schema:
  1125. type: string
  1126. "400":
  1127. description: 操作失败
  1128. schema:
  1129. type: string
  1130. security:
  1131. - ApiKeyAuth: []
  1132. summary: 移动我的图表分类
  1133. tags:
  1134. - 图库模块
  1135. /public/get_apply_variety_list:
  1136. get:
  1137. consumes:
  1138. - application/json
  1139. description: 获取所有可以申请的品种权限列表
  1140. parameters:
  1141. - description: 微信登录后获取到的token
  1142. in: header
  1143. name: Authorization
  1144. required: true
  1145. type: string
  1146. responses:
  1147. "200":
  1148. description: 获取成功
  1149. schema:
  1150. items:
  1151. $ref: '#/definitions/logic.ApplyVariety'
  1152. type: array
  1153. "400":
  1154. description: 获取失败
  1155. schema:
  1156. type: string
  1157. security:
  1158. - ApiKeyAuth: []
  1159. summary: 获取所有可以申请的品种权限列表
  1160. tags:
  1161. - 公共模块
  1162. /public/upload:
  1163. post:
  1164. consumes:
  1165. - multipart/form-data
  1166. description: 文件上传
  1167. parameters:
  1168. - description: 微信登录后获取到的token
  1169. in: header
  1170. name: Authorization
  1171. required: true
  1172. type: string
  1173. - description: 操作描述
  1174. in: formData
  1175. name: file
  1176. type: file
  1177. responses:
  1178. "200":
  1179. description: 上传成功
  1180. schema:
  1181. type: string
  1182. "400":
  1183. description: 上传失败,存储目录创建失败
  1184. schema:
  1185. type: string
  1186. security:
  1187. - ApiKeyAuth: []
  1188. summary: 文件上传
  1189. tags:
  1190. - 公共模块
  1191. /report/research_report:
  1192. get:
  1193. consumes:
  1194. - application/json
  1195. description: 获取报告详情
  1196. parameters:
  1197. - description: Bearer 31a165baebe6dec616b1f8f3207b4273
  1198. in: header
  1199. name: Authorization
  1200. required: true
  1201. type: string
  1202. - description: 活动ID
  1203. in: query
  1204. name: research_report_id
  1205. required: true
  1206. type: integer
  1207. responses:
  1208. "200":
  1209. description: OK
  1210. schema:
  1211. $ref: '#/definitions/yb_activity.ActivityDetail'
  1212. "400":
  1213. description: 获取失败
  1214. schema:
  1215. type: string
  1216. security:
  1217. - ApiKeyAuth: []
  1218. summary: 获取报告详情
  1219. tags:
  1220. - 报告接口
  1221. /user/apply:
  1222. post:
  1223. consumes:
  1224. - application/json
  1225. description: 用户申请
  1226. parameters:
  1227. - description: 微信登录后获取到的token
  1228. in: header
  1229. name: Authorization
  1230. required: true
  1231. type: string
  1232. - description: 请求参数
  1233. in: body
  1234. name: data
  1235. required: true
  1236. schema:
  1237. $ref: '#/definitions/user.ApplyReq'
  1238. responses:
  1239. "200":
  1240. description: OK
  1241. schema:
  1242. $ref: '#/definitions/user.LoginResp'
  1243. security:
  1244. - ApiKeyAuth: []
  1245. summary: 用户申请
  1246. tags:
  1247. - 用户模块
  1248. /user/get_email_code:
  1249. get:
  1250. consumes:
  1251. - application/json
  1252. description: 获取邮箱验证码
  1253. parameters:
  1254. - description: 微信登录后获取到的token
  1255. in: header
  1256. name: Authorization
  1257. required: true
  1258. type: string
  1259. - description: 电子邮箱账号
  1260. in: query
  1261. name: email
  1262. required: true
  1263. type: string
  1264. responses:
  1265. "200":
  1266. description: OK
  1267. schema:
  1268. type: string
  1269. "400":
  1270. description: Bad Request
  1271. schema:
  1272. type: string
  1273. security:
  1274. - ApiKeyAuth: []
  1275. summary: 获取邮箱验证码
  1276. tags:
  1277. - 用户模块
  1278. /user/get_last_apply_record:
  1279. get:
  1280. consumes:
  1281. - application/json
  1282. description: 获取最近一条申请单信息
  1283. parameters:
  1284. - description: 微信登录后获取到的token
  1285. in: header
  1286. name: Authorization
  1287. required: true
  1288. type: string
  1289. responses:
  1290. "200":
  1291. description: 获取成功
  1292. schema:
  1293. $ref: '#/definitions/user.Record'
  1294. "400":
  1295. description: 获取失败
  1296. schema:
  1297. type: string
  1298. security:
  1299. - ApiKeyAuth: []
  1300. summary: 获取最近一条申请单信息
  1301. tags:
  1302. - 用户模块
  1303. /user/get_sms_code:
  1304. get:
  1305. consumes:
  1306. - application/json
  1307. description: 获取短信验证码接口
  1308. parameters:
  1309. - description: 微信登录后获取到的token
  1310. in: header
  1311. name: Authorization
  1312. required: true
  1313. type: string
  1314. - description: 手机号
  1315. in: query
  1316. name: mobile
  1317. required: true
  1318. type: string
  1319. - description: 手机国际区号(中国大陆:86)
  1320. in: query
  1321. name: area_num
  1322. required: true
  1323. type: string
  1324. responses:
  1325. "200":
  1326. description: OK
  1327. schema:
  1328. type: string
  1329. "400":
  1330. description: Bad Request
  1331. schema:
  1332. type: string
  1333. security:
  1334. - ApiKeyAuth: []
  1335. summary: 获取短信验证码
  1336. tags:
  1337. - 用户模块
  1338. /user/get_tab_bar:
  1339. get:
  1340. consumes:
  1341. - application/json
  1342. description: 获取用户的菜单栏权限
  1343. parameters:
  1344. - description: 微信登录后获取到的token
  1345. in: header
  1346. name: Authorization
  1347. required: true
  1348. type: string
  1349. responses:
  1350. "200":
  1351. description: 获取成功
  1352. schema:
  1353. items:
  1354. type: string
  1355. type: array
  1356. "400":
  1357. description: 获取失败
  1358. schema:
  1359. type: string
  1360. security:
  1361. - ApiKeyAuth: []
  1362. summary: 获取用户的菜单栏权限
  1363. tags:
  1364. - 用户模块
  1365. /user/info:
  1366. get:
  1367. consumes:
  1368. - application/json
  1369. description: 我的详情
  1370. parameters:
  1371. - description: 微信登录后获取到的token
  1372. in: header
  1373. name: Authorization
  1374. required: true
  1375. type: string
  1376. responses:
  1377. "200":
  1378. description: 获取成功
  1379. schema:
  1380. $ref: '#/definitions/user.Detail'
  1381. "400":
  1382. description: 获取失败
  1383. schema:
  1384. type: string
  1385. security:
  1386. - ApiKeyAuth: []
  1387. summary: 我的详情
  1388. tags:
  1389. - 用户模块
  1390. /user/login:
  1391. post:
  1392. consumes:
  1393. - application/json
  1394. description: 用户手机号/邮箱登录
  1395. parameters:
  1396. - description: 微信登录后获取到的token
  1397. in: header
  1398. name: Authorization
  1399. required: true
  1400. type: string
  1401. - description: 请求参数
  1402. in: body
  1403. name: data
  1404. required: true
  1405. schema:
  1406. $ref: '#/definitions/user.LoginReq'
  1407. responses:
  1408. "200":
  1409. description: OK
  1410. schema:
  1411. $ref: '#/definitions/user.LoginResp'
  1412. security:
  1413. - ApiKeyAuth: []
  1414. summary: 用户登录
  1415. tags:
  1416. - 用户模块
  1417. /wechat/getEncryptInfo:
  1418. post:
  1419. consumes:
  1420. - application/json
  1421. description: 消息解密
  1422. parameters:
  1423. - description: 加密数据
  1424. in: query
  1425. name: encryptedData
  1426. required: true
  1427. type: string
  1428. - description: 加密算法初始向量
  1429. in: query
  1430. name: iv
  1431. required: true
  1432. type: string
  1433. responses:
  1434. "200":
  1435. description: 获取成功
  1436. schema:
  1437. type: string
  1438. summary: 消息解密
  1439. tags:
  1440. - 微信相关接口
  1441. /wechat/login:
  1442. get:
  1443. consumes:
  1444. - application/json
  1445. description: 微信登录
  1446. parameters:
  1447. - description: 微信code
  1448. in: query
  1449. name: code
  1450. required: true
  1451. type: string
  1452. responses:
  1453. "200":
  1454. description: OK
  1455. schema:
  1456. $ref: '#/definitions/response.LoginResp'
  1457. summary: 微信登录
  1458. tags:
  1459. - 微信相关接口
  1460. swagger: "2.0"