docs.go 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079
  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/list/total": {
  1234. "get": {
  1235. "description": "问答列表数量统计",
  1236. "tags": [
  1237. "问答社区模块"
  1238. ],
  1239. "responses": {
  1240. "200": {
  1241. "description": "OK",
  1242. "schema": {
  1243. "$ref": "#/definitions/response.CommunityQuestionListTotal"
  1244. }
  1245. },
  1246. "400": {
  1247. "description": "获取失败",
  1248. "schema": {
  1249. "type": "string"
  1250. }
  1251. }
  1252. }
  1253. }
  1254. },
  1255. "/question/reply": {
  1256. "post": {
  1257. "description": "发布回复",
  1258. "tags": [
  1259. "问答社区模块"
  1260. ],
  1261. "parameters": [
  1262. {
  1263. "type": "integer",
  1264. "description": "问答ID",
  1265. "name": "question_id",
  1266. "in": "query",
  1267. "required": true
  1268. },
  1269. {
  1270. "type": "object",
  1271. "description": "音频列表",
  1272. "name": "audio_list",
  1273. "in": "query",
  1274. "required": true
  1275. }
  1276. ],
  1277. "responses": {
  1278. "200": {
  1279. "description": "操作成功",
  1280. "schema": {
  1281. "type": "string"
  1282. }
  1283. },
  1284. "400": {
  1285. "description": "操作失败",
  1286. "schema": {
  1287. "type": "string"
  1288. }
  1289. }
  1290. }
  1291. }
  1292. },
  1293. "/question/reply/read": {
  1294. "post": {
  1295. "description": "已读回复",
  1296. "tags": [
  1297. "问答社区模块"
  1298. ],
  1299. "parameters": [
  1300. {
  1301. "type": "integer",
  1302. "description": "问答ID",
  1303. "name": "question_id",
  1304. "in": "query",
  1305. "required": true
  1306. }
  1307. ],
  1308. "responses": {
  1309. "200": {
  1310. "description": "操作成功",
  1311. "schema": {
  1312. "type": "string"
  1313. }
  1314. },
  1315. "400": {
  1316. "description": "操作失败",
  1317. "schema": {
  1318. "type": "string"
  1319. }
  1320. }
  1321. }
  1322. }
  1323. },
  1324. "/question/reply/upload_audio": {
  1325. "post": {
  1326. "description": "上传回复音频",
  1327. "tags": [
  1328. "问答社区模块"
  1329. ],
  1330. "parameters": [
  1331. {
  1332. "type": "string",
  1333. "description": "音频文件",
  1334. "name": "file",
  1335. "in": "query",
  1336. "required": true
  1337. }
  1338. ],
  1339. "responses": {
  1340. "200": {
  1341. "description": "上传成功",
  1342. "schema": {
  1343. "type": "string"
  1344. }
  1345. },
  1346. "400": {
  1347. "description": "上传失败",
  1348. "schema": {
  1349. "type": "string"
  1350. }
  1351. }
  1352. }
  1353. }
  1354. },
  1355. "/question/unread": {
  1356. "get": {
  1357. "description": "我的问答未读数",
  1358. "tags": [
  1359. "问答社区模块"
  1360. ],
  1361. "responses": {
  1362. "200": {
  1363. "description": "获取成功",
  1364. "schema": {
  1365. "type": "int"
  1366. }
  1367. },
  1368. "400": {
  1369. "description": "获取失败",
  1370. "schema": {
  1371. "type": "string"
  1372. }
  1373. }
  1374. }
  1375. }
  1376. },
  1377. "/report/research_report": {
  1378. "get": {
  1379. "security": [
  1380. {
  1381. "ApiKeyAuth": []
  1382. }
  1383. ],
  1384. "description": "获取报告详情",
  1385. "consumes": [
  1386. "application/json"
  1387. ],
  1388. "tags": [
  1389. "报告接口"
  1390. ],
  1391. "summary": "获取报告详情",
  1392. "parameters": [
  1393. {
  1394. "type": "string",
  1395. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  1396. "name": "Authorization",
  1397. "in": "header",
  1398. "required": true
  1399. },
  1400. {
  1401. "type": "integer",
  1402. "description": "活动ID",
  1403. "name": "research_report_id",
  1404. "in": "query",
  1405. "required": true
  1406. }
  1407. ],
  1408. "responses": {
  1409. "200": {
  1410. "description": "OK",
  1411. "schema": {
  1412. "$ref": "#/definitions/yb_activity.ActivityDetail"
  1413. }
  1414. },
  1415. "400": {
  1416. "description": "获取失败",
  1417. "schema": {
  1418. "type": "string"
  1419. }
  1420. }
  1421. }
  1422. }
  1423. },
  1424. "/report/research_report_chapter": {
  1425. "get": {
  1426. "security": [
  1427. {
  1428. "ApiKeyAuth": []
  1429. }
  1430. ],
  1431. "description": "获取报告章节详情",
  1432. "consumes": [
  1433. "application/json"
  1434. ],
  1435. "tags": [
  1436. "报告接口"
  1437. ],
  1438. "summary": "获取报告章节详情",
  1439. "parameters": [
  1440. {
  1441. "type": "string",
  1442. "description": "Bearer 31a165baebe6dec616b1f8f3207b4273",
  1443. "name": "Authorization",
  1444. "in": "header",
  1445. "required": true
  1446. },
  1447. {
  1448. "type": "integer",
  1449. "description": "章节ID",
  1450. "name": "research_report_type_id",
  1451. "in": "query",
  1452. "required": true
  1453. }
  1454. ],
  1455. "responses": {
  1456. "200": {
  1457. "description": "OK",
  1458. "schema": {
  1459. "$ref": "#/definitions/yb_activity.ActivityDetail"
  1460. }
  1461. },
  1462. "400": {
  1463. "description": "获取失败",
  1464. "schema": {
  1465. "type": "string"
  1466. }
  1467. }
  1468. }
  1469. }
  1470. },
  1471. "/user/apply": {
  1472. "post": {
  1473. "security": [
  1474. {
  1475. "ApiKeyAuth": []
  1476. }
  1477. ],
  1478. "description": "用户申请",
  1479. "consumes": [
  1480. "application/json"
  1481. ],
  1482. "tags": [
  1483. "用户模块"
  1484. ],
  1485. "summary": "用户申请",
  1486. "parameters": [
  1487. {
  1488. "type": "string",
  1489. "description": "微信登录后获取到的token",
  1490. "name": "Authorization",
  1491. "in": "header",
  1492. "required": true
  1493. },
  1494. {
  1495. "description": "请求参数",
  1496. "name": "data",
  1497. "in": "body",
  1498. "required": true,
  1499. "schema": {
  1500. "$ref": "#/definitions/user.ApplyReq"
  1501. }
  1502. }
  1503. ],
  1504. "responses": {
  1505. "200": {
  1506. "description": "OK",
  1507. "schema": {
  1508. "$ref": "#/definitions/user.LoginResp"
  1509. }
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/user/get_email_code": {
  1515. "get": {
  1516. "security": [
  1517. {
  1518. "ApiKeyAuth": []
  1519. }
  1520. ],
  1521. "description": "获取邮箱验证码",
  1522. "consumes": [
  1523. "application/json"
  1524. ],
  1525. "tags": [
  1526. "用户模块"
  1527. ],
  1528. "summary": "获取邮箱验证码",
  1529. "parameters": [
  1530. {
  1531. "type": "string",
  1532. "description": "微信登录后获取到的token",
  1533. "name": "Authorization",
  1534. "in": "header",
  1535. "required": true
  1536. },
  1537. {
  1538. "type": "string",
  1539. "description": "电子邮箱账号",
  1540. "name": "email",
  1541. "in": "query",
  1542. "required": true
  1543. }
  1544. ],
  1545. "responses": {
  1546. "200": {
  1547. "description": "OK",
  1548. "schema": {
  1549. "type": "string"
  1550. }
  1551. },
  1552. "400": {
  1553. "description": "Bad Request",
  1554. "schema": {
  1555. "type": "string"
  1556. }
  1557. }
  1558. }
  1559. }
  1560. },
  1561. "/user/get_last_apply_record": {
  1562. "get": {
  1563. "security": [
  1564. {
  1565. "ApiKeyAuth": []
  1566. }
  1567. ],
  1568. "description": "获取最近一条申请单信息",
  1569. "consumes": [
  1570. "application/json"
  1571. ],
  1572. "tags": [
  1573. "用户模块"
  1574. ],
  1575. "summary": "获取最近一条申请单信息",
  1576. "parameters": [
  1577. {
  1578. "type": "string",
  1579. "description": "微信登录后获取到的token",
  1580. "name": "Authorization",
  1581. "in": "header",
  1582. "required": true
  1583. }
  1584. ],
  1585. "responses": {
  1586. "200": {
  1587. "description": "获取成功",
  1588. "schema": {
  1589. "$ref": "#/definitions/user.Record"
  1590. }
  1591. },
  1592. "400": {
  1593. "description": "获取失败",
  1594. "schema": {
  1595. "type": "string"
  1596. }
  1597. }
  1598. }
  1599. }
  1600. },
  1601. "/user/get_sms_code": {
  1602. "get": {
  1603. "security": [
  1604. {
  1605. "ApiKeyAuth": []
  1606. }
  1607. ],
  1608. "description": "获取短信验证码接口",
  1609. "consumes": [
  1610. "application/json"
  1611. ],
  1612. "tags": [
  1613. "用户模块"
  1614. ],
  1615. "summary": "获取短信验证码",
  1616. "parameters": [
  1617. {
  1618. "type": "string",
  1619. "description": "微信登录后获取到的token",
  1620. "name": "Authorization",
  1621. "in": "header",
  1622. "required": true
  1623. },
  1624. {
  1625. "type": "string",
  1626. "description": "手机号",
  1627. "name": "mobile",
  1628. "in": "query",
  1629. "required": true
  1630. },
  1631. {
  1632. "type": "string",
  1633. "description": "手机国际区号(中国大陆:86)",
  1634. "name": "area_num",
  1635. "in": "query",
  1636. "required": true
  1637. }
  1638. ],
  1639. "responses": {
  1640. "200": {
  1641. "description": "OK",
  1642. "schema": {
  1643. "type": "string"
  1644. }
  1645. },
  1646. "400": {
  1647. "description": "Bad Request",
  1648. "schema": {
  1649. "type": "string"
  1650. }
  1651. }
  1652. }
  1653. }
  1654. },
  1655. "/user/get_tab_bar": {
  1656. "get": {
  1657. "security": [
  1658. {
  1659. "ApiKeyAuth": []
  1660. }
  1661. ],
  1662. "description": "获取用户的菜单栏权限",
  1663. "consumes": [
  1664. "application/json"
  1665. ],
  1666. "tags": [
  1667. "用户模块"
  1668. ],
  1669. "summary": "获取用户的菜单栏权限",
  1670. "parameters": [
  1671. {
  1672. "type": "string",
  1673. "description": "微信登录后获取到的token",
  1674. "name": "Authorization",
  1675. "in": "header",
  1676. "required": true
  1677. }
  1678. ],
  1679. "responses": {
  1680. "200": {
  1681. "description": "获取成功",
  1682. "schema": {
  1683. "type": "array",
  1684. "items": {
  1685. "type": "string"
  1686. }
  1687. }
  1688. },
  1689. "400": {
  1690. "description": "获取失败",
  1691. "schema": {
  1692. "type": "string"
  1693. }
  1694. }
  1695. }
  1696. }
  1697. },
  1698. "/user/info": {
  1699. "get": {
  1700. "security": [
  1701. {
  1702. "ApiKeyAuth": []
  1703. }
  1704. ],
  1705. "description": "我的详情",
  1706. "consumes": [
  1707. "application/json"
  1708. ],
  1709. "tags": [
  1710. "用户模块"
  1711. ],
  1712. "summary": "我的详情",
  1713. "parameters": [
  1714. {
  1715. "type": "string",
  1716. "description": "微信登录后获取到的token",
  1717. "name": "Authorization",
  1718. "in": "header",
  1719. "required": true
  1720. }
  1721. ],
  1722. "responses": {
  1723. "200": {
  1724. "description": "获取成功",
  1725. "schema": {
  1726. "$ref": "#/definitions/user.Detail"
  1727. }
  1728. },
  1729. "400": {
  1730. "description": "获取失败",
  1731. "schema": {
  1732. "type": "string"
  1733. }
  1734. }
  1735. }
  1736. }
  1737. },
  1738. "/user/login": {
  1739. "post": {
  1740. "security": [
  1741. {
  1742. "ApiKeyAuth": []
  1743. }
  1744. ],
  1745. "description": "用户手机号/邮箱登录",
  1746. "consumes": [
  1747. "application/json"
  1748. ],
  1749. "tags": [
  1750. "用户模块"
  1751. ],
  1752. "summary": "用户登录",
  1753. "parameters": [
  1754. {
  1755. "type": "string",
  1756. "description": "微信登录后获取到的token",
  1757. "name": "Authorization",
  1758. "in": "header",
  1759. "required": true
  1760. },
  1761. {
  1762. "description": "请求参数",
  1763. "name": "data",
  1764. "in": "body",
  1765. "required": true,
  1766. "schema": {
  1767. "$ref": "#/definitions/user.LoginReq"
  1768. }
  1769. }
  1770. ],
  1771. "responses": {
  1772. "200": {
  1773. "description": "OK",
  1774. "schema": {
  1775. "$ref": "#/definitions/user.LoginResp"
  1776. }
  1777. }
  1778. }
  1779. }
  1780. },
  1781. "/wechat/getEncryptInfo": {
  1782. "post": {
  1783. "description": "消息解密",
  1784. "consumes": [
  1785. "application/json"
  1786. ],
  1787. "tags": [
  1788. "微信相关接口"
  1789. ],
  1790. "summary": "消息解密",
  1791. "parameters": [
  1792. {
  1793. "type": "string",
  1794. "description": "加密数据",
  1795. "name": "encryptedData",
  1796. "in": "query",
  1797. "required": true
  1798. },
  1799. {
  1800. "type": "string",
  1801. "description": "加密算法初始向量",
  1802. "name": "iv",
  1803. "in": "query",
  1804. "required": true
  1805. }
  1806. ],
  1807. "responses": {
  1808. "200": {
  1809. "description": "获取成功",
  1810. "schema": {
  1811. "type": "string"
  1812. }
  1813. }
  1814. }
  1815. }
  1816. },
  1817. "/wechat/login": {
  1818. "get": {
  1819. "description": "微信登录",
  1820. "consumes": [
  1821. "application/json"
  1822. ],
  1823. "tags": [
  1824. "微信相关接口"
  1825. ],
  1826. "summary": "微信登录",
  1827. "parameters": [
  1828. {
  1829. "type": "string",
  1830. "description": "微信code",
  1831. "name": "code",
  1832. "in": "query",
  1833. "required": true
  1834. }
  1835. ],
  1836. "responses": {
  1837. "200": {
  1838. "description": "OK",
  1839. "schema": {
  1840. "$ref": "#/definitions/response.LoginResp"
  1841. }
  1842. }
  1843. }
  1844. }
  1845. }
  1846. },
  1847. "definitions": {
  1848. "activity.ActivityList": {
  1849. "type": "object",
  1850. "properties": {
  1851. "activityId": {
  1852. "type": "integer"
  1853. },
  1854. "activityName": {
  1855. "description": "活动名称",
  1856. "type": "string"
  1857. },
  1858. "activityState": {
  1859. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  1860. "type": "integer"
  1861. },
  1862. "activityTypeId": {
  1863. "description": "活动类型ID",
  1864. "type": "integer"
  1865. },
  1866. "activityTypeName": {
  1867. "description": "活动类型名称",
  1868. "type": "string"
  1869. },
  1870. "city": {
  1871. "description": "城市",
  1872. "type": "string"
  1873. },
  1874. "endTime": {
  1875. "description": "活动结束时间",
  1876. "type": "string"
  1877. },
  1878. "firstActivityTypeId": {
  1879. "description": "第一级的活动类型ID",
  1880. "type": "integer"
  1881. },
  1882. "firstActivityTypeName": {
  1883. "description": "第一级的活动类型名称",
  1884. "type": "string"
  1885. },
  1886. "hasPlayBack": {
  1887. "description": "是否有回放",
  1888. "type": "integer"
  1889. },
  1890. "hasRemind": {
  1891. "description": "是否已提醒",
  1892. "type": "integer"
  1893. },
  1894. "registerState": {
  1895. "description": "报名状态 0-取消报名 1-已报名",
  1896. "type": "integer"
  1897. },
  1898. "speaker": {
  1899. "description": "主讲人",
  1900. "type": "string"
  1901. },
  1902. "speakerBackgroundPic": {
  1903. "description": "主讲人背景图",
  1904. "type": "string"
  1905. },
  1906. "speakerHeadPic": {
  1907. "description": "主讲人头像",
  1908. "type": "string"
  1909. },
  1910. "startTime": {
  1911. "description": "活动开始时间",
  1912. "type": "string"
  1913. },
  1914. "voiceList": {
  1915. "description": "音频列表",
  1916. "type": "array",
  1917. "items": {
  1918. "$ref": "#/definitions/yb_activity_voice.YbActivityVoice"
  1919. }
  1920. },
  1921. "weekString": {
  1922. "description": "周几",
  1923. "type": "string"
  1924. }
  1925. }
  1926. },
  1927. "activity.RegisterCheckInfo": {
  1928. "type": "object",
  1929. "properties": {
  1930. "msg": {
  1931. "type": "string"
  1932. },
  1933. "specific": {
  1934. "type": "integer"
  1935. },
  1936. "type": {
  1937. "type": "string"
  1938. }
  1939. }
  1940. },
  1941. "activity.RemindCheckInfo": {
  1942. "type": "object",
  1943. "properties": {
  1944. "msg": {
  1945. "type": "string"
  1946. },
  1947. "specific": {
  1948. "type": "integer"
  1949. },
  1950. "type": {
  1951. "type": "string"
  1952. }
  1953. }
  1954. },
  1955. "admin.Admin": {
  1956. "type": "object",
  1957. "properties": {
  1958. "adminAvatar": {
  1959. "type": "string"
  1960. },
  1961. "adminName": {
  1962. "type": "string"
  1963. },
  1964. "authority": {
  1965. "description": "管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员",
  1966. "type": "integer"
  1967. },
  1968. "createdTime": {
  1969. "description": "创建时间",
  1970. "type": "string"
  1971. },
  1972. "departmentId": {
  1973. "description": "部门id",
  1974. "type": "integer"
  1975. },
  1976. "departmentName": {
  1977. "description": "部门名称",
  1978. "type": "string"
  1979. },
  1980. "email": {
  1981. "type": "string"
  1982. },
  1983. "enabled": {
  1984. "description": "1:有效,0:禁用",
  1985. "type": "integer"
  1986. },
  1987. "groupId": {
  1988. "description": "分组id",
  1989. "type": "integer"
  1990. },
  1991. "groupName": {
  1992. "description": "分组名称",
  1993. "type": "string"
  1994. },
  1995. "lastLoginTime": {
  1996. "description": "最近登陆时间",
  1997. "type": "string"
  1998. },
  1999. "lastUpdatedPasswordTime": {
  2000. "type": "string"
  2001. },
  2002. "lastUpdatedTime": {
  2003. "type": "string"
  2004. },
  2005. "mobile": {
  2006. "description": "手机号",
  2007. "type": "string"
  2008. },
  2009. "password": {
  2010. "type": "string"
  2011. },
  2012. "position": {
  2013. "description": "职位",
  2014. "type": "string"
  2015. },
  2016. "realName": {
  2017. "type": "string"
  2018. },
  2019. "role": {
  2020. "description": "用户角色",
  2021. "type": "string"
  2022. },
  2023. "roleId": {
  2024. "description": "角色id",
  2025. "type": "integer"
  2026. },
  2027. "roleName": {
  2028. "description": "角色名称",
  2029. "type": "string"
  2030. },
  2031. "roleType": {
  2032. "description": "角色类型:1需要录入指标,0:不需要",
  2033. "type": "integer"
  2034. },
  2035. "roleTypeCode": {
  2036. "description": "角色编码",
  2037. "type": "string"
  2038. }
  2039. }
  2040. },
  2041. "chart_edb_mapping.ChartEdbInfoMappingList": {
  2042. "type": "object",
  2043. "properties": {
  2044. "chartColor": {
  2045. "type": "string"
  2046. },
  2047. "chartEdbMappingId": {
  2048. "type": "integer"
  2049. },
  2050. "chartInfoId": {
  2051. "type": "integer"
  2052. },
  2053. "chartStyle": {
  2054. "type": "string"
  2055. },
  2056. "chartWidth": {
  2057. "type": "number"
  2058. },
  2059. "dataList": {},
  2060. "edbCode": {
  2061. "type": "string"
  2062. },
  2063. "edbInfoId": {
  2064. "type": "integer"
  2065. },
  2066. "edbInfoType": {
  2067. "type": "integer"
  2068. },
  2069. "edbName": {
  2070. "type": "string"
  2071. },
  2072. "edbType": {
  2073. "type": "integer"
  2074. },
  2075. "endDate": {
  2076. "type": "string"
  2077. },
  2078. "frequency": {
  2079. "type": "string"
  2080. },
  2081. "isAxis": {
  2082. "type": "integer"
  2083. },
  2084. "isOrder": {
  2085. "type": "boolean"
  2086. },
  2087. "latestDate": {
  2088. "type": "string"
  2089. },
  2090. "latestValue": {
  2091. "type": "number"
  2092. },
  2093. "leadUnit": {
  2094. "type": "string"
  2095. },
  2096. "leadValue": {
  2097. "type": "integer"
  2098. },
  2099. "maxData": {
  2100. "type": "number"
  2101. },
  2102. "minData": {
  2103. "type": "number"
  2104. },
  2105. "modifyTime": {
  2106. "type": "string"
  2107. },
  2108. "source": {
  2109. "type": "integer"
  2110. },
  2111. "sourceName": {
  2112. "type": "string"
  2113. },
  2114. "startDate": {
  2115. "type": "string"
  2116. },
  2117. "uniqueCode": {
  2118. "type": "string"
  2119. },
  2120. "unit": {
  2121. "type": "string"
  2122. }
  2123. }
  2124. },
  2125. "chart_info.ChartBeforeNext": {
  2126. "type": "object",
  2127. "properties": {
  2128. "nextChart": {
  2129. "$ref": "#/definitions/chart_info.ChartSortInfo"
  2130. },
  2131. "prevChart": {
  2132. "$ref": "#/definitions/chart_info.ChartSortInfo"
  2133. }
  2134. }
  2135. },
  2136. "chart_info.ChartInfoDetailResp": {
  2137. "type": "object",
  2138. "properties": {
  2139. "chartInfo": {
  2140. "$ref": "#/definitions/chart_info.ChartInfoView"
  2141. },
  2142. "edbInfoList": {
  2143. "type": "array",
  2144. "items": {
  2145. "$ref": "#/definitions/chart_edb_mapping.ChartEdbInfoMappingList"
  2146. }
  2147. }
  2148. }
  2149. },
  2150. "chart_info.ChartInfoView": {
  2151. "type": "object",
  2152. "properties": {
  2153. "calendar": {
  2154. "type": "string"
  2155. },
  2156. "chartClassifyId": {
  2157. "type": "integer"
  2158. },
  2159. "chartClassifyName": {
  2160. "type": "string"
  2161. },
  2162. "chartImage": {
  2163. "type": "string"
  2164. },
  2165. "chartInfoId": {
  2166. "type": "integer"
  2167. },
  2168. "chartName": {
  2169. "type": "string"
  2170. },
  2171. "chartSource": {
  2172. "type": "string"
  2173. },
  2174. "chartType": {
  2175. "type": "integer"
  2176. },
  2177. "createTime": {
  2178. "type": "string"
  2179. },
  2180. "dateType": {
  2181. "type": "integer"
  2182. },
  2183. "edbEndDate": {
  2184. "type": "string"
  2185. },
  2186. "edbInfoIds": {
  2187. "type": "string"
  2188. },
  2189. "endDate": {
  2190. "type": "string"
  2191. },
  2192. "isAdd": {
  2193. "type": "boolean"
  2194. },
  2195. "isSetName": {
  2196. "type": "integer"
  2197. },
  2198. "leftMax": {
  2199. "type": "string"
  2200. },
  2201. "leftMin": {
  2202. "type": "string"
  2203. },
  2204. "modifyTime": {
  2205. "type": "string"
  2206. },
  2207. "myChartClassifyId": {
  2208. "type": "string"
  2209. },
  2210. "myChartId": {
  2211. "type": "integer"
  2212. },
  2213. "rightMax": {
  2214. "type": "string"
  2215. },
  2216. "rightMin": {
  2217. "type": "string"
  2218. },
  2219. "seasonEndDate": {
  2220. "type": "string"
  2221. },
  2222. "seasonStartDate": {
  2223. "type": "string"
  2224. },
  2225. "sort": {
  2226. "type": "integer"
  2227. },
  2228. "startDate": {
  2229. "type": "string"
  2230. },
  2231. "sysUserId": {
  2232. "type": "integer"
  2233. },
  2234. "sysUserRealName": {
  2235. "type": "string"
  2236. },
  2237. "uniqueCode": {
  2238. "type": "string"
  2239. }
  2240. }
  2241. },
  2242. "chart_info.ChartSaveItem": {
  2243. "type": "object",
  2244. "properties": {
  2245. "chartColor": {
  2246. "type": "string"
  2247. },
  2248. "chartStyle": {
  2249. "type": "string"
  2250. },
  2251. "chartWidth": {
  2252. "type": "number"
  2253. },
  2254. "edbInfoId": {
  2255. "type": "integer"
  2256. },
  2257. "edbInfoType": {
  2258. "type": "integer"
  2259. },
  2260. "isAxis": {
  2261. "type": "integer"
  2262. },
  2263. "isOrder": {
  2264. "type": "boolean"
  2265. },
  2266. "leadUnit": {
  2267. "type": "string"
  2268. },
  2269. "leadValue": {
  2270. "type": "integer"
  2271. },
  2272. "maxData": {
  2273. "type": "number"
  2274. },
  2275. "minData": {
  2276. "type": "number"
  2277. }
  2278. }
  2279. },
  2280. "chart_info.ChartSortInfo": {
  2281. "type": "object",
  2282. "properties": {
  2283. "chartInfoId": {
  2284. "type": "integer"
  2285. },
  2286. "myChartClassifyId": {
  2287. "type": "integer"
  2288. },
  2289. "myChartClassifyName": {
  2290. "type": "string"
  2291. },
  2292. "myChartId": {
  2293. "type": "integer"
  2294. },
  2295. "sort": {
  2296. "type": "integer"
  2297. },
  2298. "switch": {
  2299. "type": "integer"
  2300. },
  2301. "uniqueCode": {
  2302. "type": "string"
  2303. }
  2304. }
  2305. },
  2306. "chart_info.SaveChartInfoReq": {
  2307. "type": "object",
  2308. "properties": {
  2309. "calendar": {
  2310. "type": "string"
  2311. },
  2312. "chartEdbInfoList": {
  2313. "type": "array",
  2314. "items": {
  2315. "$ref": "#/definitions/chart_info.ChartSaveItem"
  2316. }
  2317. },
  2318. "chartInfoId": {
  2319. "type": "integer"
  2320. },
  2321. "dateType": {
  2322. "type": "integer"
  2323. },
  2324. "endDate": {
  2325. "type": "string"
  2326. },
  2327. "leftMax": {
  2328. "type": "string"
  2329. },
  2330. "leftMin": {
  2331. "type": "string"
  2332. },
  2333. "rightMax": {
  2334. "type": "string"
  2335. },
  2336. "rightMin": {
  2337. "type": "string"
  2338. },
  2339. "seasonEndDate": {
  2340. "type": "string"
  2341. },
  2342. "seasonStartDate": {
  2343. "type": "string"
  2344. },
  2345. "startDate": {
  2346. "type": "string"
  2347. }
  2348. }
  2349. },
  2350. "company.FiccPermissionList": {
  2351. "type": "object",
  2352. "properties": {
  2353. "classifyName": {
  2354. "type": "string"
  2355. },
  2356. "items": {
  2357. "description": "HasPermission bool ` + "`" + `description:\"是否有权限\"` + "`" + `",
  2358. "type": "array",
  2359. "items": {
  2360. "$ref": "#/definitions/company.PermissionItem"
  2361. }
  2362. }
  2363. }
  2364. },
  2365. "company.PermissionItem": {
  2366. "type": "object",
  2367. "properties": {
  2368. "permissionId": {
  2369. "type": "integer"
  2370. },
  2371. "permissionName": {
  2372. "type": "string"
  2373. }
  2374. }
  2375. },
  2376. "logic.ApplyVariety": {
  2377. "type": "object",
  2378. "properties": {
  2379. "name": {
  2380. "type": "string"
  2381. },
  2382. "permission_name": {
  2383. "type": "string"
  2384. },
  2385. "pic_url": {
  2386. "type": "string"
  2387. }
  2388. }
  2389. },
  2390. "my_chart.MoveMyChartClassifyReq": {
  2391. "type": "object",
  2392. "properties": {
  2393. "myChartClassifyId": {
  2394. "type": "integer"
  2395. },
  2396. "nextClassifyId": {
  2397. "type": "integer"
  2398. },
  2399. "prevClassifyId": {
  2400. "type": "integer"
  2401. }
  2402. }
  2403. },
  2404. "my_chart.MoveMyChartReq": {
  2405. "type": "object",
  2406. "properties": {
  2407. "myChartClassifyId": {
  2408. "type": "integer"
  2409. },
  2410. "myChartId": {
  2411. "type": "integer"
  2412. },
  2413. "nextMyChartId": {
  2414. "type": "integer"
  2415. },
  2416. "prevMyChartId": {
  2417. "type": "integer"
  2418. }
  2419. }
  2420. },
  2421. "my_chart.MyChartClassifyListResp": {
  2422. "type": "object",
  2423. "properties": {
  2424. "private_classify": {
  2425. "type": "array",
  2426. "items": {
  2427. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  2428. }
  2429. },
  2430. "public_classify": {
  2431. "type": "array",
  2432. "items": {
  2433. "$ref": "#/definitions/my_chart_classify.MyChartClassify"
  2434. }
  2435. }
  2436. }
  2437. },
  2438. "my_chart.MyChartList": {
  2439. "type": "object",
  2440. "properties": {
  2441. "calendar": {
  2442. "type": "string"
  2443. },
  2444. "chartClassifyId": {
  2445. "type": "integer"
  2446. },
  2447. "chartImage": {
  2448. "type": "string"
  2449. },
  2450. "chartInfoId": {
  2451. "type": "integer"
  2452. },
  2453. "chartName": {
  2454. "type": "string"
  2455. },
  2456. "chartType": {
  2457. "type": "integer"
  2458. },
  2459. "createTime": {
  2460. "type": "string"
  2461. },
  2462. "dateType": {
  2463. "type": "integer"
  2464. },
  2465. "edbEndDate": {
  2466. "type": "string"
  2467. },
  2468. "edbInfoIds": {
  2469. "type": "string"
  2470. },
  2471. "endDate": {
  2472. "type": "string"
  2473. },
  2474. "isAdd": {
  2475. "type": "boolean"
  2476. },
  2477. "isSetName": {
  2478. "type": "integer"
  2479. },
  2480. "modifyTime": {
  2481. "type": "string"
  2482. },
  2483. "myChartClassifyId": {
  2484. "type": "string"
  2485. },
  2486. "myChartClassifyName": {
  2487. "type": "string"
  2488. },
  2489. "myChartId": {
  2490. "type": "integer"
  2491. },
  2492. "seasonEndDate": {
  2493. "type": "string"
  2494. },
  2495. "seasonStartDate": {
  2496. "type": "string"
  2497. },
  2498. "sort": {
  2499. "type": "number"
  2500. },
  2501. "startDate": {
  2502. "type": "string"
  2503. },
  2504. "sysUserId": {
  2505. "type": "integer"
  2506. },
  2507. "sysUserRealName": {
  2508. "type": "string"
  2509. },
  2510. "uniqueCode": {
  2511. "type": "string"
  2512. }
  2513. }
  2514. },
  2515. "my_chart_classify.MyChartClassify": {
  2516. "type": "object",
  2517. "properties": {
  2518. "adminId": {
  2519. "description": "用户id",
  2520. "type": "integer"
  2521. },
  2522. "companyPublicTime": {
  2523. "description": "用户可见公开时间",
  2524. "type": "string"
  2525. },
  2526. "createTime": {
  2527. "type": "string"
  2528. },
  2529. "isCompanyPublic": {
  2530. "description": "是否用户可见:0-否 1-是",
  2531. "type": "integer"
  2532. },
  2533. "isPublic": {
  2534. "description": "是否所有人可见,0:仅自己可见,1:所有人可见",
  2535. "type": "integer"
  2536. },
  2537. "modifyTime": {
  2538. "type": "string"
  2539. },
  2540. "myChartClassifyId": {
  2541. "type": "integer"
  2542. },
  2543. "myChartClassifyName": {
  2544. "description": "分类名称",
  2545. "type": "string"
  2546. },
  2547. "publicTime": {
  2548. "description": "公开时间",
  2549. "type": "string"
  2550. },
  2551. "sort": {
  2552. "description": "排序字段,值越小,越靠前",
  2553. "type": "integer"
  2554. }
  2555. }
  2556. },
  2557. "response.CommunityQuestionAudioItem": {
  2558. "type": "object",
  2559. "properties": {
  2560. "audio_play_seconds": {
  2561. "type": "string"
  2562. },
  2563. "audio_size": {
  2564. "type": "string"
  2565. },
  2566. "audio_url": {
  2567. "type": "string"
  2568. },
  2569. "community_question_id": {
  2570. "type": "integer"
  2571. },
  2572. "sort": {
  2573. "type": "integer"
  2574. }
  2575. }
  2576. },
  2577. "response.CommunityQuestionItem": {
  2578. "type": "object",
  2579. "properties": {
  2580. "audio_list": {
  2581. "type": "array",
  2582. "items": {
  2583. "$ref": "#/definitions/response.CommunityQuestionAudioItem"
  2584. }
  2585. },
  2586. "auth_ok": {
  2587. "type": "boolean"
  2588. },
  2589. "chart_permission_id": {
  2590. "type": "integer"
  2591. },
  2592. "chart_permission_name": {
  2593. "type": "string"
  2594. },
  2595. "community_question_id": {
  2596. "type": "integer"
  2597. },
  2598. "create_time": {
  2599. "type": "string"
  2600. },
  2601. "is_read": {
  2602. "type": "integer"
  2603. },
  2604. "is_top": {
  2605. "type": "integer"
  2606. },
  2607. "permission_info": {
  2608. "$ref": "#/definitions/response.PermissionCheckInfo"
  2609. },
  2610. "question_content": {
  2611. "type": "string"
  2612. },
  2613. "replier_avatar": {
  2614. "type": "string"
  2615. },
  2616. "replier_rank": {
  2617. "type": "string"
  2618. },
  2619. "replier_real_name": {
  2620. "type": "string"
  2621. },
  2622. "reply_time": {
  2623. "type": "string"
  2624. },
  2625. "user_id": {
  2626. "type": "integer"
  2627. }
  2628. }
  2629. },
  2630. "response.CommunityQuestionListTotal": {
  2631. "type": "object",
  2632. "properties": {
  2633. "replied": {
  2634. "type": "integer"
  2635. },
  2636. "total": {
  2637. "type": "integer"
  2638. },
  2639. "wait": {
  2640. "type": "integer"
  2641. }
  2642. }
  2643. },
  2644. "response.CustomerInfo": {
  2645. "type": "object",
  2646. "properties": {
  2647. "company_name": {
  2648. "type": "string"
  2649. },
  2650. "has_apply": {
  2651. "type": "boolean"
  2652. },
  2653. "is_suspend": {
  2654. "type": "integer"
  2655. },
  2656. "mobile": {
  2657. "type": "string"
  2658. },
  2659. "name": {
  2660. "type": "string"
  2661. },
  2662. "status": {
  2663. "type": "string"
  2664. }
  2665. }
  2666. },
  2667. "response.LoginResp": {
  2668. "type": "object",
  2669. "properties": {
  2670. "authorization": {
  2671. "type": "string"
  2672. },
  2673. "is_bind": {
  2674. "type": "boolean"
  2675. },
  2676. "user_id": {
  2677. "type": "integer"
  2678. }
  2679. }
  2680. },
  2681. "response.PermissionCheckInfo": {
  2682. "type": "object",
  2683. "properties": {
  2684. "customer_info": {
  2685. "$ref": "#/definitions/response.CustomerInfo"
  2686. },
  2687. "hz_phone": {
  2688. "type": "string"
  2689. },
  2690. "mobile": {
  2691. "type": "string"
  2692. },
  2693. "name": {
  2694. "type": "string"
  2695. },
  2696. "type": {
  2697. "type": "string"
  2698. }
  2699. }
  2700. },
  2701. "services.SharePosterReq": {
  2702. "type": "object",
  2703. "properties": {
  2704. "code_page": {
  2705. "type": "string"
  2706. },
  2707. "code_scene": {
  2708. "type": "string"
  2709. },
  2710. "pars": {
  2711. "type": "string"
  2712. },
  2713. "source": {
  2714. "type": "string"
  2715. },
  2716. "version": {
  2717. "type": "string"
  2718. }
  2719. }
  2720. },
  2721. "user.ApplyReq": {
  2722. "type": "object",
  2723. "properties": {
  2724. "business_card_url": {
  2725. "type": "string"
  2726. },
  2727. "company_name": {
  2728. "type": "string"
  2729. },
  2730. "from_page": {
  2731. "type": "string"
  2732. },
  2733. "permission": {
  2734. "type": "string"
  2735. },
  2736. "real_name": {
  2737. "type": "string"
  2738. },
  2739. "source": {
  2740. "type": "integer"
  2741. },
  2742. "source_agent": {
  2743. "type": "integer"
  2744. }
  2745. }
  2746. },
  2747. "user.CompanyPermission": {
  2748. "type": "object",
  2749. "properties": {
  2750. "name": {
  2751. "type": "string"
  2752. },
  2753. "permission_list": {
  2754. "type": "array",
  2755. "items": {
  2756. "$ref": "#/definitions/user.PermissionList"
  2757. }
  2758. }
  2759. }
  2760. },
  2761. "user.Detail": {
  2762. "type": "object",
  2763. "properties": {
  2764. "admin_info": {
  2765. "$ref": "#/definitions/admin.Admin"
  2766. },
  2767. "company_name": {
  2768. "type": "string"
  2769. },
  2770. "email": {
  2771. "type": "string"
  2772. },
  2773. "is_inner": {
  2774. "type": "integer"
  2775. },
  2776. "is_suspend": {
  2777. "type": "integer"
  2778. },
  2779. "mobile": {
  2780. "type": "string"
  2781. },
  2782. "permission_list": {
  2783. "type": "array",
  2784. "items": {
  2785. "$ref": "#/definitions/user.CompanyPermission"
  2786. }
  2787. },
  2788. "real_name": {
  2789. "type": "string"
  2790. },
  2791. "seal_mobile": {
  2792. "type": "string"
  2793. },
  2794. "seal_name": {
  2795. "type": "string"
  2796. },
  2797. "status": {
  2798. "type": "string"
  2799. }
  2800. }
  2801. },
  2802. "user.LoginReq": {
  2803. "type": "object",
  2804. "properties": {
  2805. "area_num": {
  2806. "type": "integer"
  2807. },
  2808. "bind_type": {
  2809. "type": "integer"
  2810. },
  2811. "email": {
  2812. "type": "string"
  2813. },
  2814. "mobile": {
  2815. "type": "string"
  2816. },
  2817. "verify_code": {
  2818. "type": "string"
  2819. }
  2820. }
  2821. },
  2822. "user.LoginResp": {
  2823. "type": "object",
  2824. "properties": {
  2825. "email": {
  2826. "type": "string"
  2827. },
  2828. "mobile": {
  2829. "type": "string"
  2830. },
  2831. "token": {
  2832. "type": "string"
  2833. },
  2834. "user_id": {
  2835. "type": "integer"
  2836. }
  2837. }
  2838. },
  2839. "user.PermissionList": {
  2840. "type": "object",
  2841. "properties": {
  2842. "end_date": {
  2843. "type": "string"
  2844. },
  2845. "name": {
  2846. "type": "string"
  2847. },
  2848. "start_date": {
  2849. "type": "string"
  2850. },
  2851. "status": {
  2852. "type": "string"
  2853. }
  2854. }
  2855. },
  2856. "user.Record": {
  2857. "type": "object",
  2858. "properties": {
  2859. "business_card_url": {
  2860. "type": "string"
  2861. },
  2862. "company_name": {
  2863. "type": "string"
  2864. },
  2865. "mobile": {
  2866. "type": "string"
  2867. },
  2868. "real_name": {
  2869. "type": "string"
  2870. }
  2871. }
  2872. },
  2873. "yb_activity.ActivityDetail": {
  2874. "type": "object",
  2875. "properties": {
  2876. "activityId": {
  2877. "type": "integer"
  2878. },
  2879. "activityName": {
  2880. "description": "活动名称",
  2881. "type": "string"
  2882. },
  2883. "activityState": {
  2884. "description": "活动状态 1-本周预告 2-进行中 3-已结束",
  2885. "type": "integer"
  2886. },
  2887. "activityTypeId": {
  2888. "description": "活动类型ID",
  2889. "type": "integer"
  2890. },
  2891. "activityTypeName": {
  2892. "description": "活动类型名称",
  2893. "type": "string"
  2894. },
  2895. "address": {
  2896. "description": "活动地址",
  2897. "type": "string"
  2898. },
  2899. "americaTel": {
  2900. "description": "美国拨入",
  2901. "type": "string"
  2902. },
  2903. "city": {
  2904. "description": "城市",
  2905. "type": "string"
  2906. },
  2907. "endTime": {
  2908. "description": "活动结束时间",
  2909. "type": "string"
  2910. },
  2911. "firstActivityTypeId": {
  2912. "description": "第一级的活动类型ID",
  2913. "type": "integer"
  2914. },
  2915. "firstActivityTypeName": {
  2916. "description": "第一级的活动类型名称",
  2917. "type": "string"
  2918. },
  2919. "hasPlayBack": {
  2920. "description": "是否有回放",
  2921. "type": "integer"
  2922. },
  2923. "hasRemind": {
  2924. "description": "是否已提醒",
  2925. "type": "integer"
  2926. },
  2927. "hongKongTel": {
  2928. "description": "香港拨入",
  2929. "type": "string"
  2930. },
  2931. "isLimitPeople": {
  2932. "description": "是否限制人数 1是,0否",
  2933. "type": "integer"
  2934. },
  2935. "limitPeopleNum": {
  2936. "description": "限制人数数量",
  2937. "type": "integer"
  2938. },
  2939. "linkParticipants": {
  2940. "description": "参会链接",
  2941. "type": "string"
  2942. },
  2943. "mainlandTel": {
  2944. "description": "大陆拨入",
  2945. "type": "string"
  2946. },
  2947. "participationCode": {
  2948. "description": "参会密码",
  2949. "type": "string"
  2950. },
  2951. "registerState": {
  2952. "description": "报名状态 0-取消报名 1-已报名",
  2953. "type": "integer"
  2954. },
  2955. "registeredNum": {
  2956. "description": "已报名人数",
  2957. "type": "integer"
  2958. },
  2959. "reportLink": {
  2960. "description": "报告链接",
  2961. "type": "string"
  2962. },
  2963. "reportName": {
  2964. "description": "报告名称",
  2965. "type": "string"
  2966. },
  2967. "singaporeTel": {
  2968. "description": "新加坡拨入",
  2969. "type": "string"
  2970. },
  2971. "speaker": {
  2972. "description": "主讲人",
  2973. "type": "string"
  2974. },
  2975. "speakerBackgroundPic": {
  2976. "description": "主讲人背景图",
  2977. "type": "string"
  2978. },
  2979. "speakerHeadPic": {
  2980. "description": "主讲人头像",
  2981. "type": "string"
  2982. },
  2983. "startTime": {
  2984. "description": "活动开始时间",
  2985. "type": "string"
  2986. },
  2987. "taiwanTel": {
  2988. "description": "台湾拨入",
  2989. "type": "string"
  2990. },
  2991. "weekString": {
  2992. "description": "周几",
  2993. "type": "string"
  2994. }
  2995. }
  2996. },
  2997. "yb_activity_voice.YbActivityVoice": {
  2998. "type": "object",
  2999. "properties": {
  3000. "activityId": {
  3001. "description": "活动id",
  3002. "type": "integer"
  3003. },
  3004. "createTime": {
  3005. "type": "string"
  3006. },
  3007. "voiceName": {
  3008. "description": "音频名称",
  3009. "type": "string"
  3010. },
  3011. "voicePlaySeconds": {
  3012. "description": "音频时长",
  3013. "type": "string"
  3014. },
  3015. "voiceUrl": {
  3016. "description": "音频地址",
  3017. "type": "string"
  3018. }
  3019. }
  3020. }
  3021. }
  3022. }`
  3023. type swaggerInfo struct {
  3024. Version string
  3025. Host string
  3026. BasePath string
  3027. Schemes []string
  3028. Title string
  3029. Description string
  3030. }
  3031. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3032. var SwaggerInfo = swaggerInfo{
  3033. Version: "1.0",
  3034. Host: "127.0.0.1:8607",
  3035. BasePath: "/",
  3036. Schemes: []string{},
  3037. Title: "弘则研报API接口文档",
  3038. Description: "这是弘则研报API接口文档",
  3039. }
  3040. type s struct{}
  3041. func (s *s) ReadDoc() string {
  3042. sInfo := SwaggerInfo
  3043. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3044. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3045. "marshal": func(v interface{}) string {
  3046. a, _ := json.Marshal(v)
  3047. return string(a)
  3048. },
  3049. "escape": func(v interface{}) string {
  3050. // escape tabs
  3051. str := strings.Replace(v.(string), "\t", "\\t", -1)
  3052. // replace " with \", and if that results in \\", replace that with \\\"
  3053. str = strings.Replace(str, "\"", "\\\"", -1)
  3054. return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
  3055. },
  3056. }).Parse(doc)
  3057. if err != nil {
  3058. return doc
  3059. }
  3060. var tpl bytes.Buffer
  3061. if err := t.Execute(&tpl, sInfo); err != nil {
  3062. return doc
  3063. }
  3064. return tpl.String()
  3065. }
  3066. func init() {
  3067. swag.Register("swagger", &s{})
  3068. }