docs.go 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154
  1. // Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import (
  5. "bytes"
  6. "encoding/json"
  7. "strings"
  8. "text/template"
  9. "github.com/swaggo/swag"
  10. )
  11. var doc = `{
  12. "schemes": {{ marshal .Schemes }},
  13. "swagger": "2.0",
  14. "info": {
  15. "description": "{{escape .Description}}",
  16. "title": "{{.Title}}",
  17. "termsOfService": "https://www.hzinsights.com/",
  18. "contact": {
  19. "name": "www.hzinsights.com/",
  20. "url": "https://www.hzinsights.com/",
  21. "email": "pyan@hzinsights.com"
  22. },
  23. "license": {
  24. "name": "Apache 2.0",
  25. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  26. },
  27. "version": "{{.Version}}"
  28. },
  29. "host": "{{.Host}}",
  30. "basePath": "{{.BasePath}}",
  31. "paths": {
  32. "/activity/addRemind": {
  33. "post": {
  34. "security": [
  35. {
  36. "ApiKeyAuth": []
  37. }
  38. ],
  39. "description": "添加提醒",
  40. "consumes": [
  41. "application/json"
  42. ],
  43. "tags": [
  44. "活动模块"
  45. ],
  46. "summary": "添加提醒",
  47. "parameters": [
  48. {
  49. "type": "string",
  50. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  51. "name": "Authorization",
  52. "in": "header",
  53. "required": true
  54. },
  55. {
  56. "type": "integer",
  57. "description": "活动ID",
  58. "name": "activity_id",
  59. "in": "query",
  60. "required": true
  61. }
  62. ],
  63. "responses": {
  64. "200": {
  65. "description": "操作成功",
  66. "schema": {
  67. "type": "string"
  68. }
  69. },
  70. "400": {
  71. "description": "操作失败",
  72. "schema": {
  73. "type": "string"
  74. }
  75. },
  76. "4001": {
  77. "description": "指定错误",
  78. "schema": {
  79. "$ref": "#/definitions/activity.RemindCheckInfo"
  80. }
  81. }
  82. }
  83. }
  84. },
  85. "/activity/cancelRegister": {
  86. "post": {
  87. "security": [
  88. {
  89. "ApiKeyAuth": []
  90. }
  91. ],
  92. "description": "取消报名",
  93. "consumes": [
  94. "application/json"
  95. ],
  96. "tags": [
  97. "活动模块"
  98. ],
  99. "summary": "取消报名",
  100. "parameters": [
  101. {
  102. "type": "string",
  103. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  104. "name": "Authorization",
  105. "in": "header",
  106. "required": true
  107. },
  108. {
  109. "type": "integer",
  110. "description": "活动ID",
  111. "name": "activity_id",
  112. "in": "query",
  113. "required": true
  114. }
  115. ],
  116. "responses": {
  117. "200": {
  118. "description": "操作成功",
  119. "schema": {
  120. "type": "string"
  121. }
  122. },
  123. "400": {
  124. "description": "操作失败",
  125. "schema": {
  126. "type": "string"
  127. }
  128. }
  129. }
  130. }
  131. },
  132. "/activity/cancelRemind": {
  133. "post": {
  134. "security": [
  135. {
  136. "ApiKeyAuth": []
  137. }
  138. ],
  139. "description": "取消提醒",
  140. "consumes": [
  141. "application/json"
  142. ],
  143. "tags": [
  144. "活动模块"
  145. ],
  146. "summary": "取消提醒",
  147. "parameters": [
  148. {
  149. "type": "string",
  150. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  151. "name": "Authorization",
  152. "in": "header",
  153. "required": true
  154. },
  155. {
  156. "type": "integer",
  157. "description": "活动ID",
  158. "name": "activity_id",
  159. "in": "query",
  160. "required": true
  161. }
  162. ],
  163. "responses": {
  164. "200": {
  165. "description": "操作成功",
  166. "schema": {
  167. "type": "string"
  168. }
  169. },
  170. "400": {
  171. "description": "操作失败",
  172. "schema": {
  173. "type": "string"
  174. }
  175. }
  176. }
  177. }
  178. },
  179. "/activity/getActivityDetail": {
  180. "get": {
  181. "security": [
  182. {
  183. "ApiKeyAuth": []
  184. }
  185. ],
  186. "description": "获取活动详情",
  187. "consumes": [
  188. "application/json"
  189. ],
  190. "tags": [
  191. "活动模块"
  192. ],
  193. "summary": "获取活动详情",
  194. "parameters": [
  195. {
  196. "type": "string",
  197. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  198. "name": "Authorization",
  199. "in": "header",
  200. "required": true
  201. },
  202. {
  203. "type": "integer",
  204. "description": "活动ID",
  205. "name": "activity_id",
  206. "in": "query",
  207. "required": true
  208. }
  209. ],
  210. "responses": {
  211. "200": {
  212. "description": "OK",
  213. "schema": {
  214. "$ref": "#/definitions/yb_activity.ActivityDetail"
  215. }
  216. },
  217. "400": {
  218. "description": "获取失败",
  219. "schema": {
  220. "type": "string"
  221. }
  222. }
  223. }
  224. }
  225. },
  226. "/activity/getActivityShareImg": {
  227. "get": {
  228. "security": [
  229. {
  230. "ApiKeyAuth": []
  231. }
  232. ],
  233. "description": "生成活动分享图片",
  234. "consumes": [
  235. "application/json"
  236. ],
  237. "tags": [
  238. "活动模块"
  239. ],
  240. "summary": "生成活动分享图片",
  241. "parameters": [
  242. {
  243. "type": "string",
  244. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  245. "name": "Authorization",
  246. "in": "header",
  247. "required": true
  248. },
  249. {
  250. "type": "integer",
  251. "description": "活动ID",
  252. "name": "activity_id",
  253. "in": "query",
  254. "required": true
  255. }
  256. ],
  257. "responses": {
  258. "200": {
  259. "description": "获取成功",
  260. "schema": {
  261. "type": "string"
  262. }
  263. },
  264. "400": {
  265. "description": "获取失败",
  266. "schema": {
  267. "type": "string"
  268. }
  269. }
  270. }
  271. }
  272. },
  273. "/activity/getActivityVoices": {
  274. "get": {
  275. "security": [
  276. {
  277. "ApiKeyAuth": []
  278. }
  279. ],
  280. "description": "获取活动录音",
  281. "consumes": [
  282. "application/json"
  283. ],
  284. "tags": [
  285. "活动模块"
  286. ],
  287. "summary": "获取活动录音",
  288. "parameters": [
  289. {
  290. "type": "string",
  291. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  292. "name": "Authorization",
  293. "in": "header",
  294. "required": true
  295. },
  296. {
  297. "type": "integer",
  298. "description": "活动ID",
  299. "name": "activity_id",
  300. "in": "query",
  301. "required": true
  302. }
  303. ],
  304. "responses": {
  305. "200": {
  306. "description": "OK",
  307. "schema": {
  308. "type": "array",
  309. "items": {
  310. "$ref": "#/definitions/yb_activity_voice.YbActivityVoice"
  311. }
  312. }
  313. },
  314. "400": {
  315. "description": "获取失败",
  316. "schema": {
  317. "type": "string"
  318. }
  319. }
  320. }
  321. }
  322. },
  323. "/activity/getPageList": {
  324. "get": {
  325. "security": [
  326. {
  327. "ApiKeyAuth": []
  328. }
  329. ],
  330. "description": "获取活动列表",
  331. "consumes": [
  332. "application/json"
  333. ],
  334. "tags": [
  335. "活动模块"
  336. ],
  337. "summary": "活动列表",
  338. "parameters": [
  339. {
  340. "type": "string",
  341. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  342. "name": "Authorization",
  343. "in": "header",
  344. "required": true
  345. },
  346. {
  347. "type": "string",
  348. "description": "活动类别/标题",
  349. "name": "title",
  350. "in": "query"
  351. },
  352. {
  353. "type": "integer",
  354. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  355. "name": "active_state",
  356. "in": "query"
  357. },
  358. {
  359. "type": "integer",
  360. "description": "活动类型 1-线上会议 3-线下沙龙",
  361. "name": "activity_type",
  362. "in": "query"
  363. },
  364. {
  365. "type": "integer",
  366. "description": "是否查看仅有权限的 0-否 1-是",
  367. "name": "has_permission",
  368. "in": "query"
  369. },
  370. {
  371. "type": "integer",
  372. "description": "当前页码",
  373. "name": "page",
  374. "in": "query"
  375. },
  376. {
  377. "type": "integer",
  378. "description": "每页数量",
  379. "name": "limit",
  380. "in": "query"
  381. }
  382. ],
  383. "responses": {
  384. "200": {
  385. "description": "OK",
  386. "schema": {
  387. "type": "array",
  388. "items": {
  389. "$ref": "#/definitions/activity.ActivityList"
  390. }
  391. }
  392. },
  393. "400": {
  394. "description": "活动获取失败",
  395. "schema": {
  396. "type": "string"
  397. }
  398. }
  399. }
  400. }
  401. },
  402. "/activity/registerActivity": {
  403. "post": {
  404. "security": [
  405. {
  406. "ApiKeyAuth": []
  407. }
  408. ],
  409. "description": "报名活动",
  410. "consumes": [
  411. "application/json"
  412. ],
  413. "tags": [
  414. "活动模块"
  415. ],
  416. "summary": "报名活动",
  417. "parameters": [
  418. {
  419. "type": "string",
  420. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  421. "name": "Authorization",
  422. "in": "header",
  423. "required": true
  424. },
  425. {
  426. "type": "integer",
  427. "description": "活动ID",
  428. "name": "activity_id",
  429. "in": "query",
  430. "required": true
  431. }
  432. ],
  433. "responses": {
  434. "200": {
  435. "description": "操作成功",
  436. "schema": {
  437. "type": "string"
  438. }
  439. },
  440. "400": {
  441. "description": "操作失败",
  442. "schema": {
  443. "type": "string"
  444. }
  445. },
  446. "4001": {
  447. "description": "指定错误",
  448. "schema": {
  449. "$ref": "#/definitions/activity.RegisterCheckInfo"
  450. }
  451. }
  452. }
  453. }
  454. },
  455. "/chart/getChartChassify": {
  456. "get": {
  457. "security": [
  458. {
  459. "ApiKeyAuth": []
  460. }
  461. ],
  462. "description": "获取图表分类列表",
  463. "consumes": [
  464. "application/json"
  465. ],
  466. "tags": [
  467. "图库模块"
  468. ],
  469. "summary": "获取图表分类",
  470. "parameters": [
  471. {
  472. "type": "string",
  473. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  474. "name": "Authorization",
  475. "in": "header",
  476. "required": true
  477. },
  478. {
  479. "type": "string",
  480. "description": "分类名称关键词",
  481. "name": "Keywords",
  482. "in": "query"
  483. }
  484. ],
  485. "responses": {
  486. "200": {
  487. "description": "OK",
  488. "schema": {
  489. "$ref": "#/definitions/my_chart.MyChartClassifyListResp"
  490. }
  491. },
  492. "400": {
  493. "description": "分类列表获取失败",
  494. "schema": {
  495. "type": "string"
  496. }
  497. }
  498. }
  499. }
  500. },
  501. "/chart/getChartList": {
  502. "get": {
  503. "security": [
  504. {
  505. "ApiKeyAuth": []
  506. }
  507. ],
  508. "description": "获取图表列表",
  509. "consumes": [
  510. "application/json"
  511. ],
  512. "tags": [
  513. "图库模块"
  514. ],
  515. "summary": "获取图表列表",
  516. "parameters": [
  517. {
  518. "type": "string",
  519. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  520. "name": "Authorization",
  521. "in": "header",
  522. "required": true
  523. },
  524. {
  525. "type": "string",
  526. "description": "图表名称关键词",
  527. "name": "Keywords",
  528. "in": "query"
  529. },
  530. {
  531. "type": "string",
  532. "description": "图表分类ID",
  533. "name": "ClassifyId",
  534. "in": "query"
  535. },
  536. {
  537. "type": "integer",
  538. "description": "当前页页码,从1开始",
  539. "name": "Page",
  540. "in": "query"
  541. },
  542. {
  543. "type": "integer",
  544. "description": "每页数据量",
  545. "name": "Limit",
  546. "in": "query"
  547. }
  548. ],
  549. "responses": {
  550. "200": {
  551. "description": "OK",
  552. "schema": {
  553. "type": "array",
  554. "items": {
  555. "$ref": "#/definitions/my_chart.MyChartList"
  556. }
  557. }
  558. },
  559. "400": {
  560. "description": "图库列表获取失败",
  561. "schema": {
  562. "type": "string"
  563. }
  564. }
  565. }
  566. }
  567. },
  568. "/my_chart/editChartInfo": {
  569. "post": {
  570. "security": [
  571. {
  572. "ApiKeyAuth": []
  573. }
  574. ],
  575. "description": "编辑图表信息",
  576. "consumes": [
  577. "application/json"
  578. ],
  579. "tags": [
  580. "图库模块"
  581. ],
  582. "summary": "编辑图表信息",
  583. "parameters": [
  584. {
  585. "type": "string",
  586. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  587. "name": "Authorization",
  588. "in": "header",
  589. "required": true
  590. },
  591. {
  592. "description": "请求参数",
  593. "name": "data",
  594. "in": "body",
  595. "required": true,
  596. "schema": {
  597. "$ref": "#/definitions/chart_info.SaveChartInfoReq"
  598. }
  599. }
  600. ],
  601. "responses": {
  602. "200": {
  603. "description": "操作成功",
  604. "schema": {
  605. "type": "string"
  606. }
  607. },
  608. "400": {
  609. "description": "操作失败",
  610. "schema": {
  611. "type": "string"
  612. }
  613. }
  614. }
  615. }
  616. },
  617. "/my_chart/getChartInfoDetail": {
  618. "get": {
  619. "security": [
  620. {
  621. "ApiKeyAuth": []
  622. }
  623. ],
  624. "description": "获取图表详情",
  625. "consumes": [
  626. "application/json"
  627. ],
  628. "tags": [
  629. "图库模块"
  630. ],
  631. "summary": "获取图表详情",
  632. "parameters": [
  633. {
  634. "type": "string",
  635. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  636. "name": "Authorization",
  637. "in": "header",
  638. "required": true
  639. },
  640. {
  641. "type": "string",
  642. "description": "时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今; 8-19年至今; 9-20年至今",
  643. "name": "DateType",
  644. "in": "query"
  645. },
  646. {
  647. "type": "string",
  648. "description": "图表分类ID",
  649. "name": "ClassifyId",
  650. "in": "query"
  651. }
  652. ],
  653. "responses": {
  654. "200": {
  655. "description": "OK",
  656. "schema": {
  657. "$ref": "#/definitions/chart_info.ChartInfoDetailResp"
  658. }
  659. },
  660. "400": {
  661. "description": "图表详情获取失败",
  662. "schema": {
  663. "type": "string"
  664. }
  665. }
  666. }
  667. }
  668. },
  669. "/public/get_apply_variety_list": {
  670. "get": {
  671. "security": [
  672. {
  673. "ApiKeyAuth": []
  674. }
  675. ],
  676. "description": "获取所有可以申请的品种权限列表",
  677. "consumes": [
  678. "application/json"
  679. ],
  680. "tags": [
  681. "公共模块"
  682. ],
  683. "summary": "获取所有可以申请的品种权限列表",
  684. "parameters": [
  685. {
  686. "type": "string",
  687. "description": "微信登录后获取到的token",
  688. "name": "Authorization",
  689. "in": "header",
  690. "required": true
  691. }
  692. ],
  693. "responses": {
  694. "200": {
  695. "description": "获取成功",
  696. "schema": {
  697. "type": "array",
  698. "items": {
  699. "$ref": "#/definitions/logic.ApplyVariety"
  700. }
  701. }
  702. },
  703. "400": {
  704. "description": "获取失败",
  705. "schema": {
  706. "type": "string"
  707. }
  708. }
  709. }
  710. }
  711. },
  712. "/public/upload": {
  713. "post": {
  714. "security": [
  715. {
  716. "ApiKeyAuth": []
  717. }
  718. ],
  719. "description": "文件上传",
  720. "consumes": [
  721. "multipart/form-data"
  722. ],
  723. "tags": [
  724. "公共模块"
  725. ],
  726. "summary": "文件上传",
  727. "parameters": [
  728. {
  729. "type": "string",
  730. "description": "微信登录后获取到的token",
  731. "name": "Authorization",
  732. "in": "header",
  733. "required": true
  734. },
  735. {
  736. "type": "file",
  737. "description": "操作描述",
  738. "name": "file",
  739. "in": "formData"
  740. }
  741. ],
  742. "responses": {
  743. "200": {
  744. "description": "上传成功",
  745. "schema": {
  746. "type": "string"
  747. }
  748. },
  749. "400": {
  750. "description": "上传失败,存储目录创建失败",
  751. "schema": {
  752. "type": "string"
  753. }
  754. }
  755. }
  756. }
  757. },
  758. "/report/research_report": {
  759. "get": {
  760. "security": [
  761. {
  762. "ApiKeyAuth": []
  763. }
  764. ],
  765. "description": "获取报告详情",
  766. "consumes": [
  767. "application/json"
  768. ],
  769. "tags": [
  770. "报告接口"
  771. ],
  772. "summary": "获取报告详情",
  773. "parameters": [
  774. {
  775. "type": "string",
  776. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  777. "name": "Authorization",
  778. "in": "header",
  779. "required": true
  780. },
  781. {
  782. "type": "integer",
  783. "description": "活动ID",
  784. "name": "research_report_id",
  785. "in": "query",
  786. "required": true
  787. }
  788. ],
  789. "responses": {
  790. "200": {
  791. "description": "OK",
  792. "schema": {
  793. "$ref": "#/definitions/yb_activity.ActivityDetail"
  794. }
  795. },
  796. "400": {
  797. "description": "获取失败",
  798. "schema": {
  799. "type": "string"
  800. }
  801. }
  802. }
  803. }
  804. },
  805. "/user/apply": {
  806. "post": {
  807. "security": [
  808. {
  809. "ApiKeyAuth": []
  810. }
  811. ],
  812. "description": "用户申请",
  813. "consumes": [
  814. "application/json"
  815. ],
  816. "tags": [
  817. "用户模块"
  818. ],
  819. "summary": "用户申请",
  820. "parameters": [
  821. {
  822. "type": "string",
  823. "description": "微信登录后获取到的token",
  824. "name": "Authorization",
  825. "in": "header",
  826. "required": true
  827. },
  828. {
  829. "description": "请求参数",
  830. "name": "data",
  831. "in": "body",
  832. "required": true,
  833. "schema": {
  834. "$ref": "#/definitions/user.ApplyReq"
  835. }
  836. }
  837. ],
  838. "responses": {
  839. "200": {
  840. "description": "OK",
  841. "schema": {
  842. "$ref": "#/definitions/user.LoginResp"
  843. }
  844. }
  845. }
  846. }
  847. },
  848. "/user/get_email_code": {
  849. "get": {
  850. "security": [
  851. {
  852. "ApiKeyAuth": []
  853. }
  854. ],
  855. "description": "获取邮箱验证码",
  856. "consumes": [
  857. "application/json"
  858. ],
  859. "tags": [
  860. "用户模块"
  861. ],
  862. "summary": "获取邮箱验证码",
  863. "parameters": [
  864. {
  865. "type": "string",
  866. "description": "微信登录后获取到的token",
  867. "name": "Authorization",
  868. "in": "header",
  869. "required": true
  870. },
  871. {
  872. "type": "string",
  873. "description": "电子邮箱账号",
  874. "name": "email",
  875. "in": "query",
  876. "required": true
  877. }
  878. ],
  879. "responses": {
  880. "200": {
  881. "description": "OK",
  882. "schema": {
  883. "type": "string"
  884. }
  885. },
  886. "400": {
  887. "description": "Bad Request",
  888. "schema": {
  889. "type": "string"
  890. }
  891. }
  892. }
  893. }
  894. },
  895. "/user/get_last_apply_record": {
  896. "get": {
  897. "security": [
  898. {
  899. "ApiKeyAuth": []
  900. }
  901. ],
  902. "description": "获取最近一条申请单信息",
  903. "consumes": [
  904. "application/json"
  905. ],
  906. "tags": [
  907. "用户模块"
  908. ],
  909. "summary": "获取最近一条申请单信息",
  910. "parameters": [
  911. {
  912. "type": "string",
  913. "description": "微信登录后获取到的token",
  914. "name": "Authorization",
  915. "in": "header",
  916. "required": true
  917. }
  918. ],
  919. "responses": {
  920. "200": {
  921. "description": "获取成功",
  922. "schema": {
  923. "$ref": "#/definitions/user.Record"
  924. }
  925. },
  926. "400": {
  927. "description": "获取失败",
  928. "schema": {
  929. "type": "string"
  930. }
  931. }
  932. }
  933. }
  934. },
  935. "/user/get_sms_code": {
  936. "get": {
  937. "security": [
  938. {
  939. "ApiKeyAuth": []
  940. }
  941. ],
  942. "description": "获取短信验证码接口",
  943. "consumes": [
  944. "application/json"
  945. ],
  946. "tags": [
  947. "用户模块"
  948. ],
  949. "summary": "获取短信验证码",
  950. "parameters": [
  951. {
  952. "type": "string",
  953. "description": "微信登录后获取到的token",
  954. "name": "Authorization",
  955. "in": "header",
  956. "required": true
  957. },
  958. {
  959. "type": "string",
  960. "description": "手机号",
  961. "name": "mobile",
  962. "in": "query",
  963. "required": true
  964. },
  965. {
  966. "type": "string",
  967. "description": "手机国际区号(中国大陆:86)",
  968. "name": "area_num",
  969. "in": "query",
  970. "required": true
  971. }
  972. ],
  973. "responses": {
  974. "200": {
  975. "description": "OK",
  976. "schema": {
  977. "type": "string"
  978. }
  979. },
  980. "400": {
  981. "description": "Bad Request",
  982. "schema": {
  983. "type": "string"
  984. }
  985. }
  986. }
  987. }
  988. },
  989. "/user/get_tab_bar": {
  990. "get": {
  991. "security": [
  992. {
  993. "ApiKeyAuth": []
  994. }
  995. ],
  996. "description": "获取用户的菜单栏权限",
  997. "consumes": [
  998. "application/json"
  999. ],
  1000. "tags": [
  1001. "用户模块"
  1002. ],
  1003. "summary": "获取用户的菜单栏权限",
  1004. "parameters": [
  1005. {
  1006. "type": "string",
  1007. "description": "微信登录后获取到的token",
  1008. "name": "Authorization",
  1009. "in": "header",
  1010. "required": true
  1011. }
  1012. ],
  1013. "responses": {
  1014. "200": {
  1015. "description": "获取成功",
  1016. "schema": {
  1017. "type": "array",
  1018. "items": {
  1019. "type": "string"
  1020. }
  1021. }
  1022. },
  1023. "400": {
  1024. "description": "获取失败",
  1025. "schema": {
  1026. "type": "string"
  1027. }
  1028. }
  1029. }
  1030. }
  1031. },
  1032. "/user/info": {
  1033. "get": {
  1034. "security": [
  1035. {
  1036. "ApiKeyAuth": []
  1037. }
  1038. ],
  1039. "description": "我的详情",
  1040. "consumes": [
  1041. "application/json"
  1042. ],
  1043. "tags": [
  1044. "用户模块"
  1045. ],
  1046. "summary": "我的详情",
  1047. "parameters": [
  1048. {
  1049. "type": "string",
  1050. "description": "微信登录后获取到的token",
  1051. "name": "Authorization",
  1052. "in": "header",
  1053. "required": true
  1054. }
  1055. ],
  1056. "responses": {
  1057. "200": {
  1058. "description": "获取成功",
  1059. "schema": {
  1060. "$ref": "#/definitions/user.Detail"
  1061. }
  1062. },
  1063. "400": {
  1064. "description": "获取失败",
  1065. "schema": {
  1066. "type": "string"
  1067. }
  1068. }
  1069. }
  1070. }
  1071. },
  1072. "/user/login": {
  1073. "post": {
  1074. "security": [
  1075. {
  1076. "ApiKeyAuth": []
  1077. }
  1078. ],
  1079. "description": "用户手机号/邮箱登录",
  1080. "consumes": [
  1081. "application/json"
  1082. ],
  1083. "tags": [
  1084. "用户模块"
  1085. ],
  1086. "summary": "用户登录",
  1087. "parameters": [
  1088. {
  1089. "type": "string",
  1090. "description": "微信登录后获取到的token",
  1091. "name": "Authorization",
  1092. "in": "header",
  1093. "required": true
  1094. },
  1095. {
  1096. "description": "请求参数",
  1097. "name": "data",
  1098. "in": "body",
  1099. "required": true,
  1100. "schema": {
  1101. "$ref": "#/definitions/user.LoginReq"
  1102. }
  1103. }
  1104. ],
  1105. "responses": {
  1106. "200": {
  1107. "description": "OK",
  1108. "schema": {
  1109. "$ref": "#/definitions/user.LoginResp"
  1110. }
  1111. }
  1112. }
  1113. }
  1114. },
  1115. "/wechat/getEncryptInfo": {
  1116. "post": {
  1117. "description": "消息解密",
  1118. "consumes": [
  1119. "application/json"
  1120. ],
  1121. "tags": [
  1122. "微信相关接口"
  1123. ],
  1124. "summary": "消息解密",
  1125. "parameters": [
  1126. {
  1127. "type": "string",
  1128. "description": "加密数据",
  1129. "name": "encryptedData",
  1130. "in": "query",
  1131. "required": true
  1132. },
  1133. {
  1134. "type": "string",
  1135. "description": "加密算法初始向量",
  1136. "name": "iv",
  1137. "in": "query",
  1138. "required": true
  1139. }
  1140. ],
  1141. "responses": {
  1142. "200": {
  1143. "description": "获取成功",
  1144. "schema": {
  1145. "type": "string"
  1146. }
  1147. }
  1148. }
  1149. }
  1150. },
  1151. "/wechat/login": {
  1152. "get": {
  1153. "description": "微信登录",
  1154. "consumes": [
  1155. "application/json"
  1156. ],
  1157. "tags": [
  1158. "微信相关接口"
  1159. ],
  1160. "summary": "微信登录",
  1161. "parameters": [
  1162. {
  1163. "type": "string",
  1164. "description": "微信code",
  1165. "name": "code",
  1166. "in": "query",
  1167. "required": true
  1168. }
  1169. ],
  1170. "responses": {
  1171. "200": {
  1172. "description": "OK",
  1173. "schema": {
  1174. "$ref": "#/definitions/response.LoginResp"
  1175. }
  1176. }
  1177. }
  1178. }
  1179. }
  1180. },
  1181. "definitions": {
  1182. "activity.ActivityList": {
  1183. "type": "object",
  1184. "properties": {
  1185. "activityId": {
  1186. "type": "integer"
  1187. },
  1188. "activityName": {
  1189. "description": "活动名称",
  1190. "type": "string"
  1191. },
  1192. "activityState": {
  1193. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  1194. "type": "integer"
  1195. },
  1196. "activityTypeId": {
  1197. "description": "活动类型ID",
  1198. "type": "integer"
  1199. },
  1200. "activityTypeName": {
  1201. "description": "活动类型名称",
  1202. "type": "string"
  1203. },
  1204. "city": {
  1205. "description": "城市",
  1206. "type": "string"
  1207. },
  1208. "endTime": {
  1209. "description": "活动结束时间",
  1210. "type": "string"
  1211. },
  1212. "firstActivityTypeId": {
  1213. "description": "第一级的活动类型ID",
  1214. "type": "integer"
  1215. },
  1216. "firstActivityTypeName": {
  1217. "description": "第一级的活动类型名称",
  1218. "type": "string"
  1219. },
  1220. "hasPlayBack": {
  1221. "description": "是否有回放",
  1222. "type": "integer"
  1223. },
  1224. "hasRemind": {
  1225. "description": "是否已提醒",
  1226. "type": "integer"
  1227. },
  1228. "registerState": {
  1229. "description": "报名状态 0-取消报名 1-已报名",
  1230. "type": "integer"
  1231. },
  1232. "speaker": {
  1233. "description": "主讲人",
  1234. "type": "string"
  1235. },
  1236. "speakerBackgroundPic": {
  1237. "description": "主讲人背景图",
  1238. "type": "string"
  1239. },
  1240. "speakerHeadPic": {
  1241. "description": "主讲人头像",
  1242. "type": "string"
  1243. },
  1244. "startTime": {
  1245. "description": "活动开始时间",
  1246. "type": "string"
  1247. },
  1248. "voiceList": {
  1249. "description": "音频列表",
  1250. "type": "array",
  1251. "items": {
  1252. "$ref": "#/definitions/yb_activity_voice.YbActivityVoice"
  1253. }
  1254. },
  1255. "weekString": {
  1256. "description": "周几",
  1257. "type": "string"
  1258. }
  1259. }
  1260. },
  1261. "activity.RegisterCheckInfo": {
  1262. "type": "object",
  1263. "properties": {
  1264. "msg": {
  1265. "type": "string"
  1266. },
  1267. "specific": {
  1268. "type": "integer"
  1269. },
  1270. "type": {
  1271. "type": "string"
  1272. }
  1273. }
  1274. },
  1275. "activity.RemindCheckInfo": {
  1276. "type": "object",
  1277. "properties": {
  1278. "msg": {
  1279. "type": "string"
  1280. },
  1281. "specific": {
  1282. "type": "integer"
  1283. },
  1284. "type": {
  1285. "type": "string"
  1286. }
  1287. }
  1288. },
  1289. "admin.Admin": {
  1290. "type": "object",
  1291. "properties": {
  1292. "adminName": {
  1293. "type": "string"
  1294. },
  1295. "authority": {
  1296. "description": "管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员",
  1297. "type": "integer"
  1298. },
  1299. "createdTime": {
  1300. "description": "创建时间",
  1301. "type": "string"
  1302. },
  1303. "departmentId": {
  1304. "description": "部门id",
  1305. "type": "integer"
  1306. },
  1307. "departmentName": {
  1308. "description": "部门名称",
  1309. "type": "string"
  1310. },
  1311. "email": {
  1312. "type": "string"
  1313. },
  1314. "enabled": {
  1315. "description": "1:有效,0:禁用",
  1316. "type": "integer"
  1317. },
  1318. "groupId": {
  1319. "description": "分组id",
  1320. "type": "integer"
  1321. },
  1322. "groupName": {
  1323. "description": "分组名称",
  1324. "type": "string"
  1325. },
  1326. "lastLoginTime": {
  1327. "description": "最近登陆时间",
  1328. "type": "string"
  1329. },
  1330. "lastUpdatedPasswordTime": {
  1331. "type": "string"
  1332. },
  1333. "lastUpdatedTime": {
  1334. "type": "string"
  1335. },
  1336. "mobile": {
  1337. "description": "手机号",
  1338. "type": "string"
  1339. },
  1340. "password": {
  1341. "type": "string"
  1342. },
  1343. "position": {
  1344. "description": "职位",
  1345. "type": "string"
  1346. },
  1347. "realName": {
  1348. "type": "string"
  1349. },
  1350. "role": {
  1351. "description": "用户角色",
  1352. "type": "string"
  1353. },
  1354. "roleId": {
  1355. "description": "角色id",
  1356. "type": "integer"
  1357. },
  1358. "roleName": {
  1359. "description": "角色名称",
  1360. "type": "string"
  1361. },
  1362. "roleType": {
  1363. "description": "角色类型:1需要录入指标,0:不需要",
  1364. "type": "integer"
  1365. },
  1366. "roleTypeCode": {
  1367. "description": "角色编码",
  1368. "type": "string"
  1369. }
  1370. }
  1371. },
  1372. "chart_edb_mapping.ChartEdbInfoMapping": {
  1373. "type": "object",
  1374. "properties": {
  1375. "chartColor": {
  1376. "type": "string"
  1377. },
  1378. "chartEdbMappingId": {
  1379. "type": "integer"
  1380. },
  1381. "chartInfoId": {
  1382. "type": "integer"
  1383. },
  1384. "chartStyle": {
  1385. "type": "string"
  1386. },
  1387. "chartWidth": {
  1388. "type": "number"
  1389. },
  1390. "dataList": {},
  1391. "edbCode": {
  1392. "type": "string"
  1393. },
  1394. "edbInfoId": {
  1395. "type": "integer"
  1396. },
  1397. "edbInfoType": {
  1398. "type": "integer"
  1399. },
  1400. "edbName": {
  1401. "type": "string"
  1402. },
  1403. "edbType": {
  1404. "type": "integer"
  1405. },
  1406. "endDate": {
  1407. "type": "string"
  1408. },
  1409. "frequency": {
  1410. "type": "string"
  1411. },
  1412. "isAxis": {
  1413. "type": "integer"
  1414. },
  1415. "isOrder": {
  1416. "type": "boolean"
  1417. },
  1418. "latestDate": {
  1419. "type": "string"
  1420. },
  1421. "latestValue": {
  1422. "type": "number"
  1423. },
  1424. "leadUnit": {
  1425. "type": "string"
  1426. },
  1427. "leadValue": {
  1428. "type": "integer"
  1429. },
  1430. "maxData": {
  1431. "type": "number"
  1432. },
  1433. "minData": {
  1434. "type": "number"
  1435. },
  1436. "modifyTime": {
  1437. "type": "string"
  1438. },
  1439. "source": {
  1440. "type": "integer"
  1441. },
  1442. "sourceName": {
  1443. "type": "string"
  1444. },
  1445. "startDate": {
  1446. "type": "string"
  1447. },
  1448. "uniqueCode": {
  1449. "type": "string"
  1450. },
  1451. "unit": {
  1452. "type": "string"
  1453. }
  1454. }
  1455. },
  1456. "chart_info.ChartInfoDetailResp": {
  1457. "type": "object",
  1458. "properties": {
  1459. "chartInfo": {
  1460. "$ref": "#/definitions/chart_info.ChartInfoView"
  1461. },
  1462. "edbInfoList": {
  1463. "type": "array",
  1464. "items": {
  1465. "$ref": "#/definitions/chart_edb_mapping.ChartEdbInfoMapping"
  1466. }
  1467. }
  1468. }
  1469. },
  1470. "chart_info.ChartInfoView": {
  1471. "type": "object",
  1472. "properties": {
  1473. "calendar": {
  1474. "type": "string"
  1475. },
  1476. "chartClassifyId": {
  1477. "type": "integer"
  1478. },
  1479. "chartClassifyName": {
  1480. "type": "string"
  1481. },
  1482. "chartImage": {
  1483. "type": "string"
  1484. },
  1485. "chartInfoId": {
  1486. "type": "integer"
  1487. },
  1488. "chartName": {
  1489. "type": "string"
  1490. },
  1491. "chartType": {
  1492. "type": "integer"
  1493. },
  1494. "createTime": {
  1495. "type": "string"
  1496. },
  1497. "dateType": {
  1498. "type": "integer"
  1499. },
  1500. "edbEndDate": {
  1501. "type": "string"
  1502. },
  1503. "edbInfoIds": {
  1504. "type": "string"
  1505. },
  1506. "endDate": {
  1507. "type": "string"
  1508. },
  1509. "isAdd": {
  1510. "type": "boolean"
  1511. },
  1512. "isSetName": {
  1513. "type": "integer"
  1514. },
  1515. "leftMax": {
  1516. "type": "string"
  1517. },
  1518. "leftMin": {
  1519. "type": "string"
  1520. },
  1521. "modifyTime": {
  1522. "type": "string"
  1523. },
  1524. "myChartClassifyId": {
  1525. "type": "string"
  1526. },
  1527. "myChartId": {
  1528. "type": "integer"
  1529. },
  1530. "rightMax": {
  1531. "type": "string"
  1532. },
  1533. "rightMin": {
  1534. "type": "string"
  1535. },
  1536. "seasonEndDate": {
  1537. "type": "string"
  1538. },
  1539. "seasonStartDate": {
  1540. "type": "string"
  1541. },
  1542. "sort": {
  1543. "type": "integer"
  1544. },
  1545. "startDate": {
  1546. "type": "string"
  1547. },
  1548. "sysUserId": {
  1549. "type": "integer"
  1550. },
  1551. "sysUserRealName": {
  1552. "type": "string"
  1553. },
  1554. "uniqueCode": {
  1555. "type": "string"
  1556. }
  1557. }
  1558. },
  1559. "chart_info.ChartSaveItem": {
  1560. "type": "object",
  1561. "properties": {
  1562. "chartColor": {
  1563. "type": "string"
  1564. },
  1565. "chartStyle": {
  1566. "type": "string"
  1567. },
  1568. "chartWidth": {
  1569. "type": "number"
  1570. },
  1571. "edbInfoId": {
  1572. "type": "integer"
  1573. },
  1574. "edbInfoType": {
  1575. "type": "integer"
  1576. },
  1577. "isAxis": {
  1578. "type": "integer"
  1579. },
  1580. "isOrder": {
  1581. "type": "boolean"
  1582. },
  1583. "leadUnit": {
  1584. "type": "string"
  1585. },
  1586. "leadValue": {
  1587. "type": "integer"
  1588. },
  1589. "maxData": {
  1590. "type": "number"
  1591. },
  1592. "minData": {
  1593. "type": "number"
  1594. }
  1595. }
  1596. },
  1597. "chart_info.SaveChartInfoReq": {
  1598. "type": "object",
  1599. "properties": {
  1600. "calendar": {
  1601. "type": "string"
  1602. },
  1603. "chartEdbInfoList": {
  1604. "type": "array",
  1605. "items": {
  1606. "$ref": "#/definitions/chart_info.ChartSaveItem"
  1607. }
  1608. },
  1609. "chartInfoId": {
  1610. "type": "integer"
  1611. },
  1612. "dateType": {
  1613. "type": "integer"
  1614. },
  1615. "endDate": {
  1616. "type": "string"
  1617. },
  1618. "leftMax": {
  1619. "type": "string"
  1620. },
  1621. "leftMin": {
  1622. "type": "string"
  1623. },
  1624. "rightMax": {
  1625. "type": "string"
  1626. },
  1627. "rightMin": {
  1628. "type": "string"
  1629. },
  1630. "seasonEndDate": {
  1631. "type": "string"
  1632. },
  1633. "seasonStartDate": {
  1634. "type": "string"
  1635. },
  1636. "startDate": {
  1637. "type": "string"
  1638. }
  1639. }
  1640. },
  1641. "logic.ApplyVariety": {
  1642. "type": "object",
  1643. "properties": {
  1644. "name": {
  1645. "type": "string"
  1646. },
  1647. "permission_name": {
  1648. "type": "string"
  1649. },
  1650. "pic_url": {
  1651. "type": "string"
  1652. }
  1653. }
  1654. },
  1655. "my_chart.MyChartClassifyListResp": {
  1656. "type": "object",
  1657. "properties": {
  1658. "private_classify": {
  1659. "type": "array",
  1660. "items": {
  1661. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  1662. }
  1663. },
  1664. "public_classify": {
  1665. "type": "array",
  1666. "items": {
  1667. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  1668. }
  1669. }
  1670. }
  1671. },
  1672. "my_chart.MyChartList": {
  1673. "type": "object",
  1674. "properties": {
  1675. "calendar": {
  1676. "type": "string"
  1677. },
  1678. "chartClassifyId": {
  1679. "type": "integer"
  1680. },
  1681. "chartImage": {
  1682. "type": "string"
  1683. },
  1684. "chartInfoId": {
  1685. "type": "integer"
  1686. },
  1687. "chartName": {
  1688. "type": "string"
  1689. },
  1690. "chartType": {
  1691. "type": "integer"
  1692. },
  1693. "createTime": {
  1694. "type": "string"
  1695. },
  1696. "dateType": {
  1697. "type": "integer"
  1698. },
  1699. "edbEndDate": {
  1700. "type": "string"
  1701. },
  1702. "edbInfoIds": {
  1703. "type": "string"
  1704. },
  1705. "endDate": {
  1706. "type": "string"
  1707. },
  1708. "isAdd": {
  1709. "type": "boolean"
  1710. },
  1711. "isSetName": {
  1712. "type": "integer"
  1713. },
  1714. "modifyTime": {
  1715. "type": "string"
  1716. },
  1717. "myChartClassifyId": {
  1718. "type": "string"
  1719. },
  1720. "myChartClassifyName": {
  1721. "type": "string"
  1722. },
  1723. "myChartId": {
  1724. "type": "integer"
  1725. },
  1726. "seasonEndDate": {
  1727. "type": "string"
  1728. },
  1729. "seasonStartDate": {
  1730. "type": "string"
  1731. },
  1732. "sort": {
  1733. "type": "integer"
  1734. },
  1735. "startDate": {
  1736. "type": "string"
  1737. },
  1738. "sysUserId": {
  1739. "type": "integer"
  1740. },
  1741. "sysUserRealName": {
  1742. "type": "string"
  1743. },
  1744. "uniqueCode": {
  1745. "type": "string"
  1746. }
  1747. }
  1748. },
  1749. "my_chart_classify.MyChartClassify": {
  1750. "type": "object",
  1751. "properties": {
  1752. "adminId": {
  1753. "description": "用户id",
  1754. "type": "integer"
  1755. },
  1756. "companyPublicTime": {
  1757. "description": "用户可见公开时间",
  1758. "type": "string"
  1759. },
  1760. "createTime": {
  1761. "type": "string"
  1762. },
  1763. "isCompanyPublic": {
  1764. "description": "是否用户可见:0-否 1-是",
  1765. "type": "integer"
  1766. },
  1767. "isPublic": {
  1768. "description": "是否所有人可见,0:仅自己可见,1:所有人可见",
  1769. "type": "integer"
  1770. },
  1771. "modifyTime": {
  1772. "type": "string"
  1773. },
  1774. "myChartClassifyName": {
  1775. "description": "分类名称",
  1776. "type": "string"
  1777. },
  1778. "publicTime": {
  1779. "description": "公开时间",
  1780. "type": "string"
  1781. },
  1782. "sort": {
  1783. "description": "排序字段,值越小,越靠前",
  1784. "type": "integer"
  1785. }
  1786. }
  1787. },
  1788. "response.LoginResp": {
  1789. "type": "object",
  1790. "properties": {
  1791. "authorization": {
  1792. "type": "string"
  1793. },
  1794. "is_bind": {
  1795. "type": "boolean"
  1796. },
  1797. "user_id": {
  1798. "type": "integer"
  1799. }
  1800. }
  1801. },
  1802. "user.ApplyReq": {
  1803. "type": "object",
  1804. "properties": {
  1805. "business_card_url": {
  1806. "type": "string"
  1807. },
  1808. "company_name": {
  1809. "type": "string"
  1810. },
  1811. "permission": {
  1812. "type": "string"
  1813. },
  1814. "real_name": {
  1815. "type": "string"
  1816. },
  1817. "source": {
  1818. "type": "integer"
  1819. }
  1820. }
  1821. },
  1822. "user.CompanyPermission": {
  1823. "type": "object",
  1824. "properties": {
  1825. "name": {
  1826. "type": "string"
  1827. },
  1828. "permission_list": {
  1829. "type": "array",
  1830. "items": {
  1831. "$ref": "#/definitions/user.PermissionList"
  1832. }
  1833. }
  1834. }
  1835. },
  1836. "user.Detail": {
  1837. "type": "object",
  1838. "properties": {
  1839. "admin_info": {
  1840. "$ref": "#/definitions/admin.Admin"
  1841. },
  1842. "company_name": {
  1843. "type": "string"
  1844. },
  1845. "email": {
  1846. "type": "string"
  1847. },
  1848. "is_inner": {
  1849. "type": "integer"
  1850. },
  1851. "is_suspend": {
  1852. "type": "integer"
  1853. },
  1854. "mobile": {
  1855. "type": "string"
  1856. },
  1857. "permission_list": {
  1858. "type": "array",
  1859. "items": {
  1860. "$ref": "#/definitions/user.CompanyPermission"
  1861. }
  1862. },
  1863. "real_name": {
  1864. "type": "string"
  1865. },
  1866. "seal_mobile": {
  1867. "type": "string"
  1868. },
  1869. "seal_name": {
  1870. "type": "string"
  1871. },
  1872. "status": {
  1873. "type": "string"
  1874. }
  1875. }
  1876. },
  1877. "user.LoginReq": {
  1878. "type": "object",
  1879. "properties": {
  1880. "area_num": {
  1881. "type": "integer"
  1882. },
  1883. "bind_type": {
  1884. "type": "integer"
  1885. },
  1886. "email": {
  1887. "type": "string"
  1888. },
  1889. "mobile": {
  1890. "type": "string"
  1891. },
  1892. "verify_code": {
  1893. "type": "string"
  1894. }
  1895. }
  1896. },
  1897. "user.LoginResp": {
  1898. "type": "object",
  1899. "properties": {
  1900. "email": {
  1901. "type": "string"
  1902. },
  1903. "mobile": {
  1904. "type": "string"
  1905. },
  1906. "token": {
  1907. "type": "string"
  1908. },
  1909. "user_id": {
  1910. "type": "integer"
  1911. }
  1912. }
  1913. },
  1914. "user.PermissionList": {
  1915. "type": "object",
  1916. "properties": {
  1917. "end_date": {
  1918. "type": "string"
  1919. },
  1920. "name": {
  1921. "type": "string"
  1922. },
  1923. "start_date": {
  1924. "type": "string"
  1925. },
  1926. "status": {
  1927. "type": "string"
  1928. }
  1929. }
  1930. },
  1931. "user.Record": {
  1932. "type": "object",
  1933. "properties": {
  1934. "business_card_url": {
  1935. "type": "string"
  1936. },
  1937. "company_name": {
  1938. "type": "string"
  1939. },
  1940. "mobile": {
  1941. "type": "string"
  1942. },
  1943. "real_name": {
  1944. "type": "string"
  1945. }
  1946. }
  1947. },
  1948. "yb_activity.ActivityDetail": {
  1949. "type": "object",
  1950. "properties": {
  1951. "activityId": {
  1952. "type": "integer"
  1953. },
  1954. "activityName": {
  1955. "description": "活动名称",
  1956. "type": "string"
  1957. },
  1958. "activityState": {
  1959. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  1960. "type": "integer"
  1961. },
  1962. "activityTypeId": {
  1963. "description": "活动类型ID",
  1964. "type": "integer"
  1965. },
  1966. "activityTypeName": {
  1967. "description": "活动类型名称",
  1968. "type": "string"
  1969. },
  1970. "address": {
  1971. "description": "活动地址",
  1972. "type": "string"
  1973. },
  1974. "americaTel": {
  1975. "description": "美国拨入",
  1976. "type": "string"
  1977. },
  1978. "city": {
  1979. "description": "城市",
  1980. "type": "string"
  1981. },
  1982. "endTime": {
  1983. "description": "活动结束时间",
  1984. "type": "string"
  1985. },
  1986. "firstActivityTypeId": {
  1987. "description": "第一级的活动类型ID",
  1988. "type": "integer"
  1989. },
  1990. "firstActivityTypeName": {
  1991. "description": "第一级的活动类型名称",
  1992. "type": "string"
  1993. },
  1994. "hasPlayBack": {
  1995. "description": "是否有回放",
  1996. "type": "integer"
  1997. },
  1998. "hasRemind": {
  1999. "description": "是否已提醒",
  2000. "type": "integer"
  2001. },
  2002. "hongKongTel": {
  2003. "description": "香港拨入",
  2004. "type": "string"
  2005. },
  2006. "isLimitPeople": {
  2007. "description": "是否限制人数 1是,0否",
  2008. "type": "integer"
  2009. },
  2010. "limitPeopleNum": {
  2011. "description": "限制人数数量",
  2012. "type": "integer"
  2013. },
  2014. "linkParticipants": {
  2015. "description": "参会链接",
  2016. "type": "string"
  2017. },
  2018. "mainlandTel": {
  2019. "description": "大陆拨入",
  2020. "type": "string"
  2021. },
  2022. "participationCode": {
  2023. "description": "参会密码",
  2024. "type": "string"
  2025. },
  2026. "registerState": {
  2027. "description": "报名状态 0-取消报名 1-已报名",
  2028. "type": "integer"
  2029. },
  2030. "registeredNum": {
  2031. "description": "已报名人数",
  2032. "type": "integer"
  2033. },
  2034. "reportLink": {
  2035. "description": "报告链接",
  2036. "type": "string"
  2037. },
  2038. "reportName": {
  2039. "description": "报告名称",
  2040. "type": "string"
  2041. },
  2042. "singaporeTel": {
  2043. "description": "新加坡拨入",
  2044. "type": "string"
  2045. },
  2046. "speaker": {
  2047. "description": "主讲人",
  2048. "type": "string"
  2049. },
  2050. "speakerBackgroundPic": {
  2051. "description": "主讲人背景图",
  2052. "type": "string"
  2053. },
  2054. "speakerHeadPic": {
  2055. "description": "主讲人头像",
  2056. "type": "string"
  2057. },
  2058. "startTime": {
  2059. "description": "活动开始时间",
  2060. "type": "string"
  2061. },
  2062. "taiwanTel": {
  2063. "description": "台湾拨入",
  2064. "type": "string"
  2065. },
  2066. "weekString": {
  2067. "description": "周几",
  2068. "type": "string"
  2069. }
  2070. }
  2071. },
  2072. "yb_activity_voice.YbActivityVoice": {
  2073. "type": "object",
  2074. "properties": {
  2075. "activityId": {
  2076. "description": "活动id",
  2077. "type": "integer"
  2078. },
  2079. "createTime": {
  2080. "type": "string"
  2081. },
  2082. "voiceName": {
  2083. "description": "音频名称",
  2084. "type": "string"
  2085. },
  2086. "voicePlaySeconds": {
  2087. "description": "音频时长",
  2088. "type": "string"
  2089. },
  2090. "voiceUrl": {
  2091. "description": "音频地址",
  2092. "type": "string"
  2093. }
  2094. }
  2095. }
  2096. }
  2097. }`
  2098. type swaggerInfo struct {
  2099. Version string
  2100. Host string
  2101. BasePath string
  2102. Schemes []string
  2103. Title string
  2104. Description string
  2105. }
  2106. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2107. var SwaggerInfo = swaggerInfo{
  2108. Version: "1.0",
  2109. Host: "127.0.0.1:8607",
  2110. BasePath: "/",
  2111. Schemes: []string{},
  2112. Title: "弘则研报API接口文档",
  2113. Description: "这是弘则研报API接口文档",
  2114. }
  2115. type s struct{}
  2116. func (s *s) ReadDoc() string {
  2117. sInfo := SwaggerInfo
  2118. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  2119. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  2120. "marshal": func(v interface{}) string {
  2121. a, _ := json.Marshal(v)
  2122. return string(a)
  2123. },
  2124. "escape": func(v interface{}) string {
  2125. // escape tabs
  2126. str := strings.Replace(v.(string), "\t", "\\t", -1)
  2127. // replace " with \", and if that results in \\", replace that with \\\"
  2128. str = strings.Replace(str, "\"", "\\\"", -1)
  2129. return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
  2130. },
  2131. }).Parse(doc)
  2132. if err != nil {
  2133. return doc
  2134. }
  2135. var tpl bytes.Buffer
  2136. if err := t.Execute(&tpl, sInfo); err != nil {
  2137. return doc
  2138. }
  2139. return tpl.String()
  2140. }
  2141. func init() {
  2142. swag.Register("swagger", &s{})
  2143. }