docs.go 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286
  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. "/my_chart/moveMyChart": {
  670. "post": {
  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": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  688. "name": "Authorization",
  689. "in": "header",
  690. "required": true
  691. },
  692. {
  693. "description": "请求参数",
  694. "name": "data",
  695. "in": "body",
  696. "required": true,
  697. "schema": {
  698. "$ref": "#/definitions/my_chart.MoveMyChartReq"
  699. }
  700. }
  701. ],
  702. "responses": {
  703. "200": {
  704. "description": "操作成功",
  705. "schema": {
  706. "type": "string"
  707. }
  708. },
  709. "400": {
  710. "description": "操作失败",
  711. "schema": {
  712. "type": "string"
  713. }
  714. }
  715. }
  716. }
  717. },
  718. "/my_chart/moveMyChartClassify": {
  719. "post": {
  720. "security": [
  721. {
  722. "ApiKeyAuth": []
  723. }
  724. ],
  725. "description": "移动我的图表分类",
  726. "consumes": [
  727. "application/json"
  728. ],
  729. "tags": [
  730. "图库模块"
  731. ],
  732. "summary": "移动我的图表分类",
  733. "parameters": [
  734. {
  735. "type": "string",
  736. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  737. "name": "Authorization",
  738. "in": "header",
  739. "required": true
  740. },
  741. {
  742. "description": "请求参数",
  743. "name": "data",
  744. "in": "body",
  745. "required": true,
  746. "schema": {
  747. "$ref": "#/definitions/my_chart.MoveMyChartClassifyReq"
  748. }
  749. }
  750. ],
  751. "responses": {
  752. "200": {
  753. "description": "操作成功",
  754. "schema": {
  755. "type": "string"
  756. }
  757. },
  758. "400": {
  759. "description": "操作失败",
  760. "schema": {
  761. "type": "string"
  762. }
  763. }
  764. }
  765. }
  766. },
  767. "/public/get_apply_variety_list": {
  768. "get": {
  769. "security": [
  770. {
  771. "ApiKeyAuth": []
  772. }
  773. ],
  774. "description": "获取所有可以申请的品种权限列表",
  775. "consumes": [
  776. "application/json"
  777. ],
  778. "tags": [
  779. "公共模块"
  780. ],
  781. "summary": "获取所有可以申请的品种权限列表",
  782. "parameters": [
  783. {
  784. "type": "string",
  785. "description": "微信登录后获取到的token",
  786. "name": "Authorization",
  787. "in": "header",
  788. "required": true
  789. }
  790. ],
  791. "responses": {
  792. "200": {
  793. "description": "获取成功",
  794. "schema": {
  795. "type": "array",
  796. "items": {
  797. "$ref": "#/definitions/logic.ApplyVariety"
  798. }
  799. }
  800. },
  801. "400": {
  802. "description": "获取失败",
  803. "schema": {
  804. "type": "string"
  805. }
  806. }
  807. }
  808. }
  809. },
  810. "/public/upload": {
  811. "post": {
  812. "security": [
  813. {
  814. "ApiKeyAuth": []
  815. }
  816. ],
  817. "description": "文件上传",
  818. "consumes": [
  819. "multipart/form-data"
  820. ],
  821. "tags": [
  822. "公共模块"
  823. ],
  824. "summary": "文件上传",
  825. "parameters": [
  826. {
  827. "type": "string",
  828. "description": "微信登录后获取到的token",
  829. "name": "Authorization",
  830. "in": "header",
  831. "required": true
  832. },
  833. {
  834. "type": "file",
  835. "description": "操作描述",
  836. "name": "file",
  837. "in": "formData"
  838. }
  839. ],
  840. "responses": {
  841. "200": {
  842. "description": "上传成功",
  843. "schema": {
  844. "type": "string"
  845. }
  846. },
  847. "400": {
  848. "description": "上传失败,存储目录创建失败",
  849. "schema": {
  850. "type": "string"
  851. }
  852. }
  853. }
  854. }
  855. },
  856. "/report/research_report": {
  857. "get": {
  858. "security": [
  859. {
  860. "ApiKeyAuth": []
  861. }
  862. ],
  863. "description": "获取报告详情",
  864. "consumes": [
  865. "application/json"
  866. ],
  867. "tags": [
  868. "报告接口"
  869. ],
  870. "summary": "获取报告详情",
  871. "parameters": [
  872. {
  873. "type": "string",
  874. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  875. "name": "Authorization",
  876. "in": "header",
  877. "required": true
  878. },
  879. {
  880. "type": "integer",
  881. "description": "活动ID",
  882. "name": "research_report_id",
  883. "in": "query",
  884. "required": true
  885. }
  886. ],
  887. "responses": {
  888. "200": {
  889. "description": "OK",
  890. "schema": {
  891. "$ref": "#/definitions/yb_activity.ActivityDetail"
  892. }
  893. },
  894. "400": {
  895. "description": "获取失败",
  896. "schema": {
  897. "type": "string"
  898. }
  899. }
  900. }
  901. }
  902. },
  903. "/user/apply": {
  904. "post": {
  905. "security": [
  906. {
  907. "ApiKeyAuth": []
  908. }
  909. ],
  910. "description": "用户申请",
  911. "consumes": [
  912. "application/json"
  913. ],
  914. "tags": [
  915. "用户模块"
  916. ],
  917. "summary": "用户申请",
  918. "parameters": [
  919. {
  920. "type": "string",
  921. "description": "微信登录后获取到的token",
  922. "name": "Authorization",
  923. "in": "header",
  924. "required": true
  925. },
  926. {
  927. "description": "请求参数",
  928. "name": "data",
  929. "in": "body",
  930. "required": true,
  931. "schema": {
  932. "$ref": "#/definitions/user.ApplyReq"
  933. }
  934. }
  935. ],
  936. "responses": {
  937. "200": {
  938. "description": "OK",
  939. "schema": {
  940. "$ref": "#/definitions/user.LoginResp"
  941. }
  942. }
  943. }
  944. }
  945. },
  946. "/user/get_email_code": {
  947. "get": {
  948. "security": [
  949. {
  950. "ApiKeyAuth": []
  951. }
  952. ],
  953. "description": "获取邮箱验证码",
  954. "consumes": [
  955. "application/json"
  956. ],
  957. "tags": [
  958. "用户模块"
  959. ],
  960. "summary": "获取邮箱验证码",
  961. "parameters": [
  962. {
  963. "type": "string",
  964. "description": "微信登录后获取到的token",
  965. "name": "Authorization",
  966. "in": "header",
  967. "required": true
  968. },
  969. {
  970. "type": "string",
  971. "description": "电子邮箱账号",
  972. "name": "email",
  973. "in": "query",
  974. "required": true
  975. }
  976. ],
  977. "responses": {
  978. "200": {
  979. "description": "OK",
  980. "schema": {
  981. "type": "string"
  982. }
  983. },
  984. "400": {
  985. "description": "Bad Request",
  986. "schema": {
  987. "type": "string"
  988. }
  989. }
  990. }
  991. }
  992. },
  993. "/user/get_last_apply_record": {
  994. "get": {
  995. "security": [
  996. {
  997. "ApiKeyAuth": []
  998. }
  999. ],
  1000. "description": "获取最近一条申请单信息",
  1001. "consumes": [
  1002. "application/json"
  1003. ],
  1004. "tags": [
  1005. "用户模块"
  1006. ],
  1007. "summary": "获取最近一条申请单信息",
  1008. "parameters": [
  1009. {
  1010. "type": "string",
  1011. "description": "微信登录后获取到的token",
  1012. "name": "Authorization",
  1013. "in": "header",
  1014. "required": true
  1015. }
  1016. ],
  1017. "responses": {
  1018. "200": {
  1019. "description": "获取成功",
  1020. "schema": {
  1021. "$ref": "#/definitions/user.Record"
  1022. }
  1023. },
  1024. "400": {
  1025. "description": "获取失败",
  1026. "schema": {
  1027. "type": "string"
  1028. }
  1029. }
  1030. }
  1031. }
  1032. },
  1033. "/user/get_sms_code": {
  1034. "get": {
  1035. "security": [
  1036. {
  1037. "ApiKeyAuth": []
  1038. }
  1039. ],
  1040. "description": "获取短信验证码接口",
  1041. "consumes": [
  1042. "application/json"
  1043. ],
  1044. "tags": [
  1045. "用户模块"
  1046. ],
  1047. "summary": "获取短信验证码",
  1048. "parameters": [
  1049. {
  1050. "type": "string",
  1051. "description": "微信登录后获取到的token",
  1052. "name": "Authorization",
  1053. "in": "header",
  1054. "required": true
  1055. },
  1056. {
  1057. "type": "string",
  1058. "description": "手机号",
  1059. "name": "mobile",
  1060. "in": "query",
  1061. "required": true
  1062. },
  1063. {
  1064. "type": "string",
  1065. "description": "手机国际区号(中国大陆:86)",
  1066. "name": "area_num",
  1067. "in": "query",
  1068. "required": true
  1069. }
  1070. ],
  1071. "responses": {
  1072. "200": {
  1073. "description": "OK",
  1074. "schema": {
  1075. "type": "string"
  1076. }
  1077. },
  1078. "400": {
  1079. "description": "Bad Request",
  1080. "schema": {
  1081. "type": "string"
  1082. }
  1083. }
  1084. }
  1085. }
  1086. },
  1087. "/user/get_tab_bar": {
  1088. "get": {
  1089. "security": [
  1090. {
  1091. "ApiKeyAuth": []
  1092. }
  1093. ],
  1094. "description": "获取用户的菜单栏权限",
  1095. "consumes": [
  1096. "application/json"
  1097. ],
  1098. "tags": [
  1099. "用户模块"
  1100. ],
  1101. "summary": "获取用户的菜单栏权限",
  1102. "parameters": [
  1103. {
  1104. "type": "string",
  1105. "description": "微信登录后获取到的token",
  1106. "name": "Authorization",
  1107. "in": "header",
  1108. "required": true
  1109. }
  1110. ],
  1111. "responses": {
  1112. "200": {
  1113. "description": "获取成功",
  1114. "schema": {
  1115. "type": "array",
  1116. "items": {
  1117. "type": "string"
  1118. }
  1119. }
  1120. },
  1121. "400": {
  1122. "description": "获取失败",
  1123. "schema": {
  1124. "type": "string"
  1125. }
  1126. }
  1127. }
  1128. }
  1129. },
  1130. "/user/info": {
  1131. "get": {
  1132. "security": [
  1133. {
  1134. "ApiKeyAuth": []
  1135. }
  1136. ],
  1137. "description": "我的详情",
  1138. "consumes": [
  1139. "application/json"
  1140. ],
  1141. "tags": [
  1142. "用户模块"
  1143. ],
  1144. "summary": "我的详情",
  1145. "parameters": [
  1146. {
  1147. "type": "string",
  1148. "description": "微信登录后获取到的token",
  1149. "name": "Authorization",
  1150. "in": "header",
  1151. "required": true
  1152. }
  1153. ],
  1154. "responses": {
  1155. "200": {
  1156. "description": "获取成功",
  1157. "schema": {
  1158. "$ref": "#/definitions/user.Detail"
  1159. }
  1160. },
  1161. "400": {
  1162. "description": "获取失败",
  1163. "schema": {
  1164. "type": "string"
  1165. }
  1166. }
  1167. }
  1168. }
  1169. },
  1170. "/user/login": {
  1171. "post": {
  1172. "security": [
  1173. {
  1174. "ApiKeyAuth": []
  1175. }
  1176. ],
  1177. "description": "用户手机号/邮箱登录",
  1178. "consumes": [
  1179. "application/json"
  1180. ],
  1181. "tags": [
  1182. "用户模块"
  1183. ],
  1184. "summary": "用户登录",
  1185. "parameters": [
  1186. {
  1187. "type": "string",
  1188. "description": "微信登录后获取到的token",
  1189. "name": "Authorization",
  1190. "in": "header",
  1191. "required": true
  1192. },
  1193. {
  1194. "description": "请求参数",
  1195. "name": "data",
  1196. "in": "body",
  1197. "required": true,
  1198. "schema": {
  1199. "$ref": "#/definitions/user.LoginReq"
  1200. }
  1201. }
  1202. ],
  1203. "responses": {
  1204. "200": {
  1205. "description": "OK",
  1206. "schema": {
  1207. "$ref": "#/definitions/user.LoginResp"
  1208. }
  1209. }
  1210. }
  1211. }
  1212. },
  1213. "/wechat/getEncryptInfo": {
  1214. "post": {
  1215. "description": "消息解密",
  1216. "consumes": [
  1217. "application/json"
  1218. ],
  1219. "tags": [
  1220. "微信相关接口"
  1221. ],
  1222. "summary": "消息解密",
  1223. "parameters": [
  1224. {
  1225. "type": "string",
  1226. "description": "加密数据",
  1227. "name": "encryptedData",
  1228. "in": "query",
  1229. "required": true
  1230. },
  1231. {
  1232. "type": "string",
  1233. "description": "加密算法初始向量",
  1234. "name": "iv",
  1235. "in": "query",
  1236. "required": true
  1237. }
  1238. ],
  1239. "responses": {
  1240. "200": {
  1241. "description": "获取成功",
  1242. "schema": {
  1243. "type": "string"
  1244. }
  1245. }
  1246. }
  1247. }
  1248. },
  1249. "/wechat/login": {
  1250. "get": {
  1251. "description": "微信登录",
  1252. "consumes": [
  1253. "application/json"
  1254. ],
  1255. "tags": [
  1256. "微信相关接口"
  1257. ],
  1258. "summary": "微信登录",
  1259. "parameters": [
  1260. {
  1261. "type": "string",
  1262. "description": "微信code",
  1263. "name": "code",
  1264. "in": "query",
  1265. "required": true
  1266. }
  1267. ],
  1268. "responses": {
  1269. "200": {
  1270. "description": "OK",
  1271. "schema": {
  1272. "$ref": "#/definitions/response.LoginResp"
  1273. }
  1274. }
  1275. }
  1276. }
  1277. }
  1278. },
  1279. "definitions": {
  1280. "activity.ActivityList": {
  1281. "type": "object",
  1282. "properties": {
  1283. "activityId": {
  1284. "type": "integer"
  1285. },
  1286. "activityName": {
  1287. "description": "活动名称",
  1288. "type": "string"
  1289. },
  1290. "activityState": {
  1291. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  1292. "type": "integer"
  1293. },
  1294. "activityTypeId": {
  1295. "description": "活动类型ID",
  1296. "type": "integer"
  1297. },
  1298. "activityTypeName": {
  1299. "description": "活动类型名称",
  1300. "type": "string"
  1301. },
  1302. "city": {
  1303. "description": "城市",
  1304. "type": "string"
  1305. },
  1306. "endTime": {
  1307. "description": "活动结束时间",
  1308. "type": "string"
  1309. },
  1310. "firstActivityTypeId": {
  1311. "description": "第一级的活动类型ID",
  1312. "type": "integer"
  1313. },
  1314. "firstActivityTypeName": {
  1315. "description": "第一级的活动类型名称",
  1316. "type": "string"
  1317. },
  1318. "hasPlayBack": {
  1319. "description": "是否有回放",
  1320. "type": "integer"
  1321. },
  1322. "hasRemind": {
  1323. "description": "是否已提醒",
  1324. "type": "integer"
  1325. },
  1326. "registerState": {
  1327. "description": "报名状态 0-取消报名 1-已报名",
  1328. "type": "integer"
  1329. },
  1330. "speaker": {
  1331. "description": "主讲人",
  1332. "type": "string"
  1333. },
  1334. "speakerBackgroundPic": {
  1335. "description": "主讲人背景图",
  1336. "type": "string"
  1337. },
  1338. "speakerHeadPic": {
  1339. "description": "主讲人头像",
  1340. "type": "string"
  1341. },
  1342. "startTime": {
  1343. "description": "活动开始时间",
  1344. "type": "string"
  1345. },
  1346. "voiceList": {
  1347. "description": "音频列表",
  1348. "type": "array",
  1349. "items": {
  1350. "$ref": "#/definitions/yb_activity_voice.YbActivityVoice"
  1351. }
  1352. },
  1353. "weekString": {
  1354. "description": "周几",
  1355. "type": "string"
  1356. }
  1357. }
  1358. },
  1359. "activity.RegisterCheckInfo": {
  1360. "type": "object",
  1361. "properties": {
  1362. "msg": {
  1363. "type": "string"
  1364. },
  1365. "specific": {
  1366. "type": "integer"
  1367. },
  1368. "type": {
  1369. "type": "string"
  1370. }
  1371. }
  1372. },
  1373. "activity.RemindCheckInfo": {
  1374. "type": "object",
  1375. "properties": {
  1376. "msg": {
  1377. "type": "string"
  1378. },
  1379. "specific": {
  1380. "type": "integer"
  1381. },
  1382. "type": {
  1383. "type": "string"
  1384. }
  1385. }
  1386. },
  1387. "admin.Admin": {
  1388. "type": "object",
  1389. "properties": {
  1390. "adminName": {
  1391. "type": "string"
  1392. },
  1393. "authority": {
  1394. "description": "管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员",
  1395. "type": "integer"
  1396. },
  1397. "createdTime": {
  1398. "description": "创建时间",
  1399. "type": "string"
  1400. },
  1401. "departmentId": {
  1402. "description": "部门id",
  1403. "type": "integer"
  1404. },
  1405. "departmentName": {
  1406. "description": "部门名称",
  1407. "type": "string"
  1408. },
  1409. "email": {
  1410. "type": "string"
  1411. },
  1412. "enabled": {
  1413. "description": "1:有效,0:禁用",
  1414. "type": "integer"
  1415. },
  1416. "groupId": {
  1417. "description": "分组id",
  1418. "type": "integer"
  1419. },
  1420. "groupName": {
  1421. "description": "分组名称",
  1422. "type": "string"
  1423. },
  1424. "lastLoginTime": {
  1425. "description": "最近登陆时间",
  1426. "type": "string"
  1427. },
  1428. "lastUpdatedPasswordTime": {
  1429. "type": "string"
  1430. },
  1431. "lastUpdatedTime": {
  1432. "type": "string"
  1433. },
  1434. "mobile": {
  1435. "description": "手机号",
  1436. "type": "string"
  1437. },
  1438. "password": {
  1439. "type": "string"
  1440. },
  1441. "position": {
  1442. "description": "职位",
  1443. "type": "string"
  1444. },
  1445. "realName": {
  1446. "type": "string"
  1447. },
  1448. "role": {
  1449. "description": "用户角色",
  1450. "type": "string"
  1451. },
  1452. "roleId": {
  1453. "description": "角色id",
  1454. "type": "integer"
  1455. },
  1456. "roleName": {
  1457. "description": "角色名称",
  1458. "type": "string"
  1459. },
  1460. "roleType": {
  1461. "description": "角色类型:1需要录入指标,0:不需要",
  1462. "type": "integer"
  1463. },
  1464. "roleTypeCode": {
  1465. "description": "角色编码",
  1466. "type": "string"
  1467. }
  1468. }
  1469. },
  1470. "chart_edb_mapping.ChartEdbInfoMapping": {
  1471. "type": "object",
  1472. "properties": {
  1473. "chartColor": {
  1474. "type": "string"
  1475. },
  1476. "chartEdbMappingId": {
  1477. "type": "integer"
  1478. },
  1479. "chartInfoId": {
  1480. "type": "integer"
  1481. },
  1482. "chartStyle": {
  1483. "type": "string"
  1484. },
  1485. "chartWidth": {
  1486. "type": "number"
  1487. },
  1488. "dataList": {},
  1489. "edbCode": {
  1490. "type": "string"
  1491. },
  1492. "edbInfoId": {
  1493. "type": "integer"
  1494. },
  1495. "edbInfoType": {
  1496. "type": "integer"
  1497. },
  1498. "edbName": {
  1499. "type": "string"
  1500. },
  1501. "edbType": {
  1502. "type": "integer"
  1503. },
  1504. "endDate": {
  1505. "type": "string"
  1506. },
  1507. "frequency": {
  1508. "type": "string"
  1509. },
  1510. "isAxis": {
  1511. "type": "integer"
  1512. },
  1513. "isOrder": {
  1514. "type": "boolean"
  1515. },
  1516. "latestDate": {
  1517. "type": "string"
  1518. },
  1519. "latestValue": {
  1520. "type": "number"
  1521. },
  1522. "leadUnit": {
  1523. "type": "string"
  1524. },
  1525. "leadValue": {
  1526. "type": "integer"
  1527. },
  1528. "maxData": {
  1529. "type": "number"
  1530. },
  1531. "minData": {
  1532. "type": "number"
  1533. },
  1534. "modifyTime": {
  1535. "type": "string"
  1536. },
  1537. "source": {
  1538. "type": "integer"
  1539. },
  1540. "sourceName": {
  1541. "type": "string"
  1542. },
  1543. "startDate": {
  1544. "type": "string"
  1545. },
  1546. "uniqueCode": {
  1547. "type": "string"
  1548. },
  1549. "unit": {
  1550. "type": "string"
  1551. }
  1552. }
  1553. },
  1554. "chart_info.ChartInfoDetailResp": {
  1555. "type": "object",
  1556. "properties": {
  1557. "chartInfo": {
  1558. "$ref": "#/definitions/chart_info.ChartInfoView"
  1559. },
  1560. "edbInfoList": {
  1561. "type": "array",
  1562. "items": {
  1563. "$ref": "#/definitions/chart_edb_mapping.ChartEdbInfoMapping"
  1564. }
  1565. }
  1566. }
  1567. },
  1568. "chart_info.ChartInfoView": {
  1569. "type": "object",
  1570. "properties": {
  1571. "calendar": {
  1572. "type": "string"
  1573. },
  1574. "chartClassifyId": {
  1575. "type": "integer"
  1576. },
  1577. "chartClassifyName": {
  1578. "type": "string"
  1579. },
  1580. "chartImage": {
  1581. "type": "string"
  1582. },
  1583. "chartInfoId": {
  1584. "type": "integer"
  1585. },
  1586. "chartName": {
  1587. "type": "string"
  1588. },
  1589. "chartType": {
  1590. "type": "integer"
  1591. },
  1592. "createTime": {
  1593. "type": "string"
  1594. },
  1595. "dateType": {
  1596. "type": "integer"
  1597. },
  1598. "edbEndDate": {
  1599. "type": "string"
  1600. },
  1601. "edbInfoIds": {
  1602. "type": "string"
  1603. },
  1604. "endDate": {
  1605. "type": "string"
  1606. },
  1607. "isAdd": {
  1608. "type": "boolean"
  1609. },
  1610. "isSetName": {
  1611. "type": "integer"
  1612. },
  1613. "leftMax": {
  1614. "type": "string"
  1615. },
  1616. "leftMin": {
  1617. "type": "string"
  1618. },
  1619. "modifyTime": {
  1620. "type": "string"
  1621. },
  1622. "myChartClassifyId": {
  1623. "type": "string"
  1624. },
  1625. "myChartId": {
  1626. "type": "integer"
  1627. },
  1628. "rightMax": {
  1629. "type": "string"
  1630. },
  1631. "rightMin": {
  1632. "type": "string"
  1633. },
  1634. "seasonEndDate": {
  1635. "type": "string"
  1636. },
  1637. "seasonStartDate": {
  1638. "type": "string"
  1639. },
  1640. "sort": {
  1641. "type": "integer"
  1642. },
  1643. "startDate": {
  1644. "type": "string"
  1645. },
  1646. "sysUserId": {
  1647. "type": "integer"
  1648. },
  1649. "sysUserRealName": {
  1650. "type": "string"
  1651. },
  1652. "uniqueCode": {
  1653. "type": "string"
  1654. }
  1655. }
  1656. },
  1657. "chart_info.ChartSaveItem": {
  1658. "type": "object",
  1659. "properties": {
  1660. "chartColor": {
  1661. "type": "string"
  1662. },
  1663. "chartStyle": {
  1664. "type": "string"
  1665. },
  1666. "chartWidth": {
  1667. "type": "number"
  1668. },
  1669. "edbInfoId": {
  1670. "type": "integer"
  1671. },
  1672. "edbInfoType": {
  1673. "type": "integer"
  1674. },
  1675. "isAxis": {
  1676. "type": "integer"
  1677. },
  1678. "isOrder": {
  1679. "type": "boolean"
  1680. },
  1681. "leadUnit": {
  1682. "type": "string"
  1683. },
  1684. "leadValue": {
  1685. "type": "integer"
  1686. },
  1687. "maxData": {
  1688. "type": "number"
  1689. },
  1690. "minData": {
  1691. "type": "number"
  1692. }
  1693. }
  1694. },
  1695. "chart_info.SaveChartInfoReq": {
  1696. "type": "object",
  1697. "properties": {
  1698. "calendar": {
  1699. "type": "string"
  1700. },
  1701. "chartEdbInfoList": {
  1702. "type": "array",
  1703. "items": {
  1704. "$ref": "#/definitions/chart_info.ChartSaveItem"
  1705. }
  1706. },
  1707. "chartInfoId": {
  1708. "type": "integer"
  1709. },
  1710. "dateType": {
  1711. "type": "integer"
  1712. },
  1713. "endDate": {
  1714. "type": "string"
  1715. },
  1716. "leftMax": {
  1717. "type": "string"
  1718. },
  1719. "leftMin": {
  1720. "type": "string"
  1721. },
  1722. "rightMax": {
  1723. "type": "string"
  1724. },
  1725. "rightMin": {
  1726. "type": "string"
  1727. },
  1728. "seasonEndDate": {
  1729. "type": "string"
  1730. },
  1731. "seasonStartDate": {
  1732. "type": "string"
  1733. },
  1734. "startDate": {
  1735. "type": "string"
  1736. }
  1737. }
  1738. },
  1739. "logic.ApplyVariety": {
  1740. "type": "object",
  1741. "properties": {
  1742. "name": {
  1743. "type": "string"
  1744. },
  1745. "permission_name": {
  1746. "type": "string"
  1747. },
  1748. "pic_url": {
  1749. "type": "string"
  1750. }
  1751. }
  1752. },
  1753. "my_chart.MoveMyChartClassifyReq": {
  1754. "type": "object",
  1755. "properties": {
  1756. "myChartClassifyId": {
  1757. "type": "integer"
  1758. },
  1759. "nextClassifyId": {
  1760. "type": "integer"
  1761. },
  1762. "prevClassifyId": {
  1763. "type": "integer"
  1764. }
  1765. }
  1766. },
  1767. "my_chart.MoveMyChartReq": {
  1768. "type": "object",
  1769. "properties": {
  1770. "myChartClassifyId": {
  1771. "type": "integer"
  1772. },
  1773. "myChartId": {
  1774. "type": "integer"
  1775. },
  1776. "nextMyChartId": {
  1777. "type": "integer"
  1778. },
  1779. "prevMyChartId": {
  1780. "type": "integer"
  1781. }
  1782. }
  1783. },
  1784. "my_chart.MyChartClassifyListResp": {
  1785. "type": "object",
  1786. "properties": {
  1787. "private_classify": {
  1788. "type": "array",
  1789. "items": {
  1790. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  1791. }
  1792. },
  1793. "public_classify": {
  1794. "type": "array",
  1795. "items": {
  1796. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  1797. }
  1798. }
  1799. }
  1800. },
  1801. "my_chart.MyChartList": {
  1802. "type": "object",
  1803. "properties": {
  1804. "calendar": {
  1805. "type": "string"
  1806. },
  1807. "chartClassifyId": {
  1808. "type": "integer"
  1809. },
  1810. "chartImage": {
  1811. "type": "string"
  1812. },
  1813. "chartInfoId": {
  1814. "type": "integer"
  1815. },
  1816. "chartName": {
  1817. "type": "string"
  1818. },
  1819. "chartType": {
  1820. "type": "integer"
  1821. },
  1822. "createTime": {
  1823. "type": "string"
  1824. },
  1825. "dateType": {
  1826. "type": "integer"
  1827. },
  1828. "edbEndDate": {
  1829. "type": "string"
  1830. },
  1831. "edbInfoIds": {
  1832. "type": "string"
  1833. },
  1834. "endDate": {
  1835. "type": "string"
  1836. },
  1837. "isAdd": {
  1838. "type": "boolean"
  1839. },
  1840. "isSetName": {
  1841. "type": "integer"
  1842. },
  1843. "modifyTime": {
  1844. "type": "string"
  1845. },
  1846. "myChartClassifyId": {
  1847. "type": "string"
  1848. },
  1849. "myChartClassifyName": {
  1850. "type": "string"
  1851. },
  1852. "myChartId": {
  1853. "type": "integer"
  1854. },
  1855. "seasonEndDate": {
  1856. "type": "string"
  1857. },
  1858. "seasonStartDate": {
  1859. "type": "string"
  1860. },
  1861. "sort": {
  1862. "type": "integer"
  1863. },
  1864. "startDate": {
  1865. "type": "string"
  1866. },
  1867. "sysUserId": {
  1868. "type": "integer"
  1869. },
  1870. "sysUserRealName": {
  1871. "type": "string"
  1872. },
  1873. "uniqueCode": {
  1874. "type": "string"
  1875. }
  1876. }
  1877. },
  1878. "my_chart_classify.MyChartClassify": {
  1879. "type": "object",
  1880. "properties": {
  1881. "adminId": {
  1882. "description": "用户id",
  1883. "type": "integer"
  1884. },
  1885. "companyPublicTime": {
  1886. "description": "用户可见公开时间",
  1887. "type": "string"
  1888. },
  1889. "createTime": {
  1890. "type": "string"
  1891. },
  1892. "isCompanyPublic": {
  1893. "description": "是否用户可见:0-否 1-是",
  1894. "type": "integer"
  1895. },
  1896. "isPublic": {
  1897. "description": "是否所有人可见,0:仅自己可见,1:所有人可见",
  1898. "type": "integer"
  1899. },
  1900. "modifyTime": {
  1901. "type": "string"
  1902. },
  1903. "myChartClassifyId": {
  1904. "type": "integer"
  1905. },
  1906. "myChartClassifyName": {
  1907. "description": "分类名称",
  1908. "type": "string"
  1909. },
  1910. "publicTime": {
  1911. "description": "公开时间",
  1912. "type": "string"
  1913. },
  1914. "sort": {
  1915. "description": "排序字段,值越小,越靠前",
  1916. "type": "integer"
  1917. }
  1918. }
  1919. },
  1920. "response.LoginResp": {
  1921. "type": "object",
  1922. "properties": {
  1923. "authorization": {
  1924. "type": "string"
  1925. },
  1926. "is_bind": {
  1927. "type": "boolean"
  1928. },
  1929. "user_id": {
  1930. "type": "integer"
  1931. }
  1932. }
  1933. },
  1934. "user.ApplyReq": {
  1935. "type": "object",
  1936. "properties": {
  1937. "business_card_url": {
  1938. "type": "string"
  1939. },
  1940. "company_name": {
  1941. "type": "string"
  1942. },
  1943. "permission": {
  1944. "type": "string"
  1945. },
  1946. "real_name": {
  1947. "type": "string"
  1948. },
  1949. "source": {
  1950. "type": "integer"
  1951. }
  1952. }
  1953. },
  1954. "user.CompanyPermission": {
  1955. "type": "object",
  1956. "properties": {
  1957. "name": {
  1958. "type": "string"
  1959. },
  1960. "permission_list": {
  1961. "type": "array",
  1962. "items": {
  1963. "$ref": "#/definitions/user.PermissionList"
  1964. }
  1965. }
  1966. }
  1967. },
  1968. "user.Detail": {
  1969. "type": "object",
  1970. "properties": {
  1971. "admin_info": {
  1972. "$ref": "#/definitions/admin.Admin"
  1973. },
  1974. "company_name": {
  1975. "type": "string"
  1976. },
  1977. "email": {
  1978. "type": "string"
  1979. },
  1980. "is_inner": {
  1981. "type": "integer"
  1982. },
  1983. "is_suspend": {
  1984. "type": "integer"
  1985. },
  1986. "mobile": {
  1987. "type": "string"
  1988. },
  1989. "permission_list": {
  1990. "type": "array",
  1991. "items": {
  1992. "$ref": "#/definitions/user.CompanyPermission"
  1993. }
  1994. },
  1995. "real_name": {
  1996. "type": "string"
  1997. },
  1998. "seal_mobile": {
  1999. "type": "string"
  2000. },
  2001. "seal_name": {
  2002. "type": "string"
  2003. },
  2004. "status": {
  2005. "type": "string"
  2006. }
  2007. }
  2008. },
  2009. "user.LoginReq": {
  2010. "type": "object",
  2011. "properties": {
  2012. "area_num": {
  2013. "type": "integer"
  2014. },
  2015. "bind_type": {
  2016. "type": "integer"
  2017. },
  2018. "email": {
  2019. "type": "string"
  2020. },
  2021. "mobile": {
  2022. "type": "string"
  2023. },
  2024. "verify_code": {
  2025. "type": "string"
  2026. }
  2027. }
  2028. },
  2029. "user.LoginResp": {
  2030. "type": "object",
  2031. "properties": {
  2032. "email": {
  2033. "type": "string"
  2034. },
  2035. "mobile": {
  2036. "type": "string"
  2037. },
  2038. "token": {
  2039. "type": "string"
  2040. },
  2041. "user_id": {
  2042. "type": "integer"
  2043. }
  2044. }
  2045. },
  2046. "user.PermissionList": {
  2047. "type": "object",
  2048. "properties": {
  2049. "end_date": {
  2050. "type": "string"
  2051. },
  2052. "name": {
  2053. "type": "string"
  2054. },
  2055. "start_date": {
  2056. "type": "string"
  2057. },
  2058. "status": {
  2059. "type": "string"
  2060. }
  2061. }
  2062. },
  2063. "user.Record": {
  2064. "type": "object",
  2065. "properties": {
  2066. "business_card_url": {
  2067. "type": "string"
  2068. },
  2069. "company_name": {
  2070. "type": "string"
  2071. },
  2072. "mobile": {
  2073. "type": "string"
  2074. },
  2075. "real_name": {
  2076. "type": "string"
  2077. }
  2078. }
  2079. },
  2080. "yb_activity.ActivityDetail": {
  2081. "type": "object",
  2082. "properties": {
  2083. "activityId": {
  2084. "type": "integer"
  2085. },
  2086. "activityName": {
  2087. "description": "活动名称",
  2088. "type": "string"
  2089. },
  2090. "activityState": {
  2091. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  2092. "type": "integer"
  2093. },
  2094. "activityTypeId": {
  2095. "description": "活动类型ID",
  2096. "type": "integer"
  2097. },
  2098. "activityTypeName": {
  2099. "description": "活动类型名称",
  2100. "type": "string"
  2101. },
  2102. "address": {
  2103. "description": "活动地址",
  2104. "type": "string"
  2105. },
  2106. "americaTel": {
  2107. "description": "美国拨入",
  2108. "type": "string"
  2109. },
  2110. "city": {
  2111. "description": "城市",
  2112. "type": "string"
  2113. },
  2114. "endTime": {
  2115. "description": "活动结束时间",
  2116. "type": "string"
  2117. },
  2118. "firstActivityTypeId": {
  2119. "description": "第一级的活动类型ID",
  2120. "type": "integer"
  2121. },
  2122. "firstActivityTypeName": {
  2123. "description": "第一级的活动类型名称",
  2124. "type": "string"
  2125. },
  2126. "hasPlayBack": {
  2127. "description": "是否有回放",
  2128. "type": "integer"
  2129. },
  2130. "hasRemind": {
  2131. "description": "是否已提醒",
  2132. "type": "integer"
  2133. },
  2134. "hongKongTel": {
  2135. "description": "香港拨入",
  2136. "type": "string"
  2137. },
  2138. "isLimitPeople": {
  2139. "description": "是否限制人数 1是,0否",
  2140. "type": "integer"
  2141. },
  2142. "limitPeopleNum": {
  2143. "description": "限制人数数量",
  2144. "type": "integer"
  2145. },
  2146. "linkParticipants": {
  2147. "description": "参会链接",
  2148. "type": "string"
  2149. },
  2150. "mainlandTel": {
  2151. "description": "大陆拨入",
  2152. "type": "string"
  2153. },
  2154. "participationCode": {
  2155. "description": "参会密码",
  2156. "type": "string"
  2157. },
  2158. "registerState": {
  2159. "description": "报名状态 0-取消报名 1-已报名",
  2160. "type": "integer"
  2161. },
  2162. "registeredNum": {
  2163. "description": "已报名人数",
  2164. "type": "integer"
  2165. },
  2166. "reportLink": {
  2167. "description": "报告链接",
  2168. "type": "string"
  2169. },
  2170. "reportName": {
  2171. "description": "报告名称",
  2172. "type": "string"
  2173. },
  2174. "singaporeTel": {
  2175. "description": "新加坡拨入",
  2176. "type": "string"
  2177. },
  2178. "speaker": {
  2179. "description": "主讲人",
  2180. "type": "string"
  2181. },
  2182. "speakerBackgroundPic": {
  2183. "description": "主讲人背景图",
  2184. "type": "string"
  2185. },
  2186. "speakerHeadPic": {
  2187. "description": "主讲人头像",
  2188. "type": "string"
  2189. },
  2190. "startTime": {
  2191. "description": "活动开始时间",
  2192. "type": "string"
  2193. },
  2194. "taiwanTel": {
  2195. "description": "台湾拨入",
  2196. "type": "string"
  2197. },
  2198. "weekString": {
  2199. "description": "周几",
  2200. "type": "string"
  2201. }
  2202. }
  2203. },
  2204. "yb_activity_voice.YbActivityVoice": {
  2205. "type": "object",
  2206. "properties": {
  2207. "activityId": {
  2208. "description": "活动id",
  2209. "type": "integer"
  2210. },
  2211. "createTime": {
  2212. "type": "string"
  2213. },
  2214. "voiceName": {
  2215. "description": "音频名称",
  2216. "type": "string"
  2217. },
  2218. "voicePlaySeconds": {
  2219. "description": "音频时长",
  2220. "type": "string"
  2221. },
  2222. "voiceUrl": {
  2223. "description": "音频地址",
  2224. "type": "string"
  2225. }
  2226. }
  2227. }
  2228. }
  2229. }`
  2230. type swaggerInfo struct {
  2231. Version string
  2232. Host string
  2233. BasePath string
  2234. Schemes []string
  2235. Title string
  2236. Description string
  2237. }
  2238. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2239. var SwaggerInfo = swaggerInfo{
  2240. Version: "1.0",
  2241. Host: "127.0.0.1:8607",
  2242. BasePath: "/",
  2243. Schemes: []string{},
  2244. Title: "弘则研报API接口文档",
  2245. Description: "这是弘则研报API接口文档",
  2246. }
  2247. type s struct{}
  2248. func (s *s) ReadDoc() string {
  2249. sInfo := SwaggerInfo
  2250. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  2251. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  2252. "marshal": func(v interface{}) string {
  2253. a, _ := json.Marshal(v)
  2254. return string(a)
  2255. },
  2256. "escape": func(v interface{}) string {
  2257. // escape tabs
  2258. str := strings.Replace(v.(string), "\t", "\\t", -1)
  2259. // replace " with \", and if that results in \\", replace that with \\\"
  2260. str = strings.Replace(str, "\"", "\\\"", -1)
  2261. return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
  2262. },
  2263. }).Parse(doc)
  2264. if err != nil {
  2265. return doc
  2266. }
  2267. var tpl bytes.Buffer
  2268. if err := t.Execute(&tpl, sInfo); err != nil {
  2269. return doc
  2270. }
  2271. return tpl.String()
  2272. }
  2273. func init() {
  2274. swag.Register("swagger", &s{})
  2275. }