docs.go 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071
  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. "/company/permission/tree": {
  569. "get": {
  570. "security": [
  571. {
  572. "ApiKeyAuth": []
  573. }
  574. ],
  575. "description": "获取FICC品种权限列表",
  576. "consumes": [
  577. "application/json"
  578. ],
  579. "tags": [
  580. "客户模块"
  581. ],
  582. "summary": "获取FICC品种权限列表",
  583. "parameters": [
  584. {
  585. "type": "string",
  586. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  587. "name": "Authorization",
  588. "in": "header",
  589. "required": true
  590. }
  591. ],
  592. "responses": {
  593. "200": {
  594. "description": "OK",
  595. "schema": {
  596. "type": "array",
  597. "items": {
  598. "$ref": "#/definitions/company.FiccPermissionList"
  599. }
  600. }
  601. },
  602. "400": {
  603. "description": "获取失败",
  604. "schema": {
  605. "type": "string"
  606. }
  607. }
  608. }
  609. }
  610. },
  611. "/getWxJsConf": {
  612. "get": {
  613. "description": "微信获取签名接口",
  614. "parameters": [
  615. {
  616. "type": "string",
  617. "description": "url地址",
  618. "name": "Url",
  619. "in": "query",
  620. "required": true
  621. }
  622. ],
  623. "responses": {
  624. "200": {
  625. "description": "获取成功",
  626. "schema": {
  627. "type": "string"
  628. }
  629. }
  630. }
  631. }
  632. },
  633. "/my_chart/editChartInfo": {
  634. "post": {
  635. "security": [
  636. {
  637. "ApiKeyAuth": []
  638. }
  639. ],
  640. "description": "编辑图表信息",
  641. "consumes": [
  642. "application/json"
  643. ],
  644. "tags": [
  645. "图库模块"
  646. ],
  647. "summary": "编辑图表信息",
  648. "parameters": [
  649. {
  650. "type": "string",
  651. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  652. "name": "Authorization",
  653. "in": "header",
  654. "required": true
  655. },
  656. {
  657. "description": "请求参数",
  658. "name": "data",
  659. "in": "body",
  660. "required": true,
  661. "schema": {
  662. "$ref": "#/definitions/chart_info.SaveChartInfoReq"
  663. }
  664. }
  665. ],
  666. "responses": {
  667. "200": {
  668. "description": "操作成功",
  669. "schema": {
  670. "type": "string"
  671. }
  672. },
  673. "400": {
  674. "description": "操作失败",
  675. "schema": {
  676. "type": "string"
  677. }
  678. }
  679. }
  680. }
  681. },
  682. "/my_chart/getChartBeforeAndNext": {
  683. "get": {
  684. "security": [
  685. {
  686. "ApiKeyAuth": []
  687. }
  688. ],
  689. "description": "获取当前图表上一张及下一张信息",
  690. "consumes": [
  691. "application/json"
  692. ],
  693. "tags": [
  694. "图库模块"
  695. ],
  696. "summary": "获取当前图表上一张及下一张信息",
  697. "parameters": [
  698. {
  699. "type": "string",
  700. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  701. "name": "Authorization",
  702. "in": "header",
  703. "required": true
  704. },
  705. {
  706. "type": "string",
  707. "description": "我的图表ID",
  708. "name": "MyChartId",
  709. "in": "query"
  710. },
  711. {
  712. "type": "string",
  713. "description": "我的图表分类ID",
  714. "name": "MyChartClassifyId",
  715. "in": "query"
  716. }
  717. ],
  718. "responses": {
  719. "200": {
  720. "description": "OK",
  721. "schema": {
  722. "$ref": "#/definitions/chart_info.ChartBeforeNext"
  723. }
  724. },
  725. "400": {
  726. "description": "获取失败",
  727. "schema": {
  728. "type": "string"
  729. }
  730. }
  731. }
  732. }
  733. },
  734. "/my_chart/getChartInfoDetail": {
  735. "get": {
  736. "security": [
  737. {
  738. "ApiKeyAuth": []
  739. }
  740. ],
  741. "description": "获取图表详情",
  742. "consumes": [
  743. "application/json"
  744. ],
  745. "tags": [
  746. "图库模块"
  747. ],
  748. "summary": "获取图表详情",
  749. "parameters": [
  750. {
  751. "type": "string",
  752. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  753. "name": "Authorization",
  754. "in": "header",
  755. "required": true
  756. },
  757. {
  758. "type": "string",
  759. "description": "时间段:1-00年至今; 2-10年至今; 3-15年至今; 4-21年至今; 5-指定区间; 6-指定年月至今; 7-18年至今; 8-19年至今; 9-20年至今",
  760. "name": "DateType",
  761. "in": "query"
  762. },
  763. {
  764. "type": "string",
  765. "description": "图表分类ID",
  766. "name": "ClassifyId",
  767. "in": "query"
  768. }
  769. ],
  770. "responses": {
  771. "200": {
  772. "description": "OK",
  773. "schema": {
  774. "$ref": "#/definitions/chart_info.ChartInfoDetailResp"
  775. }
  776. },
  777. "400": {
  778. "description": "图表详情获取失败",
  779. "schema": {
  780. "type": "string"
  781. }
  782. }
  783. }
  784. }
  785. },
  786. "/my_chart/moveMyChart": {
  787. "post": {
  788. "security": [
  789. {
  790. "ApiKeyAuth": []
  791. }
  792. ],
  793. "description": "移动我的图表",
  794. "consumes": [
  795. "application/json"
  796. ],
  797. "tags": [
  798. "图库模块"
  799. ],
  800. "summary": "移动我的图表",
  801. "parameters": [
  802. {
  803. "type": "string",
  804. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  805. "name": "Authorization",
  806. "in": "header",
  807. "required": true
  808. },
  809. {
  810. "description": "请求参数",
  811. "name": "data",
  812. "in": "body",
  813. "required": true,
  814. "schema": {
  815. "$ref": "#/definitions/my_chart.MoveMyChartReq"
  816. }
  817. }
  818. ],
  819. "responses": {
  820. "200": {
  821. "description": "操作成功",
  822. "schema": {
  823. "type": "string"
  824. }
  825. },
  826. "400": {
  827. "description": "操作失败",
  828. "schema": {
  829. "type": "string"
  830. }
  831. }
  832. }
  833. }
  834. },
  835. "/my_chart/moveMyChartClassify": {
  836. "post": {
  837. "security": [
  838. {
  839. "ApiKeyAuth": []
  840. }
  841. ],
  842. "description": "移动我的图表分类",
  843. "consumes": [
  844. "application/json"
  845. ],
  846. "tags": [
  847. "图库模块"
  848. ],
  849. "summary": "移动我的图表分类",
  850. "parameters": [
  851. {
  852. "type": "string",
  853. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  854. "name": "Authorization",
  855. "in": "header",
  856. "required": true
  857. },
  858. {
  859. "description": "请求参数",
  860. "name": "data",
  861. "in": "body",
  862. "required": true,
  863. "schema": {
  864. "$ref": "#/definitions/my_chart.MoveMyChartClassifyReq"
  865. }
  866. }
  867. ],
  868. "responses": {
  869. "200": {
  870. "description": "操作成功",
  871. "schema": {
  872. "type": "string"
  873. }
  874. },
  875. "400": {
  876. "description": "操作失败",
  877. "schema": {
  878. "type": "string"
  879. }
  880. }
  881. }
  882. }
  883. },
  884. "/my_chart/refreshChartInfo": {
  885. "post": {
  886. "security": [
  887. {
  888. "ApiKeyAuth": []
  889. }
  890. ],
  891. "description": "刷新图表信息",
  892. "consumes": [
  893. "application/json"
  894. ],
  895. "tags": [
  896. "图库模块"
  897. ],
  898. "summary": "刷新图表信息",
  899. "parameters": [
  900. {
  901. "type": "string",
  902. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  903. "name": "Authorization",
  904. "in": "header",
  905. "required": true
  906. },
  907. {
  908. "description": "请求参数",
  909. "name": "data",
  910. "in": "body",
  911. "required": true,
  912. "schema": {
  913. "$ref": "#/definitions/chart_info.SaveChartInfoReq"
  914. }
  915. }
  916. ],
  917. "responses": {
  918. "200": {
  919. "description": "操作成功",
  920. "schema": {
  921. "type": "string"
  922. }
  923. },
  924. "400": {
  925. "description": "操作失败",
  926. "schema": {
  927. "type": "string"
  928. }
  929. }
  930. }
  931. }
  932. },
  933. "/public/get_apply_variety_list": {
  934. "get": {
  935. "security": [
  936. {
  937. "ApiKeyAuth": []
  938. }
  939. ],
  940. "description": "获取所有可以申请的品种权限列表",
  941. "consumes": [
  942. "application/json"
  943. ],
  944. "tags": [
  945. "公共模块"
  946. ],
  947. "summary": "获取所有可以申请的品种权限列表",
  948. "parameters": [
  949. {
  950. "type": "string",
  951. "description": "微信登录后获取到的token",
  952. "name": "Authorization",
  953. "in": "header",
  954. "required": true
  955. }
  956. ],
  957. "responses": {
  958. "200": {
  959. "description": "获取成功",
  960. "schema": {
  961. "type": "array",
  962. "items": {
  963. "$ref": "#/definitions/logic.ApplyVariety"
  964. }
  965. }
  966. },
  967. "400": {
  968. "description": "获取失败",
  969. "schema": {
  970. "type": "string"
  971. }
  972. }
  973. }
  974. }
  975. },
  976. "/public/get_share_poster": {
  977. "post": {
  978. "security": [
  979. {
  980. "ApiKeyAuth": []
  981. }
  982. ],
  983. "description": "获取分享海报",
  984. "consumes": [
  985. "application/json"
  986. ],
  987. "tags": [
  988. "公共模块"
  989. ],
  990. "summary": "获取分享海报",
  991. "parameters": [
  992. {
  993. "description": "type json string",
  994. "name": "request",
  995. "in": "body",
  996. "required": true,
  997. "schema": {
  998. "$ref": "#/definitions/services.SharePosterReq"
  999. }
  1000. }
  1001. ],
  1002. "responses": {
  1003. "200": {
  1004. "description": "获取成功",
  1005. "schema": {
  1006. "type": "string"
  1007. }
  1008. },
  1009. "400": {
  1010. "description": "获取失败",
  1011. "schema": {
  1012. "type": "string"
  1013. }
  1014. }
  1015. }
  1016. }
  1017. },
  1018. "/public/get_suncode_scene": {
  1019. "get": {
  1020. "security": [
  1021. {
  1022. "ApiKeyAuth": []
  1023. }
  1024. ],
  1025. "description": "获取小程序太阳码scene值",
  1026. "tags": [
  1027. "公共模块"
  1028. ],
  1029. "summary": "获取小程序太阳码scene值",
  1030. "parameters": [
  1031. {
  1032. "type": "string",
  1033. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  1034. "name": "Authorization",
  1035. "in": "header",
  1036. "required": true
  1037. },
  1038. {
  1039. "type": "string",
  1040. "description": "scene_key值",
  1041. "name": "scene_key",
  1042. "in": "query",
  1043. "required": true
  1044. }
  1045. ],
  1046. "responses": {
  1047. "200": {
  1048. "description": "获取成功",
  1049. "schema": {
  1050. "type": "string"
  1051. }
  1052. },
  1053. "400": {
  1054. "description": "获取失败",
  1055. "schema": {
  1056. "type": "string"
  1057. }
  1058. }
  1059. }
  1060. }
  1061. },
  1062. "/public/upload": {
  1063. "post": {
  1064. "security": [
  1065. {
  1066. "ApiKeyAuth": []
  1067. }
  1068. ],
  1069. "description": "文件上传",
  1070. "consumes": [
  1071. "multipart/form-data"
  1072. ],
  1073. "tags": [
  1074. "公共模块"
  1075. ],
  1076. "summary": "文件上传",
  1077. "parameters": [
  1078. {
  1079. "type": "string",
  1080. "description": "微信登录后获取到的token",
  1081. "name": "Authorization",
  1082. "in": "header",
  1083. "required": true
  1084. },
  1085. {
  1086. "type": "file",
  1087. "description": "操作描述",
  1088. "name": "file",
  1089. "in": "formData"
  1090. }
  1091. ],
  1092. "responses": {
  1093. "200": {
  1094. "description": "上传成功",
  1095. "schema": {
  1096. "type": "string"
  1097. }
  1098. },
  1099. "400": {
  1100. "description": "上传失败,存储目录创建失败",
  1101. "schema": {
  1102. "type": "string"
  1103. }
  1104. }
  1105. }
  1106. }
  1107. },
  1108. "/question/ask": {
  1109. "post": {
  1110. "description": "发布提问",
  1111. "tags": [
  1112. "问答社区模块"
  1113. ],
  1114. "parameters": [
  1115. {
  1116. "type": "string",
  1117. "description": "问题内容",
  1118. "name": "question_content",
  1119. "in": "query",
  1120. "required": true
  1121. }
  1122. ],
  1123. "responses": {
  1124. "200": {
  1125. "description": "操作成功",
  1126. "schema": {
  1127. "type": "string"
  1128. }
  1129. },
  1130. "400": {
  1131. "description": "操作失败",
  1132. "schema": {
  1133. "type": "string"
  1134. }
  1135. }
  1136. }
  1137. }
  1138. },
  1139. "/question/detail": {
  1140. "get": {
  1141. "description": "获取问答详情",
  1142. "tags": [
  1143. "问答社区模块"
  1144. ],
  1145. "parameters": [
  1146. {
  1147. "type": "integer",
  1148. "description": "问答ID",
  1149. "name": "question_id",
  1150. "in": "query",
  1151. "required": true
  1152. }
  1153. ],
  1154. "responses": {
  1155. "200": {
  1156. "description": "OK",
  1157. "schema": {
  1158. "$ref": "#/definitions/response.CommunityQuestionItem"
  1159. }
  1160. },
  1161. "400": {
  1162. "description": "获取失败",
  1163. "schema": {
  1164. "type": "string"
  1165. }
  1166. }
  1167. }
  1168. }
  1169. },
  1170. "/question/list": {
  1171. "get": {
  1172. "description": "获取问答列表",
  1173. "tags": [
  1174. "问答社区模块"
  1175. ],
  1176. "parameters": [
  1177. {
  1178. "type": "integer",
  1179. "description": "页码",
  1180. "name": "page_index",
  1181. "in": "query"
  1182. },
  1183. {
  1184. "type": "integer",
  1185. "description": "每页数量",
  1186. "name": "page_size",
  1187. "in": "query"
  1188. },
  1189. {
  1190. "type": "integer",
  1191. "description": "只看我的",
  1192. "name": "only_mine",
  1193. "in": "query"
  1194. },
  1195. {
  1196. "type": "integer",
  1197. "description": "品种权限ID",
  1198. "name": "chart_permission_id",
  1199. "in": "query"
  1200. },
  1201. {
  1202. "type": "integer",
  1203. "description": "回复状态 0-全部 2-待回答 3-已回答",
  1204. "name": "reply_status",
  1205. "in": "query"
  1206. },
  1207. {
  1208. "type": "integer",
  1209. "description": "回复人ID",
  1210. "name": "replier_user_id",
  1211. "in": "query"
  1212. }
  1213. ],
  1214. "responses": {
  1215. "200": {
  1216. "description": "OK",
  1217. "schema": {
  1218. "type": "array",
  1219. "items": {
  1220. "$ref": "#/definitions/response.CommunityQuestionItem"
  1221. }
  1222. }
  1223. },
  1224. "400": {
  1225. "description": "获取失败",
  1226. "schema": {
  1227. "type": "string"
  1228. }
  1229. }
  1230. }
  1231. }
  1232. },
  1233. "/question/reply": {
  1234. "post": {
  1235. "description": "发布回复",
  1236. "tags": [
  1237. "问答社区模块"
  1238. ],
  1239. "parameters": [
  1240. {
  1241. "type": "integer",
  1242. "description": "问答ID",
  1243. "name": "question_id",
  1244. "in": "query",
  1245. "required": true
  1246. },
  1247. {
  1248. "type": "object",
  1249. "description": "音频列表",
  1250. "name": "audio_list",
  1251. "in": "query",
  1252. "required": true
  1253. }
  1254. ],
  1255. "responses": {
  1256. "200": {
  1257. "description": "操作成功",
  1258. "schema": {
  1259. "type": "string"
  1260. }
  1261. },
  1262. "400": {
  1263. "description": "操作失败",
  1264. "schema": {
  1265. "type": "string"
  1266. }
  1267. }
  1268. }
  1269. }
  1270. },
  1271. "/question/reply/read": {
  1272. "post": {
  1273. "description": "已读回复",
  1274. "tags": [
  1275. "问答社区模块"
  1276. ],
  1277. "parameters": [
  1278. {
  1279. "type": "integer",
  1280. "description": "问答ID",
  1281. "name": "question_id",
  1282. "in": "query",
  1283. "required": true
  1284. }
  1285. ],
  1286. "responses": {
  1287. "200": {
  1288. "description": "操作成功",
  1289. "schema": {
  1290. "type": "string"
  1291. }
  1292. },
  1293. "400": {
  1294. "description": "操作失败",
  1295. "schema": {
  1296. "type": "string"
  1297. }
  1298. }
  1299. }
  1300. }
  1301. },
  1302. "/question/reply/total": {
  1303. "get": {
  1304. "description": "问答列表数量统计",
  1305. "tags": [
  1306. "问答社区模块"
  1307. ],
  1308. "parameters": [
  1309. {
  1310. "type": "integer",
  1311. "description": "回复人ID",
  1312. "name": "replier_user_id",
  1313. "in": "query",
  1314. "required": true
  1315. }
  1316. ],
  1317. "responses": {
  1318. "200": {
  1319. "description": "OK",
  1320. "schema": {
  1321. "$ref": "#/definitions/response.CommunityReplyTotal"
  1322. }
  1323. },
  1324. "400": {
  1325. "description": "获取失败",
  1326. "schema": {
  1327. "type": "string"
  1328. }
  1329. }
  1330. }
  1331. }
  1332. },
  1333. "/question/reply/upload_audio": {
  1334. "post": {
  1335. "description": "上传回复音频",
  1336. "tags": [
  1337. "问答社区模块"
  1338. ],
  1339. "parameters": [
  1340. {
  1341. "type": "string",
  1342. "description": "音频文件",
  1343. "name": "file",
  1344. "in": "query",
  1345. "required": true
  1346. }
  1347. ],
  1348. "responses": {
  1349. "200": {
  1350. "description": "上传成功",
  1351. "schema": {
  1352. "type": "string"
  1353. }
  1354. },
  1355. "400": {
  1356. "description": "上传失败",
  1357. "schema": {
  1358. "type": "string"
  1359. }
  1360. }
  1361. }
  1362. }
  1363. },
  1364. "/report/research_report": {
  1365. "get": {
  1366. "security": [
  1367. {
  1368. "ApiKeyAuth": []
  1369. }
  1370. ],
  1371. "description": "获取报告详情",
  1372. "consumes": [
  1373. "application/json"
  1374. ],
  1375. "tags": [
  1376. "报告接口"
  1377. ],
  1378. "summary": "获取报告详情",
  1379. "parameters": [
  1380. {
  1381. "type": "string",
  1382. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  1383. "name": "Authorization",
  1384. "in": "header",
  1385. "required": true
  1386. },
  1387. {
  1388. "type": "integer",
  1389. "description": "活动ID",
  1390. "name": "research_report_id",
  1391. "in": "query",
  1392. "required": true
  1393. }
  1394. ],
  1395. "responses": {
  1396. "200": {
  1397. "description": "OK",
  1398. "schema": {
  1399. "$ref": "#/definitions/yb_activity.ActivityDetail"
  1400. }
  1401. },
  1402. "400": {
  1403. "description": "获取失败",
  1404. "schema": {
  1405. "type": "string"
  1406. }
  1407. }
  1408. }
  1409. }
  1410. },
  1411. "/report/research_report_chapter": {
  1412. "get": {
  1413. "security": [
  1414. {
  1415. "ApiKeyAuth": []
  1416. }
  1417. ],
  1418. "description": "获取报告章节详情",
  1419. "consumes": [
  1420. "application/json"
  1421. ],
  1422. "tags": [
  1423. "报告接口"
  1424. ],
  1425. "summary": "获取报告章节详情",
  1426. "parameters": [
  1427. {
  1428. "type": "string",
  1429. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  1430. "name": "Authorization",
  1431. "in": "header",
  1432. "required": true
  1433. },
  1434. {
  1435. "type": "integer",
  1436. "description": "章节ID",
  1437. "name": "research_report_type_id",
  1438. "in": "query",
  1439. "required": true
  1440. }
  1441. ],
  1442. "responses": {
  1443. "200": {
  1444. "description": "OK",
  1445. "schema": {
  1446. "$ref": "#/definitions/yb_activity.ActivityDetail"
  1447. }
  1448. },
  1449. "400": {
  1450. "description": "获取失败",
  1451. "schema": {
  1452. "type": "string"
  1453. }
  1454. }
  1455. }
  1456. }
  1457. },
  1458. "/user/apply": {
  1459. "post": {
  1460. "security": [
  1461. {
  1462. "ApiKeyAuth": []
  1463. }
  1464. ],
  1465. "description": "用户申请",
  1466. "consumes": [
  1467. "application/json"
  1468. ],
  1469. "tags": [
  1470. "用户模块"
  1471. ],
  1472. "summary": "用户申请",
  1473. "parameters": [
  1474. {
  1475. "type": "string",
  1476. "description": "微信登录后获取到的token",
  1477. "name": "Authorization",
  1478. "in": "header",
  1479. "required": true
  1480. },
  1481. {
  1482. "description": "请求参数",
  1483. "name": "data",
  1484. "in": "body",
  1485. "required": true,
  1486. "schema": {
  1487. "$ref": "#/definitions/user.ApplyReq"
  1488. }
  1489. }
  1490. ],
  1491. "responses": {
  1492. "200": {
  1493. "description": "OK",
  1494. "schema": {
  1495. "$ref": "#/definitions/user.LoginResp"
  1496. }
  1497. }
  1498. }
  1499. }
  1500. },
  1501. "/user/get_email_code": {
  1502. "get": {
  1503. "security": [
  1504. {
  1505. "ApiKeyAuth": []
  1506. }
  1507. ],
  1508. "description": "获取邮箱验证码",
  1509. "consumes": [
  1510. "application/json"
  1511. ],
  1512. "tags": [
  1513. "用户模块"
  1514. ],
  1515. "summary": "获取邮箱验证码",
  1516. "parameters": [
  1517. {
  1518. "type": "string",
  1519. "description": "微信登录后获取到的token",
  1520. "name": "Authorization",
  1521. "in": "header",
  1522. "required": true
  1523. },
  1524. {
  1525. "type": "string",
  1526. "description": "电子邮箱账号",
  1527. "name": "email",
  1528. "in": "query",
  1529. "required": true
  1530. }
  1531. ],
  1532. "responses": {
  1533. "200": {
  1534. "description": "OK",
  1535. "schema": {
  1536. "type": "string"
  1537. }
  1538. },
  1539. "400": {
  1540. "description": "Bad Request",
  1541. "schema": {
  1542. "type": "string"
  1543. }
  1544. }
  1545. }
  1546. }
  1547. },
  1548. "/user/get_last_apply_record": {
  1549. "get": {
  1550. "security": [
  1551. {
  1552. "ApiKeyAuth": []
  1553. }
  1554. ],
  1555. "description": "获取最近一条申请单信息",
  1556. "consumes": [
  1557. "application/json"
  1558. ],
  1559. "tags": [
  1560. "用户模块"
  1561. ],
  1562. "summary": "获取最近一条申请单信息",
  1563. "parameters": [
  1564. {
  1565. "type": "string",
  1566. "description": "微信登录后获取到的token",
  1567. "name": "Authorization",
  1568. "in": "header",
  1569. "required": true
  1570. }
  1571. ],
  1572. "responses": {
  1573. "200": {
  1574. "description": "获取成功",
  1575. "schema": {
  1576. "$ref": "#/definitions/user.Record"
  1577. }
  1578. },
  1579. "400": {
  1580. "description": "获取失败",
  1581. "schema": {
  1582. "type": "string"
  1583. }
  1584. }
  1585. }
  1586. }
  1587. },
  1588. "/user/get_sms_code": {
  1589. "get": {
  1590. "security": [
  1591. {
  1592. "ApiKeyAuth": []
  1593. }
  1594. ],
  1595. "description": "获取短信验证码接口",
  1596. "consumes": [
  1597. "application/json"
  1598. ],
  1599. "tags": [
  1600. "用户模块"
  1601. ],
  1602. "summary": "获取短信验证码",
  1603. "parameters": [
  1604. {
  1605. "type": "string",
  1606. "description": "微信登录后获取到的token",
  1607. "name": "Authorization",
  1608. "in": "header",
  1609. "required": true
  1610. },
  1611. {
  1612. "type": "string",
  1613. "description": "手机号",
  1614. "name": "mobile",
  1615. "in": "query",
  1616. "required": true
  1617. },
  1618. {
  1619. "type": "string",
  1620. "description": "手机国际区号(中国大陆:86)",
  1621. "name": "area_num",
  1622. "in": "query",
  1623. "required": true
  1624. }
  1625. ],
  1626. "responses": {
  1627. "200": {
  1628. "description": "OK",
  1629. "schema": {
  1630. "type": "string"
  1631. }
  1632. },
  1633. "400": {
  1634. "description": "Bad Request",
  1635. "schema": {
  1636. "type": "string"
  1637. }
  1638. }
  1639. }
  1640. }
  1641. },
  1642. "/user/get_tab_bar": {
  1643. "get": {
  1644. "security": [
  1645. {
  1646. "ApiKeyAuth": []
  1647. }
  1648. ],
  1649. "description": "获取用户的菜单栏权限",
  1650. "consumes": [
  1651. "application/json"
  1652. ],
  1653. "tags": [
  1654. "用户模块"
  1655. ],
  1656. "summary": "获取用户的菜单栏权限",
  1657. "parameters": [
  1658. {
  1659. "type": "string",
  1660. "description": "微信登录后获取到的token",
  1661. "name": "Authorization",
  1662. "in": "header",
  1663. "required": true
  1664. }
  1665. ],
  1666. "responses": {
  1667. "200": {
  1668. "description": "获取成功",
  1669. "schema": {
  1670. "type": "array",
  1671. "items": {
  1672. "type": "string"
  1673. }
  1674. }
  1675. },
  1676. "400": {
  1677. "description": "获取失败",
  1678. "schema": {
  1679. "type": "string"
  1680. }
  1681. }
  1682. }
  1683. }
  1684. },
  1685. "/user/info": {
  1686. "get": {
  1687. "security": [
  1688. {
  1689. "ApiKeyAuth": []
  1690. }
  1691. ],
  1692. "description": "我的详情",
  1693. "consumes": [
  1694. "application/json"
  1695. ],
  1696. "tags": [
  1697. "用户模块"
  1698. ],
  1699. "summary": "我的详情",
  1700. "parameters": [
  1701. {
  1702. "type": "string",
  1703. "description": "微信登录后获取到的token",
  1704. "name": "Authorization",
  1705. "in": "header",
  1706. "required": true
  1707. }
  1708. ],
  1709. "responses": {
  1710. "200": {
  1711. "description": "获取成功",
  1712. "schema": {
  1713. "$ref": "#/definitions/user.Detail"
  1714. }
  1715. },
  1716. "400": {
  1717. "description": "获取失败",
  1718. "schema": {
  1719. "type": "string"
  1720. }
  1721. }
  1722. }
  1723. }
  1724. },
  1725. "/user/login": {
  1726. "post": {
  1727. "security": [
  1728. {
  1729. "ApiKeyAuth": []
  1730. }
  1731. ],
  1732. "description": "用户手机号/邮箱登录",
  1733. "consumes": [
  1734. "application/json"
  1735. ],
  1736. "tags": [
  1737. "用户模块"
  1738. ],
  1739. "summary": "用户登录",
  1740. "parameters": [
  1741. {
  1742. "type": "string",
  1743. "description": "微信登录后获取到的token",
  1744. "name": "Authorization",
  1745. "in": "header",
  1746. "required": true
  1747. },
  1748. {
  1749. "description": "请求参数",
  1750. "name": "data",
  1751. "in": "body",
  1752. "required": true,
  1753. "schema": {
  1754. "$ref": "#/definitions/user.LoginReq"
  1755. }
  1756. }
  1757. ],
  1758. "responses": {
  1759. "200": {
  1760. "description": "OK",
  1761. "schema": {
  1762. "$ref": "#/definitions/user.LoginResp"
  1763. }
  1764. }
  1765. }
  1766. }
  1767. },
  1768. "/wechat/getEncryptInfo": {
  1769. "post": {
  1770. "description": "消息解密",
  1771. "consumes": [
  1772. "application/json"
  1773. ],
  1774. "tags": [
  1775. "微信相关接口"
  1776. ],
  1777. "summary": "消息解密",
  1778. "parameters": [
  1779. {
  1780. "type": "string",
  1781. "description": "加密数据",
  1782. "name": "encryptedData",
  1783. "in": "query",
  1784. "required": true
  1785. },
  1786. {
  1787. "type": "string",
  1788. "description": "加密算法初始向量",
  1789. "name": "iv",
  1790. "in": "query",
  1791. "required": true
  1792. }
  1793. ],
  1794. "responses": {
  1795. "200": {
  1796. "description": "获取成功",
  1797. "schema": {
  1798. "type": "string"
  1799. }
  1800. }
  1801. }
  1802. }
  1803. },
  1804. "/wechat/login": {
  1805. "get": {
  1806. "description": "微信登录",
  1807. "consumes": [
  1808. "application/json"
  1809. ],
  1810. "tags": [
  1811. "微信相关接口"
  1812. ],
  1813. "summary": "微信登录",
  1814. "parameters": [
  1815. {
  1816. "type": "string",
  1817. "description": "微信code",
  1818. "name": "code",
  1819. "in": "query",
  1820. "required": true
  1821. }
  1822. ],
  1823. "responses": {
  1824. "200": {
  1825. "description": "OK",
  1826. "schema": {
  1827. "$ref": "#/definitions/response.LoginResp"
  1828. }
  1829. }
  1830. }
  1831. }
  1832. }
  1833. },
  1834. "definitions": {
  1835. "activity.ActivityList": {
  1836. "type": "object",
  1837. "properties": {
  1838. "activityId": {
  1839. "type": "integer"
  1840. },
  1841. "activityName": {
  1842. "description": "活动名称",
  1843. "type": "string"
  1844. },
  1845. "activityState": {
  1846. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  1847. "type": "integer"
  1848. },
  1849. "activityTypeId": {
  1850. "description": "活动类型ID",
  1851. "type": "integer"
  1852. },
  1853. "activityTypeName": {
  1854. "description": "活动类型名称",
  1855. "type": "string"
  1856. },
  1857. "city": {
  1858. "description": "城市",
  1859. "type": "string"
  1860. },
  1861. "endTime": {
  1862. "description": "活动结束时间",
  1863. "type": "string"
  1864. },
  1865. "firstActivityTypeId": {
  1866. "description": "第一级的活动类型ID",
  1867. "type": "integer"
  1868. },
  1869. "firstActivityTypeName": {
  1870. "description": "第一级的活动类型名称",
  1871. "type": "string"
  1872. },
  1873. "hasPlayBack": {
  1874. "description": "是否有回放",
  1875. "type": "integer"
  1876. },
  1877. "hasRemind": {
  1878. "description": "是否已提醒",
  1879. "type": "integer"
  1880. },
  1881. "registerState": {
  1882. "description": "报名状态 0-取消报名 1-已报名",
  1883. "type": "integer"
  1884. },
  1885. "speaker": {
  1886. "description": "主讲人",
  1887. "type": "string"
  1888. },
  1889. "speakerBackgroundPic": {
  1890. "description": "主讲人背景图",
  1891. "type": "string"
  1892. },
  1893. "speakerHeadPic": {
  1894. "description": "主讲人头像",
  1895. "type": "string"
  1896. },
  1897. "startTime": {
  1898. "description": "活动开始时间",
  1899. "type": "string"
  1900. },
  1901. "voiceList": {
  1902. "description": "音频列表",
  1903. "type": "array",
  1904. "items": {
  1905. "$ref": "#/definitions/yb_activity_voice.YbActivityVoice"
  1906. }
  1907. },
  1908. "weekString": {
  1909. "description": "周几",
  1910. "type": "string"
  1911. }
  1912. }
  1913. },
  1914. "activity.RegisterCheckInfo": {
  1915. "type": "object",
  1916. "properties": {
  1917. "msg": {
  1918. "type": "string"
  1919. },
  1920. "specific": {
  1921. "type": "integer"
  1922. },
  1923. "type": {
  1924. "type": "string"
  1925. }
  1926. }
  1927. },
  1928. "activity.RemindCheckInfo": {
  1929. "type": "object",
  1930. "properties": {
  1931. "msg": {
  1932. "type": "string"
  1933. },
  1934. "specific": {
  1935. "type": "integer"
  1936. },
  1937. "type": {
  1938. "type": "string"
  1939. }
  1940. }
  1941. },
  1942. "admin.Admin": {
  1943. "type": "object",
  1944. "properties": {
  1945. "adminAvatar": {
  1946. "type": "string"
  1947. },
  1948. "adminName": {
  1949. "type": "string"
  1950. },
  1951. "authority": {
  1952. "description": "管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员",
  1953. "type": "integer"
  1954. },
  1955. "createdTime": {
  1956. "description": "创建时间",
  1957. "type": "string"
  1958. },
  1959. "departmentId": {
  1960. "description": "部门id",
  1961. "type": "integer"
  1962. },
  1963. "departmentName": {
  1964. "description": "部门名称",
  1965. "type": "string"
  1966. },
  1967. "email": {
  1968. "type": "string"
  1969. },
  1970. "enabled": {
  1971. "description": "1:有效,0:禁用",
  1972. "type": "integer"
  1973. },
  1974. "groupId": {
  1975. "description": "分组id",
  1976. "type": "integer"
  1977. },
  1978. "groupName": {
  1979. "description": "分组名称",
  1980. "type": "string"
  1981. },
  1982. "lastLoginTime": {
  1983. "description": "最近登陆时间",
  1984. "type": "string"
  1985. },
  1986. "lastUpdatedPasswordTime": {
  1987. "type": "string"
  1988. },
  1989. "lastUpdatedTime": {
  1990. "type": "string"
  1991. },
  1992. "mobile": {
  1993. "description": "手机号",
  1994. "type": "string"
  1995. },
  1996. "password": {
  1997. "type": "string"
  1998. },
  1999. "position": {
  2000. "description": "职位",
  2001. "type": "string"
  2002. },
  2003. "realName": {
  2004. "type": "string"
  2005. },
  2006. "role": {
  2007. "description": "用户角色",
  2008. "type": "string"
  2009. },
  2010. "roleId": {
  2011. "description": "角色id",
  2012. "type": "integer"
  2013. },
  2014. "roleName": {
  2015. "description": "角色名称",
  2016. "type": "string"
  2017. },
  2018. "roleType": {
  2019. "description": "角色类型:1需要录入指标,0:不需要",
  2020. "type": "integer"
  2021. },
  2022. "roleTypeCode": {
  2023. "description": "角色编码",
  2024. "type": "string"
  2025. }
  2026. }
  2027. },
  2028. "chart_edb_mapping.ChartEdbInfoMappingList": {
  2029. "type": "object",
  2030. "properties": {
  2031. "chartColor": {
  2032. "type": "string"
  2033. },
  2034. "chartEdbMappingId": {
  2035. "type": "integer"
  2036. },
  2037. "chartInfoId": {
  2038. "type": "integer"
  2039. },
  2040. "chartStyle": {
  2041. "type": "string"
  2042. },
  2043. "chartWidth": {
  2044. "type": "number"
  2045. },
  2046. "dataList": {},
  2047. "edbCode": {
  2048. "type": "string"
  2049. },
  2050. "edbInfoId": {
  2051. "type": "integer"
  2052. },
  2053. "edbInfoType": {
  2054. "type": "integer"
  2055. },
  2056. "edbName": {
  2057. "type": "string"
  2058. },
  2059. "edbType": {
  2060. "type": "integer"
  2061. },
  2062. "endDate": {
  2063. "type": "string"
  2064. },
  2065. "frequency": {
  2066. "type": "string"
  2067. },
  2068. "isAxis": {
  2069. "type": "integer"
  2070. },
  2071. "isOrder": {
  2072. "type": "boolean"
  2073. },
  2074. "latestDate": {
  2075. "type": "string"
  2076. },
  2077. "latestValue": {
  2078. "type": "number"
  2079. },
  2080. "leadUnit": {
  2081. "type": "string"
  2082. },
  2083. "leadValue": {
  2084. "type": "integer"
  2085. },
  2086. "maxData": {
  2087. "type": "number"
  2088. },
  2089. "minData": {
  2090. "type": "number"
  2091. },
  2092. "modifyTime": {
  2093. "type": "string"
  2094. },
  2095. "source": {
  2096. "type": "integer"
  2097. },
  2098. "sourceName": {
  2099. "type": "string"
  2100. },
  2101. "startDate": {
  2102. "type": "string"
  2103. },
  2104. "uniqueCode": {
  2105. "type": "string"
  2106. },
  2107. "unit": {
  2108. "type": "string"
  2109. }
  2110. }
  2111. },
  2112. "chart_info.ChartBeforeNext": {
  2113. "type": "object",
  2114. "properties": {
  2115. "nextChart": {
  2116. "$ref": "#/definitions/chart_info.ChartSortInfo"
  2117. },
  2118. "prevChart": {
  2119. "$ref": "#/definitions/chart_info.ChartSortInfo"
  2120. }
  2121. }
  2122. },
  2123. "chart_info.ChartInfoDetailResp": {
  2124. "type": "object",
  2125. "properties": {
  2126. "chartInfo": {
  2127. "$ref": "#/definitions/chart_info.ChartInfoView"
  2128. },
  2129. "edbInfoList": {
  2130. "type": "array",
  2131. "items": {
  2132. "$ref": "#/definitions/chart_edb_mapping.ChartEdbInfoMappingList"
  2133. }
  2134. }
  2135. }
  2136. },
  2137. "chart_info.ChartInfoView": {
  2138. "type": "object",
  2139. "properties": {
  2140. "calendar": {
  2141. "type": "string"
  2142. },
  2143. "chartClassifyId": {
  2144. "type": "integer"
  2145. },
  2146. "chartClassifyName": {
  2147. "type": "string"
  2148. },
  2149. "chartImage": {
  2150. "type": "string"
  2151. },
  2152. "chartInfoId": {
  2153. "type": "integer"
  2154. },
  2155. "chartName": {
  2156. "type": "string"
  2157. },
  2158. "chartSource": {
  2159. "type": "string"
  2160. },
  2161. "chartType": {
  2162. "type": "integer"
  2163. },
  2164. "createTime": {
  2165. "type": "string"
  2166. },
  2167. "dateType": {
  2168. "type": "integer"
  2169. },
  2170. "edbEndDate": {
  2171. "type": "string"
  2172. },
  2173. "edbInfoIds": {
  2174. "type": "string"
  2175. },
  2176. "endDate": {
  2177. "type": "string"
  2178. },
  2179. "isAdd": {
  2180. "type": "boolean"
  2181. },
  2182. "isSetName": {
  2183. "type": "integer"
  2184. },
  2185. "leftMax": {
  2186. "type": "string"
  2187. },
  2188. "leftMin": {
  2189. "type": "string"
  2190. },
  2191. "modifyTime": {
  2192. "type": "string"
  2193. },
  2194. "myChartClassifyId": {
  2195. "type": "string"
  2196. },
  2197. "myChartId": {
  2198. "type": "integer"
  2199. },
  2200. "rightMax": {
  2201. "type": "string"
  2202. },
  2203. "rightMin": {
  2204. "type": "string"
  2205. },
  2206. "seasonEndDate": {
  2207. "type": "string"
  2208. },
  2209. "seasonStartDate": {
  2210. "type": "string"
  2211. },
  2212. "sort": {
  2213. "type": "integer"
  2214. },
  2215. "startDate": {
  2216. "type": "string"
  2217. },
  2218. "sysUserId": {
  2219. "type": "integer"
  2220. },
  2221. "sysUserRealName": {
  2222. "type": "string"
  2223. },
  2224. "uniqueCode": {
  2225. "type": "string"
  2226. }
  2227. }
  2228. },
  2229. "chart_info.ChartSaveItem": {
  2230. "type": "object",
  2231. "properties": {
  2232. "chartColor": {
  2233. "type": "string"
  2234. },
  2235. "chartStyle": {
  2236. "type": "string"
  2237. },
  2238. "chartWidth": {
  2239. "type": "number"
  2240. },
  2241. "edbInfoId": {
  2242. "type": "integer"
  2243. },
  2244. "edbInfoType": {
  2245. "type": "integer"
  2246. },
  2247. "isAxis": {
  2248. "type": "integer"
  2249. },
  2250. "isOrder": {
  2251. "type": "boolean"
  2252. },
  2253. "leadUnit": {
  2254. "type": "string"
  2255. },
  2256. "leadValue": {
  2257. "type": "integer"
  2258. },
  2259. "maxData": {
  2260. "type": "number"
  2261. },
  2262. "minData": {
  2263. "type": "number"
  2264. }
  2265. }
  2266. },
  2267. "chart_info.ChartSortInfo": {
  2268. "type": "object",
  2269. "properties": {
  2270. "chartInfoId": {
  2271. "type": "integer"
  2272. },
  2273. "myChartClassifyId": {
  2274. "type": "integer"
  2275. },
  2276. "myChartClassifyName": {
  2277. "type": "string"
  2278. },
  2279. "myChartId": {
  2280. "type": "integer"
  2281. },
  2282. "sort": {
  2283. "type": "integer"
  2284. },
  2285. "switch": {
  2286. "type": "integer"
  2287. },
  2288. "uniqueCode": {
  2289. "type": "string"
  2290. }
  2291. }
  2292. },
  2293. "chart_info.SaveChartInfoReq": {
  2294. "type": "object",
  2295. "properties": {
  2296. "calendar": {
  2297. "type": "string"
  2298. },
  2299. "chartEdbInfoList": {
  2300. "type": "array",
  2301. "items": {
  2302. "$ref": "#/definitions/chart_info.ChartSaveItem"
  2303. }
  2304. },
  2305. "chartInfoId": {
  2306. "type": "integer"
  2307. },
  2308. "dateType": {
  2309. "type": "integer"
  2310. },
  2311. "endDate": {
  2312. "type": "string"
  2313. },
  2314. "leftMax": {
  2315. "type": "string"
  2316. },
  2317. "leftMin": {
  2318. "type": "string"
  2319. },
  2320. "rightMax": {
  2321. "type": "string"
  2322. },
  2323. "rightMin": {
  2324. "type": "string"
  2325. },
  2326. "seasonEndDate": {
  2327. "type": "string"
  2328. },
  2329. "seasonStartDate": {
  2330. "type": "string"
  2331. },
  2332. "startDate": {
  2333. "type": "string"
  2334. }
  2335. }
  2336. },
  2337. "company.FiccPermissionList": {
  2338. "type": "object",
  2339. "properties": {
  2340. "classifyName": {
  2341. "type": "string"
  2342. },
  2343. "hasPermission": {
  2344. "type": "boolean"
  2345. },
  2346. "items": {
  2347. "type": "array",
  2348. "items": {
  2349. "$ref": "#/definitions/company.PermissionItem"
  2350. }
  2351. }
  2352. }
  2353. },
  2354. "company.PermissionItem": {
  2355. "type": "object",
  2356. "properties": {
  2357. "hasPermission": {
  2358. "type": "boolean"
  2359. },
  2360. "permissionId": {
  2361. "type": "integer"
  2362. },
  2363. "permissionName": {
  2364. "type": "string"
  2365. }
  2366. }
  2367. },
  2368. "logic.ApplyVariety": {
  2369. "type": "object",
  2370. "properties": {
  2371. "name": {
  2372. "type": "string"
  2373. },
  2374. "permission_name": {
  2375. "type": "string"
  2376. },
  2377. "pic_url": {
  2378. "type": "string"
  2379. }
  2380. }
  2381. },
  2382. "my_chart.MoveMyChartClassifyReq": {
  2383. "type": "object",
  2384. "properties": {
  2385. "myChartClassifyId": {
  2386. "type": "integer"
  2387. },
  2388. "nextClassifyId": {
  2389. "type": "integer"
  2390. },
  2391. "prevClassifyId": {
  2392. "type": "integer"
  2393. }
  2394. }
  2395. },
  2396. "my_chart.MoveMyChartReq": {
  2397. "type": "object",
  2398. "properties": {
  2399. "myChartClassifyId": {
  2400. "type": "integer"
  2401. },
  2402. "myChartId": {
  2403. "type": "integer"
  2404. },
  2405. "nextMyChartId": {
  2406. "type": "integer"
  2407. },
  2408. "prevMyChartId": {
  2409. "type": "integer"
  2410. }
  2411. }
  2412. },
  2413. "my_chart.MyChartClassifyListResp": {
  2414. "type": "object",
  2415. "properties": {
  2416. "private_classify": {
  2417. "type": "array",
  2418. "items": {
  2419. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  2420. }
  2421. },
  2422. "public_classify": {
  2423. "type": "array",
  2424. "items": {
  2425. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  2426. }
  2427. }
  2428. }
  2429. },
  2430. "my_chart.MyChartList": {
  2431. "type": "object",
  2432. "properties": {
  2433. "calendar": {
  2434. "type": "string"
  2435. },
  2436. "chartClassifyId": {
  2437. "type": "integer"
  2438. },
  2439. "chartImage": {
  2440. "type": "string"
  2441. },
  2442. "chartInfoId": {
  2443. "type": "integer"
  2444. },
  2445. "chartName": {
  2446. "type": "string"
  2447. },
  2448. "chartType": {
  2449. "type": "integer"
  2450. },
  2451. "createTime": {
  2452. "type": "string"
  2453. },
  2454. "dateType": {
  2455. "type": "integer"
  2456. },
  2457. "edbEndDate": {
  2458. "type": "string"
  2459. },
  2460. "edbInfoIds": {
  2461. "type": "string"
  2462. },
  2463. "endDate": {
  2464. "type": "string"
  2465. },
  2466. "isAdd": {
  2467. "type": "boolean"
  2468. },
  2469. "isSetName": {
  2470. "type": "integer"
  2471. },
  2472. "modifyTime": {
  2473. "type": "string"
  2474. },
  2475. "myChartClassifyId": {
  2476. "type": "string"
  2477. },
  2478. "myChartClassifyName": {
  2479. "type": "string"
  2480. },
  2481. "myChartId": {
  2482. "type": "integer"
  2483. },
  2484. "seasonEndDate": {
  2485. "type": "string"
  2486. },
  2487. "seasonStartDate": {
  2488. "type": "string"
  2489. },
  2490. "sort": {
  2491. "type": "number"
  2492. },
  2493. "startDate": {
  2494. "type": "string"
  2495. },
  2496. "sysUserId": {
  2497. "type": "integer"
  2498. },
  2499. "sysUserRealName": {
  2500. "type": "string"
  2501. },
  2502. "uniqueCode": {
  2503. "type": "string"
  2504. }
  2505. }
  2506. },
  2507. "my_chart_classify.MyChartClassify": {
  2508. "type": "object",
  2509. "properties": {
  2510. "adminId": {
  2511. "description": "用户id",
  2512. "type": "integer"
  2513. },
  2514. "companyPublicTime": {
  2515. "description": "用户可见公开时间",
  2516. "type": "string"
  2517. },
  2518. "createTime": {
  2519. "type": "string"
  2520. },
  2521. "isCompanyPublic": {
  2522. "description": "是否用户可见:0-否 1-是",
  2523. "type": "integer"
  2524. },
  2525. "isPublic": {
  2526. "description": "是否所有人可见,0:仅自己可见,1:所有人可见",
  2527. "type": "integer"
  2528. },
  2529. "modifyTime": {
  2530. "type": "string"
  2531. },
  2532. "myChartClassifyId": {
  2533. "type": "integer"
  2534. },
  2535. "myChartClassifyName": {
  2536. "description": "分类名称",
  2537. "type": "string"
  2538. },
  2539. "publicTime": {
  2540. "description": "公开时间",
  2541. "type": "string"
  2542. },
  2543. "sort": {
  2544. "description": "排序字段,值越小,越靠前",
  2545. "type": "integer"
  2546. }
  2547. }
  2548. },
  2549. "response.CommunityQuestionAudioItem": {
  2550. "type": "object",
  2551. "properties": {
  2552. "audio_play_seconds": {
  2553. "type": "string"
  2554. },
  2555. "audio_size": {
  2556. "type": "string"
  2557. },
  2558. "audio_url": {
  2559. "type": "string"
  2560. },
  2561. "community_question_id": {
  2562. "type": "integer"
  2563. },
  2564. "sort": {
  2565. "type": "integer"
  2566. }
  2567. }
  2568. },
  2569. "response.CommunityQuestionItem": {
  2570. "type": "object",
  2571. "properties": {
  2572. "audio_list": {
  2573. "type": "array",
  2574. "items": {
  2575. "$ref": "#/definitions/response.CommunityQuestionAudioItem"
  2576. }
  2577. },
  2578. "auth_ok": {
  2579. "type": "boolean"
  2580. },
  2581. "chart_permission_id": {
  2582. "type": "integer"
  2583. },
  2584. "chart_permission_name": {
  2585. "type": "string"
  2586. },
  2587. "community_question_id": {
  2588. "type": "integer"
  2589. },
  2590. "create_time": {
  2591. "type": "string"
  2592. },
  2593. "is_read": {
  2594. "type": "integer"
  2595. },
  2596. "is_top": {
  2597. "type": "integer"
  2598. },
  2599. "permission_info": {
  2600. "$ref": "#/definitions/response.PermissionCheckInfo"
  2601. },
  2602. "question_content": {
  2603. "type": "string"
  2604. },
  2605. "replier_avatar": {
  2606. "type": "string"
  2607. },
  2608. "replier_rank": {
  2609. "type": "string"
  2610. },
  2611. "replier_real_name": {
  2612. "type": "string"
  2613. },
  2614. "reply_time": {
  2615. "type": "string"
  2616. },
  2617. "user_id": {
  2618. "type": "integer"
  2619. }
  2620. }
  2621. },
  2622. "response.CommunityReplyTotal": {
  2623. "type": "object",
  2624. "properties": {
  2625. "replied": {
  2626. "type": "integer"
  2627. },
  2628. "total": {
  2629. "type": "integer"
  2630. },
  2631. "wait": {
  2632. "type": "integer"
  2633. }
  2634. }
  2635. },
  2636. "response.CustomerInfo": {
  2637. "type": "object",
  2638. "properties": {
  2639. "company_name": {
  2640. "type": "string"
  2641. },
  2642. "has_apply": {
  2643. "type": "boolean"
  2644. },
  2645. "is_suspend": {
  2646. "type": "integer"
  2647. },
  2648. "mobile": {
  2649. "type": "string"
  2650. },
  2651. "name": {
  2652. "type": "string"
  2653. },
  2654. "status": {
  2655. "type": "string"
  2656. }
  2657. }
  2658. },
  2659. "response.LoginResp": {
  2660. "type": "object",
  2661. "properties": {
  2662. "authorization": {
  2663. "type": "string"
  2664. },
  2665. "is_bind": {
  2666. "type": "boolean"
  2667. },
  2668. "user_id": {
  2669. "type": "integer"
  2670. }
  2671. }
  2672. },
  2673. "response.PermissionCheckInfo": {
  2674. "type": "object",
  2675. "properties": {
  2676. "customer_info": {
  2677. "$ref": "#/definitions/response.CustomerInfo"
  2678. },
  2679. "hz_phone": {
  2680. "type": "string"
  2681. },
  2682. "mobile": {
  2683. "type": "string"
  2684. },
  2685. "name": {
  2686. "type": "string"
  2687. },
  2688. "type": {
  2689. "type": "string"
  2690. }
  2691. }
  2692. },
  2693. "services.SharePosterReq": {
  2694. "type": "object",
  2695. "properties": {
  2696. "code_page": {
  2697. "type": "string"
  2698. },
  2699. "code_scene": {
  2700. "type": "string"
  2701. },
  2702. "pars": {
  2703. "type": "string"
  2704. },
  2705. "source": {
  2706. "type": "string"
  2707. },
  2708. "version": {
  2709. "type": "string"
  2710. }
  2711. }
  2712. },
  2713. "user.ApplyReq": {
  2714. "type": "object",
  2715. "properties": {
  2716. "business_card_url": {
  2717. "type": "string"
  2718. },
  2719. "company_name": {
  2720. "type": "string"
  2721. },
  2722. "from_page": {
  2723. "type": "string"
  2724. },
  2725. "permission": {
  2726. "type": "string"
  2727. },
  2728. "real_name": {
  2729. "type": "string"
  2730. },
  2731. "source": {
  2732. "type": "integer"
  2733. },
  2734. "source_agent": {
  2735. "type": "integer"
  2736. }
  2737. }
  2738. },
  2739. "user.CompanyPermission": {
  2740. "type": "object",
  2741. "properties": {
  2742. "name": {
  2743. "type": "string"
  2744. },
  2745. "permission_list": {
  2746. "type": "array",
  2747. "items": {
  2748. "$ref": "#/definitions/user.PermissionList"
  2749. }
  2750. }
  2751. }
  2752. },
  2753. "user.Detail": {
  2754. "type": "object",
  2755. "properties": {
  2756. "admin_info": {
  2757. "$ref": "#/definitions/admin.Admin"
  2758. },
  2759. "company_name": {
  2760. "type": "string"
  2761. },
  2762. "email": {
  2763. "type": "string"
  2764. },
  2765. "is_inner": {
  2766. "type": "integer"
  2767. },
  2768. "is_suspend": {
  2769. "type": "integer"
  2770. },
  2771. "mobile": {
  2772. "type": "string"
  2773. },
  2774. "permission_list": {
  2775. "type": "array",
  2776. "items": {
  2777. "$ref": "#/definitions/user.CompanyPermission"
  2778. }
  2779. },
  2780. "real_name": {
  2781. "type": "string"
  2782. },
  2783. "seal_mobile": {
  2784. "type": "string"
  2785. },
  2786. "seal_name": {
  2787. "type": "string"
  2788. },
  2789. "status": {
  2790. "type": "string"
  2791. }
  2792. }
  2793. },
  2794. "user.LoginReq": {
  2795. "type": "object",
  2796. "properties": {
  2797. "area_num": {
  2798. "type": "integer"
  2799. },
  2800. "bind_type": {
  2801. "type": "integer"
  2802. },
  2803. "email": {
  2804. "type": "string"
  2805. },
  2806. "mobile": {
  2807. "type": "string"
  2808. },
  2809. "verify_code": {
  2810. "type": "string"
  2811. }
  2812. }
  2813. },
  2814. "user.LoginResp": {
  2815. "type": "object",
  2816. "properties": {
  2817. "email": {
  2818. "type": "string"
  2819. },
  2820. "mobile": {
  2821. "type": "string"
  2822. },
  2823. "token": {
  2824. "type": "string"
  2825. },
  2826. "user_id": {
  2827. "type": "integer"
  2828. }
  2829. }
  2830. },
  2831. "user.PermissionList": {
  2832. "type": "object",
  2833. "properties": {
  2834. "end_date": {
  2835. "type": "string"
  2836. },
  2837. "name": {
  2838. "type": "string"
  2839. },
  2840. "start_date": {
  2841. "type": "string"
  2842. },
  2843. "status": {
  2844. "type": "string"
  2845. }
  2846. }
  2847. },
  2848. "user.Record": {
  2849. "type": "object",
  2850. "properties": {
  2851. "business_card_url": {
  2852. "type": "string"
  2853. },
  2854. "company_name": {
  2855. "type": "string"
  2856. },
  2857. "mobile": {
  2858. "type": "string"
  2859. },
  2860. "real_name": {
  2861. "type": "string"
  2862. }
  2863. }
  2864. },
  2865. "yb_activity.ActivityDetail": {
  2866. "type": "object",
  2867. "properties": {
  2868. "activityId": {
  2869. "type": "integer"
  2870. },
  2871. "activityName": {
  2872. "description": "活动名称",
  2873. "type": "string"
  2874. },
  2875. "activityState": {
  2876. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  2877. "type": "integer"
  2878. },
  2879. "activityTypeId": {
  2880. "description": "活动类型ID",
  2881. "type": "integer"
  2882. },
  2883. "activityTypeName": {
  2884. "description": "活动类型名称",
  2885. "type": "string"
  2886. },
  2887. "address": {
  2888. "description": "活动地址",
  2889. "type": "string"
  2890. },
  2891. "americaTel": {
  2892. "description": "美国拨入",
  2893. "type": "string"
  2894. },
  2895. "city": {
  2896. "description": "城市",
  2897. "type": "string"
  2898. },
  2899. "endTime": {
  2900. "description": "活动结束时间",
  2901. "type": "string"
  2902. },
  2903. "firstActivityTypeId": {
  2904. "description": "第一级的活动类型ID",
  2905. "type": "integer"
  2906. },
  2907. "firstActivityTypeName": {
  2908. "description": "第一级的活动类型名称",
  2909. "type": "string"
  2910. },
  2911. "hasPlayBack": {
  2912. "description": "是否有回放",
  2913. "type": "integer"
  2914. },
  2915. "hasRemind": {
  2916. "description": "是否已提醒",
  2917. "type": "integer"
  2918. },
  2919. "hongKongTel": {
  2920. "description": "香港拨入",
  2921. "type": "string"
  2922. },
  2923. "isLimitPeople": {
  2924. "description": "是否限制人数 1是,0否",
  2925. "type": "integer"
  2926. },
  2927. "limitPeopleNum": {
  2928. "description": "限制人数数量",
  2929. "type": "integer"
  2930. },
  2931. "linkParticipants": {
  2932. "description": "参会链接",
  2933. "type": "string"
  2934. },
  2935. "mainlandTel": {
  2936. "description": "大陆拨入",
  2937. "type": "string"
  2938. },
  2939. "participationCode": {
  2940. "description": "参会密码",
  2941. "type": "string"
  2942. },
  2943. "registerState": {
  2944. "description": "报名状态 0-取消报名 1-已报名",
  2945. "type": "integer"
  2946. },
  2947. "registeredNum": {
  2948. "description": "已报名人数",
  2949. "type": "integer"
  2950. },
  2951. "reportLink": {
  2952. "description": "报告链接",
  2953. "type": "string"
  2954. },
  2955. "reportName": {
  2956. "description": "报告名称",
  2957. "type": "string"
  2958. },
  2959. "singaporeTel": {
  2960. "description": "新加坡拨入",
  2961. "type": "string"
  2962. },
  2963. "speaker": {
  2964. "description": "主讲人",
  2965. "type": "string"
  2966. },
  2967. "speakerBackgroundPic": {
  2968. "description": "主讲人背景图",
  2969. "type": "string"
  2970. },
  2971. "speakerHeadPic": {
  2972. "description": "主讲人头像",
  2973. "type": "string"
  2974. },
  2975. "startTime": {
  2976. "description": "活动开始时间",
  2977. "type": "string"
  2978. },
  2979. "taiwanTel": {
  2980. "description": "台湾拨入",
  2981. "type": "string"
  2982. },
  2983. "weekString": {
  2984. "description": "周几",
  2985. "type": "string"
  2986. }
  2987. }
  2988. },
  2989. "yb_activity_voice.YbActivityVoice": {
  2990. "type": "object",
  2991. "properties": {
  2992. "activityId": {
  2993. "description": "活动id",
  2994. "type": "integer"
  2995. },
  2996. "createTime": {
  2997. "type": "string"
  2998. },
  2999. "voiceName": {
  3000. "description": "音频名称",
  3001. "type": "string"
  3002. },
  3003. "voicePlaySeconds": {
  3004. "description": "音频时长",
  3005. "type": "string"
  3006. },
  3007. "voiceUrl": {
  3008. "description": "音频地址",
  3009. "type": "string"
  3010. }
  3011. }
  3012. }
  3013. }
  3014. }`
  3015. type swaggerInfo struct {
  3016. Version string
  3017. Host string
  3018. BasePath string
  3019. Schemes []string
  3020. Title string
  3021. Description string
  3022. }
  3023. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3024. var SwaggerInfo = swaggerInfo{
  3025. Version: "1.0",
  3026. Host: "127.0.0.1:8607",
  3027. BasePath: "/",
  3028. Schemes: []string{},
  3029. Title: "弘则研报API接口文档",
  3030. Description: "这是弘则研报API接口文档",
  3031. }
  3032. type s struct{}
  3033. func (s *s) ReadDoc() string {
  3034. sInfo := SwaggerInfo
  3035. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3036. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3037. "marshal": func(v interface{}) string {
  3038. a, _ := json.Marshal(v)
  3039. return string(a)
  3040. },
  3041. "escape": func(v interface{}) string {
  3042. // escape tabs
  3043. str := strings.Replace(v.(string), "\t", "\\t", -1)
  3044. // replace " with \", and if that results in \\", replace that with \\\"
  3045. str = strings.Replace(str, "\"", "\\\"", -1)
  3046. return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
  3047. },
  3048. }).Parse(doc)
  3049. if err != nil {
  3050. return doc
  3051. }
  3052. var tpl bytes.Buffer
  3053. if err := t.Execute(&tpl, sInfo); err != nil {
  3054. return doc
  3055. }
  3056. return tpl.String()
  3057. }
  3058. func init() {
  3059. swag.Register("swagger", &s{})
  3060. }