docs.go 115 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575
  1. // 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. "github.com/alecthomas/template"
  9. "github.com/swaggo/swag"
  10. )
  11. var doc = `{
  12. "schemes": {{ marshal .Schemes }},
  13. "swagger": "2.0",
  14. "info": {
  15. "description": "{{.Description}}",
  16. "title": "{{.Title}}",
  17. "contact": {},
  18. "license": {},
  19. "version": "{{.Version}}"
  20. },
  21. "host": "{{.Host}}",
  22. "basePath": "{{.BasePath}}",
  23. "paths": {
  24. "/api/v1/file": {
  25. "get": {
  26. "description": "获取文件",
  27. "consumes": [
  28. "application/json"
  29. ],
  30. "produces": [
  31. "application/json"
  32. ],
  33. "tags": [
  34. "download"
  35. ],
  36. "summary": "获取文件",
  37. "parameters": [
  38. {
  39. "type": "string",
  40. "description": "jwt token",
  41. "name": "token",
  42. "in": "header",
  43. "required": true
  44. },
  45. {
  46. "type": "string",
  47. "description": " ",
  48. "name": "obj",
  49. "in": "query",
  50. "required": true
  51. }
  52. ],
  53. "responses": {
  54. "200": {
  55. "description": "OK",
  56. "schema": {
  57. "$ref": "#/definitions/v1.UploadResponse"
  58. }
  59. },
  60. "500": {
  61. "description": "Internal Server Error",
  62. "schema": {
  63. "$ref": "#/definitions/base.HTTPError"
  64. }
  65. }
  66. }
  67. },
  68. "post": {
  69. "description": "上传文件",
  70. "consumes": [
  71. "application/json"
  72. ],
  73. "produces": [
  74. "application/json"
  75. ],
  76. "tags": [
  77. "upload"
  78. ],
  79. "summary": "上传文件",
  80. "parameters": [
  81. {
  82. "type": "string",
  83. "description": "jwt token",
  84. "name": "token",
  85. "in": "header",
  86. "required": true
  87. },
  88. {
  89. "type": "file",
  90. "description": "file",
  91. "name": "file",
  92. "in": "formData"
  93. }
  94. ],
  95. "responses": {
  96. "200": {
  97. "description": "OK",
  98. "schema": {
  99. "$ref": "#/definitions/v1.UploadResponse"
  100. }
  101. },
  102. "500": {
  103. "description": "Internal Server Error",
  104. "schema": {
  105. "$ref": "#/definitions/base.HTTPError"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/api/v1/jt/announcement": {
  112. "get": {
  113. "description": "公示公告列表",
  114. "consumes": [
  115. "application/json"
  116. ],
  117. "produces": [
  118. "application/json"
  119. ],
  120. "tags": [
  121. "公示公告"
  122. ],
  123. "summary": "公示公告列表",
  124. "parameters": [
  125. {
  126. "type": "string",
  127. "description": " ",
  128. "name": "token",
  129. "in": "header",
  130. "required": true
  131. },
  132. {
  133. "type": "integer",
  134. "description": " ",
  135. "name": "page",
  136. "in": "query"
  137. },
  138. {
  139. "type": "integer",
  140. "description": " ",
  141. "name": "page_size",
  142. "in": "query"
  143. }
  144. ],
  145. "responses": {
  146. "200": {
  147. "description": "OK",
  148. "schema": {
  149. "$ref": "#/definitions/v1.JtContentListResponse"
  150. }
  151. },
  152. "500": {
  153. "description": "Internal Server Error",
  154. "schema": {
  155. "$ref": "#/definitions/base.HTTPError"
  156. }
  157. }
  158. }
  159. },
  160. "put": {
  161. "description": "修改公示公告",
  162. "consumes": [
  163. "application/json"
  164. ],
  165. "produces": [
  166. "application/json"
  167. ],
  168. "tags": [
  169. "公示公告"
  170. ],
  171. "summary": "修改公示公告",
  172. "parameters": [
  173. {
  174. "type": "string",
  175. "description": " ",
  176. "name": "token",
  177. "in": "header",
  178. "required": true
  179. },
  180. {
  181. "description": " ",
  182. "name": "body",
  183. "in": "body",
  184. "required": true,
  185. "schema": {
  186. "$ref": "#/definitions/v1.JtContentUpdateBody"
  187. }
  188. }
  189. ],
  190. "responses": {
  191. "200": {
  192. "description": "OK",
  193. "schema": {
  194. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  195. }
  196. },
  197. "500": {
  198. "description": "Internal Server Error",
  199. "schema": {
  200. "$ref": "#/definitions/base.HTTPError"
  201. }
  202. }
  203. }
  204. },
  205. "post": {
  206. "description": "添加公示公告",
  207. "consumes": [
  208. "application/json"
  209. ],
  210. "produces": [
  211. "application/json"
  212. ],
  213. "tags": [
  214. "公示公告"
  215. ],
  216. "summary": "添加公示公告",
  217. "parameters": [
  218. {
  219. "type": "string",
  220. "description": " ",
  221. "name": "token",
  222. "in": "header",
  223. "required": true
  224. },
  225. {
  226. "description": " ",
  227. "name": "body",
  228. "in": "body",
  229. "required": true,
  230. "schema": {
  231. "$ref": "#/definitions/v1.JtContentAddBody"
  232. }
  233. }
  234. ],
  235. "responses": {
  236. "200": {
  237. "description": "OK",
  238. "schema": {
  239. "$ref": "#/definitions/v1.JtContentAddResponse"
  240. }
  241. },
  242. "500": {
  243. "description": "Internal Server Error",
  244. "schema": {
  245. "$ref": "#/definitions/base.HTTPError"
  246. }
  247. }
  248. }
  249. },
  250. "delete": {
  251. "description": "删除公示公告",
  252. "consumes": [
  253. "application/json"
  254. ],
  255. "produces": [
  256. "application/json"
  257. ],
  258. "tags": [
  259. "公示公告"
  260. ],
  261. "summary": "删除公示公告",
  262. "parameters": [
  263. {
  264. "type": "string",
  265. "description": " ",
  266. "name": "token",
  267. "in": "header",
  268. "required": true
  269. },
  270. {
  271. "type": "integer",
  272. "description": " 记录id",
  273. "name": "id",
  274. "in": "query",
  275. "required": true
  276. }
  277. ],
  278. "responses": {
  279. "200": {
  280. "description": "OK",
  281. "schema": {
  282. "$ref": "#/definitions/v1.JtContentDelResponse"
  283. }
  284. },
  285. "500": {
  286. "description": "Internal Server Error",
  287. "schema": {
  288. "$ref": "#/definitions/base.HTTPError"
  289. }
  290. }
  291. }
  292. }
  293. },
  294. "/api/v1/jt/announcement/publish": {
  295. "put": {
  296. "description": "发布或下架公示公告",
  297. "consumes": [
  298. "application/json"
  299. ],
  300. "produces": [
  301. "application/json"
  302. ],
  303. "tags": [
  304. "公示公告"
  305. ],
  306. "summary": "发布或下架公示公告",
  307. "parameters": [
  308. {
  309. "type": "string",
  310. "description": " ",
  311. "name": "token",
  312. "in": "header",
  313. "required": true
  314. },
  315. {
  316. "description": " ",
  317. "name": "body",
  318. "in": "body",
  319. "required": true,
  320. "schema": {
  321. "$ref": "#/definitions/v1.JtContentPublishBody"
  322. }
  323. }
  324. ],
  325. "responses": {
  326. "200": {
  327. "description": "OK",
  328. "schema": {
  329. "$ref": "#/definitions/v1.JtContentPublishResponse"
  330. }
  331. },
  332. "500": {
  333. "description": "Internal Server Error",
  334. "schema": {
  335. "$ref": "#/definitions/base.HTTPError"
  336. }
  337. }
  338. }
  339. }
  340. },
  341. "/api/v1/jt/contact": {
  342. "get": {
  343. "description": "联系我们信息",
  344. "consumes": [
  345. "application/json"
  346. ],
  347. "produces": [
  348. "application/json"
  349. ],
  350. "tags": [
  351. "联系我们"
  352. ],
  353. "summary": "联系我们信息",
  354. "parameters": [
  355. {
  356. "type": "string",
  357. "description": " ",
  358. "name": "token",
  359. "in": "header",
  360. "required": true
  361. }
  362. ],
  363. "responses": {
  364. "200": {
  365. "description": "OK",
  366. "schema": {
  367. "$ref": "#/definitions/v1.ContactInfoResponse"
  368. }
  369. },
  370. "500": {
  371. "description": "Internal Server Error",
  372. "schema": {
  373. "$ref": "#/definitions/base.HTTPError"
  374. }
  375. }
  376. }
  377. },
  378. "put": {
  379. "description": "修改联系我们",
  380. "consumes": [
  381. "application/json"
  382. ],
  383. "produces": [
  384. "application/json"
  385. ],
  386. "tags": [
  387. "联系我们"
  388. ],
  389. "summary": "修改联系我们",
  390. "parameters": [
  391. {
  392. "type": "string",
  393. "description": " ",
  394. "name": "token",
  395. "in": "header",
  396. "required": true
  397. },
  398. {
  399. "description": " ",
  400. "name": "body",
  401. "in": "body",
  402. "required": true,
  403. "schema": {
  404. "$ref": "#/definitions/v1.ContactUpdateBody"
  405. }
  406. }
  407. ],
  408. "responses": {
  409. "200": {
  410. "description": "OK",
  411. "schema": {
  412. "$ref": "#/definitions/v1.ContactUpdateResponse"
  413. }
  414. },
  415. "500": {
  416. "description": "Internal Server Error",
  417. "schema": {
  418. "$ref": "#/definitions/base.HTTPError"
  419. }
  420. }
  421. }
  422. },
  423. "post": {
  424. "description": "添加联系我们",
  425. "consumes": [
  426. "application/json"
  427. ],
  428. "produces": [
  429. "application/json"
  430. ],
  431. "tags": [
  432. "联系我们"
  433. ],
  434. "summary": "添加联系我们",
  435. "parameters": [
  436. {
  437. "type": "string",
  438. "description": " ",
  439. "name": "token",
  440. "in": "header",
  441. "required": true
  442. },
  443. {
  444. "description": " ",
  445. "name": "body",
  446. "in": "body",
  447. "required": true,
  448. "schema": {
  449. "$ref": "#/definitions/v1.ContactAddBody"
  450. }
  451. }
  452. ],
  453. "responses": {
  454. "200": {
  455. "description": "OK",
  456. "schema": {
  457. "$ref": "#/definitions/v1.ContactAddResponse"
  458. }
  459. },
  460. "500": {
  461. "description": "Internal Server Error",
  462. "schema": {
  463. "$ref": "#/definitions/base.HTTPError"
  464. }
  465. }
  466. }
  467. },
  468. "delete": {
  469. "description": "删除联系我们",
  470. "consumes": [
  471. "application/json"
  472. ],
  473. "produces": [
  474. "application/json"
  475. ],
  476. "tags": [
  477. "联系我们"
  478. ],
  479. "summary": "删除联系我们",
  480. "parameters": [
  481. {
  482. "type": "string",
  483. "description": " ",
  484. "name": "token",
  485. "in": "header",
  486. "required": true
  487. },
  488. {
  489. "type": "integer",
  490. "description": " 记录id",
  491. "name": "id",
  492. "in": "query",
  493. "required": true
  494. }
  495. ],
  496. "responses": {
  497. "200": {
  498. "description": "OK",
  499. "schema": {
  500. "$ref": "#/definitions/v1.ContactDelResponse"
  501. }
  502. },
  503. "500": {
  504. "description": "Internal Server Error",
  505. "schema": {
  506. "$ref": "#/definitions/base.HTTPError"
  507. }
  508. }
  509. }
  510. }
  511. },
  512. "/api/v1/jt/desc": {
  513. "get": {
  514. "description": "集团简介信息",
  515. "consumes": [
  516. "application/json"
  517. ],
  518. "produces": [
  519. "application/json"
  520. ],
  521. "tags": [
  522. "集团简介"
  523. ],
  524. "summary": "集团简介信息",
  525. "parameters": [
  526. {
  527. "type": "string",
  528. "description": " ",
  529. "name": "token",
  530. "in": "header",
  531. "required": true
  532. }
  533. ],
  534. "responses": {
  535. "200": {
  536. "description": "OK",
  537. "schema": {
  538. "$ref": "#/definitions/v1.JtContentInfoResponse"
  539. }
  540. },
  541. "500": {
  542. "description": "Internal Server Error",
  543. "schema": {
  544. "$ref": "#/definitions/base.HTTPError"
  545. }
  546. }
  547. }
  548. },
  549. "put": {
  550. "description": "修改集团简介",
  551. "consumes": [
  552. "application/json"
  553. ],
  554. "produces": [
  555. "application/json"
  556. ],
  557. "tags": [
  558. "集团简介"
  559. ],
  560. "summary": "修改集团简介",
  561. "parameters": [
  562. {
  563. "type": "string",
  564. "description": " ",
  565. "name": "token",
  566. "in": "header",
  567. "required": true
  568. },
  569. {
  570. "description": " ",
  571. "name": "body",
  572. "in": "body",
  573. "required": true,
  574. "schema": {
  575. "$ref": "#/definitions/v1.JtContentUpdateBody"
  576. }
  577. }
  578. ],
  579. "responses": {
  580. "200": {
  581. "description": "OK",
  582. "schema": {
  583. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  584. }
  585. },
  586. "500": {
  587. "description": "Internal Server Error",
  588. "schema": {
  589. "$ref": "#/definitions/base.HTTPError"
  590. }
  591. }
  592. }
  593. },
  594. "post": {
  595. "description": "添加集团简介",
  596. "consumes": [
  597. "application/json"
  598. ],
  599. "produces": [
  600. "application/json"
  601. ],
  602. "tags": [
  603. "集团简介"
  604. ],
  605. "summary": "添加集团简介",
  606. "parameters": [
  607. {
  608. "type": "string",
  609. "description": " ",
  610. "name": "token",
  611. "in": "header",
  612. "required": true
  613. },
  614. {
  615. "description": " ",
  616. "name": "body",
  617. "in": "body",
  618. "required": true,
  619. "schema": {
  620. "$ref": "#/definitions/v1.JtContentAddBody"
  621. }
  622. }
  623. ],
  624. "responses": {
  625. "200": {
  626. "description": "OK",
  627. "schema": {
  628. "$ref": "#/definitions/v1.JtContentAddResponse"
  629. }
  630. },
  631. "500": {
  632. "description": "Internal Server Error",
  633. "schema": {
  634. "$ref": "#/definitions/base.HTTPError"
  635. }
  636. }
  637. }
  638. },
  639. "delete": {
  640. "description": "删除集团简介",
  641. "consumes": [
  642. "application/json"
  643. ],
  644. "produces": [
  645. "application/json"
  646. ],
  647. "tags": [
  648. "集团简介"
  649. ],
  650. "summary": "删除集团简介",
  651. "parameters": [
  652. {
  653. "type": "string",
  654. "description": " ",
  655. "name": "token",
  656. "in": "header",
  657. "required": true
  658. },
  659. {
  660. "type": "integer",
  661. "description": " 记录id",
  662. "name": "id",
  663. "in": "query",
  664. "required": true
  665. }
  666. ],
  667. "responses": {
  668. "200": {
  669. "description": "OK",
  670. "schema": {
  671. "$ref": "#/definitions/v1.JtContentDelResponse"
  672. }
  673. },
  674. "500": {
  675. "description": "Internal Server Error",
  676. "schema": {
  677. "$ref": "#/definitions/base.HTTPError"
  678. }
  679. }
  680. }
  681. }
  682. },
  683. "/api/v1/jt/desc/publish": {
  684. "put": {
  685. "description": "发布或下架集团简介",
  686. "consumes": [
  687. "application/json"
  688. ],
  689. "produces": [
  690. "application/json"
  691. ],
  692. "tags": [
  693. "集团简介"
  694. ],
  695. "summary": "发布或下架集团简介",
  696. "parameters": [
  697. {
  698. "type": "string",
  699. "description": " ",
  700. "name": "token",
  701. "in": "header",
  702. "required": true
  703. },
  704. {
  705. "description": " ",
  706. "name": "body",
  707. "in": "body",
  708. "required": true,
  709. "schema": {
  710. "$ref": "#/definitions/v1.JtContentPublishBody"
  711. }
  712. }
  713. ],
  714. "responses": {
  715. "200": {
  716. "description": "OK",
  717. "schema": {
  718. "$ref": "#/definitions/v1.JtContentPublishResponse"
  719. }
  720. },
  721. "500": {
  722. "description": "Internal Server Error",
  723. "schema": {
  724. "$ref": "#/definitions/base.HTTPError"
  725. }
  726. }
  727. }
  728. }
  729. },
  730. "/api/v1/jt/df": {
  731. "get": {
  732. "description": "党风廉洁列表",
  733. "consumes": [
  734. "application/json"
  735. ],
  736. "produces": [
  737. "application/json"
  738. ],
  739. "tags": [
  740. "党风廉洁"
  741. ],
  742. "summary": "党风廉洁列表",
  743. "parameters": [
  744. {
  745. "type": "string",
  746. "description": " ",
  747. "name": "token",
  748. "in": "header",
  749. "required": true
  750. },
  751. {
  752. "type": "integer",
  753. "description": " ",
  754. "name": "page",
  755. "in": "query"
  756. },
  757. {
  758. "type": "integer",
  759. "description": " ",
  760. "name": "page_size",
  761. "in": "query"
  762. }
  763. ],
  764. "responses": {
  765. "200": {
  766. "description": "OK",
  767. "schema": {
  768. "$ref": "#/definitions/v1.JtContentListResponse"
  769. }
  770. },
  771. "500": {
  772. "description": "Internal Server Error",
  773. "schema": {
  774. "$ref": "#/definitions/base.HTTPError"
  775. }
  776. }
  777. }
  778. },
  779. "put": {
  780. "description": "修改党风廉洁",
  781. "consumes": [
  782. "application/json"
  783. ],
  784. "produces": [
  785. "application/json"
  786. ],
  787. "tags": [
  788. "党风廉洁"
  789. ],
  790. "summary": "修改党风廉洁",
  791. "parameters": [
  792. {
  793. "type": "string",
  794. "description": " ",
  795. "name": "token",
  796. "in": "header",
  797. "required": true
  798. },
  799. {
  800. "description": " ",
  801. "name": "body",
  802. "in": "body",
  803. "required": true,
  804. "schema": {
  805. "$ref": "#/definitions/v1.JtContentUpdateBody"
  806. }
  807. }
  808. ],
  809. "responses": {
  810. "200": {
  811. "description": "OK",
  812. "schema": {
  813. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  814. }
  815. },
  816. "500": {
  817. "description": "Internal Server Error",
  818. "schema": {
  819. "$ref": "#/definitions/base.HTTPError"
  820. }
  821. }
  822. }
  823. },
  824. "post": {
  825. "description": "添加党风廉洁",
  826. "consumes": [
  827. "application/json"
  828. ],
  829. "produces": [
  830. "application/json"
  831. ],
  832. "tags": [
  833. "党风廉洁"
  834. ],
  835. "summary": "添加党风廉洁",
  836. "parameters": [
  837. {
  838. "type": "string",
  839. "description": " ",
  840. "name": "token",
  841. "in": "header",
  842. "required": true
  843. },
  844. {
  845. "description": " ",
  846. "name": "body",
  847. "in": "body",
  848. "required": true,
  849. "schema": {
  850. "$ref": "#/definitions/v1.JtContentAddBody"
  851. }
  852. }
  853. ],
  854. "responses": {
  855. "200": {
  856. "description": "OK",
  857. "schema": {
  858. "$ref": "#/definitions/v1.JtContentAddResponse"
  859. }
  860. },
  861. "500": {
  862. "description": "Internal Server Error",
  863. "schema": {
  864. "$ref": "#/definitions/base.HTTPError"
  865. }
  866. }
  867. }
  868. },
  869. "delete": {
  870. "description": "删除党风廉洁",
  871. "consumes": [
  872. "application/json"
  873. ],
  874. "produces": [
  875. "application/json"
  876. ],
  877. "tags": [
  878. "党风廉洁"
  879. ],
  880. "summary": "删除党风廉洁",
  881. "parameters": [
  882. {
  883. "type": "string",
  884. "description": " ",
  885. "name": "token",
  886. "in": "header",
  887. "required": true
  888. },
  889. {
  890. "type": "integer",
  891. "description": " 记录id",
  892. "name": "id",
  893. "in": "query",
  894. "required": true
  895. }
  896. ],
  897. "responses": {
  898. "200": {
  899. "description": "OK",
  900. "schema": {
  901. "$ref": "#/definitions/v1.JtContentDelResponse"
  902. }
  903. },
  904. "500": {
  905. "description": "Internal Server Error",
  906. "schema": {
  907. "$ref": "#/definitions/base.HTTPError"
  908. }
  909. }
  910. }
  911. }
  912. },
  913. "/api/v1/jt/df/publish": {
  914. "put": {
  915. "description": "发布或下架党风廉洁",
  916. "consumes": [
  917. "application/json"
  918. ],
  919. "produces": [
  920. "application/json"
  921. ],
  922. "tags": [
  923. "党风廉洁"
  924. ],
  925. "summary": "发布或下架党风廉洁",
  926. "parameters": [
  927. {
  928. "type": "string",
  929. "description": " ",
  930. "name": "token",
  931. "in": "header",
  932. "required": true
  933. },
  934. {
  935. "description": " ",
  936. "name": "body",
  937. "in": "body",
  938. "required": true,
  939. "schema": {
  940. "$ref": "#/definitions/v1.JtContentPublishBody"
  941. }
  942. }
  943. ],
  944. "responses": {
  945. "200": {
  946. "description": "OK",
  947. "schema": {
  948. "$ref": "#/definitions/v1.JtContentPublishResponse"
  949. }
  950. },
  951. "500": {
  952. "description": "Internal Server Error",
  953. "schema": {
  954. "$ref": "#/definitions/base.HTTPError"
  955. }
  956. }
  957. }
  958. }
  959. },
  960. "/api/v1/jt/hw": {
  961. "get": {
  962. "description": "会务动态列表",
  963. "consumes": [
  964. "application/json"
  965. ],
  966. "produces": [
  967. "application/json"
  968. ],
  969. "tags": [
  970. "会务动态"
  971. ],
  972. "summary": "会务动态列表",
  973. "parameters": [
  974. {
  975. "type": "string",
  976. "description": " ",
  977. "name": "token",
  978. "in": "header",
  979. "required": true
  980. },
  981. {
  982. "type": "integer",
  983. "description": " ",
  984. "name": "page",
  985. "in": "query"
  986. },
  987. {
  988. "type": "integer",
  989. "description": " ",
  990. "name": "page_size",
  991. "in": "query"
  992. }
  993. ],
  994. "responses": {
  995. "200": {
  996. "description": "OK",
  997. "schema": {
  998. "$ref": "#/definitions/v1.JtContentListResponse"
  999. }
  1000. },
  1001. "500": {
  1002. "description": "Internal Server Error",
  1003. "schema": {
  1004. "$ref": "#/definitions/base.HTTPError"
  1005. }
  1006. }
  1007. }
  1008. },
  1009. "put": {
  1010. "description": "修改会务动态",
  1011. "consumes": [
  1012. "application/json"
  1013. ],
  1014. "produces": [
  1015. "application/json"
  1016. ],
  1017. "tags": [
  1018. "会务动态"
  1019. ],
  1020. "summary": "修改会务动态",
  1021. "parameters": [
  1022. {
  1023. "type": "string",
  1024. "description": " ",
  1025. "name": "token",
  1026. "in": "header",
  1027. "required": true
  1028. },
  1029. {
  1030. "description": " ",
  1031. "name": "body",
  1032. "in": "body",
  1033. "required": true,
  1034. "schema": {
  1035. "$ref": "#/definitions/v1.JtContentUpdateBody"
  1036. }
  1037. }
  1038. ],
  1039. "responses": {
  1040. "200": {
  1041. "description": "OK",
  1042. "schema": {
  1043. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  1044. }
  1045. },
  1046. "500": {
  1047. "description": "Internal Server Error",
  1048. "schema": {
  1049. "$ref": "#/definitions/base.HTTPError"
  1050. }
  1051. }
  1052. }
  1053. },
  1054. "post": {
  1055. "description": "添加会务动态",
  1056. "consumes": [
  1057. "application/json"
  1058. ],
  1059. "produces": [
  1060. "application/json"
  1061. ],
  1062. "tags": [
  1063. "会务动态"
  1064. ],
  1065. "summary": "添加会务动态",
  1066. "parameters": [
  1067. {
  1068. "type": "string",
  1069. "description": " ",
  1070. "name": "token",
  1071. "in": "header",
  1072. "required": true
  1073. },
  1074. {
  1075. "description": " ",
  1076. "name": "body",
  1077. "in": "body",
  1078. "required": true,
  1079. "schema": {
  1080. "$ref": "#/definitions/v1.JtContentAddBody"
  1081. }
  1082. }
  1083. ],
  1084. "responses": {
  1085. "200": {
  1086. "description": "OK",
  1087. "schema": {
  1088. "$ref": "#/definitions/v1.JtContentAddResponse"
  1089. }
  1090. },
  1091. "500": {
  1092. "description": "Internal Server Error",
  1093. "schema": {
  1094. "$ref": "#/definitions/base.HTTPError"
  1095. }
  1096. }
  1097. }
  1098. },
  1099. "delete": {
  1100. "description": "删除会务动态",
  1101. "consumes": [
  1102. "application/json"
  1103. ],
  1104. "produces": [
  1105. "application/json"
  1106. ],
  1107. "tags": [
  1108. "会务动态"
  1109. ],
  1110. "summary": "删除会务动态",
  1111. "parameters": [
  1112. {
  1113. "type": "string",
  1114. "description": " ",
  1115. "name": "token",
  1116. "in": "header",
  1117. "required": true
  1118. },
  1119. {
  1120. "type": "integer",
  1121. "description": " 记录id",
  1122. "name": "id",
  1123. "in": "query",
  1124. "required": true
  1125. }
  1126. ],
  1127. "responses": {
  1128. "200": {
  1129. "description": "OK",
  1130. "schema": {
  1131. "$ref": "#/definitions/v1.JtContentDelResponse"
  1132. }
  1133. },
  1134. "500": {
  1135. "description": "Internal Server Error",
  1136. "schema": {
  1137. "$ref": "#/definitions/base.HTTPError"
  1138. }
  1139. }
  1140. }
  1141. }
  1142. },
  1143. "/api/v1/jt/hw/publish": {
  1144. "put": {
  1145. "description": "发布或下架会务动态",
  1146. "consumes": [
  1147. "application/json"
  1148. ],
  1149. "produces": [
  1150. "application/json"
  1151. ],
  1152. "tags": [
  1153. "会务动态"
  1154. ],
  1155. "summary": "发布或下架会务动态",
  1156. "parameters": [
  1157. {
  1158. "type": "string",
  1159. "description": " ",
  1160. "name": "token",
  1161. "in": "header",
  1162. "required": true
  1163. },
  1164. {
  1165. "description": " ",
  1166. "name": "body",
  1167. "in": "body",
  1168. "required": true,
  1169. "schema": {
  1170. "$ref": "#/definitions/v1.JtContentPublishBody"
  1171. }
  1172. }
  1173. ],
  1174. "responses": {
  1175. "200": {
  1176. "description": "OK",
  1177. "schema": {
  1178. "$ref": "#/definitions/v1.JtContentPublishResponse"
  1179. }
  1180. },
  1181. "500": {
  1182. "description": "Internal Server Error",
  1183. "schema": {
  1184. "$ref": "#/definitions/base.HTTPError"
  1185. }
  1186. }
  1187. }
  1188. }
  1189. },
  1190. "/api/v1/jt/lx": {
  1191. "get": {
  1192. "description": "两学一做列表",
  1193. "consumes": [
  1194. "application/json"
  1195. ],
  1196. "produces": [
  1197. "application/json"
  1198. ],
  1199. "tags": [
  1200. "两学一做"
  1201. ],
  1202. "summary": "两学一做列表",
  1203. "parameters": [
  1204. {
  1205. "type": "string",
  1206. "description": " ",
  1207. "name": "token",
  1208. "in": "header",
  1209. "required": true
  1210. },
  1211. {
  1212. "type": "integer",
  1213. "description": " ",
  1214. "name": "page",
  1215. "in": "query"
  1216. },
  1217. {
  1218. "type": "integer",
  1219. "description": " ",
  1220. "name": "page_size",
  1221. "in": "query"
  1222. }
  1223. ],
  1224. "responses": {
  1225. "200": {
  1226. "description": "OK",
  1227. "schema": {
  1228. "$ref": "#/definitions/v1.JtContentListResponse"
  1229. }
  1230. },
  1231. "500": {
  1232. "description": "Internal Server Error",
  1233. "schema": {
  1234. "$ref": "#/definitions/base.HTTPError"
  1235. }
  1236. }
  1237. }
  1238. },
  1239. "put": {
  1240. "description": "修改两学一做",
  1241. "consumes": [
  1242. "application/json"
  1243. ],
  1244. "produces": [
  1245. "application/json"
  1246. ],
  1247. "tags": [
  1248. "两学一做"
  1249. ],
  1250. "summary": "修改两学一做",
  1251. "parameters": [
  1252. {
  1253. "type": "string",
  1254. "description": " ",
  1255. "name": "token",
  1256. "in": "header",
  1257. "required": true
  1258. },
  1259. {
  1260. "description": " ",
  1261. "name": "body",
  1262. "in": "body",
  1263. "required": true,
  1264. "schema": {
  1265. "$ref": "#/definitions/v1.JtContentUpdateBody"
  1266. }
  1267. }
  1268. ],
  1269. "responses": {
  1270. "200": {
  1271. "description": "OK",
  1272. "schema": {
  1273. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  1274. }
  1275. },
  1276. "500": {
  1277. "description": "Internal Server Error",
  1278. "schema": {
  1279. "$ref": "#/definitions/base.HTTPError"
  1280. }
  1281. }
  1282. }
  1283. },
  1284. "post": {
  1285. "description": "添加两学一做",
  1286. "consumes": [
  1287. "application/json"
  1288. ],
  1289. "produces": [
  1290. "application/json"
  1291. ],
  1292. "tags": [
  1293. "两学一做"
  1294. ],
  1295. "summary": "添加两学一做",
  1296. "parameters": [
  1297. {
  1298. "type": "string",
  1299. "description": " ",
  1300. "name": "token",
  1301. "in": "header",
  1302. "required": true
  1303. },
  1304. {
  1305. "description": " ",
  1306. "name": "body",
  1307. "in": "body",
  1308. "required": true,
  1309. "schema": {
  1310. "$ref": "#/definitions/v1.JtContentAddBody"
  1311. }
  1312. }
  1313. ],
  1314. "responses": {
  1315. "200": {
  1316. "description": "OK",
  1317. "schema": {
  1318. "$ref": "#/definitions/v1.JtContentAddResponse"
  1319. }
  1320. },
  1321. "500": {
  1322. "description": "Internal Server Error",
  1323. "schema": {
  1324. "$ref": "#/definitions/base.HTTPError"
  1325. }
  1326. }
  1327. }
  1328. },
  1329. "delete": {
  1330. "description": "删除两学一做",
  1331. "consumes": [
  1332. "application/json"
  1333. ],
  1334. "produces": [
  1335. "application/json"
  1336. ],
  1337. "tags": [
  1338. "两学一做"
  1339. ],
  1340. "summary": "删除两学一做",
  1341. "parameters": [
  1342. {
  1343. "type": "string",
  1344. "description": " ",
  1345. "name": "token",
  1346. "in": "header",
  1347. "required": true
  1348. },
  1349. {
  1350. "type": "integer",
  1351. "description": " 记录id",
  1352. "name": "id",
  1353. "in": "query",
  1354. "required": true
  1355. }
  1356. ],
  1357. "responses": {
  1358. "200": {
  1359. "description": "OK",
  1360. "schema": {
  1361. "$ref": "#/definitions/v1.JtContentDelResponse"
  1362. }
  1363. },
  1364. "500": {
  1365. "description": "Internal Server Error",
  1366. "schema": {
  1367. "$ref": "#/definitions/base.HTTPError"
  1368. }
  1369. }
  1370. }
  1371. }
  1372. },
  1373. "/api/v1/jt/lx/publish": {
  1374. "put": {
  1375. "description": "发布或下架两学一做",
  1376. "consumes": [
  1377. "application/json"
  1378. ],
  1379. "produces": [
  1380. "application/json"
  1381. ],
  1382. "tags": [
  1383. "两学一做"
  1384. ],
  1385. "summary": "发布或下架两学一做",
  1386. "parameters": [
  1387. {
  1388. "type": "string",
  1389. "description": " ",
  1390. "name": "token",
  1391. "in": "header",
  1392. "required": true
  1393. },
  1394. {
  1395. "description": " ",
  1396. "name": "body",
  1397. "in": "body",
  1398. "required": true,
  1399. "schema": {
  1400. "$ref": "#/definitions/v1.JtContentPublishBody"
  1401. }
  1402. }
  1403. ],
  1404. "responses": {
  1405. "200": {
  1406. "description": "OK",
  1407. "schema": {
  1408. "$ref": "#/definitions/v1.JtContentPublishResponse"
  1409. }
  1410. },
  1411. "500": {
  1412. "description": "Internal Server Error",
  1413. "schema": {
  1414. "$ref": "#/definitions/base.HTTPError"
  1415. }
  1416. }
  1417. }
  1418. }
  1419. },
  1420. "/api/v1/jt/news": {
  1421. "get": {
  1422. "description": "兴嘉要闻列表",
  1423. "consumes": [
  1424. "application/json"
  1425. ],
  1426. "produces": [
  1427. "application/json"
  1428. ],
  1429. "tags": [
  1430. "兴嘉要闻"
  1431. ],
  1432. "summary": "兴嘉要闻列表",
  1433. "parameters": [
  1434. {
  1435. "type": "string",
  1436. "description": " ",
  1437. "name": "token",
  1438. "in": "header",
  1439. "required": true
  1440. },
  1441. {
  1442. "type": "integer",
  1443. "description": " ",
  1444. "name": "page",
  1445. "in": "query"
  1446. },
  1447. {
  1448. "type": "integer",
  1449. "description": " ",
  1450. "name": "page_size",
  1451. "in": "query"
  1452. }
  1453. ],
  1454. "responses": {
  1455. "200": {
  1456. "description": "OK",
  1457. "schema": {
  1458. "$ref": "#/definitions/v1.JtContentListResponse"
  1459. }
  1460. },
  1461. "500": {
  1462. "description": "Internal Server Error",
  1463. "schema": {
  1464. "$ref": "#/definitions/base.HTTPError"
  1465. }
  1466. }
  1467. }
  1468. },
  1469. "put": {
  1470. "description": "修改兴嘉要闻",
  1471. "consumes": [
  1472. "application/json"
  1473. ],
  1474. "produces": [
  1475. "application/json"
  1476. ],
  1477. "tags": [
  1478. "兴嘉要闻"
  1479. ],
  1480. "summary": "修改兴嘉要闻",
  1481. "parameters": [
  1482. {
  1483. "type": "string",
  1484. "description": " ",
  1485. "name": "token",
  1486. "in": "header",
  1487. "required": true
  1488. },
  1489. {
  1490. "description": " ",
  1491. "name": "body",
  1492. "in": "body",
  1493. "required": true,
  1494. "schema": {
  1495. "$ref": "#/definitions/v1.JtContentUpdateBody"
  1496. }
  1497. }
  1498. ],
  1499. "responses": {
  1500. "200": {
  1501. "description": "OK",
  1502. "schema": {
  1503. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  1504. }
  1505. },
  1506. "500": {
  1507. "description": "Internal Server Error",
  1508. "schema": {
  1509. "$ref": "#/definitions/base.HTTPError"
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "post": {
  1515. "description": "添加兴嘉要闻",
  1516. "consumes": [
  1517. "application/json"
  1518. ],
  1519. "produces": [
  1520. "application/json"
  1521. ],
  1522. "tags": [
  1523. "兴嘉要闻"
  1524. ],
  1525. "summary": "添加兴嘉要闻",
  1526. "parameters": [
  1527. {
  1528. "type": "string",
  1529. "description": " ",
  1530. "name": "token",
  1531. "in": "header",
  1532. "required": true
  1533. },
  1534. {
  1535. "description": " ",
  1536. "name": "body",
  1537. "in": "body",
  1538. "required": true,
  1539. "schema": {
  1540. "$ref": "#/definitions/v1.JtContentAddBody"
  1541. }
  1542. }
  1543. ],
  1544. "responses": {
  1545. "200": {
  1546. "description": "OK",
  1547. "schema": {
  1548. "$ref": "#/definitions/v1.JtContentAddResponse"
  1549. }
  1550. },
  1551. "500": {
  1552. "description": "Internal Server Error",
  1553. "schema": {
  1554. "$ref": "#/definitions/base.HTTPError"
  1555. }
  1556. }
  1557. }
  1558. },
  1559. "delete": {
  1560. "description": "删除兴嘉要闻",
  1561. "consumes": [
  1562. "application/json"
  1563. ],
  1564. "produces": [
  1565. "application/json"
  1566. ],
  1567. "tags": [
  1568. "兴嘉要闻"
  1569. ],
  1570. "summary": "删除兴嘉要闻",
  1571. "parameters": [
  1572. {
  1573. "type": "string",
  1574. "description": " ",
  1575. "name": "token",
  1576. "in": "header",
  1577. "required": true
  1578. },
  1579. {
  1580. "type": "integer",
  1581. "description": " 记录id",
  1582. "name": "id",
  1583. "in": "query",
  1584. "required": true
  1585. }
  1586. ],
  1587. "responses": {
  1588. "200": {
  1589. "description": "OK",
  1590. "schema": {
  1591. "$ref": "#/definitions/v1.JtContentDelResponse"
  1592. }
  1593. },
  1594. "500": {
  1595. "description": "Internal Server Error",
  1596. "schema": {
  1597. "$ref": "#/definitions/base.HTTPError"
  1598. }
  1599. }
  1600. }
  1601. }
  1602. },
  1603. "/api/v1/jt/news/publish": {
  1604. "put": {
  1605. "description": "发布或下架兴嘉要闻",
  1606. "consumes": [
  1607. "application/json"
  1608. ],
  1609. "produces": [
  1610. "application/json"
  1611. ],
  1612. "tags": [
  1613. "兴嘉要闻"
  1614. ],
  1615. "summary": "发布或下架兴嘉要闻",
  1616. "parameters": [
  1617. {
  1618. "type": "string",
  1619. "description": " ",
  1620. "name": "token",
  1621. "in": "header",
  1622. "required": true
  1623. },
  1624. {
  1625. "description": " ",
  1626. "name": "body",
  1627. "in": "body",
  1628. "required": true,
  1629. "schema": {
  1630. "$ref": "#/definitions/v1.JtContentPublishBody"
  1631. }
  1632. }
  1633. ],
  1634. "responses": {
  1635. "200": {
  1636. "description": "OK",
  1637. "schema": {
  1638. "$ref": "#/definitions/v1.JtContentPublishResponse"
  1639. }
  1640. },
  1641. "500": {
  1642. "description": "Internal Server Error",
  1643. "schema": {
  1644. "$ref": "#/definitions/base.HTTPError"
  1645. }
  1646. }
  1647. }
  1648. }
  1649. },
  1650. "/api/v1/jt/page_pic": {
  1651. "get": {
  1652. "description": "首页顶层图片列表",
  1653. "consumes": [
  1654. "application/json"
  1655. ],
  1656. "produces": [
  1657. "application/json"
  1658. ],
  1659. "tags": [
  1660. "首页顶层图片"
  1661. ],
  1662. "summary": "首页顶层图片列表",
  1663. "parameters": [
  1664. {
  1665. "type": "string",
  1666. "description": " ",
  1667. "name": "token",
  1668. "in": "header",
  1669. "required": true
  1670. },
  1671. {
  1672. "type": "integer",
  1673. "description": " ",
  1674. "name": "page",
  1675. "in": "query"
  1676. },
  1677. {
  1678. "type": "integer",
  1679. "description": " ",
  1680. "name": "page_size",
  1681. "in": "query"
  1682. }
  1683. ],
  1684. "responses": {
  1685. "200": {
  1686. "description": "OK",
  1687. "schema": {
  1688. "$ref": "#/definitions/v1.PagePicListResponse"
  1689. }
  1690. },
  1691. "500": {
  1692. "description": "Internal Server Error",
  1693. "schema": {
  1694. "$ref": "#/definitions/base.HTTPError"
  1695. }
  1696. }
  1697. }
  1698. },
  1699. "put": {
  1700. "description": "修改首页顶层图片",
  1701. "consumes": [
  1702. "application/json"
  1703. ],
  1704. "produces": [
  1705. "application/json"
  1706. ],
  1707. "tags": [
  1708. "首页顶层图片"
  1709. ],
  1710. "summary": "修改首页顶层图片",
  1711. "parameters": [
  1712. {
  1713. "type": "string",
  1714. "description": " ",
  1715. "name": "token",
  1716. "in": "header",
  1717. "required": true
  1718. },
  1719. {
  1720. "description": " ",
  1721. "name": "body",
  1722. "in": "body",
  1723. "required": true,
  1724. "schema": {
  1725. "$ref": "#/definitions/v1.PagePicUpdateBody"
  1726. }
  1727. }
  1728. ],
  1729. "responses": {
  1730. "200": {
  1731. "description": "OK",
  1732. "schema": {
  1733. "$ref": "#/definitions/v1.PagePicUpdateResponse"
  1734. }
  1735. },
  1736. "500": {
  1737. "description": "Internal Server Error",
  1738. "schema": {
  1739. "$ref": "#/definitions/base.HTTPError"
  1740. }
  1741. }
  1742. }
  1743. },
  1744. "post": {
  1745. "description": "添加首页顶层图片",
  1746. "consumes": [
  1747. "application/json"
  1748. ],
  1749. "produces": [
  1750. "application/json"
  1751. ],
  1752. "tags": [
  1753. "首页顶层图片"
  1754. ],
  1755. "summary": "添加首页顶层图片",
  1756. "parameters": [
  1757. {
  1758. "type": "string",
  1759. "description": " ",
  1760. "name": "token",
  1761. "in": "header",
  1762. "required": true
  1763. },
  1764. {
  1765. "description": " ",
  1766. "name": "body",
  1767. "in": "body",
  1768. "required": true,
  1769. "schema": {
  1770. "$ref": "#/definitions/v1.PagePicAddBody"
  1771. }
  1772. }
  1773. ],
  1774. "responses": {
  1775. "200": {
  1776. "description": "OK",
  1777. "schema": {
  1778. "$ref": "#/definitions/v1.PagePicAddResponse"
  1779. }
  1780. },
  1781. "500": {
  1782. "description": "Internal Server Error",
  1783. "schema": {
  1784. "$ref": "#/definitions/base.HTTPError"
  1785. }
  1786. }
  1787. }
  1788. },
  1789. "delete": {
  1790. "description": "删除首页顶层图片",
  1791. "consumes": [
  1792. "application/json"
  1793. ],
  1794. "produces": [
  1795. "application/json"
  1796. ],
  1797. "tags": [
  1798. "首页顶层图片"
  1799. ],
  1800. "summary": "删除首页顶层图片",
  1801. "parameters": [
  1802. {
  1803. "type": "string",
  1804. "description": " ",
  1805. "name": "token",
  1806. "in": "header",
  1807. "required": true
  1808. },
  1809. {
  1810. "type": "integer",
  1811. "description": " 记录id",
  1812. "name": "id",
  1813. "in": "query",
  1814. "required": true
  1815. }
  1816. ],
  1817. "responses": {
  1818. "200": {
  1819. "description": "OK",
  1820. "schema": {
  1821. "$ref": "#/definitions/v1.PagePicDelResponse"
  1822. }
  1823. },
  1824. "500": {
  1825. "description": "Internal Server Error",
  1826. "schema": {
  1827. "$ref": "#/definitions/base.HTTPError"
  1828. }
  1829. }
  1830. }
  1831. }
  1832. },
  1833. "/api/v1/jt/program": {
  1834. "get": {
  1835. "description": "项目展示列表",
  1836. "consumes": [
  1837. "application/json"
  1838. ],
  1839. "produces": [
  1840. "application/json"
  1841. ],
  1842. "tags": [
  1843. "项目展示"
  1844. ],
  1845. "summary": "项目展示列表",
  1846. "parameters": [
  1847. {
  1848. "type": "string",
  1849. "description": " ",
  1850. "name": "token",
  1851. "in": "header",
  1852. "required": true
  1853. },
  1854. {
  1855. "type": "integer",
  1856. "description": " ",
  1857. "name": "page",
  1858. "in": "query"
  1859. },
  1860. {
  1861. "type": "integer",
  1862. "description": " ",
  1863. "name": "page_size",
  1864. "in": "query"
  1865. }
  1866. ],
  1867. "responses": {
  1868. "200": {
  1869. "description": "OK",
  1870. "schema": {
  1871. "$ref": "#/definitions/v1.JtContentListResponse"
  1872. }
  1873. },
  1874. "500": {
  1875. "description": "Internal Server Error",
  1876. "schema": {
  1877. "$ref": "#/definitions/base.HTTPError"
  1878. }
  1879. }
  1880. }
  1881. },
  1882. "put": {
  1883. "description": "修改项目展示",
  1884. "consumes": [
  1885. "application/json"
  1886. ],
  1887. "produces": [
  1888. "application/json"
  1889. ],
  1890. "tags": [
  1891. "项目展示"
  1892. ],
  1893. "summary": "修改项目展示",
  1894. "parameters": [
  1895. {
  1896. "type": "string",
  1897. "description": " ",
  1898. "name": "token",
  1899. "in": "header",
  1900. "required": true
  1901. },
  1902. {
  1903. "description": " ",
  1904. "name": "body",
  1905. "in": "body",
  1906. "required": true,
  1907. "schema": {
  1908. "$ref": "#/definitions/v1.JtContentUpdateBody"
  1909. }
  1910. }
  1911. ],
  1912. "responses": {
  1913. "200": {
  1914. "description": "OK",
  1915. "schema": {
  1916. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  1917. }
  1918. },
  1919. "500": {
  1920. "description": "Internal Server Error",
  1921. "schema": {
  1922. "$ref": "#/definitions/base.HTTPError"
  1923. }
  1924. }
  1925. }
  1926. },
  1927. "post": {
  1928. "description": "添加项目展示",
  1929. "consumes": [
  1930. "application/json"
  1931. ],
  1932. "produces": [
  1933. "application/json"
  1934. ],
  1935. "tags": [
  1936. "项目展示"
  1937. ],
  1938. "summary": "添加项目展示",
  1939. "parameters": [
  1940. {
  1941. "type": "string",
  1942. "description": " ",
  1943. "name": "token",
  1944. "in": "header",
  1945. "required": true
  1946. },
  1947. {
  1948. "description": " ",
  1949. "name": "body",
  1950. "in": "body",
  1951. "required": true,
  1952. "schema": {
  1953. "$ref": "#/definitions/v1.JtContentAddBody"
  1954. }
  1955. }
  1956. ],
  1957. "responses": {
  1958. "200": {
  1959. "description": "OK",
  1960. "schema": {
  1961. "$ref": "#/definitions/v1.JtContentAddResponse"
  1962. }
  1963. },
  1964. "500": {
  1965. "description": "Internal Server Error",
  1966. "schema": {
  1967. "$ref": "#/definitions/base.HTTPError"
  1968. }
  1969. }
  1970. }
  1971. },
  1972. "delete": {
  1973. "description": "删除项目",
  1974. "consumes": [
  1975. "application/json"
  1976. ],
  1977. "produces": [
  1978. "application/json"
  1979. ],
  1980. "tags": [
  1981. "项目展示"
  1982. ],
  1983. "summary": "删除项目",
  1984. "parameters": [
  1985. {
  1986. "type": "string",
  1987. "description": " ",
  1988. "name": "token",
  1989. "in": "header",
  1990. "required": true
  1991. },
  1992. {
  1993. "type": "integer",
  1994. "description": " 记录id",
  1995. "name": "id",
  1996. "in": "query",
  1997. "required": true
  1998. }
  1999. ],
  2000. "responses": {
  2001. "200": {
  2002. "description": "OK",
  2003. "schema": {
  2004. "$ref": "#/definitions/v1.JtContentDelResponse"
  2005. }
  2006. },
  2007. "500": {
  2008. "description": "Internal Server Error",
  2009. "schema": {
  2010. "$ref": "#/definitions/base.HTTPError"
  2011. }
  2012. }
  2013. }
  2014. }
  2015. },
  2016. "/api/v1/jt/program/publish": {
  2017. "put": {
  2018. "description": "发布或下架项目展示",
  2019. "consumes": [
  2020. "application/json"
  2021. ],
  2022. "produces": [
  2023. "application/json"
  2024. ],
  2025. "tags": [
  2026. "项目展示"
  2027. ],
  2028. "summary": "发布或下架项目展示",
  2029. "parameters": [
  2030. {
  2031. "type": "string",
  2032. "description": " ",
  2033. "name": "token",
  2034. "in": "header",
  2035. "required": true
  2036. },
  2037. {
  2038. "description": " ",
  2039. "name": "body",
  2040. "in": "body",
  2041. "required": true,
  2042. "schema": {
  2043. "$ref": "#/definitions/v1.JtContentPublishBody"
  2044. }
  2045. }
  2046. ],
  2047. "responses": {
  2048. "200": {
  2049. "description": "OK",
  2050. "schema": {
  2051. "$ref": "#/definitions/v1.JtContentPublishResponse"
  2052. }
  2053. },
  2054. "500": {
  2055. "description": "Internal Server Error",
  2056. "schema": {
  2057. "$ref": "#/definitions/base.HTTPError"
  2058. }
  2059. }
  2060. }
  2061. }
  2062. },
  2063. "/api/v1/jt/vision": {
  2064. "get": {
  2065. "description": "发展愿景信息",
  2066. "consumes": [
  2067. "application/json"
  2068. ],
  2069. "produces": [
  2070. "application/json"
  2071. ],
  2072. "tags": [
  2073. "发展愿景"
  2074. ],
  2075. "summary": "发展愿景信息",
  2076. "parameters": [
  2077. {
  2078. "type": "string",
  2079. "description": " ",
  2080. "name": "token",
  2081. "in": "header",
  2082. "required": true
  2083. }
  2084. ],
  2085. "responses": {
  2086. "200": {
  2087. "description": "OK",
  2088. "schema": {
  2089. "$ref": "#/definitions/v1.JtContentInfoResponse"
  2090. }
  2091. },
  2092. "500": {
  2093. "description": "Internal Server Error",
  2094. "schema": {
  2095. "$ref": "#/definitions/base.HTTPError"
  2096. }
  2097. }
  2098. }
  2099. },
  2100. "put": {
  2101. "description": "修改发展愿景",
  2102. "consumes": [
  2103. "application/json"
  2104. ],
  2105. "produces": [
  2106. "application/json"
  2107. ],
  2108. "tags": [
  2109. "发展愿景"
  2110. ],
  2111. "summary": "修改发展愿景",
  2112. "parameters": [
  2113. {
  2114. "type": "string",
  2115. "description": " ",
  2116. "name": "token",
  2117. "in": "header",
  2118. "required": true
  2119. },
  2120. {
  2121. "description": " ",
  2122. "name": "body",
  2123. "in": "body",
  2124. "required": true,
  2125. "schema": {
  2126. "$ref": "#/definitions/v1.JtContentUpdateBody"
  2127. }
  2128. }
  2129. ],
  2130. "responses": {
  2131. "200": {
  2132. "description": "OK",
  2133. "schema": {
  2134. "$ref": "#/definitions/v1.JtContentUpdateResponse"
  2135. }
  2136. },
  2137. "500": {
  2138. "description": "Internal Server Error",
  2139. "schema": {
  2140. "$ref": "#/definitions/base.HTTPError"
  2141. }
  2142. }
  2143. }
  2144. },
  2145. "post": {
  2146. "description": "添加发展愿景",
  2147. "consumes": [
  2148. "application/json"
  2149. ],
  2150. "produces": [
  2151. "application/json"
  2152. ],
  2153. "tags": [
  2154. "发展愿景"
  2155. ],
  2156. "summary": "添加发展愿景",
  2157. "parameters": [
  2158. {
  2159. "type": "string",
  2160. "description": " ",
  2161. "name": "token",
  2162. "in": "header",
  2163. "required": true
  2164. },
  2165. {
  2166. "description": " ",
  2167. "name": "body",
  2168. "in": "body",
  2169. "required": true,
  2170. "schema": {
  2171. "$ref": "#/definitions/v1.JtContentAddBody"
  2172. }
  2173. }
  2174. ],
  2175. "responses": {
  2176. "200": {
  2177. "description": "OK",
  2178. "schema": {
  2179. "$ref": "#/definitions/v1.JtContentAddResponse"
  2180. }
  2181. },
  2182. "500": {
  2183. "description": "Internal Server Error",
  2184. "schema": {
  2185. "$ref": "#/definitions/base.HTTPError"
  2186. }
  2187. }
  2188. }
  2189. },
  2190. "delete": {
  2191. "description": "删除发展愿景",
  2192. "consumes": [
  2193. "application/json"
  2194. ],
  2195. "produces": [
  2196. "application/json"
  2197. ],
  2198. "tags": [
  2199. "发展愿景"
  2200. ],
  2201. "summary": "删除发展愿景",
  2202. "parameters": [
  2203. {
  2204. "type": "string",
  2205. "description": " ",
  2206. "name": "token",
  2207. "in": "header",
  2208. "required": true
  2209. },
  2210. {
  2211. "type": "integer",
  2212. "description": " 记录id",
  2213. "name": "id",
  2214. "in": "query",
  2215. "required": true
  2216. }
  2217. ],
  2218. "responses": {
  2219. "200": {
  2220. "description": "OK",
  2221. "schema": {
  2222. "$ref": "#/definitions/v1.JtContentDelResponse"
  2223. }
  2224. },
  2225. "500": {
  2226. "description": "Internal Server Error",
  2227. "schema": {
  2228. "$ref": "#/definitions/base.HTTPError"
  2229. }
  2230. }
  2231. }
  2232. }
  2233. },
  2234. "/api/v1/jt/vision/publish": {
  2235. "put": {
  2236. "description": "发布或下架发展愿景",
  2237. "consumes": [
  2238. "application/json"
  2239. ],
  2240. "produces": [
  2241. "application/json"
  2242. ],
  2243. "tags": [
  2244. "发展愿景"
  2245. ],
  2246. "summary": "发布或下架发展愿景",
  2247. "parameters": [
  2248. {
  2249. "type": "string",
  2250. "description": " ",
  2251. "name": "token",
  2252. "in": "header",
  2253. "required": true
  2254. },
  2255. {
  2256. "description": " ",
  2257. "name": "body",
  2258. "in": "body",
  2259. "required": true,
  2260. "schema": {
  2261. "$ref": "#/definitions/v1.JtContentPublishBody"
  2262. }
  2263. }
  2264. ],
  2265. "responses": {
  2266. "200": {
  2267. "description": "OK",
  2268. "schema": {
  2269. "$ref": "#/definitions/v1.JtContentPublishResponse"
  2270. }
  2271. },
  2272. "500": {
  2273. "description": "Internal Server Error",
  2274. "schema": {
  2275. "$ref": "#/definitions/base.HTTPError"
  2276. }
  2277. }
  2278. }
  2279. }
  2280. },
  2281. "/api/v1/management_user": {
  2282. "get": {
  2283. "description": "账号列表",
  2284. "consumes": [
  2285. "application/json"
  2286. ],
  2287. "produces": [
  2288. "application/json"
  2289. ],
  2290. "tags": [
  2291. "账号"
  2292. ],
  2293. "summary": "账号列表",
  2294. "parameters": [
  2295. {
  2296. "type": "string",
  2297. "description": " ",
  2298. "name": "token",
  2299. "in": "header",
  2300. "required": true
  2301. },
  2302. {
  2303. "type": "integer",
  2304. "description": " ",
  2305. "name": "page",
  2306. "in": "query"
  2307. },
  2308. {
  2309. "type": "integer",
  2310. "description": " ",
  2311. "name": "page_size",
  2312. "in": "query"
  2313. }
  2314. ],
  2315. "responses": {
  2316. "200": {
  2317. "description": "OK",
  2318. "schema": {
  2319. "$ref": "#/definitions/v1.UserListResponse"
  2320. }
  2321. },
  2322. "500": {
  2323. "description": "Internal Server Error",
  2324. "schema": {
  2325. "$ref": "#/definitions/base.HTTPError"
  2326. }
  2327. }
  2328. }
  2329. },
  2330. "put": {
  2331. "description": "修改账号",
  2332. "consumes": [
  2333. "application/json"
  2334. ],
  2335. "produces": [
  2336. "application/json"
  2337. ],
  2338. "tags": [
  2339. "账号"
  2340. ],
  2341. "summary": "修改账号",
  2342. "parameters": [
  2343. {
  2344. "type": "string",
  2345. "description": " ",
  2346. "name": "token",
  2347. "in": "header",
  2348. "required": true
  2349. },
  2350. {
  2351. "description": " ",
  2352. "name": "body",
  2353. "in": "body",
  2354. "required": true,
  2355. "schema": {
  2356. "$ref": "#/definitions/v1.UserUpdateBody"
  2357. }
  2358. }
  2359. ],
  2360. "responses": {
  2361. "200": {
  2362. "description": "OK",
  2363. "schema": {
  2364. "$ref": "#/definitions/v1.UserUpdateResponse"
  2365. }
  2366. },
  2367. "500": {
  2368. "description": "Internal Server Error",
  2369. "schema": {
  2370. "$ref": "#/definitions/base.HTTPError"
  2371. }
  2372. }
  2373. }
  2374. },
  2375. "post": {
  2376. "description": "添加账号",
  2377. "consumes": [
  2378. "application/json"
  2379. ],
  2380. "produces": [
  2381. "application/json"
  2382. ],
  2383. "tags": [
  2384. "账号"
  2385. ],
  2386. "summary": "添加账号",
  2387. "parameters": [
  2388. {
  2389. "type": "string",
  2390. "description": " ",
  2391. "name": "token",
  2392. "in": "header",
  2393. "required": true
  2394. },
  2395. {
  2396. "description": " ",
  2397. "name": "body",
  2398. "in": "body",
  2399. "required": true,
  2400. "schema": {
  2401. "$ref": "#/definitions/v1.UserAddBody"
  2402. }
  2403. }
  2404. ],
  2405. "responses": {
  2406. "200": {
  2407. "description": "OK",
  2408. "schema": {
  2409. "$ref": "#/definitions/v1.UserAddResponse"
  2410. }
  2411. },
  2412. "500": {
  2413. "description": "Internal Server Error",
  2414. "schema": {
  2415. "$ref": "#/definitions/base.HTTPError"
  2416. }
  2417. }
  2418. }
  2419. },
  2420. "delete": {
  2421. "description": "删除账号",
  2422. "consumes": [
  2423. "application/json"
  2424. ],
  2425. "produces": [
  2426. "application/json"
  2427. ],
  2428. "tags": [
  2429. "账号"
  2430. ],
  2431. "summary": "删除账号",
  2432. "parameters": [
  2433. {
  2434. "type": "string",
  2435. "description": " ",
  2436. "name": "token",
  2437. "in": "header",
  2438. "required": true
  2439. },
  2440. {
  2441. "type": "integer",
  2442. "description": " 记录id",
  2443. "name": "id",
  2444. "in": "query",
  2445. "required": true
  2446. }
  2447. ],
  2448. "responses": {
  2449. "200": {
  2450. "description": "OK",
  2451. "schema": {
  2452. "$ref": "#/definitions/v1.UserDelResponse"
  2453. }
  2454. },
  2455. "500": {
  2456. "description": "Internal Server Error",
  2457. "schema": {
  2458. "$ref": "#/definitions/base.HTTPError"
  2459. }
  2460. }
  2461. }
  2462. }
  2463. },
  2464. "/api/v1/management_user/password": {
  2465. "put": {
  2466. "description": "重置密码",
  2467. "consumes": [
  2468. "application/json"
  2469. ],
  2470. "produces": [
  2471. "application/json"
  2472. ],
  2473. "tags": [
  2474. "账号"
  2475. ],
  2476. "summary": "重置密码",
  2477. "parameters": [
  2478. {
  2479. "type": "string",
  2480. "description": " ",
  2481. "name": "token",
  2482. "in": "header",
  2483. "required": true
  2484. },
  2485. {
  2486. "description": " ",
  2487. "name": "body",
  2488. "in": "body",
  2489. "required": true,
  2490. "schema": {
  2491. "$ref": "#/definitions/v1.UserResetPasswordBody"
  2492. }
  2493. }
  2494. ],
  2495. "responses": {
  2496. "200": {
  2497. "description": "OK",
  2498. "schema": {
  2499. "$ref": "#/definitions/v1.UserResetPasswordResponse"
  2500. }
  2501. },
  2502. "500": {
  2503. "description": "Internal Server Error",
  2504. "schema": {
  2505. "$ref": "#/definitions/base.HTTPError"
  2506. }
  2507. }
  2508. }
  2509. }
  2510. },
  2511. "/api/v1/operation_log": {
  2512. "get": {
  2513. "description": "操作日志列表",
  2514. "consumes": [
  2515. "application/json"
  2516. ],
  2517. "produces": [
  2518. "application/json"
  2519. ],
  2520. "tags": [
  2521. "操作日志"
  2522. ],
  2523. "summary": "操作日志列表",
  2524. "parameters": [
  2525. {
  2526. "type": "string",
  2527. "description": " ",
  2528. "name": "token",
  2529. "in": "header",
  2530. "required": true
  2531. },
  2532. {
  2533. "type": "integer",
  2534. "description": " ",
  2535. "name": "page",
  2536. "in": "query"
  2537. },
  2538. {
  2539. "type": "integer",
  2540. "description": " ",
  2541. "name": "page_size",
  2542. "in": "query"
  2543. }
  2544. ],
  2545. "responses": {
  2546. "200": {
  2547. "description": "OK",
  2548. "schema": {
  2549. "$ref": "#/definitions/v1.OperationLogListResponse"
  2550. }
  2551. },
  2552. "500": {
  2553. "description": "Internal Server Error",
  2554. "schema": {
  2555. "$ref": "#/definitions/base.HTTPError"
  2556. }
  2557. }
  2558. }
  2559. },
  2560. "delete": {
  2561. "description": "批量删除操作日志",
  2562. "consumes": [
  2563. "application/json"
  2564. ],
  2565. "produces": [
  2566. "application/json"
  2567. ],
  2568. "tags": [
  2569. "操作日志"
  2570. ],
  2571. "summary": "批量删除操作日志",
  2572. "parameters": [
  2573. {
  2574. "type": "string",
  2575. "description": " ",
  2576. "name": "token",
  2577. "in": "header",
  2578. "required": true
  2579. },
  2580. {
  2581. "type": "string",
  2582. "description": " 日志id,以英文分号分割",
  2583. "name": "ids",
  2584. "in": "query",
  2585. "required": true
  2586. }
  2587. ],
  2588. "responses": {
  2589. "200": {
  2590. "description": "OK",
  2591. "schema": {
  2592. "$ref": "#/definitions/v1.OperationLogDelResponse"
  2593. }
  2594. },
  2595. "500": {
  2596. "description": "Internal Server Error",
  2597. "schema": {
  2598. "$ref": "#/definitions/base.HTTPError"
  2599. }
  2600. }
  2601. }
  2602. }
  2603. },
  2604. "/api/v1/token_refresh": {
  2605. "put": {
  2606. "description": "刷新token",
  2607. "consumes": [
  2608. "application/json"
  2609. ],
  2610. "produces": [
  2611. "application/json"
  2612. ],
  2613. "tags": [
  2614. "用户"
  2615. ],
  2616. "summary": "刷新token",
  2617. "parameters": [
  2618. {
  2619. "type": "string",
  2620. "description": "token",
  2621. "name": "token",
  2622. "in": "header",
  2623. "required": true
  2624. }
  2625. ],
  2626. "responses": {
  2627. "200": {
  2628. "description": "OK",
  2629. "schema": {
  2630. "$ref": "#/definitions/v1.TokenResponse"
  2631. }
  2632. },
  2633. "500": {
  2634. "description": "Internal Server Error",
  2635. "schema": {
  2636. "$ref": "#/definitions/base.HTTPError"
  2637. }
  2638. }
  2639. }
  2640. }
  2641. },
  2642. "/api/v1/user/login": {
  2643. "post": {
  2644. "description": "登录",
  2645. "consumes": [
  2646. "application/json"
  2647. ],
  2648. "produces": [
  2649. "application/json"
  2650. ],
  2651. "tags": [
  2652. "用户"
  2653. ],
  2654. "summary": "登录",
  2655. "parameters": [
  2656. {
  2657. "description": "登录信息",
  2658. "name": "body",
  2659. "in": "body",
  2660. "required": true,
  2661. "schema": {
  2662. "$ref": "#/definitions/v1.LoginBody"
  2663. }
  2664. }
  2665. ],
  2666. "responses": {
  2667. "200": {
  2668. "description": "OK",
  2669. "schema": {
  2670. "$ref": "#/definitions/v1.LoginResponse"
  2671. }
  2672. },
  2673. "500": {
  2674. "description": "Internal Server Error",
  2675. "schema": {
  2676. "$ref": "#/definitions/base.HTTPError"
  2677. }
  2678. }
  2679. }
  2680. }
  2681. }
  2682. },
  2683. "definitions": {
  2684. "apis.ContactInfoReply": {
  2685. "type": "object",
  2686. "properties": {
  2687. "addr": {
  2688. "type": "string"
  2689. },
  2690. "email": {
  2691. "type": "string"
  2692. },
  2693. "id": {
  2694. "type": "integer"
  2695. },
  2696. "phone": {
  2697. "type": "string"
  2698. }
  2699. }
  2700. },
  2701. "apis.JtContentItem": {
  2702. "type": "object",
  2703. "properties": {
  2704. "content": {
  2705. "type": "string"
  2706. },
  2707. "created_at": {
  2708. "type": "integer"
  2709. },
  2710. "first_pics": {
  2711. "type": "array",
  2712. "items": {
  2713. "type": "string"
  2714. }
  2715. },
  2716. "id": {
  2717. "type": "integer"
  2718. },
  2719. "publish_status": {
  2720. "type": "integer"
  2721. },
  2722. "title": {
  2723. "type": "string"
  2724. }
  2725. }
  2726. },
  2727. "apis.JtContentListReply": {
  2728. "type": "object",
  2729. "properties": {
  2730. "list": {
  2731. "type": "array",
  2732. "items": {
  2733. "$ref": "#/definitions/apis.JtContentItem"
  2734. }
  2735. },
  2736. "page": {
  2737. "type": "integer"
  2738. },
  2739. "total": {
  2740. "type": "integer"
  2741. }
  2742. }
  2743. },
  2744. "apis.OperationLogItem": {
  2745. "type": "object",
  2746. "properties": {
  2747. "id": {
  2748. "type": "integer"
  2749. },
  2750. "module": {
  2751. "type": "string"
  2752. },
  2753. "operation": {
  2754. "type": "string"
  2755. },
  2756. "operation_time": {
  2757. "type": "integer"
  2758. },
  2759. "origin_content": {
  2760. "type": "string"
  2761. },
  2762. "target_content": {
  2763. "type": "string"
  2764. },
  2765. "uid": {
  2766. "type": "integer"
  2767. },
  2768. "user": {
  2769. "type": "string"
  2770. }
  2771. }
  2772. },
  2773. "apis.OperationLogListReply": {
  2774. "type": "object",
  2775. "properties": {
  2776. "list": {
  2777. "type": "array",
  2778. "items": {
  2779. "$ref": "#/definitions/apis.OperationLogItem"
  2780. }
  2781. },
  2782. "page": {
  2783. "type": "integer"
  2784. },
  2785. "total": {
  2786. "type": "integer"
  2787. }
  2788. }
  2789. },
  2790. "apis.PagePicItem": {
  2791. "type": "object",
  2792. "properties": {
  2793. "created_at": {
  2794. "type": "integer"
  2795. },
  2796. "id": {
  2797. "type": "integer"
  2798. },
  2799. "pic": {
  2800. "type": "string"
  2801. }
  2802. }
  2803. },
  2804. "apis.PagePicListReply": {
  2805. "type": "object",
  2806. "properties": {
  2807. "list": {
  2808. "type": "array",
  2809. "items": {
  2810. "$ref": "#/definitions/apis.PagePicItem"
  2811. }
  2812. },
  2813. "page": {
  2814. "type": "integer"
  2815. },
  2816. "total": {
  2817. "type": "integer"
  2818. }
  2819. }
  2820. },
  2821. "apis.UserItem": {
  2822. "type": "object",
  2823. "properties": {
  2824. "effective_end": {
  2825. "type": "integer"
  2826. },
  2827. "effective_start": {
  2828. "type": "integer"
  2829. },
  2830. "real_name": {
  2831. "type": "string"
  2832. },
  2833. "status": {
  2834. "description": "1有效 2 过期",
  2835. "type": "integer"
  2836. },
  2837. "uid": {
  2838. "type": "integer"
  2839. },
  2840. "user": {
  2841. "type": "string"
  2842. },
  2843. "user_type": {
  2844. "type": "integer"
  2845. }
  2846. }
  2847. },
  2848. "apis.UserListReply": {
  2849. "type": "object",
  2850. "properties": {
  2851. "list": {
  2852. "type": "array",
  2853. "items": {
  2854. "$ref": "#/definitions/apis.UserItem"
  2855. }
  2856. },
  2857. "page": {
  2858. "type": "integer"
  2859. },
  2860. "total": {
  2861. "type": "integer"
  2862. }
  2863. }
  2864. },
  2865. "base.HTTPError": {
  2866. "type": "object",
  2867. "properties": {
  2868. "code": {
  2869. "type": "integer",
  2870. "format": "int",
  2871. "example": 500
  2872. },
  2873. "message": {
  2874. "type": "string",
  2875. "example": "status bad request"
  2876. }
  2877. }
  2878. },
  2879. "v1.ContactAddBody": {
  2880. "type": "object",
  2881. "properties": {
  2882. "addr": {
  2883. "type": "string"
  2884. },
  2885. "email": {
  2886. "type": "string"
  2887. },
  2888. "phone": {
  2889. "type": "string"
  2890. }
  2891. }
  2892. },
  2893. "v1.ContactAddResponse": {
  2894. "type": "object",
  2895. "properties": {
  2896. "code": {
  2897. "description": "返回码",
  2898. "type": "integer",
  2899. "format": "int",
  2900. "default": 0
  2901. },
  2902. "message": {
  2903. "description": "消息",
  2904. "type": "string",
  2905. "default": "success"
  2906. }
  2907. }
  2908. },
  2909. "v1.ContactDelResponse": {
  2910. "type": "object",
  2911. "properties": {
  2912. "code": {
  2913. "description": "返回码",
  2914. "type": "integer",
  2915. "format": "int",
  2916. "default": 0
  2917. },
  2918. "message": {
  2919. "description": "消息",
  2920. "type": "string",
  2921. "default": "success"
  2922. }
  2923. }
  2924. },
  2925. "v1.ContactInfoResponse": {
  2926. "type": "object",
  2927. "properties": {
  2928. "code": {
  2929. "description": "返回码",
  2930. "type": "integer",
  2931. "format": "int",
  2932. "default": 0
  2933. },
  2934. "data": {
  2935. "type": "object",
  2936. "$ref": "#/definitions/apis.ContactInfoReply"
  2937. },
  2938. "message": {
  2939. "description": "消息",
  2940. "type": "string",
  2941. "default": "success"
  2942. }
  2943. }
  2944. },
  2945. "v1.ContactUpdateBody": {
  2946. "type": "object",
  2947. "properties": {
  2948. "addr": {
  2949. "type": "string"
  2950. },
  2951. "email": {
  2952. "type": "string"
  2953. },
  2954. "id": {
  2955. "type": "integer"
  2956. },
  2957. "phone": {
  2958. "type": "string"
  2959. }
  2960. }
  2961. },
  2962. "v1.ContactUpdateResponse": {
  2963. "type": "object",
  2964. "properties": {
  2965. "code": {
  2966. "description": "返回码",
  2967. "type": "integer",
  2968. "format": "int",
  2969. "default": 0
  2970. },
  2971. "message": {
  2972. "description": "消息",
  2973. "type": "string",
  2974. "default": "success"
  2975. }
  2976. }
  2977. },
  2978. "v1.JtContentAddBody": {
  2979. "type": "object",
  2980. "properties": {
  2981. "content": {
  2982. "type": "string"
  2983. },
  2984. "first_pics": {
  2985. "description": "标题图片",
  2986. "type": "array",
  2987. "items": {
  2988. "type": "string"
  2989. }
  2990. },
  2991. "publish_status": {
  2992. "description": "1 发布 2 暂不发布",
  2993. "type": "integer"
  2994. },
  2995. "title": {
  2996. "type": "string"
  2997. }
  2998. }
  2999. },
  3000. "v1.JtContentAddResponse": {
  3001. "type": "object",
  3002. "properties": {
  3003. "code": {
  3004. "description": "返回码",
  3005. "type": "integer",
  3006. "format": "int",
  3007. "default": 0
  3008. },
  3009. "message": {
  3010. "description": "消息",
  3011. "type": "string",
  3012. "default": "success"
  3013. }
  3014. }
  3015. },
  3016. "v1.JtContentDelResponse": {
  3017. "type": "object",
  3018. "properties": {
  3019. "code": {
  3020. "description": "返回码",
  3021. "type": "integer",
  3022. "format": "int",
  3023. "default": 0
  3024. },
  3025. "message": {
  3026. "description": "消息",
  3027. "type": "string",
  3028. "default": "success"
  3029. }
  3030. }
  3031. },
  3032. "v1.JtContentInfoData": {
  3033. "type": "object",
  3034. "properties": {
  3035. "content": {
  3036. "type": "string"
  3037. },
  3038. "created_at": {
  3039. "type": "integer"
  3040. },
  3041. "first_pics": {
  3042. "type": "array",
  3043. "items": {
  3044. "type": "string"
  3045. }
  3046. },
  3047. "id": {
  3048. "type": "integer"
  3049. },
  3050. "publish_status": {
  3051. "description": "1 发布 2 暂不发布",
  3052. "type": "integer"
  3053. },
  3054. "title": {
  3055. "type": "string"
  3056. }
  3057. }
  3058. },
  3059. "v1.JtContentInfoResponse": {
  3060. "type": "object",
  3061. "properties": {
  3062. "code": {
  3063. "description": "返回码",
  3064. "type": "integer",
  3065. "format": "int",
  3066. "default": 0
  3067. },
  3068. "data": {
  3069. "type": "object",
  3070. "$ref": "#/definitions/v1.JtContentInfoData"
  3071. },
  3072. "message": {
  3073. "description": "消息",
  3074. "type": "string",
  3075. "default": "success"
  3076. }
  3077. }
  3078. },
  3079. "v1.JtContentListResponse": {
  3080. "type": "object",
  3081. "properties": {
  3082. "code": {
  3083. "description": "返回码",
  3084. "type": "integer",
  3085. "format": "int",
  3086. "default": 0
  3087. },
  3088. "data": {
  3089. "type": "object",
  3090. "$ref": "#/definitions/apis.JtContentListReply"
  3091. },
  3092. "message": {
  3093. "description": "消息",
  3094. "type": "string",
  3095. "default": "success"
  3096. }
  3097. }
  3098. },
  3099. "v1.JtContentPublishBody": {
  3100. "type": "object",
  3101. "properties": {
  3102. "id": {
  3103. "type": "integer"
  3104. },
  3105. "publish_status": {
  3106. "description": "1 发布 2 下架",
  3107. "type": "integer"
  3108. }
  3109. }
  3110. },
  3111. "v1.JtContentPublishResponse": {
  3112. "type": "object",
  3113. "properties": {
  3114. "code": {
  3115. "description": "返回码",
  3116. "type": "integer",
  3117. "format": "int",
  3118. "default": 0
  3119. },
  3120. "message": {
  3121. "description": "消息",
  3122. "type": "string",
  3123. "default": "success"
  3124. }
  3125. }
  3126. },
  3127. "v1.JtContentUpdateBody": {
  3128. "type": "object",
  3129. "properties": {
  3130. "content": {
  3131. "type": "string"
  3132. },
  3133. "first_pics": {
  3134. "type": "array",
  3135. "items": {
  3136. "type": "string"
  3137. }
  3138. },
  3139. "id": {
  3140. "type": "integer"
  3141. },
  3142. "publish_status": {
  3143. "description": "1 发布 2 暂不发布",
  3144. "type": "integer"
  3145. },
  3146. "title": {
  3147. "type": "string"
  3148. }
  3149. }
  3150. },
  3151. "v1.JtContentUpdateResponse": {
  3152. "type": "object",
  3153. "properties": {
  3154. "code": {
  3155. "description": "返回码",
  3156. "type": "integer",
  3157. "format": "int",
  3158. "default": 0
  3159. },
  3160. "message": {
  3161. "description": "消息",
  3162. "type": "string",
  3163. "default": "success"
  3164. }
  3165. }
  3166. },
  3167. "v1.LoginBody": {
  3168. "type": "object",
  3169. "properties": {
  3170. "password": {
  3171. "type": "string"
  3172. },
  3173. "user": {
  3174. "type": "string"
  3175. }
  3176. }
  3177. },
  3178. "v1.LoginData": {
  3179. "type": "object",
  3180. "properties": {
  3181. "token": {
  3182. "type": "string"
  3183. },
  3184. "uid": {
  3185. "type": "integer"
  3186. },
  3187. "user": {
  3188. "type": "string"
  3189. },
  3190. "user_type": {
  3191. "type": "integer"
  3192. }
  3193. }
  3194. },
  3195. "v1.LoginResponse": {
  3196. "type": "object",
  3197. "properties": {
  3198. "code": {
  3199. "description": "返回码",
  3200. "type": "integer",
  3201. "format": "int",
  3202. "default": 0
  3203. },
  3204. "data": {
  3205. "type": "object",
  3206. "$ref": "#/definitions/v1.LoginData"
  3207. },
  3208. "message": {
  3209. "description": "消息",
  3210. "type": "string",
  3211. "default": "success"
  3212. }
  3213. }
  3214. },
  3215. "v1.OperationLogDelResponse": {
  3216. "type": "object",
  3217. "properties": {
  3218. "code": {
  3219. "description": "返回码",
  3220. "type": "integer",
  3221. "format": "int",
  3222. "default": 0
  3223. },
  3224. "message": {
  3225. "description": "消息",
  3226. "type": "string",
  3227. "default": "success"
  3228. }
  3229. }
  3230. },
  3231. "v1.OperationLogListResponse": {
  3232. "type": "object",
  3233. "properties": {
  3234. "code": {
  3235. "description": "返回码",
  3236. "type": "integer",
  3237. "format": "int",
  3238. "default": 0
  3239. },
  3240. "data": {
  3241. "type": "object",
  3242. "$ref": "#/definitions/apis.OperationLogListReply"
  3243. },
  3244. "message": {
  3245. "description": "消息",
  3246. "type": "string",
  3247. "default": "success"
  3248. }
  3249. }
  3250. },
  3251. "v1.PagePicAddBody": {
  3252. "type": "object",
  3253. "properties": {
  3254. "pic": {
  3255. "type": "string"
  3256. }
  3257. }
  3258. },
  3259. "v1.PagePicAddResponse": {
  3260. "type": "object",
  3261. "properties": {
  3262. "code": {
  3263. "description": "返回码",
  3264. "type": "integer",
  3265. "format": "int",
  3266. "default": 0
  3267. },
  3268. "message": {
  3269. "description": "消息",
  3270. "type": "string",
  3271. "default": "success"
  3272. }
  3273. }
  3274. },
  3275. "v1.PagePicDelResponse": {
  3276. "type": "object",
  3277. "properties": {
  3278. "code": {
  3279. "description": "返回码",
  3280. "type": "integer",
  3281. "format": "int",
  3282. "default": 0
  3283. },
  3284. "message": {
  3285. "description": "消息",
  3286. "type": "string",
  3287. "default": "success"
  3288. }
  3289. }
  3290. },
  3291. "v1.PagePicListResponse": {
  3292. "type": "object",
  3293. "properties": {
  3294. "code": {
  3295. "description": "返回码",
  3296. "type": "integer",
  3297. "format": "int",
  3298. "default": 0
  3299. },
  3300. "data": {
  3301. "type": "object",
  3302. "$ref": "#/definitions/apis.PagePicListReply"
  3303. },
  3304. "message": {
  3305. "description": "消息",
  3306. "type": "string",
  3307. "default": "success"
  3308. }
  3309. }
  3310. },
  3311. "v1.PagePicUpdateBody": {
  3312. "type": "object",
  3313. "properties": {
  3314. "id": {
  3315. "type": "integer"
  3316. },
  3317. "pic": {
  3318. "type": "string"
  3319. }
  3320. }
  3321. },
  3322. "v1.PagePicUpdateResponse": {
  3323. "type": "object",
  3324. "properties": {
  3325. "code": {
  3326. "description": "返回码",
  3327. "type": "integer",
  3328. "format": "int",
  3329. "default": 0
  3330. },
  3331. "message": {
  3332. "description": "消息",
  3333. "type": "string",
  3334. "default": "success"
  3335. }
  3336. }
  3337. },
  3338. "v1.TokenResponse": {
  3339. "type": "object",
  3340. "properties": {
  3341. "code": {
  3342. "description": "返回码",
  3343. "type": "integer",
  3344. "format": "int",
  3345. "default": 0
  3346. },
  3347. "data": {
  3348. "type": "string"
  3349. },
  3350. "message": {
  3351. "description": "消息",
  3352. "type": "string",
  3353. "default": "success"
  3354. },
  3355. "refresh_token": {
  3356. "type": "string"
  3357. }
  3358. }
  3359. },
  3360. "v1.UploadResponse": {
  3361. "type": "object",
  3362. "properties": {
  3363. "code": {
  3364. "description": "返回码",
  3365. "type": "integer",
  3366. "format": "int",
  3367. "default": 0
  3368. },
  3369. "data": {
  3370. "type": "string"
  3371. },
  3372. "message": {
  3373. "description": "消息",
  3374. "type": "string",
  3375. "default": "success"
  3376. }
  3377. }
  3378. },
  3379. "v1.UserAddBody": {
  3380. "type": "object",
  3381. "properties": {
  3382. "effective_end": {
  3383. "type": "integer"
  3384. },
  3385. "effective_start": {
  3386. "type": "integer"
  3387. },
  3388. "password": {
  3389. "type": "string"
  3390. },
  3391. "real_name": {
  3392. "type": "string"
  3393. },
  3394. "user": {
  3395. "type": "string"
  3396. },
  3397. "user_type": {
  3398. "type": "integer"
  3399. }
  3400. }
  3401. },
  3402. "v1.UserAddResponse": {
  3403. "type": "object",
  3404. "properties": {
  3405. "code": {
  3406. "description": "返回码",
  3407. "type": "integer",
  3408. "format": "int",
  3409. "default": 0
  3410. },
  3411. "message": {
  3412. "description": "消息",
  3413. "type": "string",
  3414. "default": "success"
  3415. }
  3416. }
  3417. },
  3418. "v1.UserDelResponse": {
  3419. "type": "object",
  3420. "properties": {
  3421. "code": {
  3422. "description": "返回码",
  3423. "type": "integer",
  3424. "format": "int",
  3425. "default": 0
  3426. },
  3427. "message": {
  3428. "description": "消息",
  3429. "type": "string",
  3430. "default": "success"
  3431. }
  3432. }
  3433. },
  3434. "v1.UserListResponse": {
  3435. "type": "object",
  3436. "properties": {
  3437. "code": {
  3438. "description": "返回码",
  3439. "type": "integer",
  3440. "format": "int",
  3441. "default": 0
  3442. },
  3443. "data": {
  3444. "type": "object",
  3445. "$ref": "#/definitions/apis.UserListReply"
  3446. },
  3447. "message": {
  3448. "description": "消息",
  3449. "type": "string",
  3450. "default": "success"
  3451. }
  3452. }
  3453. },
  3454. "v1.UserResetPasswordBody": {
  3455. "type": "object",
  3456. "properties": {
  3457. "id": {
  3458. "type": "integer"
  3459. },
  3460. "password": {
  3461. "type": "string"
  3462. }
  3463. }
  3464. },
  3465. "v1.UserResetPasswordResponse": {
  3466. "type": "object",
  3467. "properties": {
  3468. "code": {
  3469. "description": "返回码",
  3470. "type": "integer",
  3471. "format": "int",
  3472. "default": 0
  3473. },
  3474. "message": {
  3475. "description": "消息",
  3476. "type": "string",
  3477. "default": "success"
  3478. }
  3479. }
  3480. },
  3481. "v1.UserUpdateBody": {
  3482. "type": "object",
  3483. "properties": {
  3484. "effective_end": {
  3485. "type": "integer"
  3486. },
  3487. "effective_start": {
  3488. "type": "integer"
  3489. },
  3490. "id": {
  3491. "type": "integer"
  3492. },
  3493. "password": {
  3494. "type": "string"
  3495. },
  3496. "real_name": {
  3497. "type": "string"
  3498. },
  3499. "user": {
  3500. "type": "string"
  3501. },
  3502. "user_type": {
  3503. "type": "integer"
  3504. }
  3505. }
  3506. },
  3507. "v1.UserUpdateResponse": {
  3508. "type": "object",
  3509. "properties": {
  3510. "code": {
  3511. "description": "返回码",
  3512. "type": "integer",
  3513. "format": "int",
  3514. "default": 0
  3515. },
  3516. "message": {
  3517. "description": "消息",
  3518. "type": "string",
  3519. "default": "success"
  3520. }
  3521. }
  3522. }
  3523. }
  3524. }`
  3525. type swaggerInfo struct {
  3526. Version string
  3527. Host string
  3528. BasePath string
  3529. Schemes []string
  3530. Title string
  3531. Description string
  3532. }
  3533. // SwaggerInfo holds exported Swagger Info so clients can modify it
  3534. var SwaggerInfo = swaggerInfo{
  3535. Version: "1.1",
  3536. Host: "",
  3537. BasePath: "",
  3538. Schemes: []string{},
  3539. Title: "Project xingjia-management-gateway's APIs",
  3540. Description: "This is a gateway server. On the page, you can go to do testing for every API.",
  3541. }
  3542. type s struct{}
  3543. func (s *s) ReadDoc() string {
  3544. sInfo := SwaggerInfo
  3545. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3546. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3547. "marshal": func(v interface{}) string {
  3548. a, _ := json.Marshal(v)
  3549. return string(a)
  3550. },
  3551. }).Parse(doc)
  3552. if err != nil {
  3553. return doc
  3554. }
  3555. var tpl bytes.Buffer
  3556. if err := t.Execute(&tpl, sInfo); err != nil {
  3557. return doc
  3558. }
  3559. return tpl.String()
  3560. }
  3561. func init() {
  3562. swag.Register(swag.Name, &s{})
  3563. }