swagger.yaml 72 KB

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