docs.go 108 KB

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