api.json 110 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "后台管理接口",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [
  9. {
  10. "name": "系统"
  11. },
  12. {
  13. "name": "用户认证"
  14. },
  15. {
  16. "name": "两步验证"
  17. },
  18. {
  19. "name": "OAuth"
  20. },
  21. {
  22. "name": "用户管理"
  23. },
  24. {
  25. "name": "充值"
  26. },
  27. {
  28. "name": "安全验证"
  29. },
  30. {
  31. "name": "渠道管理"
  32. },
  33. {
  34. "name": "令牌管理"
  35. },
  36. {
  37. "name": "兑换码"
  38. },
  39. {
  40. "name": "日志"
  41. },
  42. {
  43. "name": "数据统计"
  44. },
  45. {
  46. "name": "分组"
  47. },
  48. {
  49. "name": "任务"
  50. },
  51. {
  52. "name": "供应商"
  53. },
  54. {
  55. "name": "模型管理"
  56. },
  57. {
  58. "name": "系统设置"
  59. }
  60. ],
  61. "paths": {
  62. "/api/setup": {
  63. "get": {
  64. "summary": "获取初始化状态",
  65. "deprecated": false,
  66. "description": "🔓 无需鉴权",
  67. "tags": [
  68. "系统"
  69. ],
  70. "parameters": [],
  71. "responses": {
  72. "200": {
  73. "description": "成功",
  74. "headers": {}
  75. }
  76. },
  77. "security": [
  78. {
  79. "Combination343": []
  80. },
  81. {
  82. "Combination1243": []
  83. }
  84. ]
  85. },
  86. "post": {
  87. "summary": "初始化系统",
  88. "deprecated": false,
  89. "description": "🔓 无需鉴权",
  90. "tags": [
  91. "系统"
  92. ],
  93. "parameters": [],
  94. "requestBody": {
  95. "content": {
  96. "application/json": {
  97. "schema": {
  98. "type": "object",
  99. "properties": {
  100. "username": {
  101. "type": "string"
  102. },
  103. "password": {
  104. "type": "string"
  105. }
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "responses": {
  112. "200": {
  113. "description": "成功",
  114. "headers": {}
  115. }
  116. },
  117. "security": [
  118. {
  119. "Combination343": []
  120. },
  121. {
  122. "Combination1243": []
  123. }
  124. ]
  125. }
  126. },
  127. "/api/status": {
  128. "get": {
  129. "summary": "获取系统状态",
  130. "deprecated": false,
  131. "description": "🔓 无需鉴权",
  132. "tags": [
  133. "系统"
  134. ],
  135. "parameters": [],
  136. "responses": {
  137. "200": {
  138. "description": "成功",
  139. "headers": {}
  140. }
  141. },
  142. "security": [
  143. {
  144. "Combination343": []
  145. },
  146. {
  147. "Combination1243": []
  148. }
  149. ]
  150. }
  151. },
  152. "/api/status/test": {
  153. "get": {
  154. "summary": "测试系统状态",
  155. "deprecated": false,
  156. "description": "👨‍💼 需要管理员权限(Admin)",
  157. "tags": [
  158. "系统"
  159. ],
  160. "parameters": [],
  161. "responses": {
  162. "200": {
  163. "description": "成功",
  164. "headers": {}
  165. }
  166. },
  167. "security": [
  168. {
  169. "Combination343": []
  170. },
  171. {
  172. "Combination1243": []
  173. }
  174. ]
  175. }
  176. },
  177. "/api/uptime/status": {
  178. "get": {
  179. "summary": "获取Uptime Kuma状态",
  180. "deprecated": false,
  181. "description": "🔓 无需鉴权",
  182. "tags": [
  183. "系统"
  184. ],
  185. "parameters": [],
  186. "responses": {
  187. "200": {
  188. "description": "成功",
  189. "headers": {}
  190. }
  191. },
  192. "security": [
  193. {
  194. "Combination343": []
  195. },
  196. {
  197. "Combination1243": []
  198. }
  199. ]
  200. }
  201. },
  202. "/api/notice": {
  203. "get": {
  204. "summary": "获取公告",
  205. "deprecated": false,
  206. "description": "🔓 无需鉴权",
  207. "tags": [
  208. "系统"
  209. ],
  210. "parameters": [],
  211. "responses": {
  212. "200": {
  213. "description": "成功",
  214. "headers": {}
  215. }
  216. },
  217. "security": [
  218. {
  219. "Combination343": []
  220. },
  221. {
  222. "Combination1243": []
  223. }
  224. ]
  225. }
  226. },
  227. "/api/user-agreement": {
  228. "get": {
  229. "summary": "获取用户协议",
  230. "deprecated": false,
  231. "description": "🔓 无需鉴权",
  232. "tags": [
  233. "系统"
  234. ],
  235. "parameters": [],
  236. "responses": {
  237. "200": {
  238. "description": "成功",
  239. "headers": {}
  240. }
  241. },
  242. "security": [
  243. {
  244. "Combination343": []
  245. },
  246. {
  247. "Combination1243": []
  248. }
  249. ]
  250. }
  251. },
  252. "/api/privacy-policy": {
  253. "get": {
  254. "summary": "获取隐私政策",
  255. "deprecated": false,
  256. "description": "🔓 无需鉴权",
  257. "tags": [
  258. "系统"
  259. ],
  260. "parameters": [],
  261. "responses": {
  262. "200": {
  263. "description": "成功",
  264. "headers": {}
  265. }
  266. },
  267. "security": [
  268. {
  269. "Combination343": []
  270. },
  271. {
  272. "Combination1243": []
  273. }
  274. ]
  275. }
  276. },
  277. "/api/about": {
  278. "get": {
  279. "summary": "获取关于信息",
  280. "deprecated": false,
  281. "description": "🔓 无需鉴权",
  282. "tags": [
  283. "系统"
  284. ],
  285. "parameters": [],
  286. "responses": {
  287. "200": {
  288. "description": "成功",
  289. "headers": {}
  290. }
  291. },
  292. "security": [
  293. {
  294. "Combination343": []
  295. },
  296. {
  297. "Combination1243": []
  298. }
  299. ]
  300. }
  301. },
  302. "/api/home_page_content": {
  303. "get": {
  304. "summary": "获取首页内容",
  305. "deprecated": false,
  306. "description": "🔓 无需鉴权",
  307. "tags": [
  308. "系统"
  309. ],
  310. "parameters": [],
  311. "responses": {
  312. "200": {
  313. "description": "成功",
  314. "headers": {}
  315. }
  316. },
  317. "security": [
  318. {
  319. "Combination343": []
  320. },
  321. {
  322. "Combination1243": []
  323. }
  324. ]
  325. }
  326. },
  327. "/api/pricing": {
  328. "get": {
  329. "summary": "获取定价信息",
  330. "deprecated": false,
  331. "description": "🔓 无需鉴权(可选登录)",
  332. "tags": [
  333. "系统"
  334. ],
  335. "parameters": [],
  336. "responses": {
  337. "200": {
  338. "description": "成功",
  339. "headers": {}
  340. }
  341. },
  342. "security": [
  343. {
  344. "Combination343": []
  345. },
  346. {
  347. "Combination1243": []
  348. }
  349. ]
  350. }
  351. },
  352. "/api/models": {
  353. "get": {
  354. "summary": "获取模型列表",
  355. "deprecated": false,
  356. "description": "🔐 需要登录(User权限)",
  357. "tags": [
  358. "系统"
  359. ],
  360. "parameters": [],
  361. "responses": {
  362. "200": {
  363. "description": "成功",
  364. "headers": {}
  365. }
  366. },
  367. "security": [
  368. {
  369. "Combination343": []
  370. },
  371. {
  372. "Combination1243": []
  373. }
  374. ]
  375. }
  376. },
  377. "/api/ratio_config": {
  378. "get": {
  379. "summary": "获取倍率配置",
  380. "deprecated": false,
  381. "description": "🔓 无需鉴权",
  382. "tags": [
  383. "系统"
  384. ],
  385. "parameters": [],
  386. "responses": {
  387. "200": {
  388. "description": "成功",
  389. "headers": {}
  390. }
  391. },
  392. "security": [
  393. {
  394. "Combination343": []
  395. },
  396. {
  397. "Combination1243": []
  398. }
  399. ]
  400. }
  401. },
  402. "/api/verification": {
  403. "get": {
  404. "summary": "发送邮箱验证码",
  405. "deprecated": false,
  406. "description": "🔓 无需鉴权",
  407. "tags": [
  408. "用户认证"
  409. ],
  410. "parameters": [
  411. {
  412. "name": "email",
  413. "in": "query",
  414. "description": "",
  415. "required": true,
  416. "schema": {
  417. "type": "string"
  418. }
  419. }
  420. ],
  421. "responses": {
  422. "200": {
  423. "description": "成功",
  424. "headers": {}
  425. }
  426. },
  427. "security": [
  428. {
  429. "Combination343": []
  430. },
  431. {
  432. "Combination1243": []
  433. }
  434. ]
  435. }
  436. },
  437. "/api/reset_password": {
  438. "get": {
  439. "summary": "发送密码重置邮件",
  440. "deprecated": false,
  441. "description": "🔓 无需鉴权",
  442. "tags": [
  443. "用户认证"
  444. ],
  445. "parameters": [
  446. {
  447. "name": "email",
  448. "in": "query",
  449. "description": "",
  450. "required": true,
  451. "schema": {
  452. "type": "string"
  453. }
  454. }
  455. ],
  456. "responses": {
  457. "200": {
  458. "description": "成功",
  459. "headers": {}
  460. }
  461. },
  462. "security": [
  463. {
  464. "Combination343": []
  465. },
  466. {
  467. "Combination1243": []
  468. }
  469. ]
  470. }
  471. },
  472. "/api/user/reset": {
  473. "post": {
  474. "summary": "重置密码",
  475. "deprecated": false,
  476. "description": "🔓 无需鉴权",
  477. "tags": [
  478. "用户认证"
  479. ],
  480. "parameters": [],
  481. "requestBody": {
  482. "content": {
  483. "application/json": {
  484. "schema": {
  485. "type": "object",
  486. "properties": {
  487. "email": {
  488. "type": "string"
  489. },
  490. "token": {
  491. "type": "string"
  492. },
  493. "password": {
  494. "type": "string"
  495. }
  496. }
  497. }
  498. }
  499. }
  500. },
  501. "responses": {
  502. "200": {
  503. "description": "成功",
  504. "headers": {}
  505. }
  506. },
  507. "security": [
  508. {
  509. "Combination343": []
  510. },
  511. {
  512. "Combination1243": []
  513. }
  514. ]
  515. }
  516. },
  517. "/api/user/register": {
  518. "post": {
  519. "summary": "用户注册",
  520. "deprecated": false,
  521. "description": "🔓 无需鉴权",
  522. "tags": [
  523. "用户认证"
  524. ],
  525. "parameters": [],
  526. "requestBody": {
  527. "content": {
  528. "application/json": {
  529. "schema": {
  530. "type": "object",
  531. "properties": {
  532. "username": {
  533. "type": "string"
  534. },
  535. "password": {
  536. "type": "string"
  537. },
  538. "email": {
  539. "type": "string"
  540. },
  541. "verification_code": {
  542. "type": "string"
  543. },
  544. "aff_code": {
  545. "type": "string"
  546. }
  547. }
  548. }
  549. }
  550. }
  551. },
  552. "responses": {
  553. "200": {
  554. "description": "成功",
  555. "headers": {}
  556. }
  557. },
  558. "security": [
  559. {
  560. "Combination343": []
  561. },
  562. {
  563. "Combination1243": []
  564. }
  565. ]
  566. }
  567. },
  568. "/api/user/login": {
  569. "post": {
  570. "summary": "用户登录",
  571. "deprecated": false,
  572. "description": "🔓 无需鉴权",
  573. "tags": [
  574. "用户认证"
  575. ],
  576. "parameters": [],
  577. "requestBody": {
  578. "content": {
  579. "application/json": {
  580. "schema": {
  581. "type": "object",
  582. "properties": {
  583. "username": {
  584. "type": "string"
  585. },
  586. "password": {
  587. "type": "string"
  588. }
  589. }
  590. }
  591. }
  592. }
  593. },
  594. "responses": {
  595. "200": {
  596. "description": "成功",
  597. "headers": {}
  598. }
  599. },
  600. "security": [
  601. {
  602. "Combination343": []
  603. },
  604. {
  605. "Combination1243": []
  606. }
  607. ]
  608. }
  609. },
  610. "/api/user/login/2fa": {
  611. "post": {
  612. "summary": "两步验证登录",
  613. "deprecated": false,
  614. "description": "🔓 无需鉴权(登录流程)",
  615. "tags": [
  616. "用户认证",
  617. "两步验证"
  618. ],
  619. "parameters": [],
  620. "requestBody": {
  621. "content": {
  622. "application/json": {
  623. "schema": {
  624. "type": "object",
  625. "properties": {
  626. "code": {
  627. "type": "string"
  628. }
  629. }
  630. }
  631. }
  632. }
  633. },
  634. "responses": {
  635. "200": {
  636. "description": "成功",
  637. "headers": {}
  638. }
  639. },
  640. "security": [
  641. {
  642. "Combination343": []
  643. },
  644. {
  645. "Combination1243": []
  646. }
  647. ]
  648. }
  649. },
  650. "/api/user/logout": {
  651. "get": {
  652. "summary": "用户登出",
  653. "deprecated": false,
  654. "description": "🔓 无需鉴权",
  655. "tags": [
  656. "用户认证"
  657. ],
  658. "parameters": [],
  659. "responses": {
  660. "200": {
  661. "description": "成功",
  662. "headers": {}
  663. }
  664. },
  665. "security": [
  666. {
  667. "Combination343": []
  668. },
  669. {
  670. "Combination1243": []
  671. }
  672. ]
  673. }
  674. },
  675. "/api/user/groups": {
  676. "get": {
  677. "summary": "获取用户分组列表",
  678. "deprecated": false,
  679. "description": "🔓 无需鉴权",
  680. "tags": [
  681. "用户认证"
  682. ],
  683. "parameters": [],
  684. "responses": {
  685. "200": {
  686. "description": "成功",
  687. "headers": {}
  688. }
  689. },
  690. "security": [
  691. {
  692. "Combination343": []
  693. },
  694. {
  695. "Combination1243": []
  696. }
  697. ]
  698. }
  699. },
  700. "/api/user/passkey/login/begin": {
  701. "post": {
  702. "summary": "开始Passkey登录",
  703. "deprecated": false,
  704. "description": "🔓 无需鉴权",
  705. "tags": [
  706. "用户认证"
  707. ],
  708. "parameters": [],
  709. "responses": {
  710. "200": {
  711. "description": "成功",
  712. "headers": {}
  713. }
  714. },
  715. "security": [
  716. {
  717. "Combination343": []
  718. },
  719. {
  720. "Combination1243": []
  721. }
  722. ]
  723. }
  724. },
  725. "/api/user/passkey/login/finish": {
  726. "post": {
  727. "summary": "完成Passkey登录",
  728. "deprecated": false,
  729. "description": "🔓 无需鉴权",
  730. "tags": [
  731. "用户认证"
  732. ],
  733. "parameters": [],
  734. "responses": {
  735. "200": {
  736. "description": "成功",
  737. "headers": {}
  738. }
  739. },
  740. "security": [
  741. {
  742. "Combination343": []
  743. },
  744. {
  745. "Combination1243": []
  746. }
  747. ]
  748. }
  749. },
  750. "/api/oauth/github": {
  751. "get": {
  752. "summary": "GitHub OAuth登录",
  753. "deprecated": false,
  754. "description": "🔓 无需鉴权(OAuth回调)",
  755. "tags": [
  756. "OAuth"
  757. ],
  758. "parameters": [
  759. {
  760. "name": "code",
  761. "in": "query",
  762. "description": "",
  763. "required": false,
  764. "schema": {
  765. "type": "string"
  766. }
  767. }
  768. ],
  769. "responses": {
  770. "200": {
  771. "description": "成功",
  772. "headers": {}
  773. }
  774. },
  775. "security": [
  776. {
  777. "Combination343": []
  778. },
  779. {
  780. "Combination1243": []
  781. }
  782. ]
  783. }
  784. },
  785. "/api/oauth/discord": {
  786. "get": {
  787. "summary": "Discord OAuth登录",
  788. "deprecated": false,
  789. "description": "🔓 无需鉴权(OAuth回调)",
  790. "tags": [
  791. "OAuth"
  792. ],
  793. "parameters": [
  794. {
  795. "name": "code",
  796. "in": "query",
  797. "description": "",
  798. "required": false,
  799. "schema": {
  800. "type": "string"
  801. }
  802. }
  803. ],
  804. "responses": {
  805. "200": {
  806. "description": "成功",
  807. "headers": {}
  808. }
  809. },
  810. "security": [
  811. {
  812. "Combination343": []
  813. },
  814. {
  815. "Combination1243": []
  816. }
  817. ]
  818. }
  819. },
  820. "/api/oauth/oidc": {
  821. "get": {
  822. "summary": "OIDC登录",
  823. "deprecated": false,
  824. "description": "🔓 无需鉴权(OAuth回调)",
  825. "tags": [
  826. "OAuth"
  827. ],
  828. "parameters": [],
  829. "responses": {
  830. "200": {
  831. "description": "成功",
  832. "headers": {}
  833. }
  834. },
  835. "security": [
  836. {
  837. "Combination343": []
  838. },
  839. {
  840. "Combination1243": []
  841. }
  842. ]
  843. }
  844. },
  845. "/api/oauth/linuxdo": {
  846. "get": {
  847. "summary": "LinuxDO OAuth登录",
  848. "deprecated": false,
  849. "description": "🔓 无需鉴权(OAuth回调)",
  850. "tags": [
  851. "OAuth"
  852. ],
  853. "parameters": [],
  854. "responses": {
  855. "200": {
  856. "description": "成功",
  857. "headers": {}
  858. }
  859. },
  860. "security": [
  861. {
  862. "Combination343": []
  863. },
  864. {
  865. "Combination1243": []
  866. }
  867. ]
  868. }
  869. },
  870. "/api/oauth/state": {
  871. "get": {
  872. "summary": "生成OAuth State",
  873. "deprecated": false,
  874. "description": "🔓 无需鉴权",
  875. "tags": [
  876. "OAuth"
  877. ],
  878. "parameters": [],
  879. "responses": {
  880. "200": {
  881. "description": "成功",
  882. "headers": {}
  883. }
  884. },
  885. "security": [
  886. {
  887. "Combination343": []
  888. },
  889. {
  890. "Combination1243": []
  891. }
  892. ]
  893. }
  894. },
  895. "/api/oauth/wechat": {
  896. "get": {
  897. "summary": "微信OAuth登录",
  898. "deprecated": false,
  899. "description": "🔓 无需鉴权(OAuth回调)",
  900. "tags": [
  901. "OAuth"
  902. ],
  903. "parameters": [],
  904. "responses": {
  905. "200": {
  906. "description": "成功",
  907. "headers": {}
  908. }
  909. },
  910. "security": [
  911. {
  912. "Combination343": []
  913. },
  914. {
  915. "Combination1243": []
  916. }
  917. ]
  918. }
  919. },
  920. "/api/oauth/wechat/bind": {
  921. "get": {
  922. "summary": "绑定微信",
  923. "deprecated": false,
  924. "description": "🔓 无需鉴权",
  925. "tags": [
  926. "OAuth"
  927. ],
  928. "parameters": [],
  929. "responses": {
  930. "200": {
  931. "description": "成功",
  932. "headers": {}
  933. }
  934. },
  935. "security": [
  936. {
  937. "Combination343": []
  938. },
  939. {
  940. "Combination1243": []
  941. }
  942. ]
  943. }
  944. },
  945. "/api/oauth/email/bind": {
  946. "get": {
  947. "summary": "绑定邮箱",
  948. "deprecated": false,
  949. "description": "🔓 无需鉴权",
  950. "tags": [
  951. "OAuth"
  952. ],
  953. "parameters": [
  954. {
  955. "name": "email",
  956. "in": "query",
  957. "description": "",
  958. "required": false,
  959. "schema": {
  960. "type": "string"
  961. }
  962. },
  963. {
  964. "name": "code",
  965. "in": "query",
  966. "description": "",
  967. "required": false,
  968. "schema": {
  969. "type": "string"
  970. }
  971. }
  972. ],
  973. "responses": {
  974. "200": {
  975. "description": "成功",
  976. "headers": {}
  977. }
  978. },
  979. "security": [
  980. {
  981. "Combination343": []
  982. },
  983. {
  984. "Combination1243": []
  985. }
  986. ]
  987. }
  988. },
  989. "/api/oauth/telegram/login": {
  990. "get": {
  991. "summary": "Telegram登录",
  992. "deprecated": false,
  993. "description": "🔓 无需鉴权(OAuth回调)",
  994. "tags": [
  995. "OAuth"
  996. ],
  997. "parameters": [],
  998. "responses": {
  999. "200": {
  1000. "description": "成功",
  1001. "headers": {}
  1002. }
  1003. },
  1004. "security": [
  1005. {
  1006. "Combination343": []
  1007. },
  1008. {
  1009. "Combination1243": []
  1010. }
  1011. ]
  1012. }
  1013. },
  1014. "/api/oauth/telegram/bind": {
  1015. "get": {
  1016. "summary": "绑定Telegram",
  1017. "deprecated": false,
  1018. "description": "🔓 无需鉴权",
  1019. "tags": [
  1020. "OAuth"
  1021. ],
  1022. "parameters": [],
  1023. "responses": {
  1024. "200": {
  1025. "description": "成功",
  1026. "headers": {}
  1027. }
  1028. },
  1029. "security": [
  1030. {
  1031. "Combination343": []
  1032. },
  1033. {
  1034. "Combination1243": []
  1035. }
  1036. ]
  1037. }
  1038. },
  1039. "/api/user/self/groups": {
  1040. "get": {
  1041. "summary": "获取当前用户分组",
  1042. "deprecated": false,
  1043. "description": "🔐 需要登录(User权限)",
  1044. "tags": [
  1045. "用户管理"
  1046. ],
  1047. "parameters": [],
  1048. "responses": {
  1049. "200": {
  1050. "description": "成功",
  1051. "headers": {}
  1052. }
  1053. },
  1054. "security": [
  1055. {
  1056. "Combination343": []
  1057. },
  1058. {
  1059. "Combination1243": []
  1060. }
  1061. ]
  1062. }
  1063. },
  1064. "/api/user/self": {
  1065. "get": {
  1066. "summary": "获取当前用户信息",
  1067. "deprecated": false,
  1068. "description": "🔐 需要登录(User权限)",
  1069. "tags": [
  1070. "用户管理"
  1071. ],
  1072. "parameters": [],
  1073. "responses": {
  1074. "200": {
  1075. "description": "成功",
  1076. "headers": {}
  1077. }
  1078. },
  1079. "security": [
  1080. {
  1081. "Combination343": []
  1082. },
  1083. {
  1084. "Combination1243": []
  1085. }
  1086. ]
  1087. },
  1088. "put": {
  1089. "summary": "更新当前用户信息",
  1090. "deprecated": false,
  1091. "description": "🔐 需要登录(User权限)",
  1092. "tags": [
  1093. "用户管理"
  1094. ],
  1095. "parameters": [],
  1096. "requestBody": {
  1097. "content": {
  1098. "application/json": {
  1099. "schema": {
  1100. "type": "object",
  1101. "properties": {
  1102. "username": {
  1103. "type": "string"
  1104. },
  1105. "display_name": {
  1106. "type": "string"
  1107. },
  1108. "password": {
  1109. "type": "string"
  1110. },
  1111. "original_password": {
  1112. "type": "string"
  1113. }
  1114. }
  1115. }
  1116. }
  1117. }
  1118. },
  1119. "responses": {
  1120. "200": {
  1121. "description": "成功",
  1122. "headers": {}
  1123. }
  1124. },
  1125. "security": [
  1126. {
  1127. "Combination343": []
  1128. },
  1129. {
  1130. "Combination1243": []
  1131. }
  1132. ]
  1133. },
  1134. "delete": {
  1135. "summary": "注销当前用户",
  1136. "deprecated": false,
  1137. "description": "🔐 需要登录(User权限)",
  1138. "tags": [
  1139. "用户管理"
  1140. ],
  1141. "parameters": [],
  1142. "responses": {
  1143. "200": {
  1144. "description": "成功",
  1145. "headers": {}
  1146. }
  1147. },
  1148. "security": [
  1149. {
  1150. "Combination343": []
  1151. },
  1152. {
  1153. "Combination1243": []
  1154. }
  1155. ]
  1156. }
  1157. },
  1158. "/api/user/models": {
  1159. "get": {
  1160. "summary": "获取用户可用模型",
  1161. "deprecated": false,
  1162. "description": "🔐 需要登录(User权限)",
  1163. "tags": [
  1164. "用户管理"
  1165. ],
  1166. "parameters": [],
  1167. "responses": {
  1168. "200": {
  1169. "description": "成功",
  1170. "headers": {}
  1171. }
  1172. },
  1173. "security": [
  1174. {
  1175. "Combination343": []
  1176. },
  1177. {
  1178. "Combination1243": []
  1179. }
  1180. ]
  1181. }
  1182. },
  1183. "/api/user/token": {
  1184. "get": {
  1185. "summary": "生成访问令牌",
  1186. "deprecated": false,
  1187. "description": "🔐 需要登录(User权限)",
  1188. "tags": [
  1189. "用户管理"
  1190. ],
  1191. "parameters": [],
  1192. "responses": {
  1193. "200": {
  1194. "description": "成功",
  1195. "headers": {}
  1196. }
  1197. },
  1198. "security": [
  1199. {
  1200. "Combination343": []
  1201. },
  1202. {
  1203. "Combination1243": []
  1204. }
  1205. ]
  1206. }
  1207. },
  1208. "/api/user/passkey": {
  1209. "get": {
  1210. "summary": "获取Passkey状态",
  1211. "deprecated": false,
  1212. "description": "🔐 需要登录(User权限)",
  1213. "tags": [
  1214. "用户管理"
  1215. ],
  1216. "parameters": [],
  1217. "responses": {
  1218. "200": {
  1219. "description": "成功",
  1220. "headers": {}
  1221. }
  1222. },
  1223. "security": [
  1224. {
  1225. "Combination343": []
  1226. },
  1227. {
  1228. "Combination1243": []
  1229. }
  1230. ]
  1231. },
  1232. "delete": {
  1233. "summary": "删除Passkey",
  1234. "deprecated": false,
  1235. "description": "🔐 需要登录(User权限)",
  1236. "tags": [
  1237. "用户管理"
  1238. ],
  1239. "parameters": [],
  1240. "responses": {
  1241. "200": {
  1242. "description": "成功",
  1243. "headers": {}
  1244. }
  1245. },
  1246. "security": [
  1247. {
  1248. "Combination343": []
  1249. },
  1250. {
  1251. "Combination1243": []
  1252. }
  1253. ]
  1254. }
  1255. },
  1256. "/api/user/passkey/register/begin": {
  1257. "post": {
  1258. "summary": "开始注册Passkey",
  1259. "deprecated": false,
  1260. "description": "🔐 需要登录(User权限)",
  1261. "tags": [
  1262. "用户管理"
  1263. ],
  1264. "parameters": [],
  1265. "responses": {
  1266. "200": {
  1267. "description": "成功",
  1268. "headers": {}
  1269. }
  1270. },
  1271. "security": [
  1272. {
  1273. "Combination343": []
  1274. },
  1275. {
  1276. "Combination1243": []
  1277. }
  1278. ]
  1279. }
  1280. },
  1281. "/api/user/passkey/register/finish": {
  1282. "post": {
  1283. "summary": "完成注册Passkey",
  1284. "deprecated": false,
  1285. "description": "🔐 需要登录(User权限)",
  1286. "tags": [
  1287. "用户管理"
  1288. ],
  1289. "parameters": [],
  1290. "responses": {
  1291. "200": {
  1292. "description": "成功",
  1293. "headers": {}
  1294. }
  1295. },
  1296. "security": [
  1297. {
  1298. "Combination343": []
  1299. },
  1300. {
  1301. "Combination1243": []
  1302. }
  1303. ]
  1304. }
  1305. },
  1306. "/api/user/passkey/verify/begin": {
  1307. "post": {
  1308. "summary": "开始验证Passkey",
  1309. "deprecated": false,
  1310. "description": "🔐 需要登录(User权限)",
  1311. "tags": [
  1312. "用户管理"
  1313. ],
  1314. "parameters": [],
  1315. "responses": {
  1316. "200": {
  1317. "description": "成功",
  1318. "headers": {}
  1319. }
  1320. },
  1321. "security": [
  1322. {
  1323. "Combination343": []
  1324. },
  1325. {
  1326. "Combination1243": []
  1327. }
  1328. ]
  1329. }
  1330. },
  1331. "/api/user/passkey/verify/finish": {
  1332. "post": {
  1333. "summary": "完成验证Passkey",
  1334. "deprecated": false,
  1335. "description": "🔐 需要登录(User权限)",
  1336. "tags": [
  1337. "用户管理"
  1338. ],
  1339. "parameters": [],
  1340. "responses": {
  1341. "200": {
  1342. "description": "成功",
  1343. "headers": {}
  1344. }
  1345. },
  1346. "security": [
  1347. {
  1348. "Combination343": []
  1349. },
  1350. {
  1351. "Combination1243": []
  1352. }
  1353. ]
  1354. }
  1355. },
  1356. "/api/user/aff": {
  1357. "get": {
  1358. "summary": "获取邀请码",
  1359. "deprecated": false,
  1360. "description": "🔐 需要登录(User权限)",
  1361. "tags": [
  1362. "用户管理"
  1363. ],
  1364. "parameters": [],
  1365. "responses": {
  1366. "200": {
  1367. "description": "成功",
  1368. "headers": {}
  1369. }
  1370. },
  1371. "security": [
  1372. {
  1373. "Combination343": []
  1374. },
  1375. {
  1376. "Combination1243": []
  1377. }
  1378. ]
  1379. }
  1380. },
  1381. "/api/user/aff_transfer": {
  1382. "post": {
  1383. "summary": "转换邀请额度",
  1384. "deprecated": false,
  1385. "description": "🔐 需要登录(User权限)",
  1386. "tags": [
  1387. "用户管理"
  1388. ],
  1389. "parameters": [],
  1390. "requestBody": {
  1391. "content": {
  1392. "application/json": {
  1393. "schema": {
  1394. "type": "object",
  1395. "properties": {
  1396. "quota": {
  1397. "type": "integer"
  1398. }
  1399. }
  1400. }
  1401. }
  1402. }
  1403. },
  1404. "responses": {
  1405. "200": {
  1406. "description": "成功",
  1407. "headers": {}
  1408. }
  1409. },
  1410. "security": [
  1411. {
  1412. "Combination343": []
  1413. },
  1414. {
  1415. "Combination1243": []
  1416. }
  1417. ]
  1418. }
  1419. },
  1420. "/api/user/setting": {
  1421. "put": {
  1422. "summary": "更新用户设置",
  1423. "deprecated": false,
  1424. "description": "🔐 需要登录(User权限)",
  1425. "tags": [
  1426. "用户管理"
  1427. ],
  1428. "parameters": [],
  1429. "requestBody": {
  1430. "content": {
  1431. "application/json": {
  1432. "schema": {
  1433. "type": "object",
  1434. "properties": {
  1435. "notify_type": {
  1436. "type": "string"
  1437. },
  1438. "quota_warning_threshold": {
  1439. "type": "number"
  1440. },
  1441. "webhook_url": {
  1442. "type": "string"
  1443. },
  1444. "notification_email": {
  1445. "type": "string"
  1446. }
  1447. }
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "responses": {
  1453. "200": {
  1454. "description": "成功",
  1455. "headers": {}
  1456. }
  1457. },
  1458. "security": [
  1459. {
  1460. "Combination343": []
  1461. },
  1462. {
  1463. "Combination1243": []
  1464. }
  1465. ]
  1466. }
  1467. },
  1468. "/api/user/topup": {
  1469. "get": {
  1470. "summary": "获取所有充值记录",
  1471. "deprecated": false,
  1472. "description": "👨‍💼 需要管理员权限(Admin)",
  1473. "tags": [
  1474. "用户管理"
  1475. ],
  1476. "parameters": [],
  1477. "responses": {
  1478. "200": {
  1479. "description": "成功",
  1480. "headers": {}
  1481. }
  1482. },
  1483. "security": [
  1484. {
  1485. "Combination343": []
  1486. },
  1487. {
  1488. "Combination1243": []
  1489. }
  1490. ]
  1491. }
  1492. },
  1493. "/api/user/": {
  1494. "get": {
  1495. "summary": "获取所有用户",
  1496. "deprecated": false,
  1497. "description": "👨‍💼 需要管理员权限(Admin)",
  1498. "tags": [
  1499. "用户管理"
  1500. ],
  1501. "parameters": [
  1502. {
  1503. "name": "p",
  1504. "in": "query",
  1505. "description": "",
  1506. "required": false,
  1507. "schema": {
  1508. "type": "integer"
  1509. }
  1510. },
  1511. {
  1512. "name": "page_size",
  1513. "in": "query",
  1514. "description": "",
  1515. "required": false,
  1516. "schema": {
  1517. "type": "integer"
  1518. }
  1519. }
  1520. ],
  1521. "responses": {
  1522. "200": {
  1523. "description": "成功",
  1524. "headers": {}
  1525. }
  1526. },
  1527. "security": [
  1528. {
  1529. "Combination343": []
  1530. },
  1531. {
  1532. "Combination1243": []
  1533. }
  1534. ]
  1535. },
  1536. "post": {
  1537. "summary": "创建用户",
  1538. "deprecated": false,
  1539. "description": "👨‍💼 需要管理员权限(Admin)",
  1540. "tags": [
  1541. "用户管理"
  1542. ],
  1543. "parameters": [],
  1544. "requestBody": {
  1545. "content": {
  1546. "application/json": {
  1547. "schema": {
  1548. "$ref": "#/components/schemas/User"
  1549. }
  1550. }
  1551. }
  1552. },
  1553. "responses": {
  1554. "200": {
  1555. "description": "成功",
  1556. "headers": {}
  1557. }
  1558. },
  1559. "security": [
  1560. {
  1561. "Combination343": []
  1562. },
  1563. {
  1564. "Combination1243": []
  1565. }
  1566. ]
  1567. },
  1568. "put": {
  1569. "summary": "更新用户",
  1570. "deprecated": false,
  1571. "description": "👨‍💼 需要管理员权限(Admin)",
  1572. "tags": [
  1573. "用户管理"
  1574. ],
  1575. "parameters": [],
  1576. "requestBody": {
  1577. "content": {
  1578. "application/json": {
  1579. "schema": {
  1580. "$ref": "#/components/schemas/User"
  1581. }
  1582. }
  1583. }
  1584. },
  1585. "responses": {
  1586. "200": {
  1587. "description": "成功",
  1588. "headers": {}
  1589. }
  1590. },
  1591. "security": [
  1592. {
  1593. "Combination343": []
  1594. },
  1595. {
  1596. "Combination1243": []
  1597. }
  1598. ]
  1599. }
  1600. },
  1601. "/api/user/topup/complete": {
  1602. "post": {
  1603. "summary": "管理员完成充值",
  1604. "deprecated": false,
  1605. "description": "👨‍💼 需要管理员权限(Admin)",
  1606. "tags": [
  1607. "用户管理"
  1608. ],
  1609. "parameters": [],
  1610. "responses": {
  1611. "200": {
  1612. "description": "成功",
  1613. "headers": {}
  1614. }
  1615. },
  1616. "security": [
  1617. {
  1618. "Combination343": []
  1619. },
  1620. {
  1621. "Combination1243": []
  1622. }
  1623. ]
  1624. }
  1625. },
  1626. "/api/user/search": {
  1627. "get": {
  1628. "summary": "搜索用户",
  1629. "deprecated": false,
  1630. "description": "👨‍💼 需要管理员权限(Admin)",
  1631. "tags": [
  1632. "用户管理"
  1633. ],
  1634. "parameters": [
  1635. {
  1636. "name": "keyword",
  1637. "in": "query",
  1638. "description": "",
  1639. "required": false,
  1640. "schema": {
  1641. "type": "string"
  1642. }
  1643. },
  1644. {
  1645. "name": "group",
  1646. "in": "query",
  1647. "description": "",
  1648. "required": false,
  1649. "schema": {
  1650. "type": "string"
  1651. }
  1652. }
  1653. ],
  1654. "responses": {
  1655. "200": {
  1656. "description": "成功",
  1657. "headers": {}
  1658. }
  1659. },
  1660. "security": [
  1661. {
  1662. "Combination343": []
  1663. },
  1664. {
  1665. "Combination1243": []
  1666. }
  1667. ]
  1668. }
  1669. },
  1670. "/api/user/{id}": {
  1671. "get": {
  1672. "summary": "获取指定用户",
  1673. "deprecated": false,
  1674. "description": "👨‍💼 需要管理员权限(Admin)",
  1675. "tags": [
  1676. "用户管理"
  1677. ],
  1678. "parameters": [
  1679. {
  1680. "name": "id",
  1681. "in": "path",
  1682. "description": "",
  1683. "required": true,
  1684. "example": 0,
  1685. "schema": {
  1686. "type": "integer"
  1687. }
  1688. }
  1689. ],
  1690. "responses": {
  1691. "200": {
  1692. "description": "成功",
  1693. "headers": {}
  1694. }
  1695. },
  1696. "security": [
  1697. {
  1698. "Combination343": []
  1699. },
  1700. {
  1701. "Combination1243": []
  1702. }
  1703. ]
  1704. },
  1705. "delete": {
  1706. "summary": "删除用户",
  1707. "deprecated": false,
  1708. "description": "👨‍💼 需要管理员权限(Admin)",
  1709. "tags": [
  1710. "用户管理"
  1711. ],
  1712. "parameters": [
  1713. {
  1714. "name": "id",
  1715. "in": "path",
  1716. "description": "",
  1717. "required": true,
  1718. "example": 0,
  1719. "schema": {
  1720. "type": "integer"
  1721. }
  1722. }
  1723. ],
  1724. "responses": {
  1725. "200": {
  1726. "description": "成功",
  1727. "headers": {}
  1728. }
  1729. },
  1730. "security": [
  1731. {
  1732. "Combination343": []
  1733. },
  1734. {
  1735. "Combination1243": []
  1736. }
  1737. ]
  1738. }
  1739. },
  1740. "/api/user/{id}/reset_passkey": {
  1741. "delete": {
  1742. "summary": "管理员重置用户Passkey",
  1743. "deprecated": false,
  1744. "description": "👨‍💼 需要管理员权限(Admin)",
  1745. "tags": [
  1746. "用户管理"
  1747. ],
  1748. "parameters": [
  1749. {
  1750. "name": "id",
  1751. "in": "path",
  1752. "description": "",
  1753. "required": true,
  1754. "example": 0,
  1755. "schema": {
  1756. "type": "integer"
  1757. }
  1758. }
  1759. ],
  1760. "responses": {
  1761. "200": {
  1762. "description": "成功",
  1763. "headers": {}
  1764. }
  1765. },
  1766. "security": [
  1767. {
  1768. "Combination343": []
  1769. },
  1770. {
  1771. "Combination1243": []
  1772. }
  1773. ]
  1774. }
  1775. },
  1776. "/api/user/{id}/2fa": {
  1777. "delete": {
  1778. "summary": "管理员禁用用户2FA",
  1779. "deprecated": false,
  1780. "description": "👨‍💼 需要管理员权限(Admin)",
  1781. "tags": [
  1782. "用户管理",
  1783. "两步验证"
  1784. ],
  1785. "parameters": [
  1786. {
  1787. "name": "id",
  1788. "in": "path",
  1789. "description": "",
  1790. "required": true,
  1791. "example": 0,
  1792. "schema": {
  1793. "type": "integer"
  1794. }
  1795. }
  1796. ],
  1797. "responses": {
  1798. "200": {
  1799. "description": "成功",
  1800. "headers": {}
  1801. }
  1802. },
  1803. "security": [
  1804. {
  1805. "Combination343": []
  1806. },
  1807. {
  1808. "Combination1243": []
  1809. }
  1810. ]
  1811. }
  1812. },
  1813. "/api/user/manage": {
  1814. "post": {
  1815. "summary": "管理用户状态",
  1816. "deprecated": false,
  1817. "description": "👨‍💼 需要管理员权限(Admin)",
  1818. "tags": [
  1819. "用户管理"
  1820. ],
  1821. "parameters": [],
  1822. "requestBody": {
  1823. "content": {
  1824. "application/json": {
  1825. "schema": {
  1826. "type": "object",
  1827. "properties": {
  1828. "id": {
  1829. "type": "integer"
  1830. },
  1831. "action": {
  1832. "type": "string",
  1833. "enum": [
  1834. "disable",
  1835. "enable",
  1836. "delete",
  1837. "promote",
  1838. "demote"
  1839. ]
  1840. }
  1841. }
  1842. }
  1843. }
  1844. }
  1845. },
  1846. "responses": {
  1847. "200": {
  1848. "description": "成功",
  1849. "headers": {}
  1850. }
  1851. },
  1852. "security": [
  1853. {
  1854. "Combination343": []
  1855. },
  1856. {
  1857. "Combination1243": []
  1858. }
  1859. ]
  1860. }
  1861. },
  1862. "/api/user/topup/info": {
  1863. "get": {
  1864. "summary": "获取充值信息",
  1865. "deprecated": false,
  1866. "description": "🔐 需要登录(User权限)",
  1867. "tags": [
  1868. "充值"
  1869. ],
  1870. "parameters": [],
  1871. "responses": {
  1872. "200": {
  1873. "description": "成功",
  1874. "headers": {}
  1875. }
  1876. },
  1877. "security": [
  1878. {
  1879. "Combination343": []
  1880. },
  1881. {
  1882. "Combination1243": []
  1883. }
  1884. ]
  1885. }
  1886. },
  1887. "/api/user/topup/self": {
  1888. "get": {
  1889. "summary": "获取用户充值记录",
  1890. "deprecated": false,
  1891. "description": "🔐 需要登录(User权限)",
  1892. "tags": [
  1893. "充值"
  1894. ],
  1895. "parameters": [],
  1896. "responses": {
  1897. "200": {
  1898. "description": "成功",
  1899. "headers": {}
  1900. }
  1901. },
  1902. "security": [
  1903. {
  1904. "Combination343": []
  1905. },
  1906. {
  1907. "Combination1243": []
  1908. }
  1909. ]
  1910. }
  1911. },
  1912. "/api/user/pay": {
  1913. "post": {
  1914. "summary": "发起易支付",
  1915. "deprecated": false,
  1916. "description": "🔐 需要登录(User权限)",
  1917. "tags": [
  1918. "充值"
  1919. ],
  1920. "parameters": [],
  1921. "responses": {
  1922. "200": {
  1923. "description": "成功",
  1924. "headers": {}
  1925. }
  1926. },
  1927. "security": [
  1928. {
  1929. "Combination343": []
  1930. },
  1931. {
  1932. "Combination1243": []
  1933. }
  1934. ]
  1935. }
  1936. },
  1937. "/api/user/amount": {
  1938. "post": {
  1939. "summary": "获取支付金额",
  1940. "deprecated": false,
  1941. "description": "🔐 需要登录(User权限)",
  1942. "tags": [
  1943. "充值"
  1944. ],
  1945. "parameters": [],
  1946. "responses": {
  1947. "200": {
  1948. "description": "成功",
  1949. "headers": {}
  1950. }
  1951. },
  1952. "security": [
  1953. {
  1954. "Combination343": []
  1955. },
  1956. {
  1957. "Combination1243": []
  1958. }
  1959. ]
  1960. }
  1961. },
  1962. "/api/user/stripe/pay": {
  1963. "post": {
  1964. "summary": "发起Stripe支付",
  1965. "deprecated": false,
  1966. "description": "🔐 需要登录(User权限)",
  1967. "tags": [
  1968. "充值"
  1969. ],
  1970. "parameters": [],
  1971. "responses": {
  1972. "200": {
  1973. "description": "成功",
  1974. "headers": {}
  1975. }
  1976. },
  1977. "security": [
  1978. {
  1979. "Combination343": []
  1980. },
  1981. {
  1982. "Combination1243": []
  1983. }
  1984. ]
  1985. }
  1986. },
  1987. "/api/user/stripe/amount": {
  1988. "post": {
  1989. "summary": "获取Stripe支付金额",
  1990. "deprecated": false,
  1991. "description": "🔐 需要登录(User权限)",
  1992. "tags": [
  1993. "充值"
  1994. ],
  1995. "parameters": [],
  1996. "responses": {
  1997. "200": {
  1998. "description": "成功",
  1999. "headers": {}
  2000. }
  2001. },
  2002. "security": [
  2003. {
  2004. "Combination343": []
  2005. },
  2006. {
  2007. "Combination1243": []
  2008. }
  2009. ]
  2010. }
  2011. },
  2012. "/api/user/creem/pay": {
  2013. "post": {
  2014. "summary": "发起Creem支付",
  2015. "deprecated": false,
  2016. "description": "🔐 需要登录(User权限)",
  2017. "tags": [
  2018. "充值"
  2019. ],
  2020. "parameters": [],
  2021. "responses": {
  2022. "200": {
  2023. "description": "成功",
  2024. "headers": {}
  2025. }
  2026. },
  2027. "security": [
  2028. {
  2029. "Combination343": []
  2030. },
  2031. {
  2032. "Combination1243": []
  2033. }
  2034. ]
  2035. }
  2036. },
  2037. "/api/user/epay/notify": {
  2038. "get": {
  2039. "summary": "易支付回调",
  2040. "deprecated": false,
  2041. "description": "🔓 无需鉴权(支付回调)",
  2042. "tags": [
  2043. "充值"
  2044. ],
  2045. "parameters": [],
  2046. "responses": {
  2047. "200": {
  2048. "description": "成功",
  2049. "headers": {}
  2050. }
  2051. },
  2052. "security": [
  2053. {
  2054. "Combination343": []
  2055. },
  2056. {
  2057. "Combination1243": []
  2058. }
  2059. ]
  2060. }
  2061. },
  2062. "/api/stripe/webhook": {
  2063. "post": {
  2064. "summary": "Stripe Webhook",
  2065. "deprecated": false,
  2066. "description": "🔓 无需鉴权(Webhook回调)",
  2067. "tags": [
  2068. "充值"
  2069. ],
  2070. "parameters": [],
  2071. "responses": {
  2072. "200": {
  2073. "description": "成功",
  2074. "headers": {}
  2075. }
  2076. },
  2077. "security": [
  2078. {
  2079. "Combination343": []
  2080. },
  2081. {
  2082. "Combination1243": []
  2083. }
  2084. ]
  2085. }
  2086. },
  2087. "/api/creem/webhook": {
  2088. "post": {
  2089. "summary": "Creem Webhook",
  2090. "deprecated": false,
  2091. "description": "🔓 无需鉴权(Webhook回调)",
  2092. "tags": [
  2093. "充值"
  2094. ],
  2095. "parameters": [],
  2096. "responses": {
  2097. "200": {
  2098. "description": "成功",
  2099. "headers": {}
  2100. }
  2101. },
  2102. "security": [
  2103. {
  2104. "Combination343": []
  2105. },
  2106. {
  2107. "Combination1243": []
  2108. }
  2109. ]
  2110. }
  2111. },
  2112. "/api/user/2fa/status": {
  2113. "get": {
  2114. "summary": "获取2FA状态",
  2115. "deprecated": false,
  2116. "description": "🔐 需要登录(User权限)",
  2117. "tags": [
  2118. "两步验证"
  2119. ],
  2120. "parameters": [],
  2121. "responses": {
  2122. "200": {
  2123. "description": "成功",
  2124. "headers": {}
  2125. }
  2126. },
  2127. "security": [
  2128. {
  2129. "Combination343": []
  2130. },
  2131. {
  2132. "Combination1243": []
  2133. }
  2134. ]
  2135. }
  2136. },
  2137. "/api/user/2fa/setup": {
  2138. "post": {
  2139. "summary": "设置2FA",
  2140. "deprecated": false,
  2141. "description": "🔐 需要登录(User权限)",
  2142. "tags": [
  2143. "两步验证"
  2144. ],
  2145. "parameters": [],
  2146. "responses": {
  2147. "200": {
  2148. "description": "成功",
  2149. "headers": {}
  2150. }
  2151. },
  2152. "security": [
  2153. {
  2154. "Combination343": []
  2155. },
  2156. {
  2157. "Combination1243": []
  2158. }
  2159. ]
  2160. }
  2161. },
  2162. "/api/user/2fa/enable": {
  2163. "post": {
  2164. "summary": "启用2FA",
  2165. "deprecated": false,
  2166. "description": "🔐 需要登录(User权限)",
  2167. "tags": [
  2168. "两步验证"
  2169. ],
  2170. "parameters": [],
  2171. "requestBody": {
  2172. "content": {
  2173. "application/json": {
  2174. "schema": {
  2175. "type": "object",
  2176. "properties": {
  2177. "code": {
  2178. "type": "string"
  2179. }
  2180. }
  2181. }
  2182. }
  2183. }
  2184. },
  2185. "responses": {
  2186. "200": {
  2187. "description": "成功",
  2188. "headers": {}
  2189. }
  2190. },
  2191. "security": [
  2192. {
  2193. "Combination343": []
  2194. },
  2195. {
  2196. "Combination1243": []
  2197. }
  2198. ]
  2199. }
  2200. },
  2201. "/api/user/2fa/disable": {
  2202. "post": {
  2203. "summary": "禁用2FA",
  2204. "deprecated": false,
  2205. "description": "🔐 需要登录(User权限)",
  2206. "tags": [
  2207. "两步验证"
  2208. ],
  2209. "parameters": [],
  2210. "requestBody": {
  2211. "content": {
  2212. "application/json": {
  2213. "schema": {
  2214. "type": "object",
  2215. "properties": {
  2216. "code": {
  2217. "type": "string"
  2218. }
  2219. }
  2220. }
  2221. }
  2222. }
  2223. },
  2224. "responses": {
  2225. "200": {
  2226. "description": "成功",
  2227. "headers": {}
  2228. }
  2229. },
  2230. "security": [
  2231. {
  2232. "Combination343": []
  2233. },
  2234. {
  2235. "Combination1243": []
  2236. }
  2237. ]
  2238. }
  2239. },
  2240. "/api/user/2fa/backup_codes": {
  2241. "post": {
  2242. "summary": "重新生成备用码",
  2243. "deprecated": false,
  2244. "description": "🔐 需要登录(User权限)",
  2245. "tags": [
  2246. "两步验证"
  2247. ],
  2248. "parameters": [],
  2249. "responses": {
  2250. "200": {
  2251. "description": "成功",
  2252. "headers": {}
  2253. }
  2254. },
  2255. "security": [
  2256. {
  2257. "Combination343": []
  2258. },
  2259. {
  2260. "Combination1243": []
  2261. }
  2262. ]
  2263. }
  2264. },
  2265. "/api/user/2fa/stats": {
  2266. "get": {
  2267. "summary": "获取2FA统计",
  2268. "deprecated": false,
  2269. "description": "👨‍💼 需要管理员权限(Admin)",
  2270. "tags": [
  2271. "两步验证"
  2272. ],
  2273. "parameters": [],
  2274. "responses": {
  2275. "200": {
  2276. "description": "成功",
  2277. "headers": {}
  2278. }
  2279. },
  2280. "security": [
  2281. {
  2282. "Combination343": []
  2283. },
  2284. {
  2285. "Combination1243": []
  2286. }
  2287. ]
  2288. }
  2289. },
  2290. "/api/verify": {
  2291. "post": {
  2292. "summary": "通用安全验证",
  2293. "deprecated": false,
  2294. "description": "🔐 需要登录(User权限)",
  2295. "tags": [
  2296. "安全验证"
  2297. ],
  2298. "parameters": [],
  2299. "responses": {
  2300. "200": {
  2301. "description": "成功",
  2302. "headers": {}
  2303. }
  2304. },
  2305. "security": [
  2306. {
  2307. "Combination343": []
  2308. },
  2309. {
  2310. "Combination1243": []
  2311. }
  2312. ]
  2313. }
  2314. },
  2315. "/api/verify/status": {
  2316. "get": {
  2317. "summary": "获取验证状态",
  2318. "deprecated": false,
  2319. "description": "🔐 需要登录(User权限)",
  2320. "tags": [
  2321. "安全验证"
  2322. ],
  2323. "parameters": [],
  2324. "responses": {
  2325. "200": {
  2326. "description": "成功",
  2327. "headers": {}
  2328. }
  2329. },
  2330. "security": [
  2331. {
  2332. "Combination343": []
  2333. },
  2334. {
  2335. "Combination1243": []
  2336. }
  2337. ]
  2338. }
  2339. },
  2340. "/api/channel/": {
  2341. "get": {
  2342. "summary": "获取所有渠道",
  2343. "deprecated": false,
  2344. "description": "👨‍💼 需要管理员权限(Admin)",
  2345. "tags": [
  2346. "渠道管理"
  2347. ],
  2348. "parameters": [
  2349. {
  2350. "name": "p",
  2351. "in": "query",
  2352. "description": "",
  2353. "required": false,
  2354. "schema": {
  2355. "type": "integer"
  2356. }
  2357. },
  2358. {
  2359. "name": "page_size",
  2360. "in": "query",
  2361. "description": "",
  2362. "required": false,
  2363. "schema": {
  2364. "type": "integer"
  2365. }
  2366. },
  2367. {
  2368. "name": "id_sort",
  2369. "in": "query",
  2370. "description": "",
  2371. "required": false,
  2372. "schema": {
  2373. "type": "boolean"
  2374. }
  2375. },
  2376. {
  2377. "name": "tag_mode",
  2378. "in": "query",
  2379. "description": "",
  2380. "required": false,
  2381. "schema": {
  2382. "type": "boolean"
  2383. }
  2384. },
  2385. {
  2386. "name": "status",
  2387. "in": "query",
  2388. "description": "",
  2389. "required": false,
  2390. "schema": {
  2391. "type": "string"
  2392. }
  2393. },
  2394. {
  2395. "name": "type",
  2396. "in": "query",
  2397. "description": "",
  2398. "required": false,
  2399. "schema": {
  2400. "type": "integer"
  2401. }
  2402. }
  2403. ],
  2404. "responses": {
  2405. "200": {
  2406. "description": "成功",
  2407. "headers": {}
  2408. }
  2409. },
  2410. "security": [
  2411. {
  2412. "Combination343": []
  2413. },
  2414. {
  2415. "Combination1243": []
  2416. }
  2417. ]
  2418. },
  2419. "post": {
  2420. "summary": "添加渠道",
  2421. "deprecated": false,
  2422. "description": "👨‍💼 需要管理员权限(Admin)",
  2423. "tags": [
  2424. "渠道管理"
  2425. ],
  2426. "parameters": [],
  2427. "requestBody": {
  2428. "content": {
  2429. "application/json": {
  2430. "schema": {
  2431. "type": "object",
  2432. "properties": {
  2433. "mode": {
  2434. "type": "string",
  2435. "enum": [
  2436. "single",
  2437. "batch",
  2438. "multi_to_single"
  2439. ]
  2440. },
  2441. "channel": {
  2442. "$ref": "#/components/schemas/Channel"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. }
  2448. },
  2449. "responses": {
  2450. "200": {
  2451. "description": "成功",
  2452. "headers": {}
  2453. }
  2454. },
  2455. "security": [
  2456. {
  2457. "Combination343": []
  2458. },
  2459. {
  2460. "Combination1243": []
  2461. }
  2462. ]
  2463. },
  2464. "put": {
  2465. "summary": "更新渠道",
  2466. "deprecated": false,
  2467. "description": "👨‍💼 需要管理员权限(Admin)",
  2468. "tags": [
  2469. "渠道管理"
  2470. ],
  2471. "parameters": [],
  2472. "requestBody": {
  2473. "content": {
  2474. "application/json": {
  2475. "schema": {
  2476. "$ref": "#/components/schemas/Channel"
  2477. }
  2478. }
  2479. }
  2480. },
  2481. "responses": {
  2482. "200": {
  2483. "description": "成功",
  2484. "headers": {}
  2485. }
  2486. },
  2487. "security": [
  2488. {
  2489. "Combination343": []
  2490. },
  2491. {
  2492. "Combination1243": []
  2493. }
  2494. ]
  2495. }
  2496. },
  2497. "/api/channel/search": {
  2498. "get": {
  2499. "summary": "搜索渠道",
  2500. "deprecated": false,
  2501. "description": "👨‍💼 需要管理员权限(Admin)",
  2502. "tags": [
  2503. "渠道管理"
  2504. ],
  2505. "parameters": [
  2506. {
  2507. "name": "keyword",
  2508. "in": "query",
  2509. "description": "",
  2510. "required": false,
  2511. "schema": {
  2512. "type": "string"
  2513. }
  2514. },
  2515. {
  2516. "name": "group",
  2517. "in": "query",
  2518. "description": "",
  2519. "required": false,
  2520. "schema": {
  2521. "type": "string"
  2522. }
  2523. },
  2524. {
  2525. "name": "model",
  2526. "in": "query",
  2527. "description": "",
  2528. "required": false,
  2529. "schema": {
  2530. "type": "string"
  2531. }
  2532. }
  2533. ],
  2534. "responses": {
  2535. "200": {
  2536. "description": "成功",
  2537. "headers": {}
  2538. }
  2539. },
  2540. "security": [
  2541. {
  2542. "Combination343": []
  2543. },
  2544. {
  2545. "Combination1243": []
  2546. }
  2547. ]
  2548. }
  2549. },
  2550. "/api/channel/models": {
  2551. "get": {
  2552. "summary": "获取渠道模型列表",
  2553. "deprecated": false,
  2554. "description": "👨‍💼 需要管理员权限(Admin)",
  2555. "tags": [
  2556. "渠道管理"
  2557. ],
  2558. "parameters": [],
  2559. "responses": {
  2560. "200": {
  2561. "description": "成功",
  2562. "headers": {}
  2563. }
  2564. },
  2565. "security": [
  2566. {
  2567. "Combination343": []
  2568. },
  2569. {
  2570. "Combination1243": []
  2571. }
  2572. ]
  2573. }
  2574. },
  2575. "/api/channel/models_enabled": {
  2576. "get": {
  2577. "summary": "获取已启用模型列表",
  2578. "deprecated": false,
  2579. "description": "👨‍💼 需要管理员权限(Admin)",
  2580. "tags": [
  2581. "渠道管理"
  2582. ],
  2583. "parameters": [],
  2584. "responses": {
  2585. "200": {
  2586. "description": "成功",
  2587. "headers": {}
  2588. }
  2589. },
  2590. "security": [
  2591. {
  2592. "Combination343": []
  2593. },
  2594. {
  2595. "Combination1243": []
  2596. }
  2597. ]
  2598. }
  2599. },
  2600. "/api/channel/{id}": {
  2601. "get": {
  2602. "summary": "获取指定渠道",
  2603. "deprecated": false,
  2604. "description": "👨‍💼 需要管理员权限(Admin)",
  2605. "tags": [
  2606. "渠道管理"
  2607. ],
  2608. "parameters": [
  2609. {
  2610. "name": "id",
  2611. "in": "path",
  2612. "description": "",
  2613. "required": true,
  2614. "example": 0,
  2615. "schema": {
  2616. "type": "integer"
  2617. }
  2618. }
  2619. ],
  2620. "responses": {
  2621. "200": {
  2622. "description": "成功",
  2623. "headers": {}
  2624. }
  2625. },
  2626. "security": [
  2627. {
  2628. "Combination343": []
  2629. },
  2630. {
  2631. "Combination1243": []
  2632. }
  2633. ]
  2634. },
  2635. "delete": {
  2636. "summary": "删除渠道",
  2637. "deprecated": false,
  2638. "description": "👨‍💼 需要管理员权限(Admin)",
  2639. "tags": [
  2640. "渠道管理"
  2641. ],
  2642. "parameters": [
  2643. {
  2644. "name": "id",
  2645. "in": "path",
  2646. "description": "",
  2647. "required": true,
  2648. "example": 0,
  2649. "schema": {
  2650. "type": "integer"
  2651. }
  2652. }
  2653. ],
  2654. "responses": {
  2655. "200": {
  2656. "description": "成功",
  2657. "headers": {}
  2658. }
  2659. },
  2660. "security": [
  2661. {
  2662. "Combination343": []
  2663. },
  2664. {
  2665. "Combination1243": []
  2666. }
  2667. ]
  2668. }
  2669. },
  2670. "/api/channel/{id}/key": {
  2671. "post": {
  2672. "summary": "获取渠道密钥",
  2673. "deprecated": false,
  2674. "description": "👑 需要超级管理员权限(Root)+ 安全验证",
  2675. "tags": [
  2676. "渠道管理"
  2677. ],
  2678. "parameters": [
  2679. {
  2680. "name": "id",
  2681. "in": "path",
  2682. "description": "",
  2683. "required": true,
  2684. "example": 0,
  2685. "schema": {
  2686. "type": "integer"
  2687. }
  2688. }
  2689. ],
  2690. "responses": {
  2691. "200": {
  2692. "description": "成功",
  2693. "headers": {}
  2694. }
  2695. },
  2696. "security": [
  2697. {
  2698. "Combination343": []
  2699. },
  2700. {
  2701. "Combination1243": []
  2702. }
  2703. ]
  2704. }
  2705. },
  2706. "/api/channel/test": {
  2707. "get": {
  2708. "summary": "测试所有渠道",
  2709. "deprecated": false,
  2710. "description": "👨‍💼 需要管理员权限(Admin)",
  2711. "tags": [
  2712. "渠道管理"
  2713. ],
  2714. "parameters": [],
  2715. "responses": {
  2716. "200": {
  2717. "description": "成功",
  2718. "headers": {}
  2719. }
  2720. },
  2721. "security": [
  2722. {
  2723. "Combination343": []
  2724. },
  2725. {
  2726. "Combination1243": []
  2727. }
  2728. ]
  2729. }
  2730. },
  2731. "/api/channel/test/{id}": {
  2732. "get": {
  2733. "summary": "测试指定渠道",
  2734. "deprecated": false,
  2735. "description": "👨‍💼 需要管理员权限(Admin)",
  2736. "tags": [
  2737. "渠道管理"
  2738. ],
  2739. "parameters": [
  2740. {
  2741. "name": "id",
  2742. "in": "path",
  2743. "description": "",
  2744. "required": true,
  2745. "example": 0,
  2746. "schema": {
  2747. "type": "integer"
  2748. }
  2749. }
  2750. ],
  2751. "responses": {
  2752. "200": {
  2753. "description": "成功",
  2754. "headers": {}
  2755. }
  2756. },
  2757. "security": [
  2758. {
  2759. "Combination343": []
  2760. },
  2761. {
  2762. "Combination1243": []
  2763. }
  2764. ]
  2765. }
  2766. },
  2767. "/api/channel/update_balance": {
  2768. "get": {
  2769. "summary": "更新所有渠道余额",
  2770. "deprecated": false,
  2771. "description": "👨‍💼 需要管理员权限(Admin)",
  2772. "tags": [
  2773. "渠道管理"
  2774. ],
  2775. "parameters": [],
  2776. "responses": {
  2777. "200": {
  2778. "description": "成功",
  2779. "headers": {}
  2780. }
  2781. },
  2782. "security": [
  2783. {
  2784. "Combination343": []
  2785. },
  2786. {
  2787. "Combination1243": []
  2788. }
  2789. ]
  2790. }
  2791. },
  2792. "/api/channel/update_balance/{id}": {
  2793. "get": {
  2794. "summary": "更新指定渠道余额",
  2795. "deprecated": false,
  2796. "description": "👨‍💼 需要管理员权限(Admin)",
  2797. "tags": [
  2798. "渠道管理"
  2799. ],
  2800. "parameters": [
  2801. {
  2802. "name": "id",
  2803. "in": "path",
  2804. "description": "",
  2805. "required": true,
  2806. "example": 0,
  2807. "schema": {
  2808. "type": "integer"
  2809. }
  2810. }
  2811. ],
  2812. "responses": {
  2813. "200": {
  2814. "description": "成功",
  2815. "headers": {}
  2816. }
  2817. },
  2818. "security": [
  2819. {
  2820. "Combination343": []
  2821. },
  2822. {
  2823. "Combination1243": []
  2824. }
  2825. ]
  2826. }
  2827. },
  2828. "/api/channel/disabled": {
  2829. "delete": {
  2830. "summary": "删除已禁用渠道",
  2831. "deprecated": false,
  2832. "description": "👨‍💼 需要管理员权限(Admin)",
  2833. "tags": [
  2834. "渠道管理"
  2835. ],
  2836. "parameters": [],
  2837. "responses": {
  2838. "200": {
  2839. "description": "成功",
  2840. "headers": {}
  2841. }
  2842. },
  2843. "security": [
  2844. {
  2845. "Combination343": []
  2846. },
  2847. {
  2848. "Combination1243": []
  2849. }
  2850. ]
  2851. }
  2852. },
  2853. "/api/channel/batch": {
  2854. "post": {
  2855. "summary": "批量删除渠道",
  2856. "deprecated": false,
  2857. "description": "👨‍💼 需要管理员权限(Admin)",
  2858. "tags": [
  2859. "渠道管理"
  2860. ],
  2861. "parameters": [],
  2862. "requestBody": {
  2863. "content": {
  2864. "application/json": {
  2865. "schema": {
  2866. "type": "object",
  2867. "properties": {
  2868. "ids": {
  2869. "type": "array",
  2870. "items": {
  2871. "type": "integer"
  2872. }
  2873. }
  2874. }
  2875. }
  2876. }
  2877. }
  2878. },
  2879. "responses": {
  2880. "200": {
  2881. "description": "成功",
  2882. "headers": {}
  2883. }
  2884. },
  2885. "security": [
  2886. {
  2887. "Combination343": []
  2888. },
  2889. {
  2890. "Combination1243": []
  2891. }
  2892. ]
  2893. }
  2894. },
  2895. "/api/channel/fix": {
  2896. "post": {
  2897. "summary": "修复渠道能力",
  2898. "deprecated": false,
  2899. "description": "👨‍💼 需要管理员权限(Admin)",
  2900. "tags": [
  2901. "渠道管理"
  2902. ],
  2903. "parameters": [],
  2904. "responses": {
  2905. "200": {
  2906. "description": "成功",
  2907. "headers": {}
  2908. }
  2909. },
  2910. "security": [
  2911. {
  2912. "Combination343": []
  2913. },
  2914. {
  2915. "Combination1243": []
  2916. }
  2917. ]
  2918. }
  2919. },
  2920. "/api/channel/fetch_models/{id}": {
  2921. "get": {
  2922. "summary": "获取上游模型列表",
  2923. "deprecated": false,
  2924. "description": "👨‍💼 需要管理员权限(Admin)",
  2925. "tags": [
  2926. "渠道管理"
  2927. ],
  2928. "parameters": [
  2929. {
  2930. "name": "id",
  2931. "in": "path",
  2932. "description": "",
  2933. "required": true,
  2934. "example": 0,
  2935. "schema": {
  2936. "type": "integer"
  2937. }
  2938. }
  2939. ],
  2940. "responses": {
  2941. "200": {
  2942. "description": "成功",
  2943. "headers": {}
  2944. }
  2945. },
  2946. "security": [
  2947. {
  2948. "Combination343": []
  2949. },
  2950. {
  2951. "Combination1243": []
  2952. }
  2953. ]
  2954. }
  2955. },
  2956. "/api/channel/fetch_models": {
  2957. "post": {
  2958. "summary": "获取模型列表",
  2959. "deprecated": false,
  2960. "description": "👨‍💼 需要管理员权限(Admin)",
  2961. "tags": [
  2962. "渠道管理"
  2963. ],
  2964. "parameters": [],
  2965. "requestBody": {
  2966. "content": {
  2967. "application/json": {
  2968. "schema": {
  2969. "type": "object",
  2970. "properties": {
  2971. "base_url": {
  2972. "type": "string"
  2973. },
  2974. "type": {
  2975. "type": "integer"
  2976. },
  2977. "key": {
  2978. "type": "string"
  2979. }
  2980. }
  2981. }
  2982. }
  2983. }
  2984. },
  2985. "responses": {
  2986. "200": {
  2987. "description": "成功",
  2988. "headers": {}
  2989. }
  2990. },
  2991. "security": [
  2992. {
  2993. "Combination343": []
  2994. },
  2995. {
  2996. "Combination1243": []
  2997. }
  2998. ]
  2999. }
  3000. },
  3001. "/api/channel/batch/tag": {
  3002. "post": {
  3003. "summary": "批量设置渠道标签",
  3004. "deprecated": false,
  3005. "description": "👨‍💼 需要管理员权限(Admin)",
  3006. "tags": [
  3007. "渠道管理"
  3008. ],
  3009. "parameters": [],
  3010. "requestBody": {
  3011. "content": {
  3012. "application/json": {
  3013. "schema": {
  3014. "type": "object",
  3015. "properties": {
  3016. "ids": {
  3017. "type": "array",
  3018. "items": {
  3019. "type": "integer"
  3020. }
  3021. },
  3022. "tag": {
  3023. "type": "string"
  3024. }
  3025. }
  3026. }
  3027. }
  3028. }
  3029. },
  3030. "responses": {
  3031. "200": {
  3032. "description": "成功",
  3033. "headers": {}
  3034. }
  3035. },
  3036. "security": [
  3037. {
  3038. "Combination343": []
  3039. },
  3040. {
  3041. "Combination1243": []
  3042. }
  3043. ]
  3044. }
  3045. },
  3046. "/api/channel/tag/models": {
  3047. "get": {
  3048. "summary": "获取标签模型",
  3049. "deprecated": false,
  3050. "description": "👨‍💼 需要管理员权限(Admin)",
  3051. "tags": [
  3052. "渠道管理"
  3053. ],
  3054. "parameters": [
  3055. {
  3056. "name": "tag",
  3057. "in": "query",
  3058. "description": "",
  3059. "required": true,
  3060. "schema": {
  3061. "type": "string"
  3062. }
  3063. }
  3064. ],
  3065. "responses": {
  3066. "200": {
  3067. "description": "成功",
  3068. "headers": {}
  3069. }
  3070. },
  3071. "security": [
  3072. {
  3073. "Combination343": []
  3074. },
  3075. {
  3076. "Combination1243": []
  3077. }
  3078. ]
  3079. }
  3080. },
  3081. "/api/channel/tag/disabled": {
  3082. "post": {
  3083. "summary": "禁用标签渠道",
  3084. "deprecated": false,
  3085. "description": "👨‍💼 需要管理员权限(Admin)",
  3086. "tags": [
  3087. "渠道管理"
  3088. ],
  3089. "parameters": [],
  3090. "requestBody": {
  3091. "content": {
  3092. "application/json": {
  3093. "schema": {
  3094. "type": "object",
  3095. "properties": {
  3096. "tag": {
  3097. "type": "string"
  3098. }
  3099. }
  3100. }
  3101. }
  3102. }
  3103. },
  3104. "responses": {
  3105. "200": {
  3106. "description": "成功",
  3107. "headers": {}
  3108. }
  3109. },
  3110. "security": [
  3111. {
  3112. "Combination343": []
  3113. },
  3114. {
  3115. "Combination1243": []
  3116. }
  3117. ]
  3118. }
  3119. },
  3120. "/api/channel/tag/enabled": {
  3121. "post": {
  3122. "summary": "启用标签渠道",
  3123. "deprecated": false,
  3124. "description": "👨‍💼 需要管理员权限(Admin)",
  3125. "tags": [
  3126. "渠道管理"
  3127. ],
  3128. "parameters": [],
  3129. "requestBody": {
  3130. "content": {
  3131. "application/json": {
  3132. "schema": {
  3133. "type": "object",
  3134. "properties": {
  3135. "tag": {
  3136. "type": "string"
  3137. }
  3138. }
  3139. }
  3140. }
  3141. }
  3142. },
  3143. "responses": {
  3144. "200": {
  3145. "description": "成功",
  3146. "headers": {}
  3147. }
  3148. },
  3149. "security": [
  3150. {
  3151. "Combination343": []
  3152. },
  3153. {
  3154. "Combination1243": []
  3155. }
  3156. ]
  3157. }
  3158. },
  3159. "/api/channel/tag": {
  3160. "put": {
  3161. "summary": "编辑标签渠道",
  3162. "deprecated": false,
  3163. "description": "👨‍💼 需要管理员权限(Admin)",
  3164. "tags": [
  3165. "渠道管理"
  3166. ],
  3167. "parameters": [],
  3168. "requestBody": {
  3169. "content": {
  3170. "application/json": {
  3171. "schema": {
  3172. "type": "object",
  3173. "properties": {
  3174. "tag": {
  3175. "type": "string"
  3176. },
  3177. "new_tag": {
  3178. "type": "string"
  3179. },
  3180. "priority": {
  3181. "type": "integer"
  3182. },
  3183. "weight": {
  3184. "type": "integer"
  3185. }
  3186. }
  3187. }
  3188. }
  3189. }
  3190. },
  3191. "responses": {
  3192. "200": {
  3193. "description": "成功",
  3194. "headers": {}
  3195. }
  3196. },
  3197. "security": [
  3198. {
  3199. "Combination343": []
  3200. },
  3201. {
  3202. "Combination1243": []
  3203. }
  3204. ]
  3205. }
  3206. },
  3207. "/api/channel/copy/{id}": {
  3208. "post": {
  3209. "summary": "复制渠道",
  3210. "deprecated": false,
  3211. "description": "👨‍💼 需要管理员权限(Admin)",
  3212. "tags": [
  3213. "渠道管理"
  3214. ],
  3215. "parameters": [
  3216. {
  3217. "name": "id",
  3218. "in": "path",
  3219. "description": "",
  3220. "required": true,
  3221. "example": 0,
  3222. "schema": {
  3223. "type": "integer"
  3224. }
  3225. },
  3226. {
  3227. "name": "suffix",
  3228. "in": "query",
  3229. "description": "",
  3230. "required": false,
  3231. "schema": {
  3232. "type": "string"
  3233. }
  3234. },
  3235. {
  3236. "name": "reset_balance",
  3237. "in": "query",
  3238. "description": "",
  3239. "required": false,
  3240. "schema": {
  3241. "type": "boolean"
  3242. }
  3243. }
  3244. ],
  3245. "responses": {
  3246. "200": {
  3247. "description": "成功",
  3248. "headers": {}
  3249. }
  3250. },
  3251. "security": [
  3252. {
  3253. "Combination343": []
  3254. },
  3255. {
  3256. "Combination1243": []
  3257. }
  3258. ]
  3259. }
  3260. },
  3261. "/api/channel/multi_key/manage": {
  3262. "post": {
  3263. "summary": "管理多密钥",
  3264. "deprecated": false,
  3265. "description": "👨‍💼 需要管理员权限(Admin)",
  3266. "tags": [
  3267. "渠道管理"
  3268. ],
  3269. "parameters": [],
  3270. "requestBody": {
  3271. "content": {
  3272. "application/json": {
  3273. "schema": {
  3274. "type": "object",
  3275. "properties": {
  3276. "channel_id": {
  3277. "type": "integer"
  3278. },
  3279. "action": {
  3280. "type": "string",
  3281. "enum": [
  3282. "get_key_status",
  3283. "disable_key",
  3284. "enable_key",
  3285. "delete_key",
  3286. "delete_disabled_keys",
  3287. "enable_all_keys",
  3288. "disable_all_keys"
  3289. ]
  3290. },
  3291. "key_index": {
  3292. "type": "integer"
  3293. }
  3294. }
  3295. }
  3296. }
  3297. }
  3298. },
  3299. "responses": {
  3300. "200": {
  3301. "description": "成功",
  3302. "headers": {}
  3303. }
  3304. },
  3305. "security": [
  3306. {
  3307. "Combination343": []
  3308. },
  3309. {
  3310. "Combination1243": []
  3311. }
  3312. ]
  3313. }
  3314. },
  3315. "/api/token/": {
  3316. "get": {
  3317. "summary": "获取所有令牌",
  3318. "deprecated": false,
  3319. "description": "🔐 需要登录(User权限)",
  3320. "tags": [
  3321. "令牌管理"
  3322. ],
  3323. "parameters": [
  3324. {
  3325. "name": "p",
  3326. "in": "query",
  3327. "description": "",
  3328. "required": false,
  3329. "schema": {
  3330. "type": "integer"
  3331. }
  3332. },
  3333. {
  3334. "name": "page_size",
  3335. "in": "query",
  3336. "description": "",
  3337. "required": false,
  3338. "schema": {
  3339. "type": "integer"
  3340. }
  3341. }
  3342. ],
  3343. "responses": {
  3344. "200": {
  3345. "description": "成功",
  3346. "headers": {}
  3347. }
  3348. },
  3349. "security": [
  3350. {
  3351. "Combination343": []
  3352. },
  3353. {
  3354. "Combination1243": []
  3355. }
  3356. ]
  3357. },
  3358. "post": {
  3359. "summary": "创建令牌",
  3360. "deprecated": false,
  3361. "description": "🔐 需要登录(User权限)",
  3362. "tags": [
  3363. "令牌管理"
  3364. ],
  3365. "parameters": [],
  3366. "requestBody": {
  3367. "content": {
  3368. "application/json": {
  3369. "schema": {
  3370. "$ref": "#/components/schemas/Token"
  3371. }
  3372. }
  3373. }
  3374. },
  3375. "responses": {
  3376. "200": {
  3377. "description": "成功",
  3378. "headers": {}
  3379. }
  3380. },
  3381. "security": [
  3382. {
  3383. "Combination343": []
  3384. },
  3385. {
  3386. "Combination1243": []
  3387. }
  3388. ]
  3389. },
  3390. "put": {
  3391. "summary": "更新令牌",
  3392. "deprecated": false,
  3393. "description": "🔐 需要登录(User权限)",
  3394. "tags": [
  3395. "令牌管理"
  3396. ],
  3397. "parameters": [],
  3398. "requestBody": {
  3399. "content": {
  3400. "application/json": {
  3401. "schema": {
  3402. "$ref": "#/components/schemas/Token"
  3403. }
  3404. }
  3405. }
  3406. },
  3407. "responses": {
  3408. "200": {
  3409. "description": "成功",
  3410. "headers": {}
  3411. }
  3412. },
  3413. "security": [
  3414. {
  3415. "Combination343": []
  3416. },
  3417. {
  3418. "Combination1243": []
  3419. }
  3420. ]
  3421. }
  3422. },
  3423. "/api/token/search": {
  3424. "get": {
  3425. "summary": "搜索令牌",
  3426. "deprecated": false,
  3427. "description": "🔐 需要登录(User权限)",
  3428. "tags": [
  3429. "令牌管理"
  3430. ],
  3431. "parameters": [
  3432. {
  3433. "name": "keyword",
  3434. "in": "query",
  3435. "description": "",
  3436. "required": false,
  3437. "schema": {
  3438. "type": "string"
  3439. }
  3440. }
  3441. ],
  3442. "responses": {
  3443. "200": {
  3444. "description": "成功",
  3445. "headers": {}
  3446. }
  3447. },
  3448. "security": [
  3449. {
  3450. "Combination343": []
  3451. },
  3452. {
  3453. "Combination1243": []
  3454. }
  3455. ]
  3456. }
  3457. },
  3458. "/api/token/{id}": {
  3459. "get": {
  3460. "summary": "获取指定令牌",
  3461. "deprecated": false,
  3462. "description": "🔐 需要登录(User权限)",
  3463. "tags": [
  3464. "令牌管理"
  3465. ],
  3466. "parameters": [
  3467. {
  3468. "name": "id",
  3469. "in": "path",
  3470. "description": "",
  3471. "required": true,
  3472. "example": 0,
  3473. "schema": {
  3474. "type": "integer"
  3475. }
  3476. }
  3477. ],
  3478. "responses": {
  3479. "200": {
  3480. "description": "成功",
  3481. "headers": {}
  3482. }
  3483. },
  3484. "security": [
  3485. {
  3486. "Combination343": []
  3487. },
  3488. {
  3489. "Combination1243": []
  3490. }
  3491. ]
  3492. },
  3493. "delete": {
  3494. "summary": "删除令牌",
  3495. "deprecated": false,
  3496. "description": "🔐 需要登录(User权限)",
  3497. "tags": [
  3498. "令牌管理"
  3499. ],
  3500. "parameters": [
  3501. {
  3502. "name": "id",
  3503. "in": "path",
  3504. "description": "",
  3505. "required": true,
  3506. "example": 0,
  3507. "schema": {
  3508. "type": "integer"
  3509. }
  3510. }
  3511. ],
  3512. "responses": {
  3513. "200": {
  3514. "description": "成功",
  3515. "headers": {}
  3516. }
  3517. },
  3518. "security": [
  3519. {
  3520. "Combination343": []
  3521. },
  3522. {
  3523. "Combination1243": []
  3524. }
  3525. ]
  3526. }
  3527. },
  3528. "/api/token/batch": {
  3529. "post": {
  3530. "summary": "批量删除令牌",
  3531. "deprecated": false,
  3532. "description": "🔐 需要登录(User权限)",
  3533. "tags": [
  3534. "令牌管理"
  3535. ],
  3536. "parameters": [],
  3537. "requestBody": {
  3538. "content": {
  3539. "application/json": {
  3540. "schema": {
  3541. "type": "object",
  3542. "properties": {
  3543. "ids": {
  3544. "type": "array",
  3545. "items": {
  3546. "type": "integer"
  3547. }
  3548. }
  3549. }
  3550. }
  3551. }
  3552. }
  3553. },
  3554. "responses": {
  3555. "200": {
  3556. "description": "成功",
  3557. "headers": {}
  3558. }
  3559. },
  3560. "security": [
  3561. {
  3562. "Combination343": []
  3563. },
  3564. {
  3565. "Combination1243": []
  3566. }
  3567. ]
  3568. }
  3569. },
  3570. "/api/usage/token/": {
  3571. "get": {
  3572. "summary": "获取令牌使用情况",
  3573. "deprecated": false,
  3574. "description": "🔑 需要令牌认证(TokenAuth)",
  3575. "tags": [
  3576. "令牌管理"
  3577. ],
  3578. "parameters": [
  3579. {
  3580. "name": "Authorization",
  3581. "in": "header",
  3582. "description": "",
  3583. "required": false,
  3584. "example": "",
  3585. "schema": {
  3586. "type": "string"
  3587. }
  3588. }
  3589. ],
  3590. "responses": {
  3591. "200": {
  3592. "description": "成功",
  3593. "headers": {}
  3594. }
  3595. },
  3596. "security": [
  3597. {
  3598. "Combination343": []
  3599. },
  3600. {
  3601. "Combination1243": []
  3602. }
  3603. ]
  3604. }
  3605. },
  3606. "/api/redemption/": {
  3607. "get": {
  3608. "summary": "获取所有兑换码",
  3609. "deprecated": false,
  3610. "description": "👨‍💼 需要管理员权限(Admin)",
  3611. "tags": [
  3612. "兑换码"
  3613. ],
  3614. "parameters": [
  3615. {
  3616. "name": "p",
  3617. "in": "query",
  3618. "description": "",
  3619. "required": false,
  3620. "schema": {
  3621. "type": "integer"
  3622. }
  3623. },
  3624. {
  3625. "name": "page_size",
  3626. "in": "query",
  3627. "description": "",
  3628. "required": false,
  3629. "schema": {
  3630. "type": "integer"
  3631. }
  3632. }
  3633. ],
  3634. "responses": {
  3635. "200": {
  3636. "description": "成功",
  3637. "headers": {}
  3638. }
  3639. },
  3640. "security": [
  3641. {
  3642. "Combination343": []
  3643. },
  3644. {
  3645. "Combination1243": []
  3646. }
  3647. ]
  3648. },
  3649. "post": {
  3650. "summary": "创建兑换码",
  3651. "deprecated": false,
  3652. "description": "👨‍💼 需要管理员权限(Admin)",
  3653. "tags": [
  3654. "兑换码"
  3655. ],
  3656. "parameters": [],
  3657. "requestBody": {
  3658. "content": {
  3659. "application/json": {
  3660. "schema": {
  3661. "$ref": "#/components/schemas/Redemption"
  3662. }
  3663. }
  3664. }
  3665. },
  3666. "responses": {
  3667. "200": {
  3668. "description": "成功",
  3669. "headers": {}
  3670. }
  3671. },
  3672. "security": [
  3673. {
  3674. "Combination343": []
  3675. },
  3676. {
  3677. "Combination1243": []
  3678. }
  3679. ]
  3680. },
  3681. "put": {
  3682. "summary": "更新兑换码",
  3683. "deprecated": false,
  3684. "description": "👨‍💼 需要管理员权限(Admin)",
  3685. "tags": [
  3686. "兑换码"
  3687. ],
  3688. "parameters": [],
  3689. "requestBody": {
  3690. "content": {
  3691. "application/json": {
  3692. "schema": {
  3693. "$ref": "#/components/schemas/Redemption"
  3694. }
  3695. }
  3696. }
  3697. },
  3698. "responses": {
  3699. "200": {
  3700. "description": "成功",
  3701. "headers": {}
  3702. }
  3703. },
  3704. "security": [
  3705. {
  3706. "Combination343": []
  3707. },
  3708. {
  3709. "Combination1243": []
  3710. }
  3711. ]
  3712. }
  3713. },
  3714. "/api/redemption/search": {
  3715. "get": {
  3716. "summary": "搜索兑换码",
  3717. "deprecated": false,
  3718. "description": "👨‍💼 需要管理员权限(Admin)",
  3719. "tags": [
  3720. "兑换码"
  3721. ],
  3722. "parameters": [
  3723. {
  3724. "name": "keyword",
  3725. "in": "query",
  3726. "description": "",
  3727. "required": false,
  3728. "schema": {
  3729. "type": "string"
  3730. }
  3731. }
  3732. ],
  3733. "responses": {
  3734. "200": {
  3735. "description": "成功",
  3736. "headers": {}
  3737. }
  3738. },
  3739. "security": [
  3740. {
  3741. "Combination343": []
  3742. },
  3743. {
  3744. "Combination1243": []
  3745. }
  3746. ]
  3747. }
  3748. },
  3749. "/api/redemption/{id}": {
  3750. "get": {
  3751. "summary": "获取指定兑换码",
  3752. "deprecated": false,
  3753. "description": "👨‍💼 需要管理员权限(Admin)",
  3754. "tags": [
  3755. "兑换码"
  3756. ],
  3757. "parameters": [
  3758. {
  3759. "name": "id",
  3760. "in": "path",
  3761. "description": "",
  3762. "required": true,
  3763. "example": 0,
  3764. "schema": {
  3765. "type": "integer"
  3766. }
  3767. }
  3768. ],
  3769. "responses": {
  3770. "200": {
  3771. "description": "成功",
  3772. "headers": {}
  3773. }
  3774. },
  3775. "security": [
  3776. {
  3777. "Combination343": []
  3778. },
  3779. {
  3780. "Combination1243": []
  3781. }
  3782. ]
  3783. },
  3784. "delete": {
  3785. "summary": "删除兑换码",
  3786. "deprecated": false,
  3787. "description": "👨‍💼 需要管理员权限(Admin)",
  3788. "tags": [
  3789. "兑换码"
  3790. ],
  3791. "parameters": [
  3792. {
  3793. "name": "id",
  3794. "in": "path",
  3795. "description": "",
  3796. "required": true,
  3797. "example": 0,
  3798. "schema": {
  3799. "type": "integer"
  3800. }
  3801. }
  3802. ],
  3803. "responses": {
  3804. "200": {
  3805. "description": "成功",
  3806. "headers": {}
  3807. }
  3808. },
  3809. "security": [
  3810. {
  3811. "Combination343": []
  3812. },
  3813. {
  3814. "Combination1243": []
  3815. }
  3816. ]
  3817. }
  3818. },
  3819. "/api/redemption/invalid": {
  3820. "delete": {
  3821. "summary": "删除无效兑换码",
  3822. "deprecated": false,
  3823. "description": "👨‍💼 需要管理员权限(Admin)",
  3824. "tags": [
  3825. "兑换码"
  3826. ],
  3827. "parameters": [],
  3828. "responses": {
  3829. "200": {
  3830. "description": "成功",
  3831. "headers": {}
  3832. }
  3833. },
  3834. "security": [
  3835. {
  3836. "Combination343": []
  3837. },
  3838. {
  3839. "Combination1243": []
  3840. }
  3841. ]
  3842. }
  3843. },
  3844. "/api/log/": {
  3845. "get": {
  3846. "summary": "获取所有日志",
  3847. "deprecated": false,
  3848. "description": "👨‍💼 需要管理员权限(Admin)",
  3849. "tags": [
  3850. "日志"
  3851. ],
  3852. "parameters": [
  3853. {
  3854. "name": "p",
  3855. "in": "query",
  3856. "description": "",
  3857. "required": false,
  3858. "schema": {
  3859. "type": "integer"
  3860. }
  3861. },
  3862. {
  3863. "name": "page_size",
  3864. "in": "query",
  3865. "description": "",
  3866. "required": false,
  3867. "schema": {
  3868. "type": "integer"
  3869. }
  3870. }
  3871. ],
  3872. "responses": {
  3873. "200": {
  3874. "description": "成功",
  3875. "headers": {}
  3876. }
  3877. },
  3878. "security": [
  3879. {
  3880. "Combination343": []
  3881. },
  3882. {
  3883. "Combination1243": []
  3884. }
  3885. ]
  3886. },
  3887. "delete": {
  3888. "summary": "删除历史日志",
  3889. "deprecated": false,
  3890. "description": "👨‍💼 需要管理员权限(Admin)",
  3891. "tags": [
  3892. "日志"
  3893. ],
  3894. "parameters": [],
  3895. "responses": {
  3896. "200": {
  3897. "description": "成功",
  3898. "headers": {}
  3899. }
  3900. },
  3901. "security": [
  3902. {
  3903. "Combination343": []
  3904. },
  3905. {
  3906. "Combination1243": []
  3907. }
  3908. ]
  3909. }
  3910. },
  3911. "/api/log/stat": {
  3912. "get": {
  3913. "summary": "获取日志统计",
  3914. "deprecated": false,
  3915. "description": "👨‍💼 需要管理员权限(Admin)",
  3916. "tags": [
  3917. "日志"
  3918. ],
  3919. "parameters": [],
  3920. "responses": {
  3921. "200": {
  3922. "description": "成功",
  3923. "headers": {}
  3924. }
  3925. },
  3926. "security": [
  3927. {
  3928. "Combination343": []
  3929. },
  3930. {
  3931. "Combination1243": []
  3932. }
  3933. ]
  3934. }
  3935. },
  3936. "/api/log/self/stat": {
  3937. "get": {
  3938. "summary": "获取个人日志统计",
  3939. "deprecated": false,
  3940. "description": "🔐 需要登录(User权限)",
  3941. "tags": [
  3942. "日志"
  3943. ],
  3944. "parameters": [],
  3945. "responses": {
  3946. "200": {
  3947. "description": "成功",
  3948. "headers": {}
  3949. }
  3950. },
  3951. "security": [
  3952. {
  3953. "Combination343": []
  3954. },
  3955. {
  3956. "Combination1243": []
  3957. }
  3958. ]
  3959. }
  3960. },
  3961. "/api/log/search": {
  3962. "get": {
  3963. "summary": "搜索日志",
  3964. "deprecated": false,
  3965. "description": "👨‍💼 需要管理员权限(Admin)",
  3966. "tags": [
  3967. "日志"
  3968. ],
  3969. "parameters": [
  3970. {
  3971. "name": "keyword",
  3972. "in": "query",
  3973. "description": "",
  3974. "required": false,
  3975. "schema": {
  3976. "type": "string"
  3977. }
  3978. }
  3979. ],
  3980. "responses": {
  3981. "200": {
  3982. "description": "成功",
  3983. "headers": {}
  3984. }
  3985. },
  3986. "security": [
  3987. {
  3988. "Combination343": []
  3989. },
  3990. {
  3991. "Combination1243": []
  3992. }
  3993. ]
  3994. }
  3995. },
  3996. "/api/log/self": {
  3997. "get": {
  3998. "summary": "获取个人日志",
  3999. "deprecated": false,
  4000. "description": "🔐 需要登录(User权限)",
  4001. "tags": [
  4002. "日志"
  4003. ],
  4004. "parameters": [],
  4005. "responses": {
  4006. "200": {
  4007. "description": "成功",
  4008. "headers": {}
  4009. }
  4010. },
  4011. "security": [
  4012. {
  4013. "Combination343": []
  4014. },
  4015. {
  4016. "Combination1243": []
  4017. }
  4018. ]
  4019. }
  4020. },
  4021. "/api/log/self/search": {
  4022. "get": {
  4023. "summary": "搜索个人日志",
  4024. "deprecated": false,
  4025. "description": "🔐 需要登录(User权限)",
  4026. "tags": [
  4027. "日志"
  4028. ],
  4029. "parameters": [
  4030. {
  4031. "name": "keyword",
  4032. "in": "query",
  4033. "description": "",
  4034. "required": false,
  4035. "schema": {
  4036. "type": "string"
  4037. }
  4038. }
  4039. ],
  4040. "responses": {
  4041. "200": {
  4042. "description": "成功",
  4043. "headers": {}
  4044. }
  4045. },
  4046. "security": [
  4047. {
  4048. "Combination343": []
  4049. },
  4050. {
  4051. "Combination1243": []
  4052. }
  4053. ]
  4054. }
  4055. },
  4056. "/api/log/token": {
  4057. "get": {
  4058. "summary": "通过令牌获取日志",
  4059. "deprecated": false,
  4060. "description": "🔓 无需鉴权(通过令牌查询)",
  4061. "tags": [
  4062. "日志"
  4063. ],
  4064. "parameters": [
  4065. {
  4066. "name": "key",
  4067. "in": "query",
  4068. "description": "",
  4069. "required": false,
  4070. "schema": {
  4071. "type": "string"
  4072. }
  4073. }
  4074. ],
  4075. "responses": {
  4076. "200": {
  4077. "description": "成功",
  4078. "headers": {}
  4079. }
  4080. },
  4081. "security": [
  4082. {
  4083. "Combination343": []
  4084. },
  4085. {
  4086. "Combination1243": []
  4087. }
  4088. ]
  4089. }
  4090. },
  4091. "/api/data/": {
  4092. "get": {
  4093. "summary": "获取所有额度数据",
  4094. "deprecated": false,
  4095. "description": "👨‍💼 需要管理员权限(Admin)",
  4096. "tags": [
  4097. "数据统计"
  4098. ],
  4099. "parameters": [],
  4100. "responses": {
  4101. "200": {
  4102. "description": "成功",
  4103. "headers": {}
  4104. }
  4105. },
  4106. "security": [
  4107. {
  4108. "Combination343": []
  4109. },
  4110. {
  4111. "Combination1243": []
  4112. }
  4113. ]
  4114. }
  4115. },
  4116. "/api/data/self": {
  4117. "get": {
  4118. "summary": "获取个人额度数据",
  4119. "deprecated": false,
  4120. "description": "🔐 需要登录(User权限)",
  4121. "tags": [
  4122. "数据统计"
  4123. ],
  4124. "parameters": [],
  4125. "responses": {
  4126. "200": {
  4127. "description": "成功",
  4128. "headers": {}
  4129. }
  4130. },
  4131. "security": [
  4132. {
  4133. "Combination343": []
  4134. },
  4135. {
  4136. "Combination1243": []
  4137. }
  4138. ]
  4139. }
  4140. },
  4141. "/api/group/": {
  4142. "get": {
  4143. "summary": "获取所有分组",
  4144. "deprecated": false,
  4145. "description": "👨‍💼 需要管理员权限(Admin)",
  4146. "tags": [
  4147. "分组"
  4148. ],
  4149. "parameters": [],
  4150. "responses": {
  4151. "200": {
  4152. "description": "成功",
  4153. "headers": {}
  4154. }
  4155. },
  4156. "security": [
  4157. {
  4158. "Combination343": []
  4159. },
  4160. {
  4161. "Combination1243": []
  4162. }
  4163. ]
  4164. }
  4165. },
  4166. "/api/prefill_group/": {
  4167. "get": {
  4168. "summary": "获取预填分组",
  4169. "deprecated": false,
  4170. "description": "👨‍💼 需要管理员权限(Admin)",
  4171. "tags": [
  4172. "分组"
  4173. ],
  4174. "parameters": [],
  4175. "responses": {
  4176. "200": {
  4177. "description": "成功",
  4178. "headers": {}
  4179. }
  4180. },
  4181. "security": [
  4182. {
  4183. "Combination343": []
  4184. },
  4185. {
  4186. "Combination1243": []
  4187. }
  4188. ]
  4189. },
  4190. "post": {
  4191. "summary": "创建预填分组",
  4192. "deprecated": false,
  4193. "description": "👨‍💼 需要管理员权限(Admin)",
  4194. "tags": [
  4195. "分组"
  4196. ],
  4197. "parameters": [],
  4198. "responses": {
  4199. "200": {
  4200. "description": "成功",
  4201. "headers": {}
  4202. }
  4203. },
  4204. "security": [
  4205. {
  4206. "Combination343": []
  4207. },
  4208. {
  4209. "Combination1243": []
  4210. }
  4211. ]
  4212. },
  4213. "put": {
  4214. "summary": "更新预填分组",
  4215. "deprecated": false,
  4216. "description": "👨‍💼 需要管理员权限(Admin)",
  4217. "tags": [
  4218. "分组"
  4219. ],
  4220. "parameters": [],
  4221. "responses": {
  4222. "200": {
  4223. "description": "成功",
  4224. "headers": {}
  4225. }
  4226. },
  4227. "security": [
  4228. {
  4229. "Combination343": []
  4230. },
  4231. {
  4232. "Combination1243": []
  4233. }
  4234. ]
  4235. }
  4236. },
  4237. "/api/prefill_group/{id}": {
  4238. "delete": {
  4239. "summary": "删除预填分组",
  4240. "deprecated": false,
  4241. "description": "👨‍💼 需要管理员权限(Admin)",
  4242. "tags": [
  4243. "分组"
  4244. ],
  4245. "parameters": [
  4246. {
  4247. "name": "id",
  4248. "in": "path",
  4249. "description": "",
  4250. "required": true,
  4251. "example": 0,
  4252. "schema": {
  4253. "type": "integer"
  4254. }
  4255. }
  4256. ],
  4257. "responses": {
  4258. "200": {
  4259. "description": "成功",
  4260. "headers": {}
  4261. }
  4262. },
  4263. "security": [
  4264. {
  4265. "Combination343": []
  4266. },
  4267. {
  4268. "Combination1243": []
  4269. }
  4270. ]
  4271. }
  4272. },
  4273. "/api/mj/": {
  4274. "get": {
  4275. "summary": "获取所有Midjourney任务",
  4276. "deprecated": false,
  4277. "description": "👨‍💼 需要管理员权限(Admin)",
  4278. "tags": [
  4279. "任务"
  4280. ],
  4281. "parameters": [],
  4282. "responses": {
  4283. "200": {
  4284. "description": "成功",
  4285. "headers": {}
  4286. }
  4287. },
  4288. "security": [
  4289. {
  4290. "Combination343": []
  4291. },
  4292. {
  4293. "Combination1243": []
  4294. }
  4295. ]
  4296. }
  4297. },
  4298. "/api/mj/self": {
  4299. "get": {
  4300. "summary": "获取个人Midjourney任务",
  4301. "deprecated": false,
  4302. "description": "🔐 需要登录(User权限)",
  4303. "tags": [
  4304. "任务"
  4305. ],
  4306. "parameters": [],
  4307. "responses": {
  4308. "200": {
  4309. "description": "成功",
  4310. "headers": {}
  4311. }
  4312. },
  4313. "security": [
  4314. {
  4315. "Combination343": []
  4316. },
  4317. {
  4318. "Combination1243": []
  4319. }
  4320. ]
  4321. }
  4322. },
  4323. "/api/task/": {
  4324. "get": {
  4325. "summary": "获取所有任务",
  4326. "deprecated": false,
  4327. "description": "👨‍💼 需要管理员权限(Admin)",
  4328. "tags": [
  4329. "任务"
  4330. ],
  4331. "parameters": [],
  4332. "responses": {
  4333. "200": {
  4334. "description": "成功",
  4335. "headers": {}
  4336. }
  4337. },
  4338. "security": [
  4339. {
  4340. "Combination343": []
  4341. },
  4342. {
  4343. "Combination1243": []
  4344. }
  4345. ]
  4346. }
  4347. },
  4348. "/api/task/self": {
  4349. "get": {
  4350. "summary": "获取个人任务",
  4351. "deprecated": false,
  4352. "description": "🔐 需要登录(User权限)",
  4353. "tags": [
  4354. "任务"
  4355. ],
  4356. "parameters": [],
  4357. "responses": {
  4358. "200": {
  4359. "description": "成功",
  4360. "headers": {}
  4361. }
  4362. },
  4363. "security": [
  4364. {
  4365. "Combination343": []
  4366. },
  4367. {
  4368. "Combination1243": []
  4369. }
  4370. ]
  4371. }
  4372. },
  4373. "/api/vendors/": {
  4374. "get": {
  4375. "summary": "获取所有供应商",
  4376. "deprecated": false,
  4377. "description": "👨‍💼 需要管理员权限(Admin)",
  4378. "tags": [
  4379. "供应商"
  4380. ],
  4381. "parameters": [],
  4382. "responses": {
  4383. "200": {
  4384. "description": "成功",
  4385. "headers": {}
  4386. }
  4387. },
  4388. "security": [
  4389. {
  4390. "Combination343": []
  4391. },
  4392. {
  4393. "Combination1243": []
  4394. }
  4395. ]
  4396. },
  4397. "post": {
  4398. "summary": "创建供应商",
  4399. "deprecated": false,
  4400. "description": "👨‍💼 需要管理员权限(Admin)",
  4401. "tags": [
  4402. "供应商"
  4403. ],
  4404. "parameters": [],
  4405. "responses": {
  4406. "200": {
  4407. "description": "成功",
  4408. "headers": {}
  4409. }
  4410. },
  4411. "security": [
  4412. {
  4413. "Combination343": []
  4414. },
  4415. {
  4416. "Combination1243": []
  4417. }
  4418. ]
  4419. },
  4420. "put": {
  4421. "summary": "更新供应商",
  4422. "deprecated": false,
  4423. "description": "👨‍💼 需要管理员权限(Admin)",
  4424. "tags": [
  4425. "供应商"
  4426. ],
  4427. "parameters": [],
  4428. "responses": {
  4429. "200": {
  4430. "description": "成功",
  4431. "headers": {}
  4432. }
  4433. },
  4434. "security": [
  4435. {
  4436. "Combination343": []
  4437. },
  4438. {
  4439. "Combination1243": []
  4440. }
  4441. ]
  4442. }
  4443. },
  4444. "/api/vendors/search": {
  4445. "get": {
  4446. "summary": "搜索供应商",
  4447. "deprecated": false,
  4448. "description": "👨‍💼 需要管理员权限(Admin)",
  4449. "tags": [
  4450. "供应商"
  4451. ],
  4452. "parameters": [
  4453. {
  4454. "name": "keyword",
  4455. "in": "query",
  4456. "description": "",
  4457. "required": false,
  4458. "schema": {
  4459. "type": "string"
  4460. }
  4461. }
  4462. ],
  4463. "responses": {
  4464. "200": {
  4465. "description": "成功",
  4466. "headers": {}
  4467. }
  4468. },
  4469. "security": [
  4470. {
  4471. "Combination343": []
  4472. },
  4473. {
  4474. "Combination1243": []
  4475. }
  4476. ]
  4477. }
  4478. },
  4479. "/api/vendors/{id}": {
  4480. "get": {
  4481. "summary": "获取指定供应商",
  4482. "deprecated": false,
  4483. "description": "👨‍💼 需要管理员权限(Admin)",
  4484. "tags": [
  4485. "供应商"
  4486. ],
  4487. "parameters": [
  4488. {
  4489. "name": "id",
  4490. "in": "path",
  4491. "description": "",
  4492. "required": true,
  4493. "example": 0,
  4494. "schema": {
  4495. "type": "integer"
  4496. }
  4497. }
  4498. ],
  4499. "responses": {
  4500. "200": {
  4501. "description": "成功",
  4502. "headers": {}
  4503. }
  4504. },
  4505. "security": [
  4506. {
  4507. "Combination343": []
  4508. },
  4509. {
  4510. "Combination1243": []
  4511. }
  4512. ]
  4513. },
  4514. "delete": {
  4515. "summary": "删除供应商",
  4516. "deprecated": false,
  4517. "description": "👨‍💼 需要管理员权限(Admin)",
  4518. "tags": [
  4519. "供应商"
  4520. ],
  4521. "parameters": [
  4522. {
  4523. "name": "id",
  4524. "in": "path",
  4525. "description": "",
  4526. "required": true,
  4527. "example": 0,
  4528. "schema": {
  4529. "type": "integer"
  4530. }
  4531. }
  4532. ],
  4533. "responses": {
  4534. "200": {
  4535. "description": "成功",
  4536. "headers": {}
  4537. }
  4538. },
  4539. "security": [
  4540. {
  4541. "Combination343": []
  4542. },
  4543. {
  4544. "Combination1243": []
  4545. }
  4546. ]
  4547. }
  4548. },
  4549. "/api/models/": {
  4550. "get": {
  4551. "summary": "获取所有模型元数据",
  4552. "deprecated": false,
  4553. "description": "👨‍💼 需要管理员权限(Admin)",
  4554. "tags": [
  4555. "模型管理"
  4556. ],
  4557. "parameters": [],
  4558. "responses": {
  4559. "200": {
  4560. "description": "成功",
  4561. "headers": {}
  4562. }
  4563. },
  4564. "security": [
  4565. {
  4566. "Combination343": []
  4567. },
  4568. {
  4569. "Combination1243": []
  4570. }
  4571. ]
  4572. },
  4573. "post": {
  4574. "summary": "创建模型元数据",
  4575. "deprecated": false,
  4576. "description": "👨‍💼 需要管理员权限(Admin)",
  4577. "tags": [
  4578. "模型管理"
  4579. ],
  4580. "parameters": [],
  4581. "responses": {
  4582. "200": {
  4583. "description": "成功",
  4584. "headers": {}
  4585. }
  4586. },
  4587. "security": [
  4588. {
  4589. "Combination343": []
  4590. },
  4591. {
  4592. "Combination1243": []
  4593. }
  4594. ]
  4595. },
  4596. "put": {
  4597. "summary": "更新模型元数据",
  4598. "deprecated": false,
  4599. "description": "👨‍💼 需要管理员权限(Admin)",
  4600. "tags": [
  4601. "模型管理"
  4602. ],
  4603. "parameters": [],
  4604. "responses": {
  4605. "200": {
  4606. "description": "成功",
  4607. "headers": {}
  4608. }
  4609. },
  4610. "security": [
  4611. {
  4612. "Combination343": []
  4613. },
  4614. {
  4615. "Combination1243": []
  4616. }
  4617. ]
  4618. }
  4619. },
  4620. "/api/models/search": {
  4621. "get": {
  4622. "summary": "搜索模型",
  4623. "deprecated": false,
  4624. "description": "👨‍💼 需要管理员权限(Admin)",
  4625. "tags": [
  4626. "模型管理"
  4627. ],
  4628. "parameters": [
  4629. {
  4630. "name": "keyword",
  4631. "in": "query",
  4632. "description": "",
  4633. "required": false,
  4634. "schema": {
  4635. "type": "string"
  4636. }
  4637. }
  4638. ],
  4639. "responses": {
  4640. "200": {
  4641. "description": "成功",
  4642. "headers": {}
  4643. }
  4644. },
  4645. "security": [
  4646. {
  4647. "Combination343": []
  4648. },
  4649. {
  4650. "Combination1243": []
  4651. }
  4652. ]
  4653. }
  4654. },
  4655. "/api/models/{id}": {
  4656. "get": {
  4657. "summary": "获取指定模型",
  4658. "deprecated": false,
  4659. "description": "👨‍💼 需要管理员权限(Admin)",
  4660. "tags": [
  4661. "模型管理"
  4662. ],
  4663. "parameters": [
  4664. {
  4665. "name": "id",
  4666. "in": "path",
  4667. "description": "",
  4668. "required": true,
  4669. "example": 0,
  4670. "schema": {
  4671. "type": "integer"
  4672. }
  4673. }
  4674. ],
  4675. "responses": {
  4676. "200": {
  4677. "description": "成功",
  4678. "headers": {}
  4679. }
  4680. },
  4681. "security": [
  4682. {
  4683. "Combination343": []
  4684. },
  4685. {
  4686. "Combination1243": []
  4687. }
  4688. ]
  4689. },
  4690. "delete": {
  4691. "summary": "删除模型",
  4692. "deprecated": false,
  4693. "description": "👨‍💼 需要管理员权限(Admin)",
  4694. "tags": [
  4695. "模型管理"
  4696. ],
  4697. "parameters": [
  4698. {
  4699. "name": "id",
  4700. "in": "path",
  4701. "description": "",
  4702. "required": true,
  4703. "example": 0,
  4704. "schema": {
  4705. "type": "integer"
  4706. }
  4707. }
  4708. ],
  4709. "responses": {
  4710. "200": {
  4711. "description": "成功",
  4712. "headers": {}
  4713. }
  4714. },
  4715. "security": [
  4716. {
  4717. "Combination343": []
  4718. },
  4719. {
  4720. "Combination1243": []
  4721. }
  4722. ]
  4723. }
  4724. },
  4725. "/api/models/sync_upstream/preview": {
  4726. "get": {
  4727. "summary": "预览上游模型同步",
  4728. "deprecated": false,
  4729. "description": "👨‍💼 需要管理员权限(Admin)",
  4730. "tags": [
  4731. "模型管理"
  4732. ],
  4733. "parameters": [],
  4734. "responses": {
  4735. "200": {
  4736. "description": "成功",
  4737. "headers": {}
  4738. }
  4739. },
  4740. "security": [
  4741. {
  4742. "Combination343": []
  4743. },
  4744. {
  4745. "Combination1243": []
  4746. }
  4747. ]
  4748. }
  4749. },
  4750. "/api/models/sync_upstream": {
  4751. "post": {
  4752. "summary": "同步上游模型",
  4753. "deprecated": false,
  4754. "description": "👨‍💼 需要管理员权限(Admin)",
  4755. "tags": [
  4756. "模型管理"
  4757. ],
  4758. "parameters": [],
  4759. "responses": {
  4760. "200": {
  4761. "description": "成功",
  4762. "headers": {}
  4763. }
  4764. },
  4765. "security": [
  4766. {
  4767. "Combination343": []
  4768. },
  4769. {
  4770. "Combination1243": []
  4771. }
  4772. ]
  4773. }
  4774. },
  4775. "/api/models/missing": {
  4776. "get": {
  4777. "summary": "获取缺失模型",
  4778. "deprecated": false,
  4779. "description": "👨‍💼 需要管理员权限(Admin)",
  4780. "tags": [
  4781. "模型管理"
  4782. ],
  4783. "parameters": [],
  4784. "responses": {
  4785. "200": {
  4786. "description": "成功",
  4787. "headers": {}
  4788. }
  4789. },
  4790. "security": [
  4791. {
  4792. "Combination343": []
  4793. },
  4794. {
  4795. "Combination1243": []
  4796. }
  4797. ]
  4798. }
  4799. },
  4800. "/api/option/": {
  4801. "get": {
  4802. "summary": "获取系统选项",
  4803. "deprecated": false,
  4804. "description": "👑 需要超级管理员权限(Root)",
  4805. "tags": [
  4806. "系统设置"
  4807. ],
  4808. "parameters": [],
  4809. "responses": {
  4810. "200": {
  4811. "description": "成功",
  4812. "headers": {}
  4813. }
  4814. },
  4815. "security": [
  4816. {
  4817. "Combination343": []
  4818. },
  4819. {
  4820. "Combination1243": []
  4821. }
  4822. ]
  4823. },
  4824. "put": {
  4825. "summary": "更新系统选项",
  4826. "deprecated": false,
  4827. "description": "👑 需要超级管理员权限(Root)",
  4828. "tags": [
  4829. "系统设置"
  4830. ],
  4831. "parameters": [],
  4832. "responses": {
  4833. "200": {
  4834. "description": "成功",
  4835. "headers": {}
  4836. }
  4837. },
  4838. "security": [
  4839. {
  4840. "Combination343": []
  4841. },
  4842. {
  4843. "Combination1243": []
  4844. }
  4845. ]
  4846. }
  4847. },
  4848. "/api/option/rest_model_ratio": {
  4849. "post": {
  4850. "summary": "重置模型倍率",
  4851. "deprecated": false,
  4852. "description": "👑 需要超级管理员权限(Root)",
  4853. "tags": [
  4854. "系统设置"
  4855. ],
  4856. "parameters": [],
  4857. "responses": {
  4858. "200": {
  4859. "description": "成功",
  4860. "headers": {}
  4861. }
  4862. },
  4863. "security": [
  4864. {
  4865. "Combination343": []
  4866. },
  4867. {
  4868. "Combination1243": []
  4869. }
  4870. ]
  4871. }
  4872. },
  4873. "/api/option/migrate_console_setting": {
  4874. "post": {
  4875. "summary": "迁移控制台设置",
  4876. "deprecated": false,
  4877. "description": "👑 需要超级管理员权限(Root)",
  4878. "tags": [
  4879. "系统设置"
  4880. ],
  4881. "parameters": [],
  4882. "responses": {
  4883. "200": {
  4884. "description": "成功",
  4885. "headers": {}
  4886. }
  4887. },
  4888. "security": [
  4889. {
  4890. "Combination343": []
  4891. },
  4892. {
  4893. "Combination1243": []
  4894. }
  4895. ]
  4896. }
  4897. },
  4898. "/api/ratio_sync/channels": {
  4899. "get": {
  4900. "summary": "获取可同步渠道",
  4901. "deprecated": false,
  4902. "description": "👑 需要超级管理员权限(Root)",
  4903. "tags": [
  4904. "系统设置"
  4905. ],
  4906. "parameters": [],
  4907. "responses": {
  4908. "200": {
  4909. "description": "成功",
  4910. "headers": {}
  4911. }
  4912. },
  4913. "security": [
  4914. {
  4915. "Combination343": []
  4916. },
  4917. {
  4918. "Combination1243": []
  4919. }
  4920. ]
  4921. }
  4922. },
  4923. "/api/ratio_sync/fetch": {
  4924. "post": {
  4925. "summary": "获取上游倍率",
  4926. "deprecated": false,
  4927. "description": "👑 需要超级管理员权限(Root)",
  4928. "tags": [
  4929. "系统设置"
  4930. ],
  4931. "parameters": [],
  4932. "responses": {
  4933. "200": {
  4934. "description": "成功",
  4935. "headers": {}
  4936. }
  4937. },
  4938. "security": [
  4939. {
  4940. "Combination343": []
  4941. },
  4942. {
  4943. "Combination1243": []
  4944. }
  4945. ]
  4946. }
  4947. }
  4948. },
  4949. "components": {
  4950. "schemas": {
  4951. "User": {
  4952. "type": "object",
  4953. "properties": {
  4954. "id": {
  4955. "type": "integer"
  4956. },
  4957. "username": {
  4958. "type": "string"
  4959. },
  4960. "display_name": {
  4961. "type": "string"
  4962. },
  4963. "role": {
  4964. "type": "integer"
  4965. },
  4966. "status": {
  4967. "type": "integer"
  4968. },
  4969. "email": {
  4970. "type": "string"
  4971. },
  4972. "group": {
  4973. "type": "string"
  4974. },
  4975. "quota": {
  4976. "type": "integer"
  4977. },
  4978. "used_quota": {
  4979. "type": "integer"
  4980. },
  4981. "request_count": {
  4982. "type": "integer"
  4983. }
  4984. }
  4985. },
  4986. "Channel": {
  4987. "type": "object",
  4988. "properties": {
  4989. "id": {
  4990. "type": "integer"
  4991. },
  4992. "name": {
  4993. "type": "string"
  4994. },
  4995. "type": {
  4996. "type": "integer"
  4997. },
  4998. "status": {
  4999. "type": "integer"
  5000. },
  5001. "models": {
  5002. "type": "string"
  5003. },
  5004. "groups": {
  5005. "type": "string"
  5006. },
  5007. "priority": {
  5008. "type": "integer"
  5009. },
  5010. "weight": {
  5011. "type": "integer"
  5012. },
  5013. "base_url": {
  5014. "type": "string"
  5015. },
  5016. "tag": {
  5017. "type": "string"
  5018. }
  5019. }
  5020. },
  5021. "Token": {
  5022. "type": "object",
  5023. "properties": {
  5024. "id": {
  5025. "type": "integer"
  5026. },
  5027. "user_id": {
  5028. "type": "integer"
  5029. },
  5030. "name": {
  5031. "type": "string"
  5032. },
  5033. "key": {
  5034. "type": "string"
  5035. },
  5036. "status": {
  5037. "type": "integer"
  5038. },
  5039. "expired_time": {
  5040. "type": "integer"
  5041. },
  5042. "remain_quota": {
  5043. "type": "integer"
  5044. },
  5045. "unlimited_quota": {
  5046. "type": "boolean"
  5047. }
  5048. }
  5049. },
  5050. "Redemption": {
  5051. "type": "object",
  5052. "properties": {
  5053. "id": {
  5054. "type": "integer"
  5055. },
  5056. "name": {
  5057. "type": "string"
  5058. },
  5059. "key": {
  5060. "type": "string"
  5061. },
  5062. "status": {
  5063. "type": "integer"
  5064. },
  5065. "quota": {
  5066. "type": "integer"
  5067. },
  5068. "created_time": {
  5069. "type": "integer"
  5070. },
  5071. "redeemed_time": {
  5072. "type": "integer"
  5073. }
  5074. }
  5075. }
  5076. },
  5077. "responses": {},
  5078. "securitySchemes": {}
  5079. },
  5080. "servers": [],
  5081. "security": [
  5082. {
  5083. "Combination343": []
  5084. },
  5085. {
  5086. "Combination1243": []
  5087. }
  5088. ]
  5089. }