| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907 |
- openapi: 3.1.0
- info:
- title: klt-bos
- version: 0.1.0
- description: |-
- 恪澜通运营支撑扩展微服务(klt-bos)。
- 统一请求信封:`{ "data": { … } }`;统一响应信封:`{ code, message, error_code?, data }`。
- 业务错误码段 60000–60999。本服务产出的数字码落在该段内;鉴权失败类透传平台原码:
- 未认证 `11000`、无权限 `11001`(含平台 SDK 鉴权闸门在本进程内产出的响应,业务侧不得改写)。
- 其余平台通用码(11100/11103/11104/10110)由 `S` 段自造码承接,平台原码在 `message` 原文保留。
- 通用块 60000–60049(`S` 段):`KLT-S407`/60001 通用冲突、`KLT-S20002`/11000 未认证(透传)、
- `KLT-S20003`/11001 无权限(透传)、`KLT-S20004`/60004 参数缺失或格式错误、`KLT-S20005`/60005 对象不存在、
- `KLT-S20006`/60006 下游依赖失败、`KLT-S20007`/60007 内部错误、`KLT-S20008`/60008 功能未实现;
- 角色档拒绝 `KLT-P301`/60058(路由级 AC 已放行,但本服务 `require_roles` 细粒度角色档拦下;
- 与网关授权层 `11001` 区分:`11001`=路由 catalog 未绑键/授权层拦下,`60058`=本服务角色档拒下)。
- 设计口径码 `KLT-T2xx`(`error_code`=代码,`code`=数字,与通用族 `KLT-S2xxxx` 并行且不得混用):
- `KLT-T201`/60068 名称已存在、`KLT-T216`/60095 负责范围与同类其他主体交叉、
- `KLT-T222`/60076 操作过于频繁、`KLT-T223`/60077 新密码不能与原密码相同、
- `KLT-T224`/60089 同省份下已存在同品牌运营商档案、`KLT-T225`/60090 运营商档案所属区域须为省级节点、
- `KLT-T226`/60096 合伙人名称全站唯一、`KLT-T227`/60096 负责范围同请求内祖先与子孙混选。
- `KLT-*` 字符串为对外稳定契约,字符串内嵌数字与 `code` 已脱钩。
- 成功码沿用平台统一值 10000。调用方断言只绑 `error_code`(`KLT-*`),不绑数字顺位。
- 判权/判成功:经网关一律以 HTTP 200 返回,结果只体现在信封 `code`;调用方不得据 HTTP 状态判成败/判权限。
- 经网关对外前缀:`/api/klt/klt-bos/{resource}/{action}@v1`(本文件路径不含 namespace 前缀)。
- 分页约定:请求页码 0 基;呈现时再转为 1 基。
- x-error-code-range:
- start: 60000
- end: 60999
- servers:
- - url: /
- tags:
- - name: 系统健康
- description: 服务存活与状态探测,不含业务写操作。
- - name: 认证与激活
- description: 当前登录上下文查询;免登录的激活码校验与密码设置。
- - name: 区域管理
- description: 区域树节点新建、改名、删除与可见范围查询。
- - name: 账号管理
- description: 账号开通、状态、激活码、改密与客户分账号。
- - name: 审计日志
- description: 平台操作审计查询与导出。
- - name: 运营商
- description: 运营商建档与对账账号。
- - name: 合伙人
- description: 合伙人建档、负责范围读写。
- - name: 运营团队
- description: 运营团队(ent_team)档案、成员与负责范围。
- - name: 运维团队与成员
- description: 运维团队建档、成员、分派方式、覆盖客户与成员范围。
- - name: 运维团队
- description: 运维团队只读/管理相关入口。
- - name: 客户管理
- description: 客户建档、改挂区域、归属变更与变更历史。
- - name: 批量导入
- description: 客户批量导入模板、提交、批次、续传与导出。
- - name: 交付现状
- description: 在册资源一览与导出(客户详情、订阅详情、门户摘要共用台账)。
- - name: 客户门户
- description: 客户侧门户只读视图(套餐看板等)。
- - name: 套餐档位
- description: 固定/自定义套餐档位维护。
- - name: 合同
- description: 合同新建、编辑与查询(含服务条目)。
- - name: 订阅
- description: 订阅开通、升降配、叠加与查询。
- - name: 成本与分成
- description: 成本项定义、成本金额与分成规则。
- - name: 计费与对账
- description: 计费配置、账单、对账与纠错。
- - name: 运维视图
- description: 运维侧只读首页概览。
- - name: 定时作业
- description: 已注册作业清单、启停、执行记录与补跑。
- - name: 站内提醒箱
- description: 站内消息列表、已读与续签提醒。
- - name: 工单与开停交付
- description: 工单列表/详情/分派/回填/终态/材料与闭环配置。
- - name: 竣工与回执
- description: 竣工回传文件生成与运营商回执确认。
- - name: 报文人工处置
- description: 运营商报文待处置队列、挂接并生效、作废、冲突确认与改挂。
- - name: 合伙人与运营商只读视图
- description: 合伙人/运营商侧只读对账与视图入口。
- paths:
- /health:
- get:
- summary: 健康检查
- description: 返回服务存活状态,无需登录,供网关与监控探测。
- operationId: health
- tags:
- - 系统健康
- x-require-auth: false
- x-resource-type:
- $ref: '#/components/x-resource-types/health/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseHealth'
- /health@v1:
- get:
- summary: 健康检查(v1)
- description: 返回服务存活状态(v1),无需登录,供网关与监控探测。
- operationId: health_v1
- tags:
- - 系统健康
- x-require-auth: false
- x-resource-type:
- $ref: '#/components/x-resource-types/health/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseHealthV1'
- /ping@v1:
- get:
- summary: 存活探测
- description: 已登录存活探测,返回服务名与当前用户摘要。
- operationId: ping
- tags:
- - 系统健康
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ping/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePing'
- /auth/context@v1:
- get:
- summary: 当前登录上下文
- description: 返回当前登录身份、业务角色、主体与可见形态等上下文;未激活或已过期在此拦截。
- operationId: auth_context
- tags:
- - 认证与激活
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAuthContext'
- /region/create@v1:
- post:
- summary: 新建区域节点
- description: 在区域树下新建省/市/区县节点。admin 任意层级;区域运营主/子账号仅限本团队负责范围内已有省份下建市/区县(不得建省;越界/省级 ⇒ 60058
- KLT-P301)。
- operationId: region_create
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- x-enumeration-kind: tree
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建区域参数
- properties:
- parent_node_id:
- type: string
- description: 父节点 ID,必填;区域树根由平台建立,业务侧不自行挂根
- title: 父节点 ID
- node_name:
- type: string
- description: 本级区域名称,同父唯一
- title: 节点名称
- level:
- type: string
- enum:
- - 省
- - 市
- - 区县
- description: 业务侧自持层级,必填且不得按平台 depth 推导
- title: 层级
- required:
- - parent_node_id
- - node_name
- - level
- title: 新建区域节点请求数据
- required:
- - data
- x-error-codes: [60058, 60059, 60060, 60063, 60087]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionCreate'
- /region/rename@v1:
- post:
- summary: 重命名区域节点
- description: 仅修改节点名称 node_name,不改层级与父子关系。admin
- 可改任意可见节点;区域运营主/子账号仅可改本团队负责省份下的市/区县名称(不得改省级节点;越界/省级 ⇒ 60058 KLT-P301)。
- operationId: region_rename
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- x-enumeration-kind: tree
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 重命名区域节点请求参数
- properties:
- node_id:
- type: string
- description: 区域节点 ID
- title: 节点 ID
- node_name:
- type: string
- description: 新名称
- title: 节点名称
- required:
- - node_id
- - node_name
- title: 重命名区域节点请求数据
- required:
- - data
- x-error-codes: [60058, 60060, 60063]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionRename'
- /region/delete@v1:
- post:
- summary: 删除区域节点
- description: 仅 admin。须提交 confirm_name(与当前区域名逐字一致)并通过三重守卫(无下级/无挂载客户/无引用)。
- operationId: region_delete
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除区域节点请求参数
- properties:
- node_id:
- type: string
- description: 待删除区域节点 ID
- title: 节点 ID
- confirm_name:
- type: string
- description: 确认名称,须与当前区域名逐字一致
- title: 确认名称
- required:
- - node_id
- - confirm_name
- title: 删除区域节点请求数据
- required:
- - data
- x-error-codes: [60058, 60063]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionDelete'
- /region/tree@v1:
- post:
- summary: 查询可见区域树
- description: 按操作人可见范围返回区域节点集合/树;运营主/子账号只见本范围及下级。注意: 由 GET 改 POST(R-5:GET 无请求体,网关无法注入授权上界)。
- operationId: region_tree
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-enumeration-kind: tree
- requestBody:
- required: true
- description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 查询可见区域树的请求字段,置于统一信封 data 内。
- additionalProperties: false
- properties: {}
- title: 查询可见区域树请求数据
- required:
- - data
- x-error-codes: [60063]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionTree'
- /region/subtree@v1:
- post:
- summary: 查询区域子树
- description: 挂载弹窗左树、区域钻取共用;按可见范围裁剪。
- operationId: region_subtree
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- # 注册中心折叠为 scope_config.POST.source_enumeration 后 AC 才回传授权上界、网关才注入
- # (手写 x-scope.source_enumeration 会被注册中心拒,registry.rs:510-528)。
- # 标 tree 的依据:本路由可见集=区域资源树授权子集——handler 已消费通道②
- # (region.rs tree_inner → ScopedSelect::visible_region_node_ids,scoped_select.rs:120 优先取
- # tree(GET 无请求体,网关无法注入授权上界;改 POST 后 data 传空对象即可触发注入)。
- x-enumeration-kind: tree
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 子树查询参数
- properties:
- node_id:
- type: string
- description: 根节点 ID(可选;空则按可见根展开)
- title: 节点 ID
- title: 查询区域子树请求数据
- required:
- - data
- x-error-codes: [60063]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionSubtree'
- /region/change_log@v1:
- get:
- summary: 区域变更流水
- description: 仅 admin 可见;运营子账号可见节点但不可见变更流水。
- operationId: region_change_log
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [60058, 60063]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionChangeLog'
- /region/orphans@v1:
- post:
- summary: 悬空区域节点
- description: 查询悬空/孤儿节点;按节点所在区域分派可见性,admin 全量。注意: 由 GET 改 POST(R-5)。
- operationId: region_orphans
- tags:
- - 区域管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/region/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-enumeration-kind: tree
- requestBody:
- required: true
- description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 悬空区域节点的请求字段,置于统一信封 data 内。
- additionalProperties: false
- properties: {}
- title: 悬空区域节点请求数据
- required:
- - data
- x-error-codes: [60063]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseRegionOrphans'
- /account/get_list@v1:
- post:
- summary: 成员账号列表
- description:
- 列登录名/手机号(掩码)/角色/主体/主-子账号标记/启停状态,并下发激活码生命周期(交付、激活、设密时间与有效截止日)。`status`=账号启停(`bos_user_binding.status`),`activation_status`=激活态(`bos_account_ext.status`),两者正交。运维侧全量,团队侧限本团队成员。注意:「姓名」列无数据源(`bos_user_binding`
- 无该列),见。
- operationId: account_get_list
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: >-
- 分页与过滤(page/page_size/keyword/role_code/subject_type/subject_id/customer_id/status/activation_status)。
- `customer_id` 为别名:非空时映射为 `subject_type=customer` + `subject_id`;与显式 subject_id/subject_type
- 冲突 ⇒ 60004。
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60001, 60053, 60054, 60077, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountGetList'
- /ent_team/get_list@v1:
- post:
- summary: 运营团队列表
- description: 一条团队带负责人登录名、成员数与成员明细(`members[]`,含 `name`/`display_name`/`username`、账号启停
- `binding_status` 与可承接工单类型 `ticket_types`,主/子账号一并下发);仅 admin/opsMain/opsSub。
- operationId: ent_team_get_list
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: 分页与过滤(page/page_size/keyword),业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamGetList'
- /ops_team/get_list@v1:
- post:
- summary: 运维团队列表
- description: 一页列出全部团队,带可分配工单类型、成员数与派单/结算口径。两列负载(未完成工单/超期未完成)与成员级 open_tickets
- 均已内联真值(批量一次算全部团队);取数失败才回 null+顶层 load_pending/member_load_pending,不回落 0。
- operationId: ops_team_get_list
- tags:
- - 运维团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: 分页与过滤(page/page_size/keyword/region_node_id),业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamGetList'
- /audit/get_list@v1:
- post:
- summary: 审计日志检索
- description: SC-04 六列(时间/操作人/操作类型/对象/变更前/变更后);时间倒序+(occurred_at,id) 游标,不用 OFFSET。数据取自
- bos_audit_log,各业务写口(含 /audit/export@v1)均写留痕;响应附
- audit_read_ready/audit_write_ready/cursor_usable 三个诚实标记。
- operationId: audit_get_list
- tags:
- - 审计日志
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/audit/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description:
- 游标与检索条件(cursor/page_size/object_type/object_ref/actor_user_id/occurred_from/occurred_to/keyword),业务字段置于
- data
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60053]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAuditGetList'
- /audit/export@v1:
- post:
- summary: 审计日志导出
- description: 'SC-04 导出:入参与 /audit/get_list@v1 逐字同构(同一份 DTO、同一段可见范围谓词),不接受 row_ids[];CSV(UTF-8 带
- BOM)首行为 `#` 说明行(导出时刻+筛选条件逐项回显+文件行数/同一谓词命中总数+范围裁剪声明);行数上限 20000,超限 KLT-R20903(detail.row_count/detail.limit)且不产文件、不写审计、不落
- OSS;产出成功写 object_type=audit_export 留痕,留痕失败 KLT-S405。仅运营侧(admin/opsMain/opsSub)。'
- operationId: audit_export
- tags:
- - 审计日志
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/audit/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: 与 /audit/get_list@v1 同构的筛选条件(cursor/page_size 不参与导出)
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60903, 60905]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAuditExport'
- /account/provision@v1:
- post:
- summary: 开通账号
- description: 四入口共用开通管线。唯一性守卫(登录名/手机号)先于平台调用;角色与主体须一致。
- operationId: account_provision
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 开通账号请求参数
- properties:
- username:
- type: string
- description: 登录名(归一化后全站唯一)
- title: 登录名
- role_code:
- type: string
- description: 业务角色码
- title: 角色码
- subject_type:
- type: string
- description: 主体类型(operator/partner/ent_team/ops_team/customer 等)
- title: 主体类型
- subject_id:
- type: string
- description: 主体 ID
- title: 主体 ID
- mobile:
- type: string
- description: 手机号(可选,唯一)
- title: 手机号
- required:
- - username
- - role_code
- - subject_type
- - subject_id
- title: 开通账号请求数据
- required:
- - data
- x-error-codes: [60001, 60053, 60054, 60077, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountProvision'
- /account/update_status@v1:
- post:
- summary: 停用或恢复账号
- description: 停用/恢复账号状态;不可操作当前登录账号。
- operationId: account_update_status
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 停用或恢复账号请求参数
- properties:
- user_id:
- type: string
- description: 目标用户 ID
- title: 用户 ID
- status:
- type: string
- description: 目标状态(如 disabled/active)
- title: 状态
- required:
- - user_id
- - status
- title: 停用或恢复账号请求数据
- required:
- - data
- x-error-codes: [60001, 60053, 60054, 60077, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountUpdateStatus'
- /account/unbind@v1:
- post:
- summary: 注销/解绑账号
- description: |-
- 本地处置 `bos_user_binding`+`bos_account_ext`(与运营商删除级联同口径)。
- 平台 iam-user 删除类接口仅认 Bearer 用户令牌 ⇒ `platform_sync.applied=false` 诚实标记。
- 不可注销当前登录账号。档案删除/成员移出亦走同一级联。
- operationId: account_unbind
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 注销/解绑账号请求参数
- properties:
- user_id:
- type: string
- description: 目标用户 ID
- title: 用户 ID
- required:
- - user_id
- title: 注销/解绑账号请求数据
- required:
- - data
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountUnbind'
- /account/reset_code@v1:
- post:
- summary: 重置激活码
- description: 仅未激活账号可重置;已激活拒绝。新码仅当次返回。
- operationId: account_reset_code
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 重置激活码请求参数
- properties:
- user_id:
- type: string
- description: 目标用户 ID
- title: 用户 ID
- required:
- - user_id
- title: 重置激活码请求数据
- required:
- - data
- x-error-codes: [60001, 60053, 60054, 60077, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountResetCode'
- /account/export_codes@v1:
- post:
- summary: 导出激活码
- description: |-
- 导出未设密账号的激活码明文。
- 必传 `user_ids`(按调用方可见范围收窄后的账号列表;不可传空——平台将空列表视为项目内全量)。
- 作用域由服务端派生为 `scope_type=end_user` 与项目空间 ID,不接受客户端传入的 scope 字段。
- `validity` 缺省为 `valid`(只读导出);`expired`/`all` 会触发对已过期凭证换新(写操作)。不接受 `active`。
- 成功时 `data` 为 ActivationCodeExportData:含明文清单 `items[]`(`plaintext` 仅本次应答出现一次),
- 以及 `export_mode`/`write_capability`/`reissued`/`kept`/`revoked`/`audit_written`/`audit_note` 等字段。
- 主要错误:空或非法入参 `60004`;账号均未登记 `60005`;有登记但均不可见 `60108`(`KLT-C007`);角色无权 `60058`。
- operationId: account_export_codes
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 导出激活码请求参数
- properties:
- user_ids:
- type: array
- description: 按本人可见范围收窄后的用户 ID;不可传空列表。
- minItems: 1
- items:
- type: string
- description: 用户 ID
- title: 用户 ID 列表元素
- title: 用户 ID 列表
- validity:
- type: string
- description: 导出口径:valid=仍有效(只读,缺省);expired=已过期(写/换新);all=全部(写)。不接受 active。
- default: valid
- enum:
- - valid
- - expired
- - all
- title: 导出口径
- required:
- - user_ids
- title: 导出激活码请求数据
- required:
- - data
- x-error-codes: [60004, 60005, 60058, 60108]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountExportCodes'
- /account/change_password@v1:
- post:
- summary: 自助修改密码
- description: 已登录用户修改本人密码;新旧相同不保存。
- operationId: account_change_password
- tags:
- - 账号管理
- x-require-auth: true
- # AC-05 明定「任何已登录角色」:不挂业务权限键(`bos.account.manage` 只授给运营侧)。
- # 登录即可=复用所有人都在的 `bos.auth.view@v1`;「只改本人」由 handler 保证。
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 自助修改密码请求参数
- properties:
- old_password:
- type: string
- description: 原密码
- title: 原密码
- new_password:
- type: string
- description: 新密码
- title: 新密码
- required:
- - old_password
- - new_password
- title: 自助修改密码请求数据
- required:
- - data
- x-error-codes: [60001, 60053, 60054, 60055, 60077, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountChangePassword'
- /account/profile/update@v1:
- post:
- summary: 本人维护姓名
- description:
- 个人资料;仅限本人。只写账号级自填姓名(bos_account_ext.display_name),不用于主体档案(客户联系人/运营商名/团队名归运营侧维护)。空串或
- null=清除自填、回落到档案派生名;超 64 字符或含控制字符 ⇒ 60004。
- operationId: account_profile_update
- tags:
- - 账号管理
- x-require-auth: true
- # AC-05:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键(`bos.account.manage` 会把客户等角色挡在网关)。
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 本人维护姓名请求参数
- properties:
- display_name:
- type: string
- maxLength: 64
- description: 本人姓名;空串或 null=清除自填(回落到档案派生名)
- title: 显示名
- title: 本人维护姓名请求数据
- required:
- - data
- x-error-codes: [60004]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountProfileUpdate'
- /account/notify_pref@v1:
- get:
- summary: 读通知投递偏好
- description: 只读本人三通道(站内/邮箱/短信)的 enabled/available/address_hint。站内恒开不可关;地址摘要一律脱敏。任何已登录角色。
- operationId: account_notify_pref
- tags:
- - 账号管理
- x-require-auth: true
- # AC-06:任何已登录角色只读本人;不挂业务权限键(06-接口清单「登录即可」)。
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountNotifyPref'
- /account/notify_pref/save@v1:
- post:
- summary: 保存通知投递开关
- description: 仅限本人(user_id
- 取登录上下文)。站内投递不可关闭(KLT-A004/60092);未绑定手机号不能开启短信(KLT-A005/60093)。关闭是合法动作、不发码。
- operationId: account_notify_pref_save
- tags:
- - 账号管理
- x-require-auth: true
- # AC-06:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键。
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存通知投递开关请求参数
- properties:
- inapp_enabled:
- type: boolean
- description: 站内投递开关;只接受 true/缺省,false ⇒ KLT-A004
- title: inapp enabled
- mail_enabled:
- type: boolean
- description: 邮箱投递开关
- title: mail enabled
- sms_enabled:
- type: boolean
- description: 短信投递开关;无绑定手机号时 true ⇒ KLT-A005
- title: sms enabled
- required:
- - mail_enabled
- - sms_enabled
- title: 保存通知投递开关请求数据
- required:
- - data
- x-error-codes: [60092, 60093]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountNotifyPrefSave'
- /account/notify_email/get@v1:
- post:
- summary: 本人只读通知投递邮箱
- description: BUG-26F;仅限本人,只读当前生效邮箱(含来源), 改写。
- operationId: account_notify_email_get
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: 空 data 即可
- content:
- application/json:
- schema:
- type: object
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountNotifyEmailGet'
- /account/notify_email@v1:
- post:
- summary: 本人维护通知投递邮箱
- description: >-
- 仅限本人。须提交 `email` 键(缺字段 ⇒ 60004, 静默清空); 空串/null=清空登记;格式或长度不符 ⇒ KLT-A006/60094。
- operationId: account_notify_email
- tags:
- - 账号管理
- x-require-auth: true
- # AC-06:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键。
- x-resource-type:
- $ref: '#/components/x-resource-types/auth/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 本人维护通知投递邮箱请求参数
- required:
- - email
- properties:
- email:
- type: string
- nullable: true
- maxLength: 254
- description: 通知投递邮箱;空串或 null=清空登记;缺键拒
- title: email
- title: 本人维护通知投递邮箱请求数据
- required:
- - data
- x-error-codes: [60094]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountNotifyEmail'
- /account/notify_email/set@v1:
- post:
- summary: 运营代办维护通知投递邮箱
- description: admin 全域、opsMain 负责范围内(opsSub 只读)。与本人自助口同一套格式校验(KLT-A006/60094),范围外按 11104 语义拒绝。
- operationId: account_notify_email_set
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/account/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 运营代办维护通知投递邮箱请求参数
- properties:
- user_id:
- type: string
- description: 目标账号 ID
- title: 用户 ID
- email:
- type: string
- maxLength: 254
- description: 通知投递邮箱;空串或 null=清空登记
- title: email
- required:
- - user_id
- title: 运营代办维护通知投递邮箱请求数据
- required:
- - data
- x-error-codes: [60094]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseAccountNotifyEmailSet'
- /activation/verify@v1:
- post:
- summary: 激活并设置密码
- description: 免登录豁免接口。校验激活码后设置新密码;按来源 IP+码窗口限流,不设失败计数锁死。
- operationId: activation_verify
- tags:
- - 认证与激活
- x-require-auth: false
- x-resource-type:
- $ref: '#/components/x-resource-types/activation/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 激活并设置密码请求参数
- properties:
- code:
- type: string
- description: 激活码
- title: 业务码
- new_password:
- type: string
- description: 新密码(建议不少于 8 位)
- minLength: 8
- title: 新密码
- required:
- - code
- - new_password
- title: 激活并设置密码请求数据
- required:
- - data
- x-error-codes: [60006, 60076]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseActivationVerify'
- /activation/precheck@v1:
- post:
- summary: 激活第 1 步预校验(登录名与激活状态)
- description: 免登录豁免接口。在设密步之前按登录名校验账号侧前置:已激活/已停用/未发码/已过期四类在第 1 步拦下;激活码明文仍由平台 bootstrap/consume
- 核销。
- operationId: activation_precheck
- tags:
- - 认证与激活
- x-require-auth: false
- x-resource-type:
- $ref: '#/components/x-resource-types/activation/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 激活第 1 步预校验(登录名与激活状态)请求参数
- properties:
- login_name:
- type: string
- description: 登录名(平台定位账号的必填参数)
- title: login name
- code:
- type: string
- description: 激活码(仅作限流隔离键;码值由平台核销)
- title: 业务码
- required:
- - login_name
- title: 激活第 1 步预校验(登录名与激活状态)请求数据
- required:
- - data
- x-error-codes: [60006, 60052, 60076, 60088]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseActivationPrecheck'
- /operator/create@v1:
- post:
- summary: 新建运营商
- description: 运营商建档。所属区域必须是省级节点;同省份×品牌唯一;可写结算口径。
- operationId: operator_create
- tags:
- - 运营商
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/operator/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建运营商请求参数
- properties:
- name:
- type: string
- description: 运营商名称
- title: 名称
- brand:
- type: string
- description: 品牌:移动/联通/电信
- title: brand
- region_node_id:
- type: string
- description: 建档区域节点 ID(必须省级)
- title: 区域节点 ID
- is_province_node:
- type: boolean
- description: 是否省级节点标记(服务端校验用,可选)
- title: is province node
- settle_mode:
- type: string
- description: 结算方式:ratio=比例;amount=固定金额;per_account=每账号
- enum:
- - ratio
- - amount
- - per_account
- title: settle mode
- settle_value:
- type: number
- description: 结算值:比例时 0<x≤100;金额/每账号时为分且 >0
- title: settle value
- required:
- - name
- - brand
- - region_node_id
- title: 新建运营商请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOperatorCreate'
- /operator/update@v1:
- post:
- summary: 编辑运营商
- description: 编辑运营商档案;改品牌/省份不得绕过省份×品牌唯一与省级节点校验。
- operationId: operator_update
- tags:
- - 运营商
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/operator/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑运营商请求参数
- properties:
- operator_id:
- type: string
- description: 运营商 ID
- title: 运营商 ID
- name:
- type: string
- description: 运营商名称
- title: 名称
- brand:
- type: string
- description: 品牌:移动/联通/电信
- title: brand
- region_node_id:
- type: string
- description: 建档区域节点 ID(必须省级)
- title: 区域节点 ID
- is_province_node:
- type: boolean
- description: 是否省级节点标记(可选)
- title: is province node
- settle_mode:
- type: string
- description: 结算方式:ratio/amount/per_account
- title: settle mode
- settle_value:
- type: number
- description: 结算值
- title: settle value
- row_version:
- type: integer
- description: |-
- 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。
- title: 乐观锁版本
- minimum: 1
- required:
- - operator_id
- - name
- - brand
- - region_node_id
- - row_version
- title: 编辑运营商请求数据
- required:
- - data
- x-error-codes: [60001, 60004, 60053, 60054, 60066, 60068, 60089, 60090]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOperatorUpdate'
- /operator/delete@v1:
- post:
- summary: 删除运营商
- description: 删除前六项检查并级联注销对账账号。
- operationId: operator_delete
- tags:
- - 运营商
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/operator/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除运营商请求参数
- properties:
- operator_id:
- type: string
- description: 运营商 ID
- title: 运营商 ID
- required:
- - operator_id
- title: 删除运营商请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOperatorDelete'
- /operator/get_list@v1:
- post:
- summary: 运营商列表
- description: 卡片口径:建档区域或下挂客户落在本可见范围。
- operationId: operator_get_list
- tags:
- - 运营商
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/operator/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- brand:
- type: string
- description: 品牌精确筛选(电信/移动/联通;非法枚举 ⇒ 60004;BUG-26OR-03)
- enum:
- - 电信
- - 移动
- - 联通
- title: brand
- title: 运营商列表请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOperatorGetList'
- /operator/recon_account/create@v1:
- post:
- summary: 创建对账账号
- description: 一家运营商至多一个对账账号;初始密码仅当次显示。
- operationId: operator_recon_account_create
- tags:
- - 运营商
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/operator_recon_account/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 创建对账账号请求参数
- properties:
- operator_id:
- type: string
- description: 运营商 ID
- title: 运营商 ID
- username:
- type: string
- description: 对账账号登录名
- title: 登录名
- mobile:
- type: string
- description: 手机号(可选)
- title: 手机号
- required:
- - operator_id
- - username
- title: 创建对账账号请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOperatorReconAccountCreate'
- /operator/recon_account/get@v1:
- post:
- summary: 查询对账账号
- description: 只回状态提示(如「未发送,线下告知本人」),不回密码。
- operationId: operator_recon_account_get
- tags:
- - 运营商
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/operator_recon_account/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 查询对账账号请求参数
- properties:
- operator_id:
- type: string
- description: 运营商 ID
- title: 运营商 ID
- required:
- - operator_id
- title: 查询对账账号请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOperatorReconAccountGet'
- /partner/create@v1:
- post:
- summary: 新建合伙人
- description: 合伙人建档并同步开通账号;名称全站唯一;结算字段仅 admin 可写。
- operationId: partner_create
- tags:
- - 合伙人
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/partner/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建合伙人请求参数
- properties:
- name:
- type: string
- description: 合伙人名称(全站唯一)
- title: 名称
- duty_desc:
- type: string
- description: 职务说明(可选)
- title: duty desc
- region_node_id:
- type: string
- description: 建档区域节点 ID
- title: 区域节点 ID
- mobile:
- type: string
- description: 手机号(可选)
- title: 手机号
- username:
- type: string
- description: 登录名(开通账号用)
- title: 登录名
- settle_mode:
- type: string
- description: 结算方式(仅 admin 可写,可选)
- title: settle mode
- settle_value:
- type: number
- description: 结算值(仅 admin 可写,可选)
- title: settle value
- required:
- - name
- - region_node_id
- - username
- title: 新建合伙人请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60091]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePartnerCreate'
- /partner/update@v1:
- post:
- summary: 编辑合伙人
- description: 编辑合伙人资料;登录名不可改。
- operationId: partner_update
- tags:
- - 合伙人
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/partner/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑合伙人请求参数
- properties:
- partner_id:
- type: string
- description: 合伙人 ID
- title: 合伙人 ID
- name:
- type: string
- description: 合伙人名称(全站唯一)
- title: 名称
- duty_desc:
- type: string
- description: 职务说明(可选)
- title: duty desc
- region_node_id:
- type: string
- description: 建档区域节点 ID
- title: 区域节点 ID
- mobile:
- type: string
- description: 手机号(可选)
- title: 手机号
- settle_mode:
- type: string
- description: 结算方式(仅 admin 可写,可选)
- title: settle mode
- settle_value:
- type: number
- description: 结算值(仅 admin 可写,可选)
- title: settle value
- row_version:
- type: integer
- description: |-
- 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。
- title: 乐观锁版本
- minimum: 1
- required:
- - partner_id
- - name
- - region_node_id
- - row_version
- title: 编辑合伙人请求数据
- required:
- - data
- x-error-codes: [60001, 60004, 60053, 60054, 60091]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePartnerUpdate'
- /partner/delete@v1:
- post:
- summary: 删除合伙人
- description: 删除合伙人档案及相关授权。
- operationId: partner_delete
- tags:
- - 合伙人
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/partner/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除合伙人请求参数
- properties:
- partner_id:
- type: string
- description: 合伙人 ID
- title: 合伙人 ID
- required:
- - partner_id
- title: 删除合伙人请求数据
- required:
- - data
- x-error-codes: [60053, 60054]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePartnerDelete'
- /partner/get_list@v1:
- post:
- summary: 合伙人列表
- description: 卡片口径:建档区域落在本范围(含下级)。
- operationId: partner_get_list
- tags:
- - 合伙人
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/partner/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- title: 合伙人列表请求数据
- required:
- - data
- x-error-codes: [60053, 60054]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePartnerGetList'
- /partner/scope/get@v1:
- post:
- summary: 读取合伙人负责范围
- description: 返回该合伙人的 region/customer 两类 bos_data_scope。注意: 由 GET 改 POST(R-5,统一方法;本接口读 scope
- 表本身,不消费授权上界,故不标 x-enumeration-kind)。
- operationId: partner_scope_get
- tags:
- - 合伙人
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/partner_scope/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: 统一信封请求体(无业务参数)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 读取合伙人负责范围的请求字段,置于统一信封 data 内。
- additionalProperties: false
- properties: {}
- title: 读取合伙人负责范围请求数据
- required:
- - data
- x-error-codes: [60053, 60054]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePartnerScopeGet'
- /partner/scope/save@v1:
- post:
- summary: 保存合伙人负责范围
- description: 写入 bos_data_scope(holder_type=partner);允许保存为空;保存即 bump
- epoch。同类合伙人区域子树/点客户不得交叉(KLT-T216);异类可并存。
- operationId: partner_scope_save
- tags:
- - 合伙人
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/partner_scope/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存合伙人负责范围请求参数
- properties:
- partner_id:
- type: string
- description: 合伙人 ID
- title: 合伙人 ID
- region_node_ids:
- type: array
- description: 负责区域节点 ID 列表(可空)
- items:
- type: string
- description: 区域节点 ID
- title: region_node_ids元素
- title: region node ids
- customer_ids:
- type: array
- description: 负责客户 ID 列表(可空)
- items:
- type: string
- description: 客户 ID
- title: customer_ids元素
- title: customer ids
- required:
- - partner_id
- title: 保存合伙人负责范围请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60095, 60096]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePartnerScopeSave'
- /ent_team/create@v1:
- post:
- summary: 新建运营团队
- description: 仅 admin。新建运营团队,负责范围初始为空。
- operationId: ent_team_create
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建运营团队请求参数
- properties:
- team_name:
- type: string
- description: 团队名称
- title: 团队名称
- primary_username:
- type: string
- description: 主账号登录名(可选)
- title: primary username
- primary_mobile:
- type: string
- description: 主账号手机号(可选)
- title: primary mobile
- primary_name:
- type: string
- maxLength: 64
- description: 主账号姓名(可选,落 `bos_account_ext.display_name`;下拉框按姓名选人,前端必填,未带=回落登录名)
- title: primary name
- required:
- - team_name
- title: 新建运营团队请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamCreate'
- /ent_team/update@v1:
- post:
- summary: 编辑运营团队
- description: 仅 admin。编辑团队资料。
- operationId: ent_team_update
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑运营团队请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- team_name:
- type: string
- description: 团队名称
- title: 团队名称
- row_version:
- type: integer
- description: 乐观锁版本(若启用)
- title: 乐观锁版本
- required:
- - team_id
- - team_name
- title: 编辑运营团队请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamUpdate'
- /ent_team/delete@v1:
- post:
- summary: 删除运营团队
- description: 仅 admin。内置「总部·不限区域」团队不可删。
- operationId: ent_team_delete
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除运营团队请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- required:
- - team_id
- title: 删除运营团队请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamDelete'
- /ent_team/member_add@v1:
- post:
- summary: 添加运营团队成员
- description: 每团队有且仅有一个主账号;首个成员即主账号;成员姓名(`name`)落
- `bos_account_ext.display_name`(未带=回落登录名)。不可删除当前登录账号。
- operationId: ent_team_member_add
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 添加运营团队成员请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- username:
- type: string
- description: 成员登录名
- title: 登录名
- name:
- type: string
- maxLength: 64
- description: 成员姓名(落 `bos_account_ext.display_name`;前端必填,未带=回落登录名)
- title: 名称
- mobile:
- type: string
- description: 手机号(可选)
- title: 手机号
- is_primary:
- type: boolean
- description: 是否设为主账号(可选)
- title: 是否主账号
- required:
- - team_id
- - username
- title: 添加运营团队成员请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamMemberAdd'
- /ent_team/member_update@v1:
- post:
- summary: 编辑运营团队成员资料
- description: 仅
- admin。改姓名(`bos_account_ext.display_name`)、手机号与运营账号可承接工单类型清单(`ticket_types`);登录名与本/子身份不变(改名办
- `ent_team/transfer_primary@v1`)。
- operationId: ent_team_member_update
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑运营团队成员资料请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- user_id:
- type: string
- description: 成员用户 ID
- title: 用户 ID
- name:
- type: string
- maxLength: 64
- description: 姓名(可选;缺省=不改;空白串=拒绝,姓名是下拉框选人的展示值)
- title: 名称
- mobile:
- type: string
- description: 手机号(可选;缺省/空串=不改;全站唯一)
- title: 手机号
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- description: 可承接工单类型清单(`ops_account_ticket_type`, 判据二, 新增):缺省=不改;非空=整体替换,且必须含
- `renewal`(续签单只由运营账号受理,清单不可清空;`[]`
- 或漏掉续签一律拒绝)。取值限八类型码(`open`/`service_open`/`updown`/`expiry_stop`/`service_stop`/`fault`/`after_sale`/`renewal`),只对
- `role_code ∈ opsMain/opsSub` 的账号生效。新建与存量账号默认只播种 `renewal`
- title: 工单类型清单
- required:
- - team_id
- - user_id
- title: 编辑运营团队成员资料请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamMemberUpdate'
- /ent_team/member_remove@v1:
- post:
- summary: 移除运营团队成员
- description: 内置主账号不可删不可转交;不可删除当前登录账号。
- operationId: ent_team_member_remove
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 移除运营团队成员请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- user_id:
- type: string
- description: 成员用户 ID
- title: 用户 ID
- required:
- - team_id
- - user_id
- title: 移除运营团队成员请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamMemberRemove'
- /ent_team/transfer_primary@v1:
- post:
- summary: 转交运营团队主账号
- description: 总运营可办理任意团队;运营主账号(opsMain)只能转交本团队(限本人所属团队)。同事务切换两人的 is_primary 标记并同步
- role_code(opsMain↔opsSub),登录名与负责范围不变;内置总运营团队不可转交,跨团队接收方直接拒。审计记转出与转入账号名。
- operationId: ent_team_transfer_primary
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 转交运营团队主账号请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- from_user_id:
- type: string
- description: 原主账号用户 ID
- title: from user id
- to_user_id:
- type: string
- description: 新主账号用户 ID
- title: to user id
- required:
- - team_id
- - from_user_id
- - to_user_id
- title: 转交运营团队主账号请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamTransferPrimary'
- /ent_team/scope/get@v1:
- post:
- summary: 读取运营团队负责范围
- description: 仅 admin。返回团队区域负责范围。注意: 由 GET 改 POST(R-5,统一方法;本接口读 scope 表本身,不消费授权上界,故不标
- x-enumeration-kind)。
- operationId: ent_team_scope_get
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team_scope/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: 统一信封请求体(无业务参数)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 读取运营团队负责范围的请求字段,置于统一信封 data 内。
- additionalProperties: false
- properties: {}
- title: 读取运营团队负责范围请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamScopeGet'
- /ent_team/scope/save@v1:
- post:
- summary: 保存运营团队负责范围
- description: 仅 admin。勾选区域写入
- bos_data_scope(holder=ent_team),成为区域删除的引用来源。与其它非内置运营团队区域子树互斥(KLT-T216);内置总部豁免。
- operationId: ent_team_scope_save
- tags:
- - 运营团队
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ent_team_scope/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存运营团队负责范围请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- region_node_ids:
- type: array
- description: 负责区域节点 ID 列表
- items:
- type: string
- description: 区域节点 ID
- title: region_node_ids元素
- title: region node ids
- required:
- - team_id
- - region_node_ids
- title: 保存运营团队负责范围请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60095, 60096]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseEntTeamScopeSave'
- /ops_team/create@v1:
- post:
- summary: 新建运维团队
- description: 须指定所属区域、可派工单类型≥1、分派方式与结算口径。注意:团队不分类型(无 team_type 键)。
- operationId: ops_team_create
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建运维团队请求参数
- properties:
- team_name:
- type: string
- description: 团队名称
- title: 团队名称
- region_node_id:
- type: string
- description: 所属区域节点 ID
- title: 区域节点 ID
- ticket_types:
- type: array
- description: 可派工单类型列表(至少 1 项; 含 `renewal`——续签单只由运营账号受理,
- items:
- type: string
- description: 工单类型码
- title: ticket_types元素
- title: 工单类型清单
- dispatch_mode:
- type: string
- description: 分派方式:manual=手工;auto_avg=自动均分
- enum:
- - manual
- - auto_avg
- title: dispatch mode
- settle_mode:
- type: string
- description: 结算方式
- title: settle mode
- settle_value:
- type: number
- description: 结算值
- title: settle value
- primary_username:
- type: string
- description: 主账号登录名(空则默认「{团队名}主账号」)
- title: primary username
- primary_name:
- type: string
- description: 主账号姓名(档案名,1~64 字符;空=未填,列表回落显示登录名)
- title: primary name
- primary_mobile:
- type: string
- description: 主账号手机号(可选)
- title: primary mobile
- required:
- - team_name
- - region_node_id
- - ticket_types
- - dispatch_mode
- title: 新建运维团队请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamCreate'
- /ops_team/update@v1:
- post:
- summary: 编辑运维团队
- description: 编辑团队资料。注意:团队不分类型,请求体无 team_type 键。
- operationId: ops_team_update
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑运维团队请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- team_name:
- type: string
- description: 团队名称
- title: 团队名称
- region_node_id:
- type: string
- description: 所属区域节点 ID
- title: 区域节点 ID
- ticket_types:
- type: array
- description: 可派工单类型列表(整体替换,至少 1 项; 含 `renewal`——续签单只由运营账号受理)
- items:
- type: string
- description: 工单类型码
- title: ticket_types元素
- title: 工单类型清单
- settle_mode:
- type: string
- description: 结算方式
- title: settle mode
- settle_value:
- type: number
- description: 结算值
- title: settle value
- row_version:
- type: integer
- description: |-
- 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。
- title: 乐观锁版本
- minimum: 1
- required:
- - team_id
- - row_version
- title: 编辑运维团队请求数据
- required:
- - data
- x-error-codes: [60001, 60004, 60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamUpdate'
- /ops_team/delete@v1:
- post:
- summary: 删除运维团队
- description: 删除前校验引用与未办完工单等守卫。
- operationId: ops_team_delete
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除运维团队请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- required:
- - team_id
- title: 删除运维团队请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamDelete'
- /ops_team/scope/save@v1:
- post:
- summary: 保存运维团队负责范围
- description: 三个范围写入口之一。同事务校验范围包含关系与未办完工单守卫;失败两侧都不落库。与其它运维团队区域子树/点客户互斥(KLT-T216);异类可并存。
- operationId: ops_team_scope_save
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team_scope/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存运维团队负责范围请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- region_node_ids:
- type: array
- description: 负责区域节点 ID 列表
- items:
- type: string
- description: 区域节点 ID
- title: region_node_ids元素
- title: region node ids
- customer_ids:
- type: array
- description: 负责客户 ID 列表(可空)
- items:
- type: string
- description: 客户 ID
- title: customer_ids元素
- title: customer ids
- required:
- - team_id
- title: 保存运维团队负责范围请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082, 60095, 60096]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamScopeSave'
- /ops_team/member_add@v1:
- post:
- summary: 添加运维成员
- description: 新建成员档案(含成员姓名)并开通运维子账号(`role_code=ops`)。注意:成员不分类型,服务侧只校验 `ticket_types`
- 是团队可分配类型的子集(`KLT-`,可为空=不接单)。注意: `ticket_mode`
- 与负责范围同构:`follow_team`=随团队(成员级零行),`custom`=勾选子集。注意:`renewal` 不属于运维可承接类型(续签单只由运营账号受理,。
- operationId: ops_team_member_add
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 添加运维成员请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- ticket_types:
- type: array
- description: 该成员可处理的工单类型(须为团队可分配类型的子集;空数组=不接单,如录入人员; 含
- `renewal`——续签单只由运营账号受理)。`ticket_mode=follow_team` 时不得传本键
- items:
- type: string
- description: 工单类型码
- title: ticket_types元素
- title: 工单类型清单
- ticket_mode:
- type: string
- description:
- 可处理类型形态:follow_team=随团队可分配类型(成员级零行,团队改类型自动跟随);custom=勾选子集。缺省=follow_team(/OR-14:与负责范围默认同构;显式
- custom 且不带 ticket_types=不接单)
- enum:
- - follow_team
- - custom
- title: ticket mode
- username:
- type: string
- description: 登录名
- title: 登录名
- name:
- type: string
- description: 成员姓名(必填;1~64 字符、不含控制字符;契约字段=`name`,。与登录名分列,列表「成员」列显示该值
- title: 名称
- display_name:
- type: string
- description: 成员姓名别名(;与 `name` 同义,优先用 `name`)
- title: 显示名
- mobile:
- type: string
- description: 手机号(可选)
- title: 手机号
- required:
- - team_id
- - username
- - name
- title: 添加运维成员请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamMemberAdd'
- /ops_team/member_update@v1:
- post:
- summary: 更新运维成员
- description: 可改成员姓名、手机号与可处理工单类型(形态+子集,各字段缺省=不改)。注意:成员不分类型,不因类型变更改写 role_code;`custom` 时子集落
- ops_member_ticket_type,`follow_team` 时清空该成员行并随团队类型。
- operationId: ops_team_member_update
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 更新运维成员请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- ticket_types:
- type: array
- description: 该成员可处理的工单类型(整体替换;须为团队可分配类型的子集;空数组=不接单; 含
- `renewal`——续签单只由运营账号受理)。`ticket_mode=follow_team` 时不得传本键
- items:
- type: string
- description: 工单类型码
- title: ticket_types元素
- title: 工单类型清单
- ticket_mode:
- type: string
- description: 可处理类型形态:follow_team=随团队(清空该成员的类型行);custom=按 ticket_types
- 整体替换。缺省且带 ticket_types ⇒ 按 custom;都不带 ⇒ 不动类型
- enum:
- - follow_team
- - custom
- title: ticket mode
- member_id:
- type: string
- description: 成员 ID
- title: 成员 ID
- name:
- type: string
- description: 成员姓名新值(契约字段=`name`,;1~64 字符、不含控制字符;缺省=不改,空串非法
- title: 名称
- display_name:
- type: string
- description: 成员姓名别名(;与 `name` 同义)
- title: 显示名
- mobile:
- type: string
- description: 手机号(可选)
- title: 手机号
- required:
- - team_id
- - member_id
- title: 更新运维成员请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamMemberUpdate'
- /ops_team/transfer_primary@v1:
- post:
- summary: 转交运维团队主账号
- description: 总运营/运维主账号可办;同事务切换两人的 is_primary 并同步
- role_code(teamLead↔ops),新主账号可处理类型强制随团队;登录名与负责范围不变。
- operationId: ops_team_transfer_primary
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 转交运维团队主账号请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- from_member_id:
- type: string
- description: 原主账号成员 ID
- title: from member id
- to_member_id:
- type: string
- description: 新主账号成员 ID(须同团队)
- title: to member id
- required:
- - team_id
- - from_member_id
- - to_member_id
- title: 转交运维团队主账号请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamTransferPrimary'
- /ops_team/member_remove@v1:
- post:
- summary: 移除运维成员
- description: 删除前五项检查并注销账号。
- operationId: ops_team_member_remove
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 移除运维成员请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- member_id:
- type: string
- description: 成员 ID
- title: 成员 ID
- required:
- - team_id
- - member_id
- title: 移除运维成员请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamMemberRemove'
- /ops_member/scope/save@v1:
- post:
- summary: 保存运维成员负责范围
- description: 三个范围写入口之二。scope_mode∈follow_team/region/customer;越界报错不保存。
- operationId: ops_member_scope_save
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_member_scope/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存运维成员负责范围请求参数
- properties:
- member_id:
- type: string
- description: 成员 ID
- title: 成员 ID
- scope_mode:
- type: string
- description: 范围模式:follow_team=跟随团队;region=按区域;customer=按客户
- enum:
- - follow_team
- - region
- - customer
- title: 可见形态
- targets:
- type: array
- description: region/customer 模式下的目标 ID 列表
- items:
- type: string
- description: 目标 ID
- title: targets元素
- title: targets
- required:
- - member_id
- - scope_mode
- title: 保存运维成员负责范围请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsMemberScopeSave'
- /ops_team/dispatch_mode/update@v1:
- post:
- summary: 更新分派方式
- description: |-
- 与运营侧改同一字段,后写入者生效;默认补记审计。
- data 仅接受 team_id/dispatch_mode;顶层未知键 ⇒ 60004(BUG-3D-43)。
- teamLead 仅可改本团队,跨团队 ⇒ 60058。
- operationId: ops_team_dispatch_mode_update
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team_dispatch_mode/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 更新分派方式请求参数
- properties:
- team_id:
- type: string
- description: 团队 ID
- title: 团队 ID
- dispatch_mode:
- type: string
- description: 分派方式:manual=手工;auto_avg=自动均分
- enum:
- - manual
- - auto_avg
- title: dispatch mode
- additionalProperties: false
- required:
- - team_id
- - dispatch_mode
- title: 更新分派方式请求数据
- required:
- - data
- x-error-codes: [60004, 60053, 60054, 60058, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamDispatchModeUpdate'
- /ops_team/coverage/get@v1:
- post:
- summary: 运维团队覆盖客户
- description: 覆盖客户=团队区域范围(Tree) ∩ 本类型归属(Owner),与列表分页同源。注意: 由 GET 改 POST(R-5)。
- operationId: ops_team_coverage_get
- tags:
- - 运维团队与成员
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ops_team_coverage/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-enumeration-kind: list
- requestBody:
- required: true
- description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 运维团队覆盖客户的请求字段,置于统一信封 data 内。
- additionalProperties: false
- properties: {}
- title: 运维团队覆盖客户请求数据
- required:
- - data
- x-error-codes: [60053, 60054, 60068, 60082]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsTeamCoverageGet'
- /customer/create@v1:
- post:
- summary: 新建客户
- description: 客户建档(Opt-11 先挂树后建档)。`mount_request_id` 与 `parent_node_id` 至少给一个:给
- `parent_node_id` 时由本接口完成「发号 → 平台资源树注册客户实例 → 回填挂载事实」;给 `mount_request_id` 时就近认领已存在的挂载申请。同时按
- 为客户开通主账号(`primary_username` 留空=按主体号自动派生)。完整弹窗字段还可含识别号、联系人、地址、运维团队等。
- operationId: customer_create
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建客户请求参数
- properties:
- customer_name:
- type: string
- description: 客户名称
- title: 客户名称
- subject_type:
- type: string
- description: 主体类型
- title: 主体类型
- operator_id:
- type: string
- description: 归属运营商 ID
- title: 运营商 ID
- partner_id:
- type: string
- description: 归属合伙人 ID(可选)
- title: 合伙人 ID
- mount_request_id:
- type: string
- description: 挂载申请 ID(与 parent_node_id 二选一;有值=认领已有的挂载事实)
- title: mount request id
- parent_node_id:
- type: string
- description: 所挂区域父节点 ID(与 mount_request_id 二选一;有值=由本接口完成平台挂树并回填挂载事实)
- title: 父节点 ID
- id_code:
- type: string
- description: 识别号(可选)
- title: id code
- contact_name:
- type: string
- description: 联系人(可选)
- title: contact name
- contact_mobile:
- type: string
- description: 联系电话(可选)
- title: contact mobile
- tech_contact_name:
- type: string
- description: 技术联系人姓名(可选)
- title: tech contact name
- tech_contact_mobile:
- type: string
- description: 技术联系人电话(可选)
- title: tech contact mobile
- finance_contact_name:
- type: string
- description: 财务联系人姓名(可选)
- title: finance contact name
- finance_contact_mobile:
- type: string
- description: 财务联系人电话(可选)
- title: finance contact mobile
- remark:
- type: string
- description: 客户备注(可选,≤512 字)
- title: 备注
- address:
- type: string
- description: 地址(可选)
- title: address
- ops_team_ids:
- type: array
- description: 所挂运维团队 ID(**组形态仅兼容调用方;缺支/空数组/>1 支一律拒绝,且须在操作人负责范围内)
- items:
- type: string
- description: 运维团队 ID
- title: ops_team_ids元素
- title: ops team ids
- primary_username:
- type: string
- description: 客户主账号登录名(可选;留空=按主体号自动派生)。本接口自行调平台 iam-user/user/create@v1 建号
- title: primary username
- primary_mobile:
- type: string
- description: 客户主账号手机号(可选)
- title: primary mobile
- license:
- type: object
- description: 登记材料(营业执照影像,/;`` )。选填(, 强制登记)。影像本体由浏览器持自身账号票直传平台
- `unified-oss`(本服务不收字节流、不开上传接口),建档只回报落库用的对象键+原始文件名。`object_key` 必须落在
- `klt/customer/license/` 前缀下
- properties:
- object_key:
- type: string
- description: 平台 unified-oss 逻辑键(1–512 字符,须以 klt/customer/license/ 开头;不得是
- URL/签名链接)
- file_name:
- type: string
- description: 原始文件名(1–128 字符,不含路径分隔符;仅供页面展示)
- required:
- - object_key
- - file_name
- title: 登记材料
- required:
- - customer_name
- - subject_type
- - operator_id
- title: 新建客户请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerCreate'
- /customer/get_list@v1:
- post:
- summary: 客户列表
- description: 按可见范围返回客户列表,支持筛选与分页。
- operationId: customer_get_list
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- # 注意:声明本身不改变本轮可见范围:handler 现按 customer_scope_pred 收窄
- x-enumeration-kind: list
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- region_node_id:
- type: string
- description: 区域筛选(可选)
- title: 区域节点 ID
- operator_id:
- type: string
- description: 运营商筛选(可选)
- title: 运营商 ID
- partner_id:
- type: string
- description: 合伙人筛选(可选)
- title: 合伙人 ID
- status:
- type: string
- description: 状态筛选(可选)
- title: 状态
- title: 客户列表请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerGetList'
- /customer/get@v1:
- post:
- summary: 客户详情
- description: |-
- 按客户 ID 查询档案详情。 返回主体资料(含经办联系人、联系电话、地址与脱敏识别号)、当期团队、区域挂载、分账号数量,
- 以及登记材料摘要 `license`(对象键、文件名、是否待补等)。
- operationId: customer_get
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 客户详情请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- required:
- - customer_id
- title: 客户详情请求数据
- required:
- - data
- x-error-codes: [60005, 60056, 60064, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerGet'
- /customer/update@v1:
- post:
- summary: 编辑客户
- description: >-
- 编辑客户资料。拒收改写 customer_id/region_node_id/operator_id/partner_id;改识别号时 change_basis 选填(留空按 NULL 留痕,
- 因缺依据拒写)。 `row_version` 必填:缺省 ⇒ `60004`;与库内不符 ⇒ `KLT-S407`/`60001`, 不带版本静默覆盖。 登记材料换图或随主体变更撤销时,旧对象即时删除(平台
- `unified-oss/object/delete@v1`,K ; 生命周期回收只兜「到期」,不替代即时删除)。删除为 best-effort:主表此刻已指向新对象, 删除失败不回退整笔,只告警并由运维补删。
- `license_object_delete{status,reason,deleted?,failed_codes?,error?}`: `not_applicable`(未动影像/键未变)/`deleted`/`partial`/`failed`。注意:对象键不上响应体。
- operationId: customer_update
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑客户请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- customer_name:
- type: string
- description: 客户名称
- title: 客户名称
- subject_type:
- type: string
- description: 主体类型
- title: 主体类型
- id_code:
- type: string
- description: 识别号
- title: id code
- change_basis:
- type: string
- description: 改识别号时的变更依据
- title: 变更依据
- contact_name:
- type: string
- description: 联系人
- title: contact name
- contact_mobile:
- type: string
- description: 联系电话
- title: contact mobile
- tech_contact_name:
- type: string
- description: 技术联系人姓名(给了才改)
- title: tech contact name
- tech_contact_mobile:
- type: string
- description: 技术联系人电话(给了才改)
- title: tech contact mobile
- finance_contact_name:
- type: string
- description: 财务联系人姓名(给了才改)
- title: finance contact name
- finance_contact_mobile:
- type: string
- description: 财务联系人电话(给了才改)
- title: finance contact mobile
- remark:
- type: string
- description: 客户备注(给了才改;空串=清空;≤512 字)
- title: 备注
- address:
- type: string
- description: 地址
- title: address
- ops_team_ids:
- type: array
- description: 改派运维团队(整体替换当前归属;**拒绝,>1 支⇒拒绝;不提交=不改动)
- items:
- type: string
- description: 运维团队 ID
- title: ops_team_ids元素
- title: ops team ids
- row_version:
- type: integer
- description: 乐观锁版本(必填;缺省=60004,不符=KLT-S407/60001)
- title: 乐观锁版本
- license:
- type: object
- description: 登记材料(营业执照影像)整对替换( 补传/替换,写入口只在本分区)。选填(,
- 强制登记)。不提交=本次不动影像(不清空);唯一例外:本次把 `subject_type`
- 改为非企业(`individual`/`sole_proprietor`)且库内有影像 ⇒ 影像随本笔同批撤销(两列置
- `NULL`+`license_file_name` 变更留痕,见 );企业→企业不带 `license`
- 一律不动影像;库内无影像且本次也不提交时照常保存其余字段。`object_key` 须落在 `klt/customer/license/` 下
- properties:
- object_key:
- type: string
- description: 平台 unified-oss 逻辑键(1–512 字符,须以 klt/customer/license/ 开头)
- file_name:
- type: string
- description: 原始文件名(1–128 字符,不含路径分隔符)
- required:
- - object_key
- - file_name
- title: 登记材料
- required:
- - customer_id
- - row_version
- title: 编辑客户请求数据
- required:
- - data
- x-error-codes: [60001, 60004, 60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerUpdate'
- /customer/delete_precheck@v1:
- post:
- summary: 客户删除前置检查
- description: 返回 can_delete 与 reasons,供删除确认弹窗使用。
- operationId: customer_delete_precheck
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 客户删除前置检查请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- required:
- - customer_id
- title: 客户删除前置检查请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerDeletePrecheck'
- /customer/delete@v1:
- post:
- summary: 删除客户
- description: |
- 删除客户。须先调 `/customer/delete_precheck@v1` 取得回执中的
- `precheck_version`,再原样带回本口(阻塞快照版本,防「检查后依赖发生变化」);
- 缺省/空串/与当前快照不符 ⇒ `60004`。
- operationId: customer_delete
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除客户请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- precheck_version:
- type: string
- description: |
- 删除前置检查快照版本(必填;取自 `/customer/delete_precheck@v1`
- 回执 `precheck_version`,⛔ 自造/过期值)
- title: precheck version
- required:
- - customer_id
- - precheck_version
- title: 删除客户请求数据
- required:
- - data
- x-error-codes: [60004, 60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerDelete'
- /customer/history@v1:
- post:
- summary: 客户变更历史
- description: 查询客户档案变更流水。
- operationId: customer_history
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 客户变更历史请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- required:
- - customer_id
- title: 客户变更历史请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerHistory'
- /customer/mount_candidates@v1:
- post:
- summary: 改挂候选客户
- description: 返回操作人可见范围内可作为改挂目标的候选客户列表。注意: 由 GET 改 POST(R-5)。
- operationId: customer_mount_candidates
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-enumeration-kind: list
- requestBody:
- required: true
- description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 改挂候选客户的请求字段,置于统一信封 data 内。
- additionalProperties: false
- properties: {}
- title: 改挂候选客户请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerMountCandidates'
- /customer/influence@v1:
- post:
- summary: 改挂影响面
- description: 改挂前必做前置:未办完工单数、当前责任人与团队、当期是否已出账等。
- operationId: customer_influence
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 改挂影响面请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- required:
- - customer_id
- title: 改挂影响面请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerInfluence'
- /customer/move_region@v1:
- post:
- summary: 客户改挂区域
- description: 复合事务改挂区域;新区域省份须等于归属运营商档案省份。
- operationId: customer_move_region
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 客户改挂区域请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- new_region_node_id:
- type: string
- description: 新挂载区域节点 ID
- title: new region node id
- ops_team_ids:
- type: array
- description: 随改挂重绑的运维团队(**;不提交=不改动)
- items:
- type: string
- description: 运维团队 ID
- title: ops_team_ids元素
- title: ops team ids
- required:
- - customer_id
- - new_region_node_id
- title: 客户改挂区域请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerMoveRegion'
- /customer/attribution/update@v1:
- post:
- summary: 更新客户归属
- description: 改归属运营商/合伙人;改运营商时档案省份须等于客户所挂区域省份。
- operationId: customer_attribution_update
- tags:
- - 客户管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer_attribution/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 更新客户归属请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- operator_id:
- type: string
- description: 新归属运营商 ID(可选)
- title: 运营商 ID
- partner_id:
- type: string
- description: 新归属合伙人 ID(可选,可清空)
- title: 合伙人 ID
- required:
- - customer_id
- title: 更新客户归属请求数据
- required:
- - data
- x-error-codes: [60056, 60064, 60108, 60117]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerAttributionUpdate'
- /import_batch/template_download@v1:
- get:
- summary: 下载导入模板
- description: 返回现行 11 列 xlsx 模板说明(format/columns/max_rows)。
- operationId: import_batch_template_download
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchTemplateDownload'
- post:
- summary: 下载导入模板(POST 兼容)
- description: 与 GET 同体;兼注册以免调用方误用 POST 时网关判未注册路由。
- operationId: import_batch_template_download_post
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchTemplateDownloadPost'
- /customer/import/confirm@v1:
- post:
- summary: 确认导入(逐行建档)
- description: |-
- 对校验通过行串行调用建档事务;推进批次 done/failed_pending。
- 权限=`customer.create`(与手工建档同权;设计名 `bos.customer.import` 本期与 create 对齐,
- 避免新 action 未授角色时网关 11001)。
- operationId: customer_import_confirm
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/customer/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- batch_id:
- type: string
- title: 批次 ID
- description: 批次 ID。
- row_nos:
- type: array
- items:
- type: integer
- title: row_nos元素
- title: row nos
- description: 字段 row_nos。
- description: 确认导入(逐行建档)请求参数
- title: 确认导入(逐行建档)请求数据
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCustomerImportConfirm'
- /import_batch/submit@v1:
- post:
- summary: 提交客户批量导入
- description: 提交导入行对象列表,单批上限 500 行。列含客户名称、识别号、主体类型、联系人、电话、地址、区域、运营商、合伙人、运维团队、主账号等。
- operationId: import_batch_submit
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 提交客户批量导入请求参数
- properties:
- rows:
- type: array
- description: 导入行对象列表(≤500)
- maxItems: 500
- items:
- type: object
- description: 单行导入字段(14 列)
- properties:
- row_no:
- type: integer
- description: 行编号
- customer_name:
- type: string
- description: 客户名称
- id_code:
- type: string
- description: 识别号
- subject_type:
- type: string
- description: 主体类型
- contact_name:
- type: string
- description: 联系人
- contact_mobile:
- type: string
- description: 联系电话
- address:
- type: string
- description: 地址
- region_name:
- type: string
- description: 所挂区域
- operator_name:
- type: string
- description: 运营商
- partner_name:
- type: string
- description: 合伙人
- ops_team_names:
- type: array
- description: 所挂运维团队名称(**一格只填一支名称,不得用「;」分隔多支;留空或多支=该行校验失败)
- items:
- type: string
- description: 运维团队名称
- primary_username:
- type: string
- description: 主账号登录名
- primary_mobile:
- type: string
- description: 主账号手机号
- title: 行集
- required:
- - rows
- title: 提交客户批量导入请求数据
- required:
- - data
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchSubmit'
- /import_batch/get_list@v1:
- post:
- summary: 导入批次列表
- description: 查询本人可见范围内的导入批次。
- operationId: import_batch_get_list
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- title: 导入批次列表请求数据
- required:
- - data
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchGetList'
- /import_batch/get@v1:
- post:
- summary: 导入批次详情
- description: 按批次 ID/编号查询详情与行状态。
- operationId: import_batch_get
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 导入批次详情请求参数
- properties:
- batch_id:
- type: string
- description: 批次 ID(与 batch_no 二选一)
- title: 批次 ID
- batch_no:
- type: string
- description: 批次编号(与 batch_id 二选一)
- title: 批次号
- title: 导入批次详情请求数据
- required:
- - data
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchGet'
- /import_batch/resume@v1:
- post:
- summary: 失败行续传
- description: 针对失败行提交续传数据,行号对应原 row_no。
- operationId: import_batch_resume
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 失败行续传请求参数
- properties:
- batch_id:
- type: string
- description: 批次 ID
- title: 批次 ID
- rows:
- type: array
- description: 续传行列表(含原 row_no)
- items:
- type: object
- title: 行集元素
- title: 行集
- required:
- - batch_id
- - rows
- title: 失败行续传请求数据
- required:
- - data
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchResume'
- /import_batch/export_codes@v1:
- post:
- summary: 按批次导出激活码
- description: |-
- 按导入批次导出未设密账号的激活码明文。
- 口径与 `/account/export_codes@v1` 相同(分片、翻页、审计与出参信封一致),另须指定批次;
- `user_ids` 仍须按调用方可见范围收窄且不可为空。成功时 `data` 同为 ActivationCodeExportData。
- operationId: import_batch_export_codes
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 按批次导出激活码请求参数
- properties:
- batch_id:
- type: string
- description: 批次 ID
- title: 批次 ID
- user_ids:
- type: array
- description: 按本人可见范围收窄后的用户 ID 列表(不可传空列表:平台侧空值=项目内全量导出)
- minItems: 1
- items:
- type: string
- description: 用户 ID
- title: 用户 ID 列表元素
- title: 用户 ID 列表
- validity:
- type: string
- description: 导出口径(平台取值域):valid=仍有效(只读,缺省);expired=已过期(写);all=全部(写)。不接受 active
- default: valid
- enum:
- - valid
- - expired
- - all
- title: 有效性口径
- required:
- - batch_id
- - user_ids
- title: 按批次导出激活码请求数据
- required:
- - data
- x-error-codes: [60004, 60005, 60058, 60108, 60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchExportCodes'
- /import_batch/export_customers@v1:
- post:
- summary: 按批次导出客户
- description: 按导入批次导出客户 15 列结果。
- operationId: import_batch_export_customers
- tags:
- - 批量导入
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/import_batch/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 按批次导出客户请求参数
- properties:
- batch_id:
- type: string
- description: 批次 ID
- title: 批次 ID
- required:
- - batch_id
- title: 按批次导出客户请求数据
- required:
- - data
- x-error-codes: [60111, 60112, 60113, 60114]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseImportBatchExportCustomers'
- /sub_account/get_list@v1:
- post:
- summary: 分账号列表
- description: 查询客户下属分账号列表。
- operationId: sub_account_get_list
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/sub_account/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- # (sub_account.rs:50 get_list → :57 customer_scope_pred),客户维度受授权上界约束
- # ⇒ 按 list 声明真源列举。同 L-2:本轮仅打通声明,运维分支仍走本地口径。
- x-enumeration-kind: list
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 分账号列表请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- required:
- - customer_id
- title: 分账号列表请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubAccountGetList'
- /sub_account/update@v1:
- post:
- summary: 更新分账号
- description: 运营可改 display_name 与 network_account_name;客户主账号只许改 display_name。
- operationId: sub_account_update
- tags:
- - 账号管理
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/sub_account/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 更新分账号请求参数
- properties:
- sub_account_id:
- type: string
- description: 分账号 ID
- title: sub account id
- display_name:
- type: string
- description: 显示名称/用途说明
- title: 显示名
- network_account_name:
- type: string
- description: 网络侧账号名(运营可改)
- title: network account name
- required:
- - sub_account_id
- title: 更新分账号请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubAccountUpdate'
- /delivery/list@v1:
- post:
- summary: 交付现状(在册资源一览)
- description: '客户详情「交付现状」页签与订阅详情「当前资源」区块共用。数据源锁定台账 subscription_ip_assignment(released_at IS NULL
- 的行=当前在册), 不用“最新一单”(并单后一单只含部分账号、service_open 又是增量交付);实测参数(内网 IP/实测上下行/实测出口)只取该账号“最近一次成功开通回填”(ticket_backfill.exec_conclusion=success)并随行下发
- measured_at(列头日期)。三态:在用/已到期待回收(台账未释放且订阅 end_date 已过)/已回收(默认只显示前两态,勾选 include_released 才含第三态)。合同出口与实测出口两列并排、不一致时
- exit_mismatch=true(两值都返回, 互相覆盖)。输出不含 port_start/port_end( 端口本轮不启用、无“端口段”列)。可见范围复用 customer_scope_pred,未另立判据。'
- operationId: delivery_list
- tags:
- - 交付现状
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/delivery/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description:
- 分页与筛选(page/page_size/customer_id/subscription_id/sub_account_id/keyword/state/include_released),业务字段置于
- data
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60004, 60053]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseDeliveryList'
- /delivery/export@v1:
- post:
- summary: 交付现状导出
- description: '/ 第 7 条:入参与 /delivery/list@v1 逐字同构(同一份 DTO、同一段谓词),导出不另立判据;CSV(UTF-8 带 BOM)首行为 `#`
- 说明行(导出时刻+筛选条件逐项回显+文件行数/同一谓词命中总数+范围裁剪声明);行数上限 20000,超限 KLT-R20903(detail.row_count/detail.limit)且不产文件、不写审计、不落
- OSS;产出成功写 object_type=delivery_export 留痕,留痕失败 KLT-S405。角色 admin/opsMain/opsSub/teamLead。'
- operationId: delivery_export
- tags:
- - 交付现状
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/delivery/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: 与 /delivery/list@v1 同构的筛选条件(page/page_size 不参与导出)
- content:
- application/json:
- schema:
- type: object
- x-error-codes: [60903, 60905]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseDeliveryExport'
- /line_exit/get_list@v1:
- post:
- summary: 线路出口目录列表
- description: 套餐配置统一维护的线路出口(去空白+小写去重)。合同条目等页面只从这里选择;任何登录角色可读。每条带 ref_count/ref_summary(被合同条目、存量
- IP 备案、派生档、订阅引用的合计与构成;IP 备案表自 。 工单回填不读本目录、也不与订阅核定集合比对( 。
- operationId: line_exit_get_list
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseLineExitGetList'
- /line_exit/save@v1:
- post:
- summary: 线路出口目录整段全量替换
- description: |-
- 总运营/运营主账号可写;数组顺序即展示顺序。被合同条目、存量 IP 备案(该表自 名引用数)。
- `items` 缺省/null=不改目录;`[]`=清空;非空=整段全量替换。 不引入第二确认键。
- operationId: line_exit_save
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 线路出口目录整段全量替换请求参数
- properties:
- items:
- type: array
- description: 线路出口整段;缺省/null=不改;[]=清空;非空=全量替换(上限 200 条)
- maxItems: 200
- items:
- type: object
- description: 单个出口
- properties:
- exit_name:
- type: string
- description: 国家/地区名称原文(1~64 字;去空白+小写后不可重复)
- required:
- - exit_name
- title: 列表项
- title: 线路出口目录整段全量替换请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseLineExitSave'
- /ip_bandwidth_tier/get_list@v1:
- post:
- summary: 带宽档位目录列表
- description: 套餐配置「线路出口」tab 内统一维护的带宽档位( :档位不再写死 5/10/30 兆)。 03 带宽与权益」点一条即带出上/下行同值),另兼存量 IP
- 备案的历史引用; 与工单回填的 5/10/30 封闭三值互不约束。任何登录角色可读。每条带 ref_count/ref_summary(被存量 IP 备案引用的条数;该表自 。
- operationId: ip_bandwidth_tier_get_list
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseIpBandwidthTierGetList'
- /ip_bandwidth_tier/save@v1:
- post:
- summary: 带宽档位目录整段全量替换
- description: |-
- 总运营/运营主账号可写;数组顺序即展示顺序(也是套餐编辑器里预设胶囊的顺序);同一兆数只允许一条,「不承诺带宽」(bandwidth_tier_mbps 缺省或 null)全表唯一。被存量 IP 备案引用的档位不可删除(整单拒绝并点名引用条数)。 本清单是套餐带宽权益的快捷预设, 反向约束套餐上手填的兆数。 读写不对称(既定契约):`get_list` 回 `tier_key`/`bandwidth_committed`/`sort_no`(系统派生);本接口 `items[]` 只收 `tier_name`+`bandwidth_tier_mbps`。 把读侧 JSON 原样写回(会因未声明字段/系统带出字段被拒)。
- `items` 缺省/null=不改目录;`[]`=清空;非空=整段全量替换。 不引入第二确认键。
- operationId: ip_bandwidth_tier_save
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 带宽档位目录整段全量替换请求参数
- properties:
- items:
- type: array
- description: 带宽档位整段;缺省/null=不改;[]=清空;非空=全量替换(上限 50 条)
- maxItems: 50
- items:
- type: object
- description: 单个档位
- properties:
- tier_name:
- type: string
- description: 展示名称(1~64 字,如「10 兆」「不承诺带宽」)
- bandwidth_tier_mbps:
- type: integer
- nullable: true
- description: 带宽兆数(1~10000);缺省或 null=「不承诺带宽」
- required:
- - tier_name
- title: 列表项
- title: 带宽档位目录整段全量替换请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseIpBandwidthTierSave'
- /portal/plan_board@v1:
- post:
- summary: 客户侧「我的套餐」看板
- description: |-
- 客户门户「我的套餐」读口。主体号一律由会话派生:载荷出现 customer_id/sub_account_id 硬拒;出现 status/scope/region_id ⇒ 11103。view=board(与 view=list 同义)一次返回「当前套餐」「往期套餐」两表;view=detail 尚未接线 ⇒ 60008。
- operationId: portal_plan_board
- tags:
- - 客户门户
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/portal/code'
- x-action:
- $ref: '#/components/x-actions/plan_board/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 请求参数(白名单只有 view;主体与状态类键一律拒收)
- properties:
- view:
- type: string
- enum:
- - board
- - list
- - detail
- description: board(同义 list)=两表;detail=详情三段( ⇒ 60008)
- title: 视图
- title: 客户侧「我的套餐」看板请求数据
- required:
- - data
- # 「x-error-codes 含有非整数」⇒ 整条路由 validation_status=abnormal/callable=false,
- # 网关不导流(实测 50000 未找到匹配路由)。字符串别名(KLT-P301→60058、
- x-error-codes: [11103, 60004, 60005, 60008, 60058]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePortalPlanBoard'
- /catalog/create@v1:
- post:
- summary: 新建套餐档位
- description: 新建固定/自定义档位。拒收 sub_mode、first_referred_at。自定义档必填 customer_id。Ops
- 角色只能建自定义档;created_by=鉴权账号、created_team_id=建档团队快照。
- operationId: catalog_create
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建套餐档位请求参数
- properties:
- plan_kind:
- type: string
- description: 档位类型:fixed=固定;custom=自定义
- enum:
- - fixed
- - custom
- title: plan kind
- plan_name:
- type: string
- description: 档位名称
- title: 档位名称
- plan_desc:
- type: string
- description: 套餐说明(报价单权益口径,可空;去首尾空白后 ≤512 字符,超长报 11103)。引用冻结后仍可改(与名称、随附成本项同档)
- title: plan desc
- plan_family:
- type: string
- description: 交付形态:link=跨境链路(份数恒 1);addon=叠加服务(份数≥1,不设带宽列)
- enum:
- - link
- - addon
- title: plan family
- annual_price_cents:
- type: integer
- description: 年价(分)
- title: 年价(分)
- monthly_settle_cents:
- type: integer
- description: 月结算标准(分,可选,1~上限);可录入
- title: 月结算(分)
- sub_account_quota:
- type: integer
- description: 分账号额度(非负,上限 9999):link 档必须 > 0;addon 档必须为 0。可缺省——link=1、addon=0
- title: sub account quota
- bandwidth_committed:
- type: boolean
- description: 是否承诺带宽:仅 link 档可传(缺省 true);addon 档一律不传
- title: bandwidth committed
- bandwidth_up_mbps:
- type: integer
- description: 上行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填。不再有单值
- total_bandwidth_mbps( D8 关闭=
- title: bandwidth up mbps
- bandwidth_down_mbps:
- type: integer
- description: 下行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填;与上行同值时界面并显「上下行
- N 兆」,不等显「下行 X 兆 / 上行 Y 兆」
- title: bandwidth down mbps
- customer_id:
- type: string
- description: 自定义档所属客户 ID(custom 必填)
- title: 客户 ID
- required:
- - plan_kind
- - plan_name
- - plan_family
- - annual_price_cents
- title: 新建套餐档位请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCatalogCreate'
- /catalog/update@v1:
- post:
- summary: 编辑套餐档位
- description: 编辑档位;plan_kind/plan_family 建后不可改(K204);被订阅引用冻结后多数字段只读。
- operationId: catalog_update
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑套餐档位请求参数
- properties:
- plan_id:
- type: string
- description: 档位 ID
- title: 档位 ID
- plan_name:
- type: string
- description: 档位名称
- title: 档位名称
- plan_desc:
- type: string
- nullable: true
- description: 套餐说明(可空;缺键=不动;null/空串=清空成库内 null;≤512 字符)。引用冻结后仍可改
- title: plan desc
- annual_price_cents:
- type: integer
- description: 年价(分)
- title: 年价(分)
- monthly_settle_cents:
- type: integer
- description: 月结算标准(分,可选,1~上限);可录入
- title: 月结算(分)
- sub_account_quota:
- type: integer
- description: 分账号额度(非负,上限 9999):link 档必须 > 0;addon 档必须为 0
- title: sub account quota
- bandwidth_committed:
- type: boolean
- description: 是否承诺带宽:true=承诺(缺省);false=该档「不承诺带宽」,上下行两字段一律不传
- title: bandwidth committed
- bandwidth_up_mbps:
- type: integer
- description: 上行带宽(Mbps,整数 1~1000);bandwidth_committed=true
- 时必填,关闭「是否承诺带宽」时必不传(档位被订阅引用后随整单只读,K204)
- title: bandwidth up mbps
- bandwidth_down_mbps:
- type: integer
- description: 下行带宽(Mbps,整数 1~1000);必填规则同上,两值不折算为单值
- title: bandwidth down mbps
- row_version:
- type: integer
- description: 乐观锁版本(若启用)
- title: 乐观锁版本
- required:
- - plan_id
- title: 编辑套餐档位请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCatalogUpdate'
- /catalog/get_list@v1:
- post:
- summary: 套餐档位列表
- description: 按 plan_kind/plan_family/created_by/created_team_id 等条件筛选档位列表。每行回
- plan_family、use_purpose、created_by/created_team_id 及读侧名称
- created_by_name/created_team_name;data.facets 回建档团队/建档人下拉项(服务端在 base 谓词 ∧ plan_kind=custom
- 上聚合, 用当前页行凑)。
- operationId: catalog_get_list
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- plan_kind:
- type: string
- description: 档位类型筛选:fixed/custom
- title: plan kind
- plan_family:
- type: string
- description: 交付形态筛选:link/addon(仅自定义档可筛,固定档带此参报错)
- enum:
- - link
- - addon
- title: plan family
- customer_id:
- type: string
- description: 自定义档客户筛选
- title: 客户 ID
- created_by:
- type: string
- description: 建档人筛选(R-14 台账收敛;=catalog_plan.created_by 账号 ID)
- title: created by
- created_team_id:
- type: string
- description: 建档团队筛选(R-14 台账收敛;=建档时快照的 catalog_plan.created_team_id)
- title: created team id
- title: 套餐档位列表请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCatalogGetList'
- /catalog/get@v1:
- post:
- summary: 套餐档位详情
- description: 按档位 ID 查询详情。
- operationId: catalog_get
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 套餐档位详情请求参数
- properties:
- plan_id:
- type: string
- description: 档位 ID
- title: 档位 ID
- required:
- - plan_id
- title: 套餐档位详情请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCatalogGet'
- /catalog/delete@v1:
- post:
- summary: 套餐档位条件删除
- description: 按档位 ID 条件删除:引用份数+两栏阻塞清单(subscriptions/items),在用⇒KLT-K205;固定档仅 Admin。
- operationId: catalog_delete
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 套餐档位条件删除请求参数
- properties:
- plan_id:
- type: string
- description: 档位 ID
- title: 档位 ID
- required:
- - plan_id
- title: 套餐档位条件删除请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCatalogDelete'
- /catalog/customer_options@v1:
- post:
- summary: 归属客户下拉
- description: 只列操作人可见客户(自定义档归属客户下拉,);硬上限 500 行⇒truncated。
- operationId: catalog_customer_options
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/catalog/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- keyword:
- type: string
- description: 客户名称关键字(可选)
- title: 关键字
- title: 归属客户下拉请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCatalogCustomerOptions'
- /plan_cost_item/get_list@v1:
- post:
- summary: 档位随附成本项列表
- description: 按档位读取随附成本项(;以 cost_item_id 强引用全局 cost_item,名称/类别/计费口径读时 JOIN
- 全局现名,全局改名套餐侧跟随);frozen 仅供前端提示。
- operationId: plan_cost_item_get_list
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/plan_cost_item/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 档位随附成本项列表请求参数
- properties:
- plan_id:
- type: string
- description: 档位 ID
- title: 档位 ID
- required:
- - plan_id
- title: 档位随附成本项列表请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePlanCostItemGetList'
- /plan_cost_item/save@v1:
- post:
- summary: 档位随附成本项整段全量替换
- description: |-
- 一次提交该档位全部成本项(先按 plan_id 删净再逐条插,;以 cost_item_id 强引用全局 cost_item,名称/类别/计费口径由服务端快照全局现值,前端只能从全局清单按 id 选择);同档位 cost_item_id 重复⇒KLT-K206;引用的 cost_item_id 不存在⇒60005。
- `items` 缺省/null=不改;`[]`=清空;非空=整段全量替换。 不引入第二确认键。
- operationId: plan_cost_item_save
- tags:
- - 套餐档位
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/plan_cost_item/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 档位随附成本项整段全量替换请求参数
- properties:
- plan_id:
- type: string
- description: 档位 ID
- title: 档位 ID
- items:
- type: array
- description: 成本项整段;缺省/null=不改;[]=清空;非空=全量替换(上限 50 条)
- maxItems: 50
- items:
- type: object
- description: 成本项条目(cost_item_id 为强引用,必填;item_name/category/billing_unit
- 由服务端快照全局现值覆盖,传值仅作长度兜底)
- properties:
- cost_item_id:
- type: string
- description: 全局成本项 ID(必填,强引用;须在全局 cost_item 清单中存在)
- item_name:
- type: string
- description: 成本项名称(可选,服务端以全局现名快照覆盖;传值仅校验长度≤128)
- amount_cents:
- type: integer
- description: 金额(分,≥0)
- minimum: 0
- billing_unit:
- type: string
- description: 计费单位(可选,服务端以全局现值覆盖)
- enum:
- - per_customer
- - per_account
- - per_copy
- category:
- type: string
- description: 成本项分类(可选,服务端以全局现值覆盖)
- enum:
- - intl_resource
- - device_purchase
- - project_fee
- remark:
- type: string
- description: 备注(可选,上限 512 字)
- sort_no:
- type: integer
- description: 排序号(≥0)
- minimum: 0
- required:
- - cost_item_id
- - amount_cents
- title: 列表项
- required:
- - plan_id
- title: 档位随附成本项整段全量替换请求数据
- required:
- - data
- x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponsePlanCostItemSave'
- /contract/create@v1:
- post:
- summary: 新建合同
- description: 客户段+合同段+服务构成条目一次提交( 不再受理 IP 条目:`ip_entries`/`has_fixed_ip` 视为未知键 ⇒ 11103;境外 IP
- 由套餐档位所含 IP × 订阅份数表达)。客户未命中时用 data.customer_inline 随合同建档(先建档、后签合同,两个事务),成功时
- data.inline_customer 回显客户号/主账号/激活码发放态/影像待补(激活码明文不在应答内,走客户列表「导出激活码」)。拒收
- source(服务端定);created_by/created_by_name/created_by_org/created_by_mobile(录入经办人:机构/姓名/联系方式)由服务端从鉴权上下文写入、不取入参;agent_*
- 是运营商交接单上的经办人(姓名/电话/交接日期必填、机构选填)。
- operationId: contract_create
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 请求参数(`customer_id` 与 `customer_inline` 至少给一个且不可同时给)
- properties:
- customer_id:
- type: string
- description: 签约客户 ID。与 customer_inline 只可二选一:命中已有客户填本项;未命中改用内联建档段
- title: 客户 ID
- customer_inline:
- type: object
- description: >-
- 客户未命中时的内联建档段(需求 C;关闭 C)。 本段先按 `/customer/create@v1` 的同一套规则建档(两个事务:建档 → 合同,不合并),
- 再签本合同;建档含客户主账号(未设初始口令 ⇒ 待激活、发激活码,明文不在本响应内下发)。 注意:企业营业执照影像选填(,与页面建档同口径), 留空不影响建档,建档后到客户档案「登记材料」格补传/替换。主体类型非企业时不收
- license。
- properties:
- customer_name:
- type: string
- description: 客户名称(必填;允许重名,查重靠识别号)
- subject_type:
- type: string
- description: 主体类型(必填):enterprise/individual/sole_proprietor
- enum:
- - enterprise
- - individual
- - sole_proprietor
- id_code:
- type: string
- description: 客户识别号(必填):既是安全存储载体,也是合同事务失败后重试的幂等键(不得省略)
- contact_name:
- type: string
- description: 客户经办联系人(与联系电话、地址同属 C 第 1 步字段)
- contact_mobile:
- type: string
- description: 联系电话
- tech_contact_name:
- type: string
- description: 技术联系人姓名(选填)
- tech_contact_mobile:
- type: string
- description: 技术联系人电话(选填)
- finance_contact_name:
- type: string
- description: 财务联系人姓名(选填)
- finance_contact_mobile:
- type: string
- description: 财务联系人电话(选填)
- remark:
- type: string
- description: 客户备注(选填,≤512 字)
- partner_id:
- type: string
- description: 归属合伙人(选填;反查所得,落 customer.partner_id)
- address:
- type: string
- description: 客户地址
- parent_node_id:
- type: string
- description: 挂载区域(必填;区域树节点 ID,与 /customer/create@v1 的 parent_node_id 同义)
- operator_id:
- type: string
- description: 归属运营商(必填;弹窗下拉,候选=所挂区域省份下可见的运营商档案)
- ops_team_ids:
- type: array
- description: 运维团队(必填且恰好 1 支,;不得为空数组/不得传多支)
- items:
- type: string
- description: 团队 ID
- license:
- type: object
- description: 营业执照影像(选填;非企。两键成对
- properties:
- object_key:
- type: string
- description: 平台对象存储对象键(浏览器直传后回报,须在客户影像前缀下)
- file_name:
- type: string
- description: 原始文件名(仅展示)
- required:
- - object_key
- - file_name
- primary_username:
- type: string
- description: 客户主账号登录名(选填;留空按主体号派生,4~32 位字母数字与 . _ -)
- primary_mobile:
- type: string
- description: 主账号绑定手机号(选填,11 位)
- required:
- - customer_name
- - subject_type
- - id_code
- - parent_node_id
- - operator_id
- - ops_team_ids
- title: customer inline
- contract_no:
- type: string
- description: 合同编号(空则服务端发号)
- title: 合同编号
- external_no:
- type: string
- description: 外部合同号(可选)
- title: external no
- contract_type:
- type: string
- description: >-
- 合同类型:new(新建,缺省)/renew(续签)/expand(扩容补充协议)/change(变更协议)。 :renew 必须同时给 renew_from_contract_id;expand
- 的服务构成必须整批为增量叠加服务; 带 renew_from_contract_id 的合同类型只能是 renew。
- enum:
- - new
- - renew
- - expand
- - change
- title: contract type
- sign_date:
- type: string
- description: 签署日期(YYYY-MM-DD;选填,缺省按 agent_handover_on 兜底)
- format: date
- title: sign date
- contract_amount_cents:
- type: integer
- description: 合同金额(分,可选)
- title: contract amount cents
- service_months:
- type: integer
- description: >-
- 服务期(月,1~600,必填):替代原 pay_cycle;结束日=生效日+服务期−1 天 (该月无对应日先取月末),页面锁定为只读推算值。
- minimum: 1
- maximum: 600
- title: service months
- start_date:
- type: string
- description: 合同开始日期(YYYY-MM-DD)
- format: date
- title: 开始日
- end_date:
- type: string
- description: >-
- 合同结束日期(YYYY-MM-DD,可省略):省略时服务端按「生效日+服务期(月)−1 天」 推算(该月无对应日先取月末);显式给出则按显式值落库。
- format: date
- title: 结束日
- agent_name:
- type: string
- description: 运营商经办人姓名(交接单三段之二,必填;不是录入账号 created_by)
- title: agent name
- agent_mobile:
- type: string
- description: 运营商经办人联系方式(交接单三段之三,必填)
- title: agent mobile
- agent_handover_on:
- type: string
- description: 经办交接日期(必填;与姓名/联系电话构成运营商经办人三件套,只用于回溯交接来源)
- format: date
- title: agent handover on
- agent_org:
- type: string
- description: 运营商经办人机构(交接单三段之一,选填)
- title: agent org
- attachment_url:
- type: string
- maxLength: 512
- description: >-
- 合同附件(单值,可选):外部 http(s) 链接,或浏览器直传平台对象存储 (seoh-unified-oss 两段式)成功后回报的对象键,前缀必须为 klt/contract/attachment/。空串=清空。对象键不得当作可直接打开的链接,
- 详情读口另下发 attachment_view_url(短时效现签)。
- title: attachment url
- service_items:
- type: array
- description: 服务构成条目列表
- items:
- type: object
- description: 服务条目
- properties:
- plan_id:
- type: string
- description: 档位 ID(必填; 起条目只能引用目录档位)
- quantity:
- type: integer
- description: 份数:link 档恒 1;addon 档≥1
- item_family:
- type: string
- description: 交付形态(只读确认位,可缺省):只能与所引档位的 plan_family 相同,不同即 KLT-L216
- enum:
- - link
- - addon
- item_mode:
- type: string
- description: >-
- 条目模式:new=常规条目(缺省);increment=增量叠加服务,只能引用本客户 既有 link 订阅(只传 ref_subscription_id,
- 再填 serves_item_id/ serves_item_index),档位必须是 addon。读口按同一编码原样回传。
- enum:
- - new
- - increment
- serves_item_index:
- type: integer
- minimum: 0
- description: >-
- 从属宿主:普通叠加服务叠加于同一请求 service_items 的哪一条, 0 基下标(新建父条目尚无 item_id 时用)。父条目已存在时也可改传
- serves_item_id; 二者同时给即 11103。仅 item_mode=new 且档位为 addon 时必填其一。
- serves_item_id:
- type: string
- description: >-
- 从属宿主的条目 ID(编辑合同、父条目已存在时用);与 serves_item_index 二选一。 增量条目(increment) 不得填本键。
- ref_subscription_id:
- type: string
- description: >-
- 增量合同引用的原订阅号:仅 item_mode=increment 时必填(且不得填 serves_*); 非增量条目带本键即 KLT-L216。订阅须属本客户、为
- link 档、状态 ∈ active/pending。 生成的 service_open 单以增量合同 external_no 作为 carrier_order_no。
- line_exits:
- type: array
- maxItems: 1
- description: >-
- 线路出口(单选:长度必须为 1)。新建/修改条目出现 2 个以上 由服务端回 KLT-L222;存量多出口条目不迁移(编辑合同须原样回传)。
- items:
- type: string
- description: 出口标识
- succession:
- type: object
- description: >-
- 契约内逐条替换(升降配,):本条目的新订阅顶替哪份原订阅。 仅在新建合同受理,编辑合同出现即 KLT-L222。只接受三键(价格/状态/ row_version
- 等只读派生列出现即点名)。候选须同客户、status ∈ active/pending、 同 line_exit_key、双方均 plan_family=link、未被替换过(KLT-M226);
- 同一 replaces_subscription_id 在本请求内至多一次;link 条目 quantity 须为 1。 替换与合同写入同一条
- dml_batch(任一条失败=整批回滚),应答回 data.replacements[]。
- properties:
- replaces_subscription_id:
- type: string
- description: 被替换的原订阅号(必填)
- start_date:
- type: string
- format: date
- description: 新订阅起日,缺省=max(业务当天, 合同生效日);须 ≤ 合同止期。结束日恒取合同止期
- term:
- type: string
- description: 订阅方式(yearly/quarterly/monthly);缺省按档位与账期派生
- required:
- - replaces_subscription_id
- title: service items
- required:
- - contract_amount_cents
- - service_months
- - start_date
- - end_date
- - agent_name
- - agent_mobile
- - agent_handover_on
- title: 新建合同请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractCreate'
- /contract/update@v1:
- post:
- summary: 编辑合同
- description: 编号与签约客户不可改;条目按 item_id 三向对比增删改。可改范围=bos-invariant::contract_edit_scope
- 的两条轴(billing:金额/服务期(月)/期间/服务构成;archive:合同类型/签署日期/外部单号/交接日期),两轴独立判定、source=operator_sync
- 全只读(KLT-L220)、已开通两轴全冻(KLT-L219)、录后 72 小时内两轴全开、未生效只放 billing、未到期只放 archive;经办人(created_by
- 与录入经办人机构/姓名/联系方式)建后恒只读(KLT-L221);agent_* 为运营商交接单上的经办人,受各自轴约束。 :`ip_entries`/`has_fixed_ip`
- (视为未知键 ⇒ 11103,境外 IP 由套餐档位 × 订阅份数表达)。保存形态=只提交变了的字段(键缺席=保持现值);审计 INSERT 与业务语句同批提交。
- operationId: contract_update
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 编辑合同请求参数
- properties:
- contract_id:
- type: string
- description: 合同 ID
- title: 合同 ID
- row_version:
- type: integer
- description: 乐观锁版本
- title: 乐观锁版本
- external_no:
- type: string
- description: 外部合同号
- title: external no
- contract_type:
- type: string
- description: 合同类型(new/renew/expand/change);受 archive 轴约束
- enum:
- - new
- - renew
- - expand
- - change
- title: contract type
- sign_date:
- type: string
- description: 签署日期(受 archive 轴约束)
- format: date
- title: sign date
- contract_amount_cents:
- type: integer
- description: 合同金额(分)
- title: contract amount cents
- service_months:
- type: integer
- description: 服务期(月,1~600);受 billing 轴约束,结束日按「生效日+服务期−1 天」重算
- minimum: 1
- maximum: 600
- title: service months
- start_date:
- type: string
- description: 开始日期
- format: date
- title: 开始日
- end_date:
- type: string
- description: 结束日期
- format: date
- title: 结束日
- agent_name:
- type: string
- description: 运营商经办人姓名(交接单口径,不是录入账号 created_by);受 billing/archive 轴约束,冻结时提交改动值
- ⇒ KLT-L219/L220
- title: agent name
- agent_mobile:
- type: string
- description: 运营商经办人联系方式(交接单三段之三;archive 轴)
- title: agent mobile
- agent_handover_on:
- type: string
- description: 交接日期(archive 轴)
- title: agent handover on
- agent_org:
- type: string
- description: 运营商经办人机构(交接单三段之一;选填,archive 轴)
- title: agent org
- attachment_url:
- type: string
- maxLength: 512
- description: >-
- 合同附件(单值,archive 轴):外部 http(s) 链接,或前缀为 klt/contract/attachment/ 的对象键;空串=清空附件。
- title: attachment url
- service_items:
- type: array
- description: >-
- 服务构成条目(含 item_id 的增删改)。条目形态只含 plan_id/quantity/item_family/ line_exits/item_mode/serves_item_id/serves_item_index/ref_subscription_id(item_family
- 由档位带入, 自造);年价/账号数/带宽等旧字段已删列, 出现即视为未知键。/普通叠加服务用 serves_item_id(或 0 基 serves_item_index)
- 声明从属,服务端按父子关系回树;增量条目用 item_mode=increment + ref_subscription_id 引用既有链路订阅( 再挂 serves_*)。订阅/工单/台账列表不扩散,仍平铺。
- items:
- type: object
- properties:
- item_id:
- type: string
- description: 既有条目主键(三向对比:带=UPDATE/不带=INSERT/库有载荷无=DELETE)
- plan_id:
- type: string
- description: 档位 ID
- quantity:
- type: integer
- description: 份数:link 档恒 1;addon 档≥1
- item_family:
- type: string
- description: 交付形态(只读确认位,可缺省):与档位 plan_family 不同即 KLT-L216
- enum:
- - link
- - addon
- item_mode:
- type: string
- description: >-
- 条目模式:new=常规;increment=增量叠加服务(档位必须为 addon,且只引用 ref_subscription_id, 挂 serves_*)。读口按同一编码回传。
- enum:
- - new
- - increment
- serves_item_index:
- type: integer
- minimum: 0
- description: 父条目在本载荷 service_items 的 0 基下标(普通叠加服务、父条目为本次新建时用)
- serves_item_id:
- type: string
- description: >-
- 父条目 ID(普通叠加服务、父条目已存在时用);与 serves_item_index 二选一, 同时给即 11103;增量条目 不得填本键
- ref_subscription_id:
- type: string
- description: >-
- 增量合同引用的原订阅号:item_mode=increment 时必填,须属本客户、为 link 档、 状态 ∈ active/pending;非增量条目带本键即
- KLT-L216。
- line_exits:
- type: array
- maxItems: 1
- description: 线路出口(单选,长度 1)
- items:
- type: string
- title: service items
- required:
- - contract_id
- - row_version
- title: 编辑合同请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211, 60228, 60229, 60230]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractUpdate'
- /contract/get_list@v1:
- post:
- summary: 合同列表
- description: >-
- 按客户/状态等筛选合同列表。每行随 `attachment_kind`(none/link/object/other)说明附件形态; `attachment_view_url` 在列表口恒
- null(签名只在详情读口现签,不按行 N 次调平台)。
- operationId: contract_get_list
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(编号/客户名/外部单号/经办人等)
- title: 关键字
- customer_id:
- type: string
- description: 客户 ID 筛选
- title: 客户 ID
- status:
- type: string
- description: 生命周期态(effective/not_effective/expired 或中文)
- title: 状态
- source:
- type: string
- description: 来源(manual/import/operator_sync 或中文标签)
- title: 来源
- line_exit:
- type: string
- description: 线路出口名称(命中服务构成条目 line_exits)
- title: line exit
- expiring_within_days:
- type: integer
- description: 快到期天数(止期 ∈ [today, today+N];已到期不算)
- minimum: 0
- title: expiring within days
- opened:
- type: boolean
- description: 是否已开通筛选(三态:true/false/缺省不筛)
- title: opened
- title: 合同列表请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractGetList'
- /contract/change_log@v1:
- post:
- summary: 合同修改记录
- description: 本合同在 bos_audit_log 的 contract.* 流水(时间倒序+(occurred_at,id) 游标,不用
- OFFSET)。先过合同可见性(与详情同一条谓词,越权=11104),再按 resource_type='contract' AND resource_id=$contract_id
- 取行——不复用 audit/get_list@v1(其对 TeamLead/Ops 按本团队成员过滤,会把可见合同的历史滤空)。行内含 detail.fields(字段级
- {old,new})、items_diff(条目的三向增删改);`ip_diff` 仅 之前的存量行才有(固定 IP 条目)。
- operationId: contract_change_log
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 合同修改记录请求参数
- properties:
- contract_id:
- type: string
- description: 合同 ID
- title: 合同 ID
- page_size:
- type: integer
- description: 每页条数(默认 20,夹在 1~50)
- minimum: 1
- maximum: 50
- default: 20
- title: 每页条数
- cursor:
- type: string
- description: 游标,形态 occurred_at|id(与审计页同形态);由上一页响应的 next_cursor 原样带回
- title: 游标
- required:
- - contract_id
- title: 合同修改记录请求数据
- required:
- - data
- x-error-codes: [60053, 60201, 60207]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractChangeLog'
- /contract/get@v1:
- post:
- summary: 合同详情
- description: >-
- 按合同 ID 查询详情(含服务条目与 IP 条件)。出参含 edit_scope(billing/archive 两轴 editable+reason,判据=bos-invariant::contract_edit_scope)、created_by/created_by_name/created_by_org/created_by_mobile(录入经办人=录入账号的机构/姓名/联系方式,录入时由账号自动带入、建后只读;联系方式已按需求
- 掩码)。 附件(单值):`attachment_url` 原值照回(外部链接或 klt/contract/attachment/ 下的对象键), `attachment_kind` 说明形态,`attachment_view_url`/`attachment_view_url_expires_at`
- 为读口现签的短时效下载地址(`link` 形态=原链接);对象键不得当作可直接打开的链接。 服务条目行额外带 `item_mode`(new/increment)/`serves_item_id`/`ref_subscription_id`,
- 前端据此把增量叠加服务以父子缩进树呈现;订阅/工单/台账仍为平铺列表,只标注「叠加于 SUB-xxx」。
- operationId: contract_get
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 合同详情请求参数
- properties:
- contract_id:
- type: string
- description: 合同 ID
- title: 合同 ID
- required:
- - contract_id
- title: 合同详情请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractGet'
- /contract/customer_lookup@v1:
- post:
- summary: 合同客户身份解析
- description: 第 1 步:query_type=credit_code 主体号精确点查/identity 归一化精确点查/keyword
- 客户名称模糊联想;未命中=matched:false 成功响应(不报错),越权读单客户=11104。
- operationId: contract_customer_lookup
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 合同客户身份解析请求参数
- properties:
- query_type:
- type: string
- description: 查询通道
- enum:
- - credit_code
- - identity
- - keyword
- title: query type
- value:
- type: string
- description: 查询值(主体号/识别号/客户名称关键字)
- title: value
- required:
- - query_type
- - value
- title: 合同客户身份解析请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractCustomerLookup'
- /contract/delete@v1:
- post:
- summary: 合同条件删除
- description: 两类阻塞分栏(subscriptions/tickets),有阻塞⇒KLT-L213;工单取数失败⇒KLT-S406(不得中途放行)。
- operationId: contract_delete
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 合同条件删除请求参数
- properties:
- contract_id:
- type: string
- description: 合同 ID
- title: 合同 ID
- required:
- - contract_id
- title: 合同条件删除请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractDelete'
- /contract/attachment_discard@v1:
- post:
- summary: 回收无人引用的上传附件(孤儿对象)
- description: >-
- 还原 孤儿附件回收:浏览器直传是「先上传、后落库」,用户换文件/移除/ 取消编辑/保存被拦时会在桶里留下无引用对象。平台 unified-oss 明确「不做后台遍历删对象、 不按业务字段回收」,只有即时删除一条通道(object/delete@v1),故回收由本服务在引用面判定后发起。
- 三条安全线:object_key 必须是本服务前缀下无路径穿越的对象键;查库确认没有任何合同仍指向它; 角色限 Admin/OpsMain(与合同写口同一道闸)。referenced=true
- 与「对象已不在」都不算失败(幂等)。
- operationId: contract_attachment_discard
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract_attachment/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 回收无人引用的上传附件(孤儿对象)请求参数
- properties:
- object_key:
- type: string
- description: 直传回报的对象键(klt/contract/attachment/ 前缀下)
- title: 对象键
- required:
- - object_key
- title: 回收无人引用的上传附件(孤儿对象)请求数据
- required:
- - data
- x-error-codes: [60001, 60004, 60006, 60058, 60201]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractAttachmentDiscard'
- /subscription/create@v1:
- post:
- summary: 新建订阅
- description: 拒收 line_exits、sub_mode、order_no、新建时的 end_date、opened_at。 响应 data 附
- delivery_ticket=交付侧建单结论(工单册):kind=open/service_open/
- merged(并入既有未完成开户工单,工单册)/failed/skipped,另有 ticket_id、ticket_no、
- items=本次落地服务清单项数、note=面向运营的说明。工单侧失败不回滚订阅(订阅仍已保存), 此时 failed=true,运营须按 note 人工补发工单。
- operationId: subscription_create
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建订阅请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- plan_id:
- type: string
- description: 档位 ID
- title: 档位 ID
- contract_id:
- type: string
- description: 合同 ID
- title: 合同 ID
- contract_item_id:
- type: string
- description: 合同服务条目 ID(可空=该合同内一条匹配条目都没有,服务端按档位反查)
- title: contract item id
- start_date:
- type: string
- description: 订阅开始日期
- format: date
- title: 开始日
- annual_price_cents:
- type: integer
- description: 不得传的只读派生列:按档位与账期折算落库(传值即 KLT-S20004 拒收)
- title: 年价(分)
- monthly_settle_cents:
- type: integer
- description: 不得传的只读派生列:由 `monthly_settle_of` 按年价折算落库(传值即 KLT-S20004 拒收)
- title: 月结算(分)
- plan_family:
- type: string
- description: 交付形态(只读确认位,可缺省):只能与所选档位的 plan_family 相同,不同即 11103
- enum:
- - link
- - addon
- title: plan family
- term:
- type: string
- description: 账期(三态:yearly/quarterly/monthly)
- enum:
- - yearly
- - quarterly
- - monthly
- title: term
- trial_months:
- type: integer
- description: 试用月数(默认 0,≥0)
- minimum: 0
- title: trial months
- discount_monthly_cents:
- type: integer
- description: 每月优惠金额(分,默认 0,≥0)
- minimum: 0
- title: discount monthly cents
- required:
- - customer_id
- - plan_id
- - contract_id
- - start_date
- title: 新建订阅请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionCreate'
- /subscription/change@v1:
- post:
- summary: 订阅升降配
- description: >-
- 升降配须填 replaces_subscription_id 与 contract_id(新合同,不得沿用原合同;缺省时回退原合同并在回执说明中提示)。 `contract_item_id`
- 给出时按其取条目并校验档位匹配,缺省时按新档位在合同内反查。 `customer_id` 仅做一致性校验(与原订阅客户不同即 60201/KLT-M221)。 年价、月结算标准、end_date、线路出口、用途分类为只读派生列,传即
- 11103。 本口保留为「单订阅快捷通道」:常规路径是在合同新建页逐条带 service_items[].succession 一次提交(见 /contract/create@v1);两条路径共用同一份计划层与
- 截原谓词(已被替换过 ⇒ KLT-M226)。工单类型按交付态:已交付且客户在用 ⇒ 一张 updown (新档交付+原档回收,清单带原值/新值);未交付 ⇒ open/service_open。
- operationId: subscription_change
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 订阅升降配请求参数
- properties:
- replaces_subscription_id:
- type: string
- description: 被替换的原订阅 ID
- title: replaces subscription id
- customer_id:
- type: string
- description: 客户 ID
- title: 客户 ID
- plan_id:
- type: string
- description: 新档位 ID
- title: 档位 ID
- contract_id:
- type: string
- description: 新合同 ID(不得沿用原合同)
- title: 合同 ID
- contract_item_id:
- type: string
- description: 新合同服务条目 ID
- title: contract item id
- start_date:
- type: string
- description: 新订阅开始日期
- format: date
- title: 开始日
- annual_price_cents:
- type: integer
- description: 只读派生列(服务端按档位与时长折算);传即 11103
- readOnly: true
- title: 年价(分)
- monthly_settle_cents:
- type: integer
- description: 只读派生列(服务端按档位折算);传即 11103
- readOnly: true
- title: 月结算(分)
- plan_family:
- type: string
- description: 只读派生列(随新档位);传不同值即 11103
- readOnly: true
- enum:
- - link
- - addon
- title: plan family
- term:
- type: string
- description: 账期(三态:yearly/quarterly/monthly;缺省沿用原订阅或按年)
- enum:
- - yearly
- - quarterly
- - monthly
- title: term
- trial_months:
- type: integer
- description: 试用月数(默认 0,≥0)
- minimum: 0
- title: trial months
- discount_monthly_cents:
- type: integer
- description: 每月优惠金额(分,默认 0,≥0)
- minimum: 0
- title: discount monthly cents
- row_version:
- type: integer
- description: 乐观锁版本号(可选,缺省不校验)
- title: 乐观锁版本
- required:
- - replaces_subscription_id
- - plan_id
- - contract_id
- title: 订阅升降配请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionChange'
- /subscription/replacement_candidates@v1:
- post:
- summary: 替换候选探测(只读)
- description: >-
- 合同新建页逐条判定「是否已有可替换的原订阅」(契约内逐条替换=升降配,)。 交付形态唯一取档位 `plan_family`,按「同客户 × 同出口 × 双方均 link」 过滤(status
- ∈ active/pending、排除 addon 档、排除已被指过的 replaces_subscription_id), 与 /contract/create@v1 的保存期校验是同一份函数(succession::candidate_filter),前端不得自造候选范围。
- index 与 service_items 的 0 基下标对齐;档位或出口判定不出 ⇒ KLT-L222 点名 probes[i]。
- operationId: subscription_replacement_candidates
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 替换候选探测(只读)请求参数
- properties:
- customer_id:
- type: string
- description: 签约客户 ID(候选范围限本客户)
- title: 客户 ID
- probes:
- type: array
- description: 探测项(至少 1 项,每项对应一个服务构成条目)
- items:
- type: object
- properties:
- index:
- type: integer
- description: 0 基条目下标(缺省=数组位置)
- plan_id:
- type: string
- description: 档位 ID(交付形态由档位带出)
- line_exits:
- type: array
- maxItems: 1
- description: 线路出口(须恰 1 个;缺省时回落档位上的出口集合)
- items:
- type: string
- required:
- - line_exits
- title: probes
- required:
- - customer_id
- - probes
- title: 替换候选探测(只读)请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60221, 60231]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionReplacementCandidates'
- /subscription/stack@v1:
- post:
- summary: 订阅叠加(已停用 · 请改走 create)
- description: 起拒写。权威「叠加」=新建并存订阅,请走
- `/subscription/create@v1`(客户在用时自动生成服务开通工单)。本口保留路由与入参形态,一律返回参数错误并点名 create。
- operationId: subscription_stack
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 订阅叠加(已停用 · 请改走 create)请求参数
- properties:
- subscription_id:
- type: string
- description: 订阅 ID(更新场景)
- title: 订阅 ID
- customer_id:
- type: string
- description: 客户 ID(叠加新建时)
- title: 客户 ID
- plan_id:
- type: string
- description: 档位 ID(叠加新建时)
- title: 档位 ID
- contract_id:
- type: string
- description: 合同 ID
- title: 合同 ID
- contract_item_id:
- type: string
- description: 合同服务条目 ID
- title: contract item id
- annual_price_cents:
- type: integer
- description: 年价(分,可改)
- title: 年价(分)
- monthly_settle_cents:
- type: integer
- description: 月结算金额(分,可改)
- title: 月结算(分)
- end_date:
- type: string
- description: 结束日期(可改)
- format: date
- title: 结束日
- start_date:
- type: string
- description: 开始日期(叠加新建时)
- format: date
- title: 开始日
- row_version:
- type: integer
- description: 乐观锁版本号(可选,缺省不校验)
- title: 乐观锁版本
- title: 订阅叠加(已停用 · 请改走 create)请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionStack'
- /subscription/get_list@v1:
- post:
- summary: 订阅列表
- description: >-
- 按客户等维度筛选订阅列表。叠加服务订阅行带 `parent_subscription_id`(所属链路订阅号), 列表面板保持平铺并标注「叠加于 SUB-xxx」,不把子订阅折叠进父行(不扩散)。
- operationId: subscription_get_list
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- # (subscription.rs:680 get_list → :687 customer_scope_pred),订阅在平台侧登记为
- # klt.subscription 树叶 ⇒ 其可见集应由授权上界决定,故按 list 声明真源列举。
- # 注意:同 L-2:本轮只打通「声明+上界落到 AuthContext」,运维分支仍走本地口径,
- # 且注入 id 与我方 subscription_id 对齐的前提=订阅已登记为资源树叶(待平台确认)。
- x-enumeration-kind: list
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数(BUG-26Ccustomer_id 必填;全量列表走 list_all)
- required:
- - customer_id
- properties:
- customer_id:
- type: string
- description: 客户 ID(必填)
- title: 客户 ID
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字(套餐名/订阅号/订单号/客户名/合同号)
- title: 关键字
- status:
- type: string
- description: 状态筛选(pending/active/expired/cancelled/replaced/early_stopped)
- title: 状态
- plan_kind:
- type: string
- description: 套餐类型(fixed/custom)
- enum:
- - fixed
- - custom
- title: plan kind
- line_exit:
- type: string
- description: 线路出口名称(命中 line_exits 快照)
- title: line exit
- expiring_within_days:
- type: integer
- description: 快到期天数(止期 ∈ [today, today+N];已到期不算)
- minimum: 0
- title: expiring within days
- contract_id:
- type: string
- description: 合同 ID 筛选
- title: 合同 ID
- region_ids:
- type: array
- description: 区域 ID 集合(经客户挂载区域展开)
- items:
- type: string
- description: 区域 ID
- title: region_ids元素
- title: region ids
- title: 订阅列表请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionGetList'
- /subscription/get@v1:
- post:
- summary: 订阅详情
- description: 按订阅 ID 查询详情。
- operationId: subscription_get
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 订阅详情请求参数
- properties:
- subscription_id:
- type: string
- description: 订阅 ID
- title: 订阅 ID
- required:
- - subscription_id
- title: 订阅详情请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionGet'
- /subscription/plan_options@v1:
- post:
- summary: 订阅档位候选
- description: 第 3 步:本客户自定义档(含合同条目派生档)+全部固定档,不含他客户自定义档;行内带只读 sub_mode 与
- available/unavailable_reason。
- operationId: subscription_plan_options
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 订阅档位候选请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID(必填)
- title: 客户 ID
- keyword:
- type: string
- description: 套餐名称关键字(仅本口有)
- title: 关键字
- required:
- - customer_id
- title: 订阅档位候选请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionPlanOptions'
- /subscription/contract_options@v1:
- post:
- summary: 未开通合同与服务条目候选
- description: 第 2 步:只出「未开通」合同及其尚未被订阅引用的条目;开通态取数失败⇒KLT-S406;无可选合同⇒KLT-M222。
- operationId: subscription_contract_options
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 未开通合同与服务条目候选请求参数
- properties:
- customer_id:
- type: string
- description: 客户 ID(必填)
- title: 客户 ID
- keyword:
- type: string
- description: 合同名称关键字(仅本口有)
- title: 关键字
- required:
- - customer_id
- title: 未开通合同与服务条目候选请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionContractOptions'
- /subscription/update@v1:
- post:
- summary: 订阅修改(白名单)
- description: 可改字段只有 trial_months/discount_monthly_cents;row_version
- 必填,落空⇒KLT-S407;换套餐/换合同⇒KLT-M229。
- operationId: subscription_update
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 订阅修改(白名单)请求参数
- properties:
- subscription_id:
- type: string
- description: 订阅 ID
- title: 订阅 ID
- row_version:
- type: integer
- description: 乐观锁版本号(必填,落空⇒KLT-S407)
- title: 乐观锁版本
- trial_months:
- type: integer
- description: 试用月数(白名单可改)
- minimum: 0
- title: trial months
- discount_monthly_cents:
- type: integer
- description: 每月优惠金额(分,白名单可改)
- minimum: 0
- title: discount monthly cents
- required:
- - subscription_id
- - row_version
- title: 订阅修改(白名单)请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionUpdate'
- /subscription/delete_check@v1:
- post:
- summary: 订阅删除前阻塞检查
- description: 两栏阻塞分列(账单明细⇒KLT-M227、升降配链原订阅⇒KLT-M230);账单只读口未接线⇒billing_state=unconfigured。
- operationId: subscription_delete_check
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 订阅删除前阻塞检查请求参数
- properties:
- subscription_id:
- type: string
- description: 订阅 ID
- title: 订阅 ID
- required:
- - subscription_id
- title: 订阅删除前阻塞检查请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionDeleteCheck'
- /subscription/delete@v1:
- post:
- summary: 删除订阅并回退额度
- description: 删除前复算阻塞;终态⇒11103;同事务回退 customer.quota_cents,档位 first_referred_at 打点不回滚。
- operationId: subscription_delete
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除订阅并回退额度请求参数
- properties:
- subscription_id:
- type: string
- description: 订阅 ID
- title: 订阅 ID
- required:
- - subscription_id
- title: 删除订阅并回退额度请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionDelete'
- /subscription/list_all@v1:
- post:
- summary: 全部订阅(跨客户)
- description: >-
- 跨客户订阅列表,customer_id 可选;region_ids 经客户挂载区域展开。 keyword 命中套餐名/订阅号/订单号/客户名/合同号;page 0 基,page_size
- 上限 200。
- operationId: subscription_list_all
- tags:
- - 订阅
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/subscription/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字(套餐名/订阅号/订单号/客户名/合同号)
- title: 关键字
- customer_id:
- type: string
- description: 客户 ID 筛选(跨客户列表下可选)
- title: 客户 ID
- contract_id:
- type: string
- description: 合同 ID 筛选
- title: 合同 ID
- status:
- type: string
- description: 状态筛选(pending/active/expired/cancelled/replaced/early_stopped)
- title: 状态
- plan_kind:
- type: string
- description: 套餐类型(fixed/custom)
- enum:
- - fixed
- - custom
- title: plan kind
- line_exit:
- type: string
- description: 线路出口名称(命中 line_exits 快照)
- title: line exit
- expiring_within_days:
- type: integer
- description: 快到期天数(止期 ∈ [today, today+N];已到期不算)
- minimum: 0
- title: expiring within days
- region_ids:
- type: array
- description: 区域 ID 集合(经客户挂载区域展开)
- items:
- type: string
- description: 区域 ID
- title: region_ids元素
- title: region ids
- title: 全部订阅(跨客户)请求数据
- required:
- - data
- x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseSubscriptionListAll'
- /cost_item/save@v1:
- post:
- summary: 保存成本项定义
- description: 仅 admin。增改成本项定义。拒收金额、客户、运营商、省份、cycle、is_system。
- operationId: cost_item_save
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/cost_item/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存成本项定义请求参数
- properties:
- cost_item_id:
- type: string
- description: 成本项 ID(更新时必填)
- title: cost item id
- category:
- type: string
- description: 类别:intl_resource/device_purchase/project_fee
- enum:
- - intl_resource
- - device_purchase
- - project_fee
- title: category
- item_name:
- type: string
- description: 成本项名称
- title: item name
- billing_unit:
- type: string
- description: 计费单位:per_customer/per_account/per_copy
- enum:
- - per_customer
- - per_account
- - per_copy
- title: billing unit
- is_amortized:
- type: boolean
- description: 是否摊销
- title: is amortized
- amortization_months:
- type: integer
- description: 摊销月数(勾选摊销时可空=每月摊销不结束)
- title: amortization months
- deduct_from_base:
- type: boolean
- description: 是否从基数扣除
- title: deduct from base
- remark:
- type: string
- description: 备注
- title: 备注
- row_version:
- type: integer
- description: 乐观锁版本(更新时)
- title: 乐观锁版本
- required:
- - category
- - item_name
- - billing_unit
- - is_amortized
- - deduct_from_base
- title: 保存成本项定义请求数据
- required:
- - data
- x-error-codes: [60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCostItemSave'
- /cost_item/delete@v1:
- post:
- summary: 删除成本项定义
- description: 仅 admin。顺序固定「引用检查 → 真删」;按 plan_cost_item.cost_item_id 强引用反查, 命中 ⇒ KLT-E002 并在
- data.referring_plan_count 回引用档位数(文案含「先在档位上解除引用」出路);改名不影响引用数。 无引用才真删:同一批清理该成本项名下全部
- cost_amount 行(级联行数只进审计摘要、不进响应体)。
- operationId: cost_item_delete
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/cost_item/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除成本项定义请求参数
- properties:
- cost_item_id:
- type: string
- description: 成本项 ID(待删除的定义主键)
- title: cost item id
- required:
- - cost_item_id
- title: 删除成本项定义请求数据
- required:
- - data
- x-error-codes: [60005, 60302]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCostItemDelete'
- /cost_item/get_list@v1:
- post:
- summary: 成本项列表
- description: 全局成本项目录;可选类别/名称关键字;无客户过滤。
- operationId: cost_item_get_list
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/cost_item/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- item_name:
- type: string
- description: 按成本项名称模糊检索(BUG-26F;与 keyword 同口径 LIKE)
- title: item name
- category:
- type: string
- description: 类别筛选
- title: category
- title: 成本项列表请求数据
- required:
- - data
- x-error-codes: [60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCostItemGetList'
- /cost_amount/save@v1:
- post:
- summary: 保存成本金额
- description: 按「省份×运营商×成本项」只写差异金额;留空项表示删除该差异。
- operationId: cost_amount_save
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/cost_amount/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存成本金额请求参数
- properties:
- province_node_id:
- type: string
- description: 省份节点 ID
- title: province node id
- operator_id:
- type: string
- description: 运营商 ID
- title: 运营商 ID
- items:
- type: array
- description: 变更项列表;留空金额表示删除该差异行
- items:
- type: object
- properties:
- cost_item_id:
- type: string
- description: 成本项 ID
- amount_cents:
- type: integer
- description: 金额(分);空/省略表示删除
- row_version:
- type: integer
- description: 乐观锁版本
- required:
- - cost_item_id
- title: 列表项
- required:
- - province_node_id
- - operator_id
- - items
- title: 保存成本金额请求数据
- required:
- - data
- x-error-codes: [60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCostAmountSave'
- /cost_amount/get_list@v1:
- post:
- summary: 成本金额一览
- description: 透视表;admin 全量,区域运营按可见省/运营商收窄。
- operationId: cost_amount_get_list
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/cost_amount/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- province_node_id:
- type: string
- description: 省份筛选
- title: province node id
- operator_id:
- type: string
- description: 运营商筛选
- title: 运营商 ID
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- title: 成本金额一览请求数据
- required:
- - data
- x-error-codes: [60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCostAmountGetList'
- /share_rule/save@v1:
- post:
- summary: 保存分成规则
- description: |-
- 改分成=改分成方档案上的 settle_mode/settle_value 两列。
- holder_type∈{operator,ops_team,partner}。rules 实际只表达一对取值(多条须一致)。
- 两列一起传 null=取消分成(未配、计 0); 用 0/负数表达删除。
- 顶层仅接受 holder_type/holder_id/rules/row_version,其余键(含误放顶层的 share_mode/__probe)⇒ 60004(BUG-3D-43)。
- row_version 必填:与三档案 update 共用同一条乐观锁链;缺省 ⇒ 60004;不符 ⇒ KLT-S407/60001;
- 同值 ⇒ changed=0、不空转版本(BUG-3D-44/A)。
- get 回显的只读派生键(rule_id/rule_level/status/holder_name/customer_id/customer_name/remark
- 及误放行内的 row_version)允许原样回填:同值忽略/异值拒绝(BUG-3D-45);⛔ 静默受理异值。
- operationId: share_rule_save
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/share_rule/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 保存分成规则请求参数
- properties:
- holder_type:
- type: string
- description: 持有方类型(档案表)
- enum:
- - operator
- - ops_team
- - partner
- title: holder type
- holder_id:
- type: string
- description: 持有方 ID
- title: holder id
- rules:
- type: array
- description: |-
- 规则行列表(档案只有一对 settle_mode/settle_value;请写入 rules[0])。
- 可将 /share_rule/get@v1 的 rules[0] 原样回填:只读写 share_mode/share_value,
- 其余回显键同值忽略/异值拒绝(BUG-3D-45)。
- items:
- type: object
- properties:
- rule_id:
- type: string
- description: |-
- 视图键(get=`{holder_type}:{holder_id}`)。同值忽略;异值 ⇒ 60004(BUG-3D-45)。
- readOnly: true
- customer_id:
- type: string
- nullable: true
- description: |-
- get 恒 null。空/缺席/null=同值忽略;非空 ⇒ 60004(逐客户层已取消)。
- readOnly: true
- customer_name:
- type: string
- nullable: true
- description: |-
- get 恒 null(columns_pending)。空/null=同值忽略;非空 ⇒ 60004。
- readOnly: true
- rule_level:
- type: string
- description: |-
- get 恒 default。同值忽略;其它 ⇒ 60004(分层已取消;BUG-3D-45)。
- readOnly: true
- remark:
- type: string
- nullable: true
- description: |-
- get 恒 null。空/null=同值忽略;非空 ⇒ 60004(档案无此列)。
- readOnly: true
- status:
- type: string
- nullable: true
- description: |-
- get 回显(仅 partner 有真值,其余 null)。同值忽略;异值 ⇒ 60004。
- readOnly: true
- holder_name:
- type: string
- description: 档案名回显。同值忽略;异值 ⇒ 60004。
- readOnly: true
- holder_type:
- type: string
- description: 与顶层一致时可回填;异值 ⇒ 60004。
- readOnly: true
- holder_id:
- type: string
- description: 与顶层一致时可回填;异值 ⇒ 60004。
- readOnly: true
- row_version:
- type: integer
- description: |-
- ⛔ 乐观锁真源在 data 顶层。行内出现时须与顶层同值(同值忽略);
- 异值 ⇒ 60004 并提示须置于 data 顶层。
- readOnly: true
- minimum: 1
- share_mode:
- type: string
- description: |-
- 档案 settle_mode:仅 ratio/amount/per_account。
- ratio_total/fixed_amount/percent 等别名已停用 ⇒ 60004(须写在 rules[0],顶层出现亦 60004)。
- enum:
- - ratio
- - amount
- - per_account
- share_value:
- type: number
- description: |-
- 与 share_mode 成对:ratio 为 (0,1] 小数(界面百分数在录入侧换算);
- amount/per_account 为 >0(元)。两列皆 null=清空分成。列上界 NUMERIC(12,4)。
- title: rules
- row_version:
- type: integer
- description: |-
- 档案乐观锁版本(必填)。取 /share_rule/get@v1 或列表回执的 rule.row_version;
- 与 operator/ops_team/partner update 同链。缺省=60004;不符=KLT-S407/60001。
- 须置于 data 顶层;误写在 rules[] 内且与顶层同值时可忽略(BUG-3D-45),异值仍 60004。
- title: 乐观锁版本
- minimum: 1
- additionalProperties: false
- required:
- - holder_type
- - holder_id
- - rules
- - row_version
- title: 保存分成规则请求数据
- required:
- - data
- x-error-codes: [60001, 60004, 60058]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseShareRuleSave'
- /share_rule/get_list@v1:
- post:
- summary: 分成规则列表
- description: 按持有方等条件列出分成规则。
- operationId: share_rule_get_list
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/share_rule/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 列表筛选参数
- properties:
- holder_type:
- type: string
- description: 持有方类型
- title: holder type
- holder_id:
- type: string
- description: 持有方 ID
- title: holder id
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- title: 分成规则列表请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseShareRuleGetList'
- /share_rule/get@v1:
- post:
- summary: 分成规则详情
- description: 按持有方一次返回四卡摘要与规则表。
- operationId: share_rule_get
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/share_rule/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 分成规则详情请求参数
- properties:
- holder_type:
- type: string
- description: 持有方类型:operator/ops_team
- title: holder type
- holder_id:
- type: string
- description: 持有方 ID
- title: holder id
- required:
- - holder_type
- - holder_id
- title: 分成规则详情请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseShareRuleGet'
- /share_rule/delete@v1:
- post:
- summary: 删除分成规则
- description: 按 rule_id 删除单条分成规则(亦可在 save 内以 0/负值删除)。
- operationId: share_rule_delete
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/share_rule/code'
- x-action:
- $ref: '#/components/x-actions/delete/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 删除分成规则请求参数
- properties:
- rule_id:
- type: string
- description: 规则 ID
- title: rule id
- required:
- - rule_id
- title: 删除分成规则请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseShareRuleDelete'
- /opsview/home@v1:
- get:
- summary: 运维只读首页
- description: 运维侧只读首页,返回工单/逾期等概览数据。
- operationId: opsview_home
- tags:
- - 运维视图
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/opsview/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseOpsviewHome'
- /jobs/get_list@v1:
- get:
- summary: 定时作业清单
- description: 返回 13 行清单(注册位 11 +标注行 2)及运行态:启用态、可操作性位、最近执行、五格计数、累计轮次、KPI 五卡与待补跑轮次。运行态取数失败时仍返回 13
- 行,runtime_available=false。
- operationId: jobs_get_list
- tags:
- - 定时作业
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/jobs/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseJobsGetList'
- /jobs/toggle@v1:
- post:
- summary: 启停定时作业
- description: 仅 admin。按作业 key 启停。
- operationId: jobs_toggle
- tags:
- - 定时作业
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/jobs/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 启停定时作业请求参数
- properties:
- key:
- type: string
- description: 作业键
- title: key
- enabled:
- type: boolean
- description: 是否启用
- title: enabled
- required:
- - key
- - enabled
- title: 启停定时作业请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseJobsToggle'
- /jobs/runs@v1:
- post:
- summary: 作业执行记录
- description: 查询执行记录,支持任务、关键字(执行编号/任务/结果说明,不检索对象级明细)、触发方式、执行结果与日期区间筛选;分页 page 0 基、page_size 默认
- 50。标注行返回空流水并标记 annotation=true。
- operationId: jobs_runs
- tags:
- - 定时作业
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/jobs/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 作业执行记录请求参数
- properties:
- key:
- type: string
- description: 作业键(可省略=全部任务)
- title: key
- job_key:
- type: string
- description: 作业键(契约字段名,可省略)
- title: 作业键
- keyword:
- type: string
- description: 关键字(执行编号/任务/结果说明;不检索对象级明细)
- title: 关键字
- trigger:
- type: string
- description: 触发方式
- enum:
- - 定时
- - 事件
- - 人工
- title: trigger
- result:
- type: string
- description: 执行结果
- enum:
- - 成功
- - 部分成功
- - 失败
- - 异常
- title: result
- date_from:
- type: string
- description: 开始日期(YYYY-MM-DD,Asia/Shanghai 日界)
- pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
- title: date from
- date_to:
- type: string
- description: 结束日期(YYYY-MM-DD,含当日)
- pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
- title: date to
- page:
- type: integer
- description: 页码(0 基,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 50,上限 200)
- minimum: 1
- maximum: 200
- default: 50
- title: 每页条数
- title: 作业执行记录请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseJobsRuns'
- /jobs/run_once@v1:
- post:
- summary: 补跑作业一次
- description: 触发一次指定作业。prod 环境仅总运营可补跑。可选
- key:SUB-EFF/SNAPSHOT-FREEZE/DELEG-SYNC/STOP-GEN/OVERDUE/AUTO-CLOSE/RECON/ORPHAN-CLEAN/REGION-WARM/ONEDIR-CHECK/OSS-ORPHAN-CLEAN/CONTRACT-RENEW。执行轮次落
- bos_job_run,返回本轮五格计数与对象级明细。`AUTO-CLOSE`=「客户 7 天未确认则系统自动关闭」:扫停在 completed
- 的故障/售后客户自报单,完成日早于「业务日 − 7 天」的逐张置 settled(动作键 confirm_close、主体
- AUTO-CLOSE);运维代建/系统生成单不进本作业(标记完成即结束)。`STOP-GEN`/`AUTO-CLOSE`/`CONTRACT-RENEW` 可选传
- biz_date(YYYY-MM-DD,缺省=今天)补跑历史某日。
- operationId: jobs_run_once
- tags:
- - 定时作业
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/jobs/code'
- x-action:
- $ref: '#/components/x-actions/manage/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 补跑作业一次请求参数
- properties:
- key:
- type: string
- description: 作业键
- enum:
- - SUB-EFF
- - SNAPSHOT-FREEZE
- - DELEG-SYNC
- - STOP-GEN
- - OVERDUE
- - AUTO-CLOSE
- - RECON
- - ORPHAN-CLEAN
- - REGION-WARM
- - ONEDIR-CHECK
- - OSS-ORPHAN-CLEAN
- - CONTRACT-RENEW
- title: key
- period:
- type: string
- description: 仅 RECON 用;指定已结束自然月(YYYY-MM)回填,前端传 1 基以外的月份格式即 11103
- pattern: '^[0-9]{4}-[0-9]{2}$'
- title: 账期
- biz_date:
- type: string
- description: 仅 STOP-GEN/AUTO-CLOSE/CONTRACT-RENEW
- 用;业务日(YYYY-MM-DD),缺省=当天。STOP-GEN 按「订阅结束日早于该业务日」扫描;CONTRACT-RENEW 按「合同结束日在
- [业务日, 业务日+提前天数] 窗口内」扫描;幂等键含业务日
- pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
- title: 业务日
- required:
- - key
- title: 补跑作业一次请求数据
- required:
- - data
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseJobsRunOnce'
- /share_rule/param_summary@v1:
- post:
- summary: 分成参数摘要
- description: |-
- 批量取分成方的分成方式/数值与覆盖客户数(分成管理页徽标);最多 500 项。
- holders 必填且非空(null/缺键/[] ⇒ 60004);按 holder_type|holder_id 去重;
- holder_id 号段须匹配发号前缀(operator=OP-/partner=PT-/ops_team=OPS-),空串或前缀不符 ⇒ 11103;
- 未知主体逐项返回 configured=false+item_error( 整批 11104);share_value=十进制字符串(与档案 settle_value 同型)。 无 `share-rule/holder-options`(连字符)口;分成方候选=`operator`/`partner`/`ops_team` 的 `get_list`。
- operationId: share_rule_param_summary
- tags:
- - 成本与分成
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/share_rule/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseShareRuleParamSummary'
- /billing/config_get@v1:
- get:
- summary: 出账配置读
- description: 默认对账日、成本生效口径、行版本与运营商对账账号列表(仅总运营)。
- operationId: billing_config_get
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/billing_config/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseBillingConfigGet'
- /billing/config_update@v1:
- post:
- summary: 出账配置写
- description: 乐观锁 row_version;提交同值 ⇒ changed=0 不写审计;运营商对账日只读(写口在 operator/update)。
- operationId: billing_config_update
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/billing_config/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseBillingConfigUpdate'
- /recon/periods@v1:
- get:
- summary: 对账期次下拉
- description: 有数据的自然月(倒序),不并入 get_list。
- operationId: recon_periods
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/recon/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseReconPeriods'
- /recon/get_list@v1:
- post:
- summary: 对账批次清单
- description: 三统计卡与期次出账进度随同一响应下发;出账状态为派生筛选(settled/abnormal/unsettled)。
- operationId: recon_get_list
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/recon/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseReconGetList'
- /recon/detail@v1:
- get:
- summary: 对账批次详情
- description: 批次头+活跃明细行+动作可用性布尔位(服务端算)。
- operationId: recon_detail
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/recon/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseReconDetail'
- /recon/rerun@v1:
- post:
- summary: 人工补跑出账
- description: 仅总运营。四道前置依次返回 KLT-H20502/60503/60504/60506;作废旧 failed 批并回填 replaced_by_batch_no。
- operationId: recon_rerun
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/recon/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 60502, 60503, 60504, 60506, 60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseReconRerun'
- /recon/export_list@v1:
- post:
- summary: 导出对账清单(B 表)
- description: 按当前筛选结果导出批次清单一行一批次,末行合计;行集与 /recon/get_list 同源;未加筛选=导出全部批次;每次导出写操作日志(记筛选条件与导出批数)。
- operationId: recon_export_list
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/recon/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseReconExportList'
- /recon/export_detail@v1:
- post:
- summary: 导出账单明细(A 表)
- description: 导出本批交给分成方核对的账单明细,一行一条末行本批合计;本批未执行或无明细返回 KLT-H20505(不产文件不写审计)。
- operationId: recon_export_detail
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/recon/code'
- x-action:
- $ref: '#/components/x-actions/export/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104, 60505]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseReconExportDetail'
- /view/partner_recon@v1:
- get:
- summary: 合伙人与运维团队本方对账合并页
- description: V-。卡 1(分成方式与取值)+卡 2/3(批次数与明细条数)+表 1(本方对账清单)+表 2(本方账单明细)+卡
- 4(分成合计双值)+月份选项一次返回;行集恒等于「分成方=本方」,入参只有 month/keyword/page/page_size,任何范围类入参 ⇒ 11103。快照未建立 ⇒
- snapshot_state=not_ready(整页态,仍回 200 与空骨架);月份选项取数失败 ⇒ month_options="failed"。
- operationId: view_partner_recon
- tags:
- - 合伙人与运营商只读视图
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/view/code'
- x-action:
- $ref: '#/components/x-actions/partner_recon/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104]
- parameters:
- - name: month
- in: query
- required: false
- schema:
- type: string
- description: 自然月 YYYY-MM;省略=全部自然月
- - name: keyword
- in: query
- required: false
- schema:
- type: string
- description: 对账单号/明细号模糊匹配(不分大小写)
- - name: page
- in: query
- required: false
- schema:
- type: integer
- minimum: 0
- default: 0
- description: 页码(0 基索引)
- - name: page_size
- in: query
- required: false
- schema:
- type: integer
- minimum: 1
- maximum: 200
- default: 20
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseViewPartnerRecon'
- /bill/get_list@v1:
- post:
- summary: 账单明细清单
- description: 只含进入 executed 批次的 active 行。
- operationId: bill_get_list
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/bill/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseBillGetList'
- /bill/detail@v1:
- get:
- summary: 账单明细详情
- description: 头+成本明细+在期分账号+同订阅其他分成方,七段同源一个接口。
- operationId: bill_detail
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/bill/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseBillDetail'
- /correction/create@v1:
- post:
- summary: 登记出账更正
- description: 表单仅两字段(关联账单+错误内容);KLT-H20501 识别不到归属、KLT-H20507 候选未出账。不接受入参
- `scope`/`severity`/`region_node_id`(三者皆为系统推导值),出现即 11103 且 `data.fields[]` 逐键给出原因。
- operationId: correction_create
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/correction/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104, 60501, 60507, 60056]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCorrectionCreate'
- /correction/get_list@v1:
- post:
- summary: 出账更正列表
- description: 自然月筛选不预选;无编辑/删除/导出入口。
- operationId: correction_get_list
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/correction/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCorrectionGetList'
- /correction/detail@v1:
- get:
- summary: 出账更正详情
- description: 命中/未命中两种展示同源;越权与查无同码(11104)。
- operationId: correction_detail
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/correction/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103, 11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCorrectionDetail'
- /correction/draft_save@v1:
- post:
- summary: 保存更正草稿
- description: 按「admin × 本机」至多一份;表单整体 ≤64KB;不接受 user_id。
- operationId: correction_draft_save
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/correction/code'
- x-action:
- $ref: '#/components/x-actions/update/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11103]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCorrectionDraftSave'
- /correction/draft_get@v1:
- get:
- summary: 读取更正草稿
- description: 无草稿 ⇒ 成功+空对象(不报 404/不报业务码)。
- operationId: correction_draft_get
- tags:
- - 计费与对账
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/correction/code'
- x-action:
- $ref: '#/components/x-actions/view/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: []
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCorrectionDraftGet'
- /ticket/list@v1:
- post:
- summary: 工单列表查询
- description: 跨 6 类工单统一分页;行集=判权谓词+可见范围五档+数据权限;排序=是否已超期→优先级→提醒时限。出参每行带 row_version
- 与可执行动作集合(服务端计算,前端不自拼)。主要失败:网关 11104(缺权限)。
- operationId: ticket_list
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 工单列表查询请求参数
- properties:
- ticket_types:
- type: array
- description: 工单类型(英文码):开户、服务开通、到期停机、服务停用、故障处理、售后处理;缺省=全部。兼容单数写法
- `ticket_type`(传单字符串或逗号分隔串同样生效)
- items:
- type: string
- title: ticket_types元素
- title: 工单类型清单
- statuses:
- type: array
- description: 工单状态(未分派/待处理/处理中/已满足闭环/待回执/已办结);缺省=全部。兼容单数写法
- `status`(传单字符串或逗号分隔串同样生效)
- items:
- type: string
- title: statuses元素
- title: statuses
- sources:
- type: array
- description: 来源:self/cust_svc/ops/system;缺省=全部。兼容单数写法
- `source`(传单字符串或逗号分隔串同样生效)
- items:
- type: string
- title: sources元素
- title: sources
- date_from:
- type: string
- description: 建单日期起(YYYY-MM-DD)
- title: date from
- date_to:
- type: string
- description: 建单日期止(YYYY-MM-DD)
- title: date to
- keyword:
- type: string
- description: 关键字:标题/客户名/工单号/关联单号/网络账号/工单
- ID(雪花主键,纯数字关键字按整值精确命中——即审计日志「对象」列那串数字;不做前缀/模糊匹配,避免 1~4 位数字命中全表;不含报文原文)
- title: 关键字
- subscription_id:
- type: string
- description: 订单(订阅)过滤:只回本订单的工单(订单详情「关联工单」现查,P3-D6)。空串=不过滤
- title: 订阅 ID
- contract_id:
- type: string
- description: >-
- 合同过滤:命中主订阅合同、并单成员订阅、续签来源合同(renew_from_contract_id) 与续签结果合同(renew_contract_id)。合同下既无订阅也无续签关联时回空集(不退化成不过滤)。空串=不过滤
- title: 合同 ID
- customer_id:
- type: string
- description: 客户过滤:只回本客户的工单。空串=不过滤
- title: 客户 ID
- assignee:
- type: string
- description: 责任人过滤:只接受 `me`(服务端按会话解析成当前登录账号,与可见性谓词逐段取交);供「我的待办」把可见行集收窄到本人名下。
- 接受任意 user_id(按他人过滤不开放),其它取值回 11103。空串=不过滤
- title: assignee
- include_status_totals:
- type: boolean
- description: true=附带可见范围内各 status 张数(`data.status_totals`);不受本请求
- statuses/类型/关键字/日期筛影响。台账 Tab 角标用,改前=逐状态 page_size=1 连打
- title: include status totals
- page:
- type: integer
- description: 页码,从 1 起(越界收敛,不报错)
- title: 页码
- page_size:
- type: integer
- description: 每页条数,1–100,缺省 10
- title: 每页条数
- title: 工单列表查询请求数据
- required:
- - data
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketList'
- /ticket/detail@v1:
- get:
- summary: 工单详情查询
- description: >-
- 查询工单详情。 返回工单头、处理时间线,以及按类型展开的子域(回填、分账号、开停记录、竣工、报文、故障、材料)。
- 另含只读块 `construction_guide`(套餐、带宽、席位、份数与境外 IP 权益等施工指引)。
- operationId: ticket_detail
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/detail/code'
- x-version: v1
- x-permission-visibility: catalog
- parameters:
- - name: ticket_id
- in: query
- required: false
- description: 工单标识(内部主键)。注意:与 ticket_no 二者至少给一个,都给以本参数为准
- schema:
- type: string
- - name: ticket_no
- in: query
- required: false
- description: 业务工单号(形如 T-20261114-5968)。客户门户不暴露内部主键,列表只回 ticket_no,
- 故详情口按本参数定位;反查在可见性谓词之内执行,查无与越权同回 60005 (与按主键查无同一口径,不说破「存在但你不能看」)
- schema:
- type: string
- - name: read_event
- in: query
- required: false
- description: 阅读推进开关:true 时才尝试待处理→处理中
- schema:
- type: string
- x-error-codes: [11103, 60005]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketDetail'
- /ticket/pending_queue@v1:
- post:
- summary: 待分派队列查询
- description: 运维主管/运维组负责人的分派工作台数据源;权限键与工单列表分列,不复用。行集=可见范围内未分派+待处理(注意:待处理入列理由待裁定,18册 )。
- operationId: ticket_pending_queue
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/pending_queue/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 待分派队列查询请求参数
- properties:
- ticket_types:
- type: array
- description: 工单类型;缺省=本人团队可受理全部类型(授权范围是上限)
- items:
- type: string
- title: ticket_types元素
- title: 工单类型清单
- assign_team_id:
- type: string
- description: 目标运维团队;缺省=本人所辖团队;指定时必须是本人所辖团队
- title: 承接团队 ID
- keyword:
- type: string
- description: 关键字,含义同工单列表
- title: 关键字
- include_candidates:
- type: boolean
- description: false=只要 total/行卡片(徽标/总览/队列首屏),跳过候选人装配;缺省/true=待分派页点开指定成员时现算
- candidates[]
- title: include candidates
- page:
- type: integer
- description: 页码,从 1 起(越界收敛,不报错)
- title: 页码
- page_size:
- type: integer
- description: 每页条数,1–100,缺省 10
- title: 每页条数
- title: 待分派队列查询请求数据
- required:
- - data
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketPendingQueue'
- /ticket/todo_counts@v1:
- get:
- summary: 待办计数查询
- description: 一次返回四个角标:未分派、超期、待回填、报文待处置。不做超期明细列表(超期明细走工单列表的已超期筛选)。
- operationId: ticket_todo_counts
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/todo_counts/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11104, 60201]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketTodoCounts'
- /ticket/trace@v1:
- get:
- summary: 跨主体追溯查询
- description: 按工单号/报文单号/竣工号任一单值精确定位,返回工单+开停记录+报文+竣工回传+回执的关联链。不支持关键字模糊。主要失败:KLT-G20415(无法定位)。
- operationId: ticket_trace
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/trace/code'
- x-version: v1
- x-permission-visibility: catalog
- parameters:
- - name: ticket_no
- in: query
- required: false
- description: 恪澜通工单号
- schema:
- type: string
- - name: carrier_order_no
- in: query
- required: false
- description: 运营商单号
- schema:
- type: string
- - name: completion_no
- in: query
- required: false
- description: 竣工单号
- schema:
- type: string
- - name: ticket_id
- in: query
- required: false
- description: 工单标识
- schema:
- type: string
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketTrace'
- /message/pending@v1:
- post:
- summary: 报文待处置队列查询
- description: 运维主管/运维组负责人的报文处置工作台数据源;不返回 raw_payload 正文(D7、),只回动作/单号/归属态+归属失败原因码等已脱敏列。
- operationId: message_pending
- tags:
- - 报文人工处置
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/message/code'
- x-action:
- $ref: '#/components/x-actions/pending/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 报文待处置队列查询请求参数
- properties:
- page:
- type: integer
- description: 页码,从 1 起(越界收敛,不报错)
- title: 页码
- page_size:
- type: integer
- description: 每页条数,1–100,缺省 10
- title: 每页条数
- title: 报文待处置队列查询请求数据
- required:
- - data
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseMessagePending'
- /ticket/create@v1:
- post:
- summary: 新建工单
- description: "新建工单(六类共用入口)。 一次提交完成:在办唯一性校验 → 发号 → 建单、状态历史、建单动作、首条处理记录与初始材料。\n不得传入金额、资费、带宽购买、对账字段,也不得传入
- `status`/`assign_*`(出现即 `11103`)。\n角色与类型闸门、主要失败码见各字段说明与 `x-error-codes`。"
- operationId: ticket_create
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 新建工单请求参数
- properties:
- ticket_type:
- type: string
- description: 工单类型(6 个英文码之一:开户、服务开通、到期停机、服务停用、故障处理、售后处理)
- title: 工单类型
- customer_id:
- type: string
- description: 客户标识
- title: 客户 ID
- title:
- type: string
- description: 工单标题
- title: 标题
- detail:
- type: string
- description: 工单详情(工单描述)
- title: detail
- subscription_id:
- type: string
- description: 关联订阅标识;服务开通类可不关联。`ticket_type=service_stop` 时必填,且该订阅必须属于
- `customer_id` 那个客户、服务未到期
- title: 订阅 ID
- confirm:
- type: boolean
- description: 提交时二次确认。客户两档发起 `fault`/`after_sale` 必须 `true`;运营发起 `service_stop`
- 必须 `true`(缺省或非 `true` 报 11103,/)
- title: confirm
- materials:
- type: array
- description: 初始材料(建单即随附),最多 5 个;超限报 11103
- items:
- type: object
- properties:
- oss_key:
- type: string
- description: OSS 对象键
- file_name:
- type: string
- description: 原始文件名
- size_bytes:
- type: integer
- description: 文件字节数
- title: materials
- required:
- - ticket_type
- - customer_id
- - title
- title: 新建工单请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60001, 60108, 60804]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketCreate'
- /ticket/assign@v1:
- post:
- summary: 手动分派工单
- description: 运维主管/组负责人在待分派队列指定处理人。目标处理人必须是在职人员∧本人团队∧持有该单类型;不改已完成/已办结单;不分给自己(自接单走创建即自assign
- 路径)。主要失败:11104、KLT-G20401、KLT-G20416、KLT-G20417。
- operationId: ticket_assign
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/assign/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 手动分派工单请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- assignee_user_id:
- type: string
- description: 目标责任人标识
- title: 处理人用户 ID
- required:
- - ticket_id
- - assignee_user_id
- title: 手动分派工单请求数据
- required:
- - data
- x-error-codes: [11103, 60401, 60402]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketAssign'
- /ticket/dispatch_auto@v1:
- post:
- summary: 自动分派(整批)
- description:
- 对目标团队队列内可见的未分派单逐单按负载量最少判定:唯一最少⇒分派到人(assign_type=auto);并列最少/目标团队零人持有该类型⇒不分派,该单留队列并在结果里给出原因。不接受队列筛选条件入参。
- operationId: ticket_dispatch_auto
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/dispatch_auto/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 自动分派(整批)请求参数
- properties:
- team_id:
- type: string
- description: 目标运维团队;缺省=本人所辖团队
- title: 团队 ID
- required:
- - team_id
- title: 自动分派(整批)请求数据
- required:
- - data
- x-error-codes: [11103, 60402]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketDispatchAuto'
- /ticket/delivery_reissue@v1:
- post:
- summary: 按订阅补发交付工单
- description: |-
- 订阅已落库但无交付工单(或历史静默漏单)时,运营按 subscription_id 补发
- open/service_open/updown。仍走 open_gen(含并单/重放保护);团队不承接类型时前置拒绝。
- operationId: ticket_delivery_reissue
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/create/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- subscription_id:
- type: string
- description: 要补发交付工单的订阅标识
- title: 订阅 ID
- required:
- - subscription_id
- description: 按订阅补发交付工单请求参数
- title: 按订阅补发交付工单请求数据
- required:
- - data
- x-error-codes: [11103, 11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketDeliveryReissue'
- /ticket/delegate@v1:
- post:
- summary: 交接转派
- description: 人员交接时把名下未闭环工单批量改派给承接人;不得改派已完成单。承接人必须在职∧同团队∧持有对应工单类型;出参逐单结果,未成功单保持未分派并给原因。
- operationId: ticket_delegate
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/delegate/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 交接转派请求参数
- properties:
- ticket_id:
- type: string
- description: 被转派的工单标识
- title: 工单 ID
- trustee_user_id:
- type: string
- description: 承接人标识
- title: trustee user id
- required:
- - ticket_id
- - trustee_user_id
- title: 交接转派请求数据
- required:
- - data
- x-error-codes: [60401, 60402, 60416]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketDelegate'
- /ticket/start@v1:
- post:
- summary: 进入处理中(阅读推进)
- description: 落库入口是工单详情读事件,不是人工按钮。分支:待处理→处理中;处理中幂等成功;未分派不推进回成功;已完成/已办结报 KLT-G20401。
- operationId: ticket_start
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/start/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 进入处理中(阅读推进)请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- required:
- - ticket_id
- title: 进入处理中(阅读推进)请求数据
- required:
- - data
- x-error-codes: [60401]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketStart'
- /ticket/backfill@v1:
- post:
- summary: 回填竣工信息
- description: >-
- 开户/到期停机/服务停用/变更协议(`updown`)共用,按类型分叉必填矩阵。 一次原子提交:回填头→明细→开停记录→分账号事实→客户状态+变更历史→订阅实际开通日→处理记录; `updown`
- 另同批勾选清单(`check_item_ids`)写核对留痕。境外 IP 的 PIN/CPID 经 Keybox 加密入库, 出参不出现明文。`pin_bind_mode`:`shared`(默认,PIN
- 挂 IP 行)/`per_account`(一账号一 PIN)。 可选 `evidence_material_ids`(`kind=backfill_evidence`)。正式提交成功后删除该单草稿。
- :不再与合同/订阅交叉比对。主要失败:11103、KLT-G20404、KLT-G20417、11112。
- operationId: ticket_backfill
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/backfill/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 回填竣工信息请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- exec_conclusion:
- type: string
- description: 执行结论:success/partial/fail;partial 存行不生效
- title: exec conclusion
- conclusion_note:
- type: string
- description: 结论说明;非成功时必填(KLT-G20404)
- title: conclusion note
- actual_opened_date:
- type: string
- description: 实际开通日(YYYY-MM-DD,开户类三件套之一)
- title: actual opened date
- stop_done_date:
- type: string
- description: 停机完成日(YYYY-MM-DD,停机类三件套之一)
- title: stop done date
- builder_user_id:
- type: string
- description: 施工人(可选)
- title: builder user id
- evidence_text:
- type: string
- description: 凭证说明
- title: evidence text
- pin_bind_mode:
- type: string
- description: PIN 绑定模式;缺省 shared
- enum:
- - shared
- - per_account
- title: pin bind mode
- route_rows:
- type: array
- description: 组一+组二回填行(按分账号一行;条数比对基准=勾选开账号数)
- items:
- type: object
- properties:
- sub_account_id:
- type: string
- description: 分账号标识;未传⇒视为漏填
- network_account_name:
- type: string
- description: 网络账号名
- intranet_ip:
- type: string
- description: 内网 IP
- subnet_mask:
- type: string
- description: 子网掩码
- gateway:
- type: string
- description: 网关
- vlan:
- type: string
- description: VLAN
- vni:
- type: string
- description: VNI
- src_endpoint:
- type: string
- description: 源端
- dst_endpoint:
- type: string
- description: 目的端
- egress_pop:
- type: string
- description: 出口 POP
- down_mbps:
- type: number
- description: 下行带宽 Mbps(信息项,不参与计价)
- up_mbps:
- type: number
- description: 上行带宽 Mbps(信息项)
- open_this_time:
- type: boolean
- description: 「随本次开通」勾选位,缺省=已勾选
- title: route rows
- ip_rows:
- type: array
- description: >-
- 组三境外 IP 回填行。每行带 `action`(allocate/release)。 `per_account` 模式下每绑定账号独立 PIN(经 `sub_account_ids`)。
- items:
- type: object
- properties:
- action:
- type: string
- description: 行动作:allocate(缺省)/release;其它值 11103
- enum:
- - allocate
- - release
- egress:
- type: string
- description: 出口
- overseas_ip:
- type: string
- description: 境外 IP 地址
- ip_type:
- type: string
- description: IP 类型(fixed_ip/nat_forward)
- bandwidth_mbps:
- type: integer
- description: 带宽档位 Mbps(信息项)
- pin:
- type: string
- description: PIN(明文入参,服务端经 Keybox 加密入库,不明文落库)
- cpid:
- type: string
- description: CPID(同上)
- sub_account_ids:
- type: array
- description: 绑定分账号(per_account 时每账号须有独立 PIN)
- items:
- type: string
- title: ip rows
- check_item_ids:
- type: array
- description: 变更协议(updown)同批勾选的服务项;其它类型忽略
- items:
- type: string
- title: check_item_ids元素
- title: check item ids
- check_note:
- type: string
- description: 变更协议核对说明(可选)
- title: check note
- evidence_material_ids:
- type: array
- description: 已登记的回填凭证材料 ID(kind=backfill_evidence)
- items:
- type: string
- title: evidence_material_ids元素
- title: evidence material ids
- ext:
- type: object
- description: 扩展表单(可选);无已发布模板时忽略
- properties:
- template_id:
- type: string
- template_version:
- type: integer
- values:
- type: object
- additionalProperties: true
- title: ext
- expected_version:
- type: integer
- description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- title: 回填竣工信息请求数据
- required:
- - data
- x-error-codes: [11103, 60401, 60403, 60404, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketBackfill'
- /ticket/backfill_draft@v1:
- post:
- summary: 暂存施工回填草稿
- description: >-
- 服务端暂存回填表单(方案 A)。鉴权同正式回填; 不调 open_stop_apply、 不改工单状态、 不递增 attempt_count。PIN/CPID 仅密文入库;读详情 `backfill_draft`
- 与本口应答均不回明文。 正式 `backfill@v1` 成功后删除该单草稿。乐观锁用草稿自有 `row_version`(与正式回填锁分离)。
- operationId: ticket_backfill_draft
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/backfill_draft/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 请求参数(字段子集同 backfill,可缺省;中间态允许)
- properties:
- ticket_id:
- type: string
- description: 工单标识
- title: 工单 ID
- exec_conclusion:
- type: string
- title: exec conclusion
- description: 字段 exec_conclusion。
- conclusion_note:
- type: string
- title: conclusion note
- description: 字段 conclusion_note。
- actual_opened_date:
- type: string
- title: actual opened date
- description: 字段 actual_opened_date。
- stop_done_date:
- type: string
- title: stop done date
- description: 字段 stop_done_date。
- evidence_text:
- type: string
- title: evidence text
- description: 字段 evidence_text。
- pin_bind_mode:
- type: string
- enum:
- - shared
- - per_account
- title: pin bind mode
- description: 字段 pin_bind_mode。
- route_rows:
- type: array
- items:
- type: object
- additionalProperties: true
- title: route_rows元素
- title: route rows
- description: 字段 route_rows。
- ip_rows:
- type: array
- items:
- type: object
- additionalProperties: true
- title: ip_rows元素
- title: ip rows
- description: 字段 ip_rows。
- check_item_ids:
- type: array
- items:
- type: string
- title: check_item_ids元素
- title: check item ids
- description: 字段 check_item_ids。
- check_note:
- type: string
- title: check note
- description: 字段 check_note。
- evidence_material_ids:
- type: array
- items:
- type: string
- title: evidence_material_ids元素
- title: evidence material ids
- description: 字段 evidence_material_ids。
- ext:
- type: object
- additionalProperties: true
- title: ext
- description: 字段 ext。
- expected_version:
- type: integer
- description: 草稿 row_version;缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- title: 暂存施工回填草稿请求数据
- required:
- - data
- x-error-codes: [11103, 60401, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketBackfillDraft'
- /ticket/check_done@v1:
- post:
- summary: 服务项完成直接闭环
- description: >-
- 服务开通/故障处理/售后处理勾选服务项并直接闭环;不关联客户/订阅、不回填、不生成回传。 :`updown`(变更协议) 经本口——须走 `backfill@v1` 的「核对并回填」合并提交
- (`check_item_ids`+回填同事务),单独核对会与回填双入口死锁。主要失败:KLT-G20404、KLT-G20417。
- operationId: ticket_check_done
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/check_done/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 服务项完成直接闭环请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- item_ids:
- type: array
- description: 本次勾选完成的服务项标识;不由服务端推导
- items:
- type: string
- title: item_ids元素
- title: item ids
- note:
- type: string
- description: 说明(故障/售后必填;服务开通可不填)
- title: 备注
- expected_version:
- type: integer
- description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- title: 服务项完成直接闭环请求数据
- required:
- - data
- x-error-codes: [60401, 60404, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketCheckDone'
- /ticket/mark_done@v1:
- post:
- summary: 标记已处理(仅服务开通)
- description: 不走手选工单类型:只有未关联客户/订阅的服务开通工单可走通路 5。必填:未关联原因+说明+处理人(缺项报
- KLT-G20404)。前置:服务开通∧客户为空∧订阅为空⇒已办结。注意: ault`/`after_sale`(其余类型报 11103),推到 completed
- 后若该单是运维代建/系统生成(submitter_type != 'customer')⇒ 同批直达 settled 并补一条 confirm_close 处理记录,出参
- `status='settled'`、`auto_settled=true`、`settled_at`;客户自报的故障/售后行为不变(停在 completed 等
- `/ticket/confirm_close@v1`,客户 7 天未确认改由作业 `AUTO-CLOSE` 自动关闭)。
- operationId: ticket_mark_done
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/mark_done/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 标记已处理(仅服务开通)请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- note:
- type: string
- description: 说明(必填,含未关联原因)
- title: 备注
- expected_version:
- type: integer
- description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- - note
- title: 标记已处理(仅服务开通)请求数据
- required:
- - data
- x-error-codes: [11103, 60401, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketMarkDone'
- /ticket/close@v1:
- post:
- summary: 关闭工单
- description: 仅未分派/待处理可关闭。不得把处理中的单直接关闭(必须先撤回)。主要失败:KLT-G20401、KLT-G20417。
- operationId: ticket_close
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/close/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 关闭工单请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- reason:
- type: string
- description: 关闭原因(必填)
- title: reason
- expected_version:
- type: integer
- description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- - reason
- title: 关闭工单请求数据
- required:
- - data
- x-error-codes: [60401, 60409, 60413, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketClose'
- /ticket/withdraw@v1:
- post:
- summary: 撤回工单
- description: 撤回后状态回未分派、清空 assign_*、责任人写处理记录。不撤回已完成/已办结单。主要失败:KLT-G20401。
- operationId: ticket_withdraw
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/withdraw/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 撤回工单请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- reason:
- type: string
- description: 撤回原因(必填)
- title: reason
- required:
- - ticket_id
- - reason
- title: 撤回工单请求数据
- required:
- - data
- x-error-codes: [60401, 60409, 60414]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketWithdraw'
- /ticket/confirm_close@v1:
- post:
- summary: 确认闭环
- description: 闭环方式=回执类且已回传未回执时的人工兜底:待回执→已办结。不得在闭环方式=完成后即闭环下调用(KLT-G20415)。
- operationId: ticket_confirm_close
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/confirm_close/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 确认闭环请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- expected_version:
- type: integer
- description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- title: 确认闭环请求数据
- required:
- - data
- x-error-codes: [60401, 60414, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketConfirmClose'
- /ticket/defer@v1:
- post:
- summary: 临时延期(延后提醒)
- description:
- 两条分支:开停记录提醒(执行结论待处理)与在办未回填提醒(服务开通且未回填)。延期目标日由服务端固定为「今天+超期提醒天数」,不得入参传天数。注意:设计正文的「天数非法
- 11103」在本实现不存在(无天数入参)。主要失败:KLT-G20415。
- operationId: ticket_defer
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/defer/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 临时延期(延后提醒)请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- defer_scope:
- type: string
- description: 延期对象:open_stop(开停记录提醒)/ticket(在办未回填提醒)
- title: defer scope
- required:
- - ticket_id
- title: 临时延期(延后提醒)请求数据
- required:
- - data
- x-error-codes: [11103, 60401, 60415]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketDefer'
- /ticket/urge@v1:
- post:
- summary: 站内催办(向「卡在别人手里」的对家发催办信)
- description: |-
- 向当前等待确认的对家发送站内催办信。 仅当工单停在 `completed`、等待对家确认时可调用;消息写入站内提醒箱(`kind=ticket_urge`)。
- operationId: ticket_urge
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/urge/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 站内催办(向「卡在别人手里」的对家发催办信)请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- required:
- - ticket_id
- title: 站内催办(向「卡在别人手里」的对家发催办信)请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60424]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketUrge'
- /ticket/revert@v1:
- post:
- summary: 退回重办
- description:
- 把「已完成待确认(completed)/竣工驳回(rejected)」退回「处理中(processing)」,判权=总运营(全平台)或该单承接团队的主账号(仅本团队, 。
- 已办结(settled)与已关闭(terminated)不可退回——终态只读,改历史走人工数据变更+审计。只重开工单,不回滚服务开通状态、实际开通日与已生成的竣工记录。主要失败:KLT-G20409、KLT-G20417、KLT-G20418、11104(非总运营且非本团队主)。
- operationId: ticket_revert
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/revert/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 退回重办请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- reason:
- type: string
- description: 退回原因(必填,写入审计)
- title: reason
- expected_version:
- type: integer
- description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
- title: expected version
- required:
- - ticket_id
- - reason
- title: 退回重办请求数据
- required:
- - data
- x-error-codes: [60409, 60417, 60418]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketRevert'
- /completion/generate@v1:
- post:
- summary: 生成竣工回传文件
- description:
- 生成出参=文件元信息+可下载凭证;不同步返回文件字节流。回填未通过闸门(结论=成功∧明细齐∧比对通过)时不生成(KLT-G20401)。重复生成⇒作废旧版本、留最新并写处理记录。
- operationId: completion_generate
- tags:
- - 竣工与回执
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/completion/code'
- x-action:
- $ref: '#/components/x-actions/generate/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 生成竣工回传文件请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- required:
- - ticket_id
- title: 生成竣工回传文件请求数据
- required:
- - data
- x-error-codes: [60401, 60404, 60410, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCompletionGenerate'
- /completion/receipt@v1:
- post:
- summary: 录入运营商回执
- description:
- 先判定完成日:回填三件套齐全⇒取回填日期值;缺失⇒不取回执录入当日(KLT-G20418),须先补录。录入⇒待回执→已办结+AUTO-CLOSE;同事务写完成日与闭环方式来源=回执。主要失败:KLT-G20418、KLT-G20417。注意:该单已被
- `completion/reject@v1` 登记驳回时本接口默认拒绝(KLT-G20423 互斥);唯一出口=总运营提交
- `override_state_conflict=true`( 纠正窗口,以回执为准;非 admin 提交该参数同样落 KLT-G20423)。
- operationId: completion_receipt
- tags:
- - 竣工与回执
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/completion/code'
- x-action:
- $ref: '#/components/x-actions/receipt/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 录入运营商回执请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- completion_no:
- type: string
- description: 竣工单号;缺省取该单当前有效回传版本
- title: completion no
- external_order_no:
- type: string
- description: 运营商单号
- title: external order no
- receipt_remark:
- type: string
- description: 回执说明
- title: receipt remark
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- override_state_conflict:
- type: boolean
- description: 纠正窗口:仅
- admin、仅当该单处于竣工驳回态有效;以回执为准闭环,审计记「驳回态冲突纠正」并引用被推翻的驳回序号,不改写原驳回行。非驳回态提交本参数不产生任何效果。
- title: override state conflict
- required:
- - ticket_id
- title: 录入运营商回执请求数据
- required:
- - data
- x-error-codes: [60401, 60410, 60411, 60417, 60423]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCompletionReceipt'
- /completion/reject@v1:
- post:
- summary: 登记竣工驳回
- description: 待回执→竣工驳回( 方案 (d));理由必填(枚举 1~3 个,归一化后首位=主原因;`其他` 不得与其它项混选)+补充说明 5~500
- 字;只可驳回该单当前最新一次回传,且工单须停在待回执态;不从已办结驳回( 同闸,落 KLT-G20423)。同事务写 ticket_completion_reject + 处理记录
- `completion_reject` +
- 审计;不接受调用方传入驳回时刻(一律服务端时间)、不新发驳回号段(对外引用=ticket_id+reject_seq)。主要失败:KLT-G20421、KLT-G20422、KLT-G20423、KLT-G20417。
- operationId: completion_reject
- tags:
- - 竣工与回执
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/completion/code'
- x-action:
- $ref: '#/components/x-actions/reject/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 登记竣工驳回请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- reason_codes:
- type: array
- description: 驳回原因码,1~3 个;「其他」不得与其它项混选;服务端按枚举定义序归一化后落库
- items:
- type: string
- enum:
- - doc_mismatch
- - resource_unavailable
- - duplicate
- - out_of_scope
- - doc_missing
- - site_not_ready
- - other
- title: reason_codes元素
- minItems: 1
- maxItems: 3
- title: reason codes
- reason_text:
- type: string
- description: 补充说明,5~500 字(按字符计)
- title: reason text
- completion_no:
- type: string
- description: 期望驳回的竣工单号;与当前最新一次回传不一致 ⇒ KLT-G20421(兜住拿旧快照点按钮)
- title: completion no
- external_reject_no:
- type: string
- description: 运营商内部编号;不在门户/合伙人回显
- title: external reject no
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- required:
- - ticket_id
- - reason_codes
- - reason_text
- title: 登记竣工驳回请求数据
- required:
- - data
- x-error-codes: [60401, 60410, 60421, 60422, 60423, 60417]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseCompletionReject'
- /message/attach@v1:
- post:
- summary: 挂接并生效
- description:
- 人工侧只有「挂接并生效」一个动作(,):一次原子提交⇒报文置已生效+工单侧生效链(与人工回填同一个函数)+回填头改写为报文内容+明细清空+处理记录【运营商反馈】前缀。不得人工指定生效日期(取报文实际日期)。报文动作与工单类型不符报
- KLT-G20407(提示语逐字照抄)。主要失败:KLT-G20401、KLT-G20407、KLT-G20419、KLT-G20417。
- operationId: message_attach
- tags:
- - 报文人工处置
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/message/code'
- x-action:
- $ref: '#/components/x-actions/attach/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 挂接并生效请求参数
- properties:
- message_id:
- type: string
- description: 报文标识
- title: 消息 ID
- ticket_id:
- type: string
- description: 拟挂接的工单标识
- title: 工单 ID
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- required:
- - message_id
- - ticket_id
- title: 挂接并生效请求数据
- required:
- - data
- x-error-codes: [11104, 60401, 60407, 60419]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseMessageAttach'
- /message/void@v1:
- post:
- summary: 作废报文
- description: 置已作废+原因必填(缺原因报 11103)。不删除 raw_payload(:作废后仍可读)。主要失败:KLT-G20419。
- operationId: message_void
- tags:
- - 报文人工处置
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/message/code'
- x-action:
- $ref: '#/components/x-actions/void/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 作废报文请求参数
- properties:
- message_id:
- type: string
- description: 报文标识
- title: 消息 ID
- void_reason:
- type: string
- description: 作废原因(必填)
- title: void reason
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- required:
- - message_id
- - void_reason
- title: 作废报文请求数据
- required:
- - data
- x-error-codes: [60412, 60419]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseMessageVoid'
- /message/confirm_conflict@v1:
- post:
- summary: 冲突确认
- description: 处置方式二选一:维持当前值(仅记录不生效)/采用外部值(触发与挂接相同的生效逻辑)。主要失败:KLT-G20419。
- operationId: message_confirm_conflict
- tags:
- - 报文人工处置
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/message/code'
- x-action:
- $ref: '#/components/x-actions/confirm_conflict/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 冲突确认请求参数
- properties:
- message_id:
- type: string
- description: 报文标识
- title: 消息 ID
- disposition:
- type: string
- description: 处置方式:as_is(维持当前值)/apply_external(采用外部值并生效);缺省 as_is
- title: disposition
- note:
- type: string
- description: 处置说明
- title: 备注
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- required:
- - message_id
- title: 冲突确认请求数据
- required:
- - data
- x-error-codes: [60401, 60419]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseMessageConfirmConflict'
- /message/rematch@v1:
- post:
- summary: 改挂归属工单
- description: 改挂到另一张工单+写改挂审计;不触发生效(:生效仍走挂接口)。主要失败:KLT-G20407、KLT-G20419。
- operationId: message_rematch
- tags:
- - 报文人工处置
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/message/code'
- x-action:
- $ref: '#/components/x-actions/rematch/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 改挂归属工单请求参数
- properties:
- message_id:
- type: string
- description: 报文标识
- title: 消息 ID
- ticket_id:
- type: string
- description: 改挂目标工单标识
- title: 工单 ID
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- required:
- - message_id
- - ticket_id
- title: 改挂归属工单请求数据
- required:
- - data
- x-error-codes: [60407, 60419]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseMessageRematch'
- /ticket/material_grant@v1:
- post:
- summary: 材料上传/下载凭证
- description: 上传两段(申请凭证 → 直传 → material_attach 登记);下载一段(传 material_id 或 oss_key,服务端现签并直接回
- download_url)。一次一凭证、短时效、绑定对象键;不出批量凭证、不开通用上传口。purpose=upload 需 file_name,purpose=download 需
- material_id 或 oss_key。终态(settled/terminated)只拦上传,
- 拦下载——竣工材料事后仍可导出。不接受对象键上的任意路径。主要失败:11103、60056、KLT-G20401、KLT-G20420。
- operationId: ticket_material_grant
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/material_grant/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 材料上传/下载凭证请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- kind:
- type: string
- description:
- 材料类别:backfill_evidence(回填凭证)/handover(开通准备资料)/completion_pdf(竣工回传)/construct_material(补充过程材料)/submit_evidence(客户提交材料)。前两类中的回填凭证与竣工回传由服务端在业务事务内登记,不经
- material_attach
- title: 类型
- file_name:
- type: string
- description: 原始文件名(purpose=upload 时必填)
- title: 文件名
- purpose:
- type: string
- description: 用途:upload(上传,缺省)/download(下载)
- title: purpose
- material_id:
- type: string
- description: 材料主键(purpose=download 二选一,首选)。detail@v1 不下发对象键,列表页下载只能靠它
- title: material id
- oss_key:
- type: string
- description: OSS 对象键(purpose=download 二选一,仅限刚由 material_attach 换回的同一次交互)
- title: 对象键
- required:
- - ticket_id
- - kind
- title: 材料上传/下载凭证请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60401, 60804]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketMaterialGrant'
- /ticket/material_attach@v1:
- post:
- summary: 登记材料元信息
- description: 登记文件名+大小+上传人+时间+可下载凭证。不把上传动作记进 ticket_process_log(D2)。数量上限:工单材料 5 份、故障处理材料 5
- 份(超限报 KLT-G20420)。主要失败:KLT-G20420、60056。
- operationId: ticket_material_attach
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/material_attach/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 登记材料元信息请求参数
- properties:
- ticket_id:
- type: string
- description: 工单标识(字符串下发,服务侧转 bigint)
- title: 工单 ID
- kind:
- type: string
- description: 材料类别前缀:attachment/opening/alteration/return/other
- title: 类型
- oss_key:
- type: string
- description: OSS 对象键
- title: 对象键
- file_name:
- type: string
- description: 原始文件名
- title: 文件名
- size_bytes:
- type: integer
- description: 文件字节数
- title: size bytes
- required:
- - ticket_id
- - kind
- - oss_key
- title: 登记材料元信息请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60401]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketMaterialAttach'
- /ticket/config_get@v1:
- get:
- summary: 域配置查询(闭环方式)
- description: 出参=闭环方式当前值+版本+更新人/更新时间+生效说明;不暴露超期天数等系统参数。
- operationId: ticket_config_get
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/config_get/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketConfigGet'
- /ticket/config_update@v1:
- post:
- summary: 域配置修改(闭环方式)
- description: 仅 admin;一次原子提交⇒配置更新+历史追加+审计;不改既有工单的闭环方式。主要失败:KLT-G20417。
- operationId: ticket_config_update
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/config_update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- description: 统一信封请求体,业务字段放在 data 内
- properties:
- data:
- type: object
- description: 域配置修改(闭环方式)请求参数
- properties:
- closure_mode:
- type: string
- description: 闭环方式:receipt(回执闭环)/on_complete(完成后即闭环)
- title: closure mode
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- reason:
- type: string
- description: 变更原因
- title: reason
- required:
- - closure_mode
- title: 域配置修改(闭环方式)请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketConfigUpdate'
- /ticket/form_template_get@v1:
- get:
- summary: 施工回填扩展模板查询
- description: 运营侧可读;可选 ticket_type。回当前 published、draft(若有)、版本列表。权限档对齐 config_get。
- operationId: ticket_form_template_get
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/config_get/code'
- x-version: v1
- x-permission-visibility: catalog
- parameters:
- - name: ticket_type
- in: query
- required: false
- schema:
- type: string
- description: open/updown/expiry_stop/service_stop;缺省=四类全量
- x-error-codes: [11103, 11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketFormTemplateGet'
- /ticket/form_template_save@v1:
- post:
- summary: 施工回填扩展模板保存草稿
- description: 仅 admin;每类型至多一个 draft;schema 非法 ⇒ KLT-G20425;并发 ⇒ KLT-S407。权限档对齐 config_update。
- operationId: ticket_form_template_save
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/config_update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- ticket_type:
- type: string
- title: 工单类型
- description: 工单类型。
- schema:
- type: object
- title: schema
- description: 字段 schema。
- expect_version:
- type: integer
- title: 期望版本
- description: 字段 expect_version。
- template_id:
- type: string
- title: template id
- description: 字段 template_id。
- required:
- - ticket_type
- - schema
- description: 施工回填扩展模板保存草稿请求参数
- title: 施工回填扩展模板保存草稿请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60001, 60425]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketFormTemplateSave'
- /ticket/form_template_publish@v1:
- post:
- summary: 施工回填扩展模板发布
- description: 仅 admin;旧 published→retired;新增/改 required 须 ack_required_change;失败
- KLT-G20425/KLT-S407。权限档对齐 config_update。
- operationId: ticket_form_template_publish
- tags:
- - 工单与开停交付
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/ticket/code'
- x-action:
- $ref: '#/components/x-actions/config_update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- ticket_type:
- type: string
- title: 工单类型
- description: 工单类型。
- template_id:
- type: string
- title: template id
- description: 字段 template_id。
- expect_version:
- type: integer
- title: 期望版本
- description: 字段 expect_version。
- ack_required_change:
- type: boolean
- title: ack required change
- description: 字段 ack_required_change。
- required:
- - ticket_type
- description: 施工回填扩展模板发布请求参数
- title: 施工回填扩展模板发布请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60001, 60425]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseTicketFormTemplatePublish'
- /contract/renewal_config@v1:
- get:
- summary: 合同续签提醒配置查询(GET)
- description: 与 POST 同义;补齐 GET 路由声明,供网关与直连读取。
- operationId: contract_renewal_config_get
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/renewal_config/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractRenewalConfigGet'
- post:
- summary: 合同续签提醒配置查询
- description: |-
- 续签提前天数(1..180,默认 7)与续签工单生成方式(manual 人工/auto 自动);运营侧三类身份可读。
- 网关对 klt-bos 一律 POST(与其它合同口同形);响应含 notice_days/generate_mode/row_version。
- operationId: contract_renewal_config
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/renewal_config/code'
- x-version: v1
- x-permission-visibility: catalog
- x-error-codes: [11104]
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data(本口无必填业务字段,传空对象即可)
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- description: 合同续签提醒配置查询请求参数
- title: 合同续签提醒配置查询请求数据
- required:
- - data
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractRenewalConfig'
- /contract/renewal_config_update@v1:
- post:
- summary: 合同续签提醒配置修改
- description: 仅 admin;改提前天数与生成方式,写审计、即刻生效。同值不写库;并发版本不符回 KLT-S407。
- operationId: contract_renewal_config_update
- tags:
- - 合同
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/contract/code'
- x-action:
- $ref: '#/components/x-actions/renewal_config_update/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- notice_days:
- type: integer
- description: 提前提醒天数(1..180,默认 7)
- title: notice days
- generate_mode:
- type: string
- description: 生成方式:manual(人工,先发站内提醒)/auto(自动生成续签工单)
- enum:
- - manual
- - auto
- title: generate mode
- expect_version:
- type: integer
- description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
- title: 期望版本
- reason:
- type: string
- description: 变更原因
- title: reason
- required:
- - notice_days
- - generate_mode
- description: 合同续签提醒配置修改请求参数
- title: 合同续签提醒配置修改请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60001]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseContractRenewalConfigUpdate'
- /inbox/list@v1:
- post:
- summary: 本人站内提醒箱
- description: 未读优先、按时间倒序分页;仅回当前账号本人的消息(来源不可越权)。
- operationId: inbox_list
- tags:
- - 站内提醒箱
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/inbox/code'
- x-action:
- $ref: '#/components/x-actions/list/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: false
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- unread_only:
- type: boolean
- description: 只看未读
- title: unread only
- page:
- type: integer
- description: 页码(1 起)
- title: 页码
- page_size:
- type: integer
- description: 每页条数(1..100)
- title: 每页条数
- description: 本人站内提醒箱请求参数
- title: 本人站内提醒箱请求数据
- x-error-codes: [11104]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseInboxList'
- /inbox/read@v1:
- post:
- summary: 标记站内提醒已读
- description: 只能标记本人消息;已读时间只写首次。
- operationId: inbox_read
- tags:
- - 站内提醒箱
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/inbox/code'
- x-action:
- $ref: '#/components/x-actions/read/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- message_id:
- type: string
- description: 消息 ID(数字串)
- title: 消息 ID
- required:
- - message_id
- description: 标记站内提醒已读请求参数
- title: 标记站内提醒已读请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60401]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseInboxRead'
- /inbox/renewal_candidates@v1:
- post:
- summary: 续签工单可指派人员
- description: 提醒所属客户当期运维团队内、可接 renewal 类型且负责范围覆盖该客户的成员。
- operationId: inbox_renewal_candidates
- tags:
- - 站内提醒箱
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/inbox/code'
- x-action:
- $ref: '#/components/x-actions/renewal_candidates/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- message_id:
- type: string
- description: 消息 ID(数字串)
- title: 消息 ID
- required:
- - message_id
- description: 续签工单可指派人员请求参数
- title: 续签工单可指派人员请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60401]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseInboxRenewalCandidates'
- /inbox/renewal_ticket@v1:
- post:
- summary: 读信人生成续签工单并指派
- description: 从站内续签提醒一键生成 renewal 工单并分派;同一合同只出一张(已有则复用并改派),生成后同合同提醒全部置为已处理。
- operationId: inbox_renewal_ticket
- tags:
- - 站内提醒箱
- x-require-auth: true
- x-resource-type:
- $ref: '#/components/x-resource-types/inbox/code'
- x-action:
- $ref: '#/components/x-actions/renewal_ticket/code'
- x-version: v1
- x-permission-visibility: catalog
- requestBody:
- required: true
- description: JSON 请求体,业务字段置于 data
- content:
- application/json:
- schema:
- type: object
- properties:
- data:
- type: object
- properties:
- message_id:
- type: string
- description: 提醒消息 ID(数字串)
- title: 消息 ID
- assignee_user_id:
- type: string
- description: 承接续签工单的运营人员账号 ID(须在客户当期团队、可接 renewal、负责范围覆盖客户)
- title: 处理人用户 ID
- required:
- - message_id
- - assignee_user_id
- description: 读信人生成续签工单并指派请求参数
- title: 读信人生成续签工单并指派请求数据
- required:
- - data
- x-error-codes: [11103, 11104, 60001, 60401]
- responses:
- '200':
- description: 成功时 code=10000;失败时查看 code/message/error_code。
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ApiResponseInboxRenewalTicket'
- components:
- x-resource-types:
- health:
- code: 'bos.health'
- ping:
- code: 'bos.ping'
- auth:
- code: 'bos.auth'
- region:
- code: 'bos.region'
- account:
- code: 'bos.account'
- ent_team:
- code: 'bos.ent_team'
- ops_team:
- code: 'bos.ops_team'
- audit:
- code: 'bos.audit'
- activation:
- code: 'bos.activation'
- operator:
- code: 'bos.operator'
- operator_recon_account:
- code: 'bos.operator.recon_account'
- partner:
- code: 'bos.partner'
- partner_scope:
- code: 'bos.partner.scope'
- ent_team_scope:
- code: 'bos.ent_team.scope'
- ops_team_scope:
- code: 'bos.ops_team.scope'
- ops_member_scope:
- code: 'bos.ops_member.scope'
- ops_team_dispatch_mode:
- code: 'bos.ops_team.dispatch_mode'
- ops_team_coverage:
- code: 'bos.ops_team.coverage'
- customer:
- code: 'bos.customer'
- customer_attribution:
- code: 'bos.customer.attribution'
- import_batch:
- code: 'bos.import_batch'
- sub_account:
- code: 'bos.sub_account'
- delivery:
- code: 'bos.delivery'
- catalog:
- code: 'bos.catalog'
- plan_cost_item:
- code: 'bos.plan_cost_item'
- contract:
- code: 'bos.contract'
- contract_attachment:
- code: 'bos.contract_attachment'
- subscription:
- code: 'bos.subscription'
- cost_item:
- code: 'bos.cost_item'
- cost_amount:
- code: 'bos.cost_amount'
- share_rule:
- code: 'bos.share_rule'
- opsview:
- code: 'bos.opsview'
- jobs:
- code: 'bos.jobs'
- billing_config:
- code: 'bos.billing_config'
- recon:
- code: 'bos.recon'
- bill:
- code: 'bos.bill'
- correction:
- code: 'bos.correction'
- ticket:
- code: 'bos.ticket'
- completion:
- code: 'bos.completion'
- message:
- code: 'bos.message'
- inbox:
- code: 'bos.inbox'
- view:
- code: 'bos.view'
- portal:
- code: 'bos.portal'
- x-actions:
- view:
- code: 'view'
- create:
- code: 'create'
- update:
- code: 'update'
- delete:
- code: 'delete'
- list:
- code: 'list'
- manage:
- code: 'manage'
- export:
- code: 'export'
- import:
- code: 'import'
- detail:
- code: 'detail'
- pending_queue:
- code: 'pending_queue'
- todo_counts:
- code: 'todo_counts'
- trace:
- code: 'trace'
- pending:
- code: 'pending'
- assign:
- code: 'assign'
- dispatch_auto:
- code: 'dispatch_auto'
- delegate:
- code: 'delegate'
- start:
- code: 'start'
- backfill:
- code: 'backfill'
- backfill_draft:
- code: 'backfill_draft'
- check_done:
- code: 'check_done'
- mark_done:
- code: 'mark_done'
- close:
- code: 'close'
- withdraw:
- code: 'withdraw'
- confirm_close:
- code: 'confirm_close'
- defer:
- code: 'defer'
- revert:
- code: 'revert'
- generate:
- code: 'generate'
- receipt:
- code: 'receipt'
- reject:
- code: 'reject'
- attach:
- code: 'attach'
- void:
- code: 'void'
- confirm_conflict:
- code: 'confirm_conflict'
- rematch:
- code: 'rematch'
- urge:
- code: 'urge'
- material_grant:
- code: 'material_grant'
- material_attach:
- code: 'material_attach'
- config_get:
- code: 'config_get'
- config_update:
- code: 'config_update'
- form_template_get:
- code: 'form_template_get'
- form_template_save:
- code: 'form_template_save'
- form_template_publish:
- code: 'form_template_publish'
- renewal_config:
- code: 'renewal_config'
- renewal_config_update:
- code: 'renewal_config_update'
- read:
- code: 'read'
- renewal_candidates:
- code: 'renewal_candidates'
- renewal_ticket:
- code: 'renewal_ticket'
- delivery_reissue:
- code: 'delivery_reissue'
- partner_recon:
- code: 'partner_recon'
- plan_board:
- code: 'plan_board'
- schemas:
- PortalPlanBoardRow:
- type: object
- description: |-
- 客户门户套餐看板一行:档位名、合同编号/总额、冻结方式、线路出口、起止日与状态。不含金额账目列、工单与操作位。
- properties:
- subscription_id:
- type: string
- description: 订阅 ID(详情入口预留)
- title: 订阅 ID
- plan_name:
- type: string
- description: 档位名(订阅快照)
- title: 档位名称
- contract_id:
- type: string
- nullable: true
- title: 合同 ID
- description: 合同 ID。
- contract_no:
- type: string
- nullable: true
- description: 合同编号;合同缺失时前端显示「—」
- title: 合同编号
- contract_amount_cents:
- type: integer
- nullable: true
- description: 合同总额(分);缺失时前端显示「—」
- title: contract amount cents
- sub_mode:
- type: string
- nullable: true
- description: 冻结方式原码(upgrade/stackable/customized)
- title: sub mode
- line_exits:
- type: array
- nullable: true
- description: 随合同冻结的线路出口集合;空集时前端显示「—」
- items:
- type: string
- title: line_exits元素
- title: line exits
- start_date:
- type: string
- nullable: true
- description: 列 6 起
- title: 开始日
- end_date:
- type: string
- nullable: true
- description: 列 6 止
- title: 结束日
- status:
- type: object
- description: 列 7=读侧三态结论
- properties:
- key:
- type: string
- enum:
- - active
- - pending
- - expired
- - cancelled
- - replaced
- label:
- type: string
- title: 状态
- required:
- - subscription_id
- - plan_name
- - status
- title: PortalPlanBoardRow
- ApiEnvelope:
- type: object
- title: 统一响应信封
- description: HTTP 状态码统一为 200;业务结果看 code/message/data。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-*;成功时不下发。
- nullable: true
- data:
- title: 业务数据
- description: 成功时的业务载荷;具体形状由各接口 ApiResponse* 收窄。
- nullable: true
- PageQuery:
- type: object
- description: 分页查询(0 基)
- properties:
- page:
- type: integer
- description: 页码(0 基索引,默认 0)
- minimum: 0
- default: 0
- title: 页码
- page_size:
- type: integer
- description: 每页条数(默认 20,上限 200)
- minimum: 1
- maximum: 200
- default: 20
- title: 每页条数
- keyword:
- type: string
- description: 关键字筛选(可选)
- title: 关键字
- title: PageQuery
- PagedMeta:
- type: object
- description: 分页元数据(0 基)
- properties:
- total:
- type: integer
- description: 总条数
- title: 总条数
- page:
- type: integer
- description: 页码(0 基)
- title: 页码
- page_size:
- type: integer
- description: 每页条数
- title: 每页条数
- required:
- - total
- - page
- - page_size
- title: PagedMeta
- AccountChangePasswordResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- pwd_set_at_updated:
- type: boolean
- description: 本地 `bos_account_ext.pwd_set_at` 是否落库(平台已改成功时可能为 false,服务端会记日志)。
- title: pwd set at updated
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - user_id
- - pwd_set_at_updated
- - audit_written
- description: AccountChangePasswordResult 业务数据
- title: AccountChangePasswordResult
- AccountListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/AccountListRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: AccountListResult 业务数据
- title: AccountListResult
- AccountListRow:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- username:
- type: string
- title: 登录名
- description: 登录名。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- role_code:
- type: string
- title: 角色码
- description: 角色码。
- subject_type:
- type: string
- description: 绑定主体类型:customer/ent_team/ops_team/partner/operator/sub_account/platform
- title: 主体类型
- subject_id:
- type: string
- title: 主体 ID
- description: 主体 ID。
- account_kind:
- type: string
- description: 账号标记:entry=入口账号,sub=分账号,primary=主账号(后端由 entry_only+role_code 派生)。
- title: 账号标记
- status:
- type: string
- description: 账号启停态(`bos_user_binding.status`):active/disabled。
- title: 状态
- activation_status:
- type: string
- nullable: true
- description: 激活态(`bos_account_ext.status`):none/issuing/issued/activated,与 `status` 正交。
- title: 激活态
- delivered_at:
- type: string
- nullable: true
- description: 激活码交付时间(`delivered_at`)。
- title: 交付时间
- activated_at:
- type: string
- nullable: true
- description: 激活时间(`activated_at`)。
- title: 激活时间
- pwd_set_at:
- type: string
- nullable: true
- description: 设密时间(`pwd_set_at`);`null`=尚未首次改密。
- title: 设密时间
- expire_date:
- type: string
- nullable: true
- description: 激活码有效截止日(`expire_date`,DATE)。
- title: 到期日
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- required:
- - user_id
- - display_name
- - username
- - mobile
- - role_code
- - subject_type
- - subject_id
- - account_kind
- - status
- - activation_status
- - delivered_at
- - activated_at
- - pwd_set_at
- - expire_date
- - created_at
- description: AccountListRow 业务数据
- title: AccountListRow
- AccountNotifyEmailResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- has_email:
- type: boolean
- title: has email
- description: 字段 has_email。
- address_hint:
- type: string
- nullable: true
- title: address hint
- description: 字段 address_hint。
- address_source:
- type: string
- title: address source
- description: 字段 address_source。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - user_id
- - has_email
- - address_hint
- - address_source
- - audit_written
- description: AccountNotifyEmailResult 业务数据
- title: AccountNotifyEmailResult
- AccountNotifyEmailSetResult:
- $ref: '#/components/schemas/AccountNotifyEmailResult'
- AccountNotifyPrefResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- inapp:
- $ref: '#/components/schemas/NotifyChannelPref'
- mail:
- type: string
- description: "类型:NotifyChannelPref & { address_source: \"account\" | \"operator_profile\" |"
- title: mail
- sms:
- $ref: '#/components/schemas/NotifyChannelPref'
- items:
- type: array
- items:
- type: string
- description: '类型:{ channel: NotifyChannel } & NotifyChannelPref'
- title: 列表项元素
- title: 列表项
- description: 列表项。
- required:
- - user_id
- - inapp
- - mail
- - sms
- - items
- description: AccountNotifyPrefResult 业务数据
- title: AccountNotifyPrefResult
- AccountNotifyPrefSaveResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- inapp_enabled:
- type: string
- description: 类型:true
- title: inapp enabled
- mail_enabled:
- type: boolean
- title: mail enabled
- description: 字段 mail_enabled。
- sms_enabled:
- type: boolean
- title: sms enabled
- description: 字段 sms_enabled。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - user_id
- - inapp_enabled
- - mail_enabled
- - sms_enabled
- - audit_written
- description: AccountNotifyPrefSaveResult 业务数据
- title: AccountNotifyPrefSaveResult
- AccountOut:
- type: object
- properties:
- created:
- type: boolean
- title: 是否已创建
- description: 是否已创建。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- user_id:
- type: string
- nullable: true
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- role_code:
- type: string
- nullable: true
- title: 角色码
- description: 角色码。
- platform_role_note:
- type: string
- nullable: true
- description: 业务角色只落本地 `bos_user_binding.role_code`,平台侧 角色授予入参
- title: platform role note
- must_change_password:
- type: boolean
- nullable: true
- title: 是否须改密
- description: 是否须改密。
- initial_password:
- type: string
- nullable: true
- title: initial password
- description: 字段 initial_password。
- credential_note:
- type: string
- nullable: true
- title: credential note
- description: 字段 credential_note。
- credential_viewable:
- type: boolean
- nullable: true
- title: credential viewable
- description: 字段 credential_viewable。
- required:
- - created
- description: 平台建号回执 [实]
- title: AccountOut
- AccountProfileUpdateResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- display_name:
- type: string
- nullable: true
- description: 落库后的自填姓名;`null`=已清除自填(页面回落到档案派生名)。
- title: 显示名
- has_own_name:
- type: boolean
- title: has own name
- description: 字段 has_own_name。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - user_id
- - display_name
- - has_own_name
- - audit_written
- description: AccountProfileUpdateResult 业务数据
- title: AccountProfileUpdateResult
- AccountProvisionResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- status:
- type: string
- title: 状态
- description: 状态。
- activation_code:
- type: string
- nullable: true
- description: 激活码仅开通当次返回(若走导出通道则可能为空)
- title: activation code
- plaintext_once:
- type: string
- nullable: true
- title: 明文一次性
- description: 明文一次性。
- expire_date:
- type: string
- nullable: true
- description: 有效截止日(`yyyy-MM-dd`);与 `code_expire_date` 同义双名。
- title: 到期日
- code_expire_date:
- type: string
- nullable: true
- title: code expire date
- description: 字段 code_expire_date。
- required:
- - user_id
- - status
- description: AccountProvisionResult 业务数据
- title: AccountProvisionResult
- AccountResetCodeResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- status:
- type: string
- title: 状态
- description: 状态。
- plaintext_once:
- type: string
- nullable: true
- title: 明文一次性
- description: 明文一次性。
- reissued:
- type: boolean
- nullable: true
- title: 换新条数
- description: 换新条数。
- capability_pending:
- type: boolean
- nullable: true
- title: capability pending
- description: 字段 capability_pending。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- code_id:
- oneOf:
- - type: string
- - type: number
- nullable: true
- description: 平台引导凭证标识(原样转发)。
- title: code id
- code_expire_date:
- type: string
- nullable: true
- description: 本次交付码的有效截止日(取平台 `expires_at` 的日期部分,`yyyy-MM-dd`)。
- title: code expire date
- expire_date:
- type: string
- nullable: true
- description: 与 `code_expire_date` 同义别名(部分回执路径用此键)。
- title: 到期日
- platform:
- type: object
- properties:
- reissued:
- type: number
- nullable: true
- kept:
- type: number
- nullable: true
- validity:
- type: string
- nullable: true
- nullable: true
- description: 平台计数原样回显:`reissued`=作废并换新条数、`kept`=保留未消费原码条数。
- title: platform
- note:
- type: string
- nullable: true
- description: 服务端对「回码」的口径说明(`reissued=false`=同一码重发, 说成已换新)。
- title: 备注
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - user_id
- - status
- description: AccountResetCodeResult 业务数据
- title: AccountResetCodeResult
- AccountStatusResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- status:
- type: string
- title: 状态
- description: 状态。
- required:
- - user_id
- - status
- description: AccountStatusResult 业务数据
- title: AccountStatusResult
- AccountUnbindResult:
- type: object
- description: 账号解绑结果
- properties:
- user_id:
- type: string
- description: 账号用户 ID
- title: 用户 ID
- unbound:
- type: boolean
- description: 是否已解绑
- title: 是否已解绑
- required:
- - user_id
- - unbound
- title: AccountUnbindResult
- ActivationPrecheckResult:
- type: object
- properties:
- login_name:
- type: string
- title: login name
- description: 字段 login_name。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- activation_status:
- type: string
- nullable: true
- title: 激活态
- description: 激活态。
- expire_date:
- type: string
- nullable: true
- title: 到期日
- description: 到期日。
- can_activate:
- type: boolean
- title: can activate
- description: 字段 can_activate。
- required:
- - login_name
- - user_id
- - activation_status
- - expire_date
- - can_activate
- description: '`POST /activation/precheck@v1`'
- title: ActivationPrecheckResult
- ActivationVerifyResult:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- password_set:
- type: boolean
- title: password set
- description: 字段 password_set。
- must_change_password:
- type: boolean
- nullable: true
- title: 是否须改密
- description: 是否须改密。
- required:
- - user_id
- - password_set
- description: ActivationVerifyResult 业务数据
- title: ActivationVerifyResult
- AssignCandidate:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- pending_count:
- type: integer
- description: 该候选人手头未完成单量(自动分派按此最少先挑)
- title: 待处理数
- source:
- type: string
- enum:
- - member
- - ops_account
- nullable: true
- description: '* 候选来源:`ops_account`=运营主/子账号(不是运维团队成员, * 按「客户在其负责范围内」入池),缺省=运维团队成员。承接后的可用动作不同
- * (运营账号没有成员档案),故页面必须标出来。'
- title: 来源
- required:
- - user_id
- - username
- - display_name
- - pending_count
- description: 可分派候选人(`pending_queue` 行内 `candidates[]`, 前端再拼一份人名单)。
- title: AssignCandidate
- AssignResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- assignee_user_id:
- type: string
- title: 处理人用户 ID
- description: 处理人用户 ID。
- assignee_snapshot_name:
- type: string
- title: assignee snapshot name
- description: 字段 assignee_snapshot_name。
- status:
- $ref: '#/components/schemas/TicketStatus'
- required:
- - ticket_id
- - assignee_user_id
- - assignee_snapshot_name
- - status
- description: AssignResult 业务数据
- title: AssignResult
- AuditExportResult:
- type: object
- properties:
- file_name:
- type: string
- title: 文件名
- description: 文件名。
- oss_key:
- type: string
- title: 对象键
- description: 对象键。
- row_count:
- type: integer
- title: row count
- description: 字段 row_count。
- limit:
- type: number
- title: limit
- description: 字段 limit。
- truncated:
- type: boolean
- title: 是否截断
- description: 是否截断。
- required:
- - file_name
- - oss_key
- - row_count
- - limit
- - truncated
- description: AuditExportResult 业务数据
- title: AuditExportResult
- AuditItem:
- type: object
- properties:
- occurred_at:
- type: string
- nullable: true
- title: occurred at
- description: 字段 occurred_at。
- actor:
- type: object
- properties:
- user_id:
- type: string
- username:
- type: string
- nullable: true
- required:
- - user_id
- - username
- title: actor
- description: 字段 actor。
- action:
- type: string
- title: 动作
- description: 动作。
- object:
- type: object
- properties:
- type:
- type: string
- id:
- type: string
- display:
- type: string
- nullable: true
- required:
- - type
- - id
- description: '`display`=契约的对象名快照( 写侧接通前恒缺省;页面按回落链取值, 拿当前名顶替)。'
- title: object
- before:
- title: before
- description: 字段 before。
- after:
- title: after
- description: 字段 after。
- detail:
- nullable: true
- description: '`detail_json`:部分写侧只写明细(结果条数/validity/范围账号数),前后值区全空时由页面以「明细」呈现。'
- title: detail
- cursor:
- type: string
- title: 游标
- description: 游标。
- required:
- - occurred_at
- - actor
- - action
- - object
- - before
- - after
- - cursor
- description: AuditItem 业务数据
- title: AuditItem
- AuthContext:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- title: 登录名
- description: 登录名。
- role_code:
- $ref: '#/components/schemas/RoleCode'
- subject_type:
- $ref: '#/components/schemas/SubjectType'
- subject_id:
- type: string
- nullable: true
- title: 主体 ID
- description: 主体 ID。
- entry_only:
- type: boolean
- description: '平台对账等仅入口账号标记'
- title: 是否入口账号
- scope_mode:
- type: string
- nullable: true
- description: '可见形态:all/regions/teams/customers/self(与 scope.kind 同源,后端应收敛为 scope)'
- title: 可见形态
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- display_name_source:
- type: string
- nullable: true
- description: '姓名来源:account=本人自填(个人资料页);archive=主体档案派生。'
- title: 显示名来源
- subject_name:
- type: string
- nullable: true
- description: 主体名称:区域名 / 团队名 / 客户名 / 合伙人名 / 运营商名
- title: 主体名称
- customer_id:
- type: string
- nullable: true
- description: '* 本位客户主体号 (下发):客户主账号=自身主体号; * 客户分账号=所属客户(`sub_account.customer_id`);其余主体 `null`。
- * 分账号的 `subject_id` 是分账号自身编号, 拿它当客户号去调客户读口。'
- title: 客户 ID
- mobile_hint:
- type: string
- nullable: true
- description: 绑定手机号摘要(已掩码, 全量);`null`=未绑定。
- title: 手机号摘要
- scope:
- $ref: '#/components/schemas/ScopeView'
- acct_status:
- type: string
- enum:
- - normal
- - unactivated
- - expired
- - disabled
- description: 账号状态:normal 正常 / unactivated 未激活 / expired 已过期 / disabled 已停用
- title: 账号状态
- pwd_set_at:
- type: string
- nullable: true
- description: 设密时间;`null`=尚未设密。
- title: 设密时间
- activated_at:
- type: string
- nullable: true
- description: 开通时间(激活码被消费的时间)。
- title: 激活时间
- expire_date:
- type: string
- nullable: true
- description: 激活码有效截止日。
- title: 到期日
- must_change_password:
- type: boolean
- title: 是否须改密
- description: 是否须改密。
- permissions:
- type: array
- items:
- type: string
- title: 权限列表元素
- title: 权限列表
- description: 权限列表。
- required:
- - user_id
- - username
- - role_code
- - subject_type
- - subject_id
- - entry_only
- - scope_mode
- - display_name
- - subject_name
- - mobile_hint
- - scope
- - acct_status
- - must_change_password
- - permissions
- description: AuthContext 业务数据
- title: AuthContext
- Backfill:
- type: object
- properties:
- backfill_id:
- type: string
- nullable: true
- title: backfill id
- description: 字段 backfill_id。
- exec_conclusion:
- type: string
- nullable: true
- title: exec conclusion
- description: 字段 exec_conclusion。
- conclusion_note:
- type: string
- nullable: true
- title: conclusion note
- description: 字段 conclusion_note。
- actual_opened_date:
- type: string
- nullable: true
- title: actual opened date
- description: 字段 actual_opened_date。
- stop_done_date:
- type: string
- nullable: true
- title: stop done date
- description: 字段 stop_done_date。
- builder_user_id:
- type: string
- nullable: true
- title: builder user id
- description: 字段 builder_user_id。
- evidence_text:
- type: string
- nullable: true
- title: evidence text
- description: 字段 evidence_text。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- ip_rule_version:
- type: string
- nullable: true
- title: ip rule version
- description: 字段 ip_rule_version。
- attempt_count:
- type: string
- nullable: true
- title: attempt count
- description: 字段 attempt_count。
- detail_empty_flag:
- type: string
- nullable: true
- title: detail empty flag
- description: 字段 detail_empty_flag。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- routes:
- type: array
- items:
- $ref: '#/components/schemas/RouteRow'
- title: routes
- description: 字段 routes。
- ips:
- type: array
- items:
- $ref: '#/components/schemas/IpRow'
- title: ips
- description: 字段 ips。
- ext:
- $ref: '#/components/schemas/FormExtPayload'
- pin_bind_mode:
- type: string
- nullable: true
- description: PIN 绑定模式:shared/per_account。
- title: pin bind mode
- required:
- - exec_conclusion
- - conclusion_note
- - actual_opened_date
- - stop_done_date
- - builder_user_id
- - evidence_text
- - source
- - ip_rule_version
- - attempt_count
- - detail_empty_flag
- - row_version
- - created_at
- - routes
- - ips
- description: Backfill 业务数据
- title: Backfill
- BackfillDraft:
- type: object
- properties:
- ticket_id:
- type: string
- nullable: true
- title: 工单 ID
- description: 工单 ID。
- exec_conclusion:
- type: string
- nullable: true
- title: exec conclusion
- description: 字段 exec_conclusion。
- conclusion_note:
- type: string
- nullable: true
- title: conclusion note
- description: 字段 conclusion_note。
- actual_opened_date:
- type: string
- nullable: true
- title: actual opened date
- description: 字段 actual_opened_date。
- stop_done_date:
- type: string
- nullable: true
- title: stop done date
- description: 字段 stop_done_date。
- evidence_text:
- type: string
- nullable: true
- title: evidence text
- description: 字段 evidence_text。
- pin_bind_mode:
- type: string
- nullable: true
- title: pin bind mode
- description: 字段 pin_bind_mode。
- route_rows:
- type: array
- items:
- $ref: '#/components/schemas/BackfillInRoute'
- nullable: true
- title: route rows
- description: 字段 route_rows。
- ip_rows:
- type: array
- items:
- type: string
- description: '类型:Partial<BackfillInIp> & { pin_registered?: string; cpid_registered?: string
- }'
- title: ip_rows元素
- nullable: true
- title: ip rows
- description: 字段 ip_rows。
- ext_values:
- type: object
- additionalProperties: {}
- nullable: true
- title: ext values
- description: 字段 ext_values。
- ext_template_id:
- type: string
- nullable: true
- title: ext template id
- description: 字段 ext_template_id。
- ext_template_version:
- oneOf:
- - type: string
- - type: number
- nullable: true
- title: ext template version
- description: 字段 ext_template_version。
- evidence_material_ids:
- type: array
- items:
- type: string
- title: evidence_material_ids元素
- nullable: true
- title: evidence material ids
- description: 字段 evidence_material_ids。
- check_item_ids:
- type: array
- items:
- type: string
- title: check_item_ids元素
- nullable: true
- title: check item ids
- description: 字段 check_item_ids。
- check_note:
- type: string
- nullable: true
- title: check note
- description: 字段 check_note。
- row_version:
- oneOf:
- - type: string
- - type: number
- nullable: true
- title: 乐观锁版本
- description: 乐观锁版本。
- updated_at:
- type: string
- nullable: true
- title: 更新时间
- description: 更新时间。
- description: BackfillDraft 业务数据
- title: BackfillDraft
- BackfillInRoute:
- type: object
- properties:
- sub_account_id:
- type: string
- nullable: true
- title: sub account id
- description: 字段 sub_account_id。
- network_account_name:
- type: string
- nullable: true
- title: network account name
- description: 字段 network_account_name。
- intranet_ip:
- type: string
- nullable: true
- title: intranet ip
- description: 字段 intranet_ip。
- subnet_mask:
- type: string
- nullable: true
- title: subnet mask
- description: 字段 subnet_mask。
- gateway:
- type: string
- nullable: true
- title: gateway
- description: 字段 gateway。
- vlan:
- type: string
- nullable: true
- title: vlan
- description: 字段 vlan。
- tunnel_encap:
- type: string
- nullable: true
- title: tunnel encap
- description: 字段 tunnel_encap。
- vni:
- type: string
- nullable: true
- title: vni
- description: 字段 vni。
- src_endpoint:
- type: string
- nullable: true
- title: src endpoint
- description: 字段 src_endpoint。
- dst_endpoint:
- type: string
- nullable: true
- title: dst endpoint
- description: 字段 dst_endpoint。
- egress_pop:
- type: string
- nullable: true
- title: egress pop
- description: 字段 egress_pop。
- down_mbps:
- type: integer
- nullable: true
- title: down mbps
- description: 字段 down_mbps。
- up_mbps:
- type: integer
- nullable: true
- title: up mbps
- description: 字段 up_mbps。
- proxy_host:
- type: string
- nullable: true
- title: proxy host
- description: 字段 proxy_host。
- proxy_port:
- type: number
- nullable: true
- title: proxy port
- description: 字段 proxy_port。
- pin:
- type: string
- nullable: true
- title: pin
- description: 字段 pin。
- cpid:
- type: string
- nullable: true
- title: cpid
- description: 字段 cpid。
- require_cpid:
- type: boolean
- nullable: true
- title: require cpid
- description: 字段 require_cpid。
- share_credential_of:
- type: string
- nullable: true
- title: share credential of
- description: 字段 share_credential_of。
- open_this_time:
- type: boolean
- title: open this time
- description: 字段 open_this_time。
- required:
- - open_this_time
- description: BackfillInRoute 业务数据
- title: BackfillInRoute
- BackfillResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- backfill_id:
- type: string
- title: backfill id
- description: 字段 backfill_id。
- exec_conclusion:
- type: string
- title: exec conclusion
- description: 字段 exec_conclusion。
- route_rows:
- type: number
- title: route rows
- description: 字段 route_rows。
- ip_rows:
- type: number
- title: ip rows
- description: 字段 ip_rows。
- ip_rule_version:
- type: string
- title: ip rule version
- description: 字段 ip_rule_version。
- open_stop_id:
- type: string
- nullable: true
- title: open stop id
- description: 字段 open_stop_id。
- effective_account_count:
- type: integer
- title: effective account count
- description: 字段 effective_account_count。
- apply_facts:
- title: apply facts
- description: 字段 apply_facts。
- status:
- $ref: '#/components/schemas/TicketStatus'
- status_advanced:
- type: boolean
- title: status advanced
- description: 字段 status_advanced。
- missing_groups:
- type: array
- items:
- type: string
- title: missing_groups元素
- description: 仍缺的分组名:非空 ⇒ 已保存但未达闭环口径(页面点名, 报"保存失败")
- title: missing groups
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - ticket_id
- - backfill_id
- - exec_conclusion
- - route_rows
- - ip_rows
- - ip_rule_version
- - open_stop_id
- - effective_account_count
- - apply_facts
- - status
- - status_advanced
- - missing_groups
- - audit_written
- description: BackfillResult 业务数据
- title: BackfillResult
- BillDetailResult:
- type: object
- properties:
- bill_detail_id:
- type: string
- title: bill detail id
- description: 字段 bill_detail_id。
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- holder_type:
- $ref: '#/components/schemas/HolderType'
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- holder_name:
- type: string
- title: holder name
- description: 字段 holder_name。
- period:
- type: string
- title: 账期
- description: 字段 period。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- subscription_label:
- type: string
- title: subscription label
- description: 字段 subscription_label。
- pre_align_cents:
- type: integer
- description: ① 尾月对齐前/后两值必须同屏
- title: pre align cents
- receivable_cents:
- type: integer
- title: receivable cents
- description: 字段 receivable_cents。
- settle_std_cents:
- type: integer
- nullable: true
- description: 计费标准单价(分);应收=单价 × 份数 × 天数/月天数
- title: settle std cents
- quantity:
- type: number
- nullable: true
- description: 订阅份数(link 恒 1;addon ≥1);显式返回, 用 null 冒充「一份」
- title: quantity
- receivable_calc:
- type: string
- nullable: true
- description: 应收公式说明串(便于复核)
- title: receivable calc
- bill_from:
- type: string
- description: ② 计费区间与天数、是否不满月
- title: bill from
- bill_to:
- type: string
- title: bill to
- description: 字段 bill_to。
- billing_days:
- type: number
- title: billing days
- description: 字段 billing_days。
- month_days:
- type: number
- nullable: true
- title: month days
- description: 字段 month_days。
- partial_month:
- type: boolean
- title: partial month
- description: 字段 partial_month。
- costs:
- type: array
- items:
- type: object
- properties:
- item_name:
- type: string
- item_id:
- type: string
- nullable: true
- price_cents:
- type: number
- nullable: true
- cost_cents:
- type: number
- nullable: true
- amount_cents:
- type: number
- nullable: true
- multiplier:
- type: number
- nullable: true
- fold:
- type: number
- nullable: true
- configured:
- type: boolean
- deduct_from_base:
- type: boolean
- nullable: true
- required:
- - item_name
- - configured
- description: '* ③ 成本快照逐条(应扣口径,封顶前)。 * `cost_cents`=应扣;`price_cents`=单价;顶层 `cost_deduct_cents`=实扣合计。'
- title: costs
- cost_should_deduct_cents:
- type: integer
- nullable: true
- description: 应扣合计(面板条目求和,封顶前)
- title: cost should deduct cents
- cost_deduct_cents:
- type: integer
- nullable: true
- description: 实扣(落库;恒等式 receivable − share_base)
- title: cost deduct cents
- share_base_cents:
- type: integer
- description: ④ 分成基数;floor 到 0 ⇒ base_floor_protected=true(界面显式标下限保护)
- title: share base cents
- base_floor_protected:
- type: boolean
- title: base floor protected
- description: 字段 base_floor_protected。
- share_mode:
- type: string
- description: ⑤ 当时冻结在明细行上的分成方式与取值( 读档案现值,)
- title: share mode
- share_value:
- type: number
- title: share value
- description: 字段 share_value。
- share_amount_cents:
- type: integer
- description: ⑥ 本方分成金额+恒 0 标注+所属对账单号
- title: share amount cents
- zero_note:
- $ref: '#/components/schemas/ZeroNote'
- other_parties:
- type: array
- items:
- type: object
- properties:
- holder_type:
- $ref: '#/components/schemas/HolderType'
- holder_id:
- type: string
- holder_name:
- type: string
- share_amount_cents:
- type: number
- batch_no:
- type: string
- nullable: true
- required:
- - holder_type
- - holder_id
- - holder_name
- - share_amount_cents
- - batch_no
- nullable: true
- description: 其他分成方面板:三类只读身份的响应体不出现该字段( 值为空) ⇒ null;holder_id 供对账单号链进批次
- title: other parties
- account_days:
- type: array
- items:
- type: object
- properties:
- sub_account_label:
- type: string
- in_period_days:
- type: number
- required:
- - sub_account_label
- - in_period_days
- nullable: true
- description: ⑦ 逐账号在期天数;KLT-S406 ⇒ null 且 account_days_failed=true( 回落「无开停记录」)
- title: account days
- account_days_failed:
- type: boolean
- title: account days failed
- description: 字段 account_days_failed。
- required:
- - bill_detail_id
- - batch_no
- - holder_type
- - holder_id
- - holder_name
- - period
- - customer_name
- - subscription_label
- - pre_align_cents
- - receivable_cents
- - bill_from
- - bill_to
- - billing_days
- - partial_month
- - costs
- - share_base_cents
- - base_floor_protected
- - share_mode
- - share_value
- - share_amount_cents
- - zero_note
- - other_parties
- - account_days
- - account_days_failed
- description: BillDetailResult 业务数据
- title: BillDetailResult
- BillLineRow:
- type: object
- properties:
- bill_detail_id:
- type: string
- title: bill detail id
- description: 字段 bill_detail_id。
- holder_type:
- $ref: '#/components/schemas/HolderType'
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- holder_name:
- type: string
- title: holder name
- description: 字段 holder_name。
- period:
- type: string
- title: 账期
- description: 字段 period。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- subscription_label:
- type: string
- title: subscription label
- description: 字段 subscription_label。
- billing_days:
- type: number
- title: billing days
- description: 字段 billing_days。
- share_base_cents:
- type: integer
- title: share base cents
- description: 字段 share_base_cents。
- share_amount_cents:
- type: integer
- title: share amount cents
- description: 字段 share_amount_cents。
- batch_no:
- type: string
- description: 所属批次对账单号(恒有值,可点进 14.2; 不是出账状态)
- title: 批次号
- required:
- - bill_detail_id
- - holder_type
- - holder_id
- - holder_name
- - period
- - customer_name
- - subscription_label
- - billing_days
- - share_base_cents
- - share_amount_cents
- - batch_no
- description: BillLineRow 业务数据
- title: BillLineRow
- BillingConfigResult:
- type: object
- properties:
- default_recon_day:
- type: number
- title: default recon day
- description: 字段 default_recon_day。
- effective_mode:
- $ref: '#/components/schemas/EffectiveMode'
- row_version:
- type: integer
- title: 乐观锁版本
- description: 乐观锁版本。
- operators:
- type: array
- items:
- type: object
- properties:
- operator_id:
- type: string
- name:
- type: string
- region_label:
- type: string
- nullable: true
- recon_day:
- type: number
- nullable: true
- pay_cycle:
- type: string
- nullable: true
- brand:
- type: string
- nullable: true
- region_node_id:
- type: string
- nullable: true
- required:
- - operator_id
- - name
- - region_label
- - recon_day
- - pay_cycle
- title: 运营商数
- description: 运营商数。
- required:
- - default_recon_day
- - effective_mode
- - row_version
- - operators
- description: BillingConfigResult 业务数据
- title: BillingConfigResult
- BillingConfigUpdateResult:
- type: object
- properties:
- changed:
- type: number
- title: 是否已变更
- description: 是否已变更。
- row_version:
- type: integer
- title: 乐观锁版本
- description: 乐观锁版本。
- default_recon_day:
- type: number
- title: default recon day
- description: 字段 default_recon_day。
- effective_mode:
- $ref: '#/components/schemas/EffectiveMode'
- required:
- - changed
- - row_version
- - default_recon_day
- - effective_mode
- description: BillingConfigUpdateResult 业务数据
- title: BillingConfigUpdateResult
- BlockerItem:
- type: object
- properties:
- key:
- type: string
- title: key
- description: 字段 key。
- count:
- type: number
- nullable: true
- title: count
- description: 字段 count。
- message:
- type: string
- title: 说明
- description: 说明。
- design_code:
- type: string
- nullable: true
- description: 设计口径编号(部分域下发)
- title: design code
- required:
- - key
- - count
- - message
- description: 阻塞项 [实]
- title: BlockerItem
- CatalogCreateResult:
- type: object
- properties:
- plan_id:
- type: string
- title: 档位 ID
- description: 档位 ID。
- required:
- - plan_id
- description: CatalogCreateResult 业务数据
- title: CatalogCreateResult
- CatalogDeleteResult:
- type: object
- properties:
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- frozen:
- type: boolean
- nullable: true
- title: frozen
- description: 字段 frozen。
- referred_count:
- type: integer
- nullable: true
- title: referred count
- description: 字段 referred_count。
- blocks:
- type: object
- properties:
- subscriptions:
- type: array
- items: {}
- nullable: true
- items:
- type: array
- items: {}
- nullable: true
- nullable: true
- title: blocks
- description: 字段 blocks。
- suggest:
- type: string
- nullable: true
- title: suggest
- description: 字段 suggest。
- required:
- - deleted
- description: CatalogDeleteResult 业务数据
- title: CatalogDeleteResult
- CatalogFacetItem:
- type: object
- properties:
- value:
- type: string
- title: value
- description: 字段 value。
- label:
- type: string
- title: 标签
- description: 标签。
- count:
- type: number
- title: count
- description: 字段 count。
- required:
- - value
- - label
- - count
- description: facets 单项:`value` 是落库键(账号 ID/团队 ID),`label` 是读侧名称,`count` 是该键下档位数。
- title: CatalogFacetItem
- CatalogGetResult:
- type: object
- properties:
- plan_id:
- type: string
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- title: 档位名称
- description: 档位名称。
- plan_kind:
- type: string
- title: plan kind
- description: 字段 plan_kind。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- annual_price_cents:
- type: integer
- title: 年价(分)
- description: 年价(分)。
- sub_account_quota:
- type: number
- nullable: true
- title: sub account quota
- description: 字段 sub_account_quota。
- bandwidth_committed:
- type: boolean
- nullable: true
- title: bandwidth committed
- description: 字段 bandwidth_committed。
- bandwidth_up_mbps:
- type: integer
- nullable: true
- title: bandwidth up mbps
- description: 字段 bandwidth_up_mbps。
- bandwidth_down_mbps:
- type: integer
- nullable: true
- title: bandwidth down mbps
- description: 字段 bandwidth_down_mbps。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- status:
- type: string
- title: 状态
- description: 状态。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- plan_cost_cents:
- type: integer
- nullable: true
- title: plan cost cents
- description: 字段 plan_cost_cents。
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- plan_cost_note:
- type: string
- nullable: true
- title: plan cost note
- description: 字段 plan_cost_note。
- frozen:
- type: boolean
- nullable: true
- title: frozen
- description: 字段 frozen。
- referred_count:
- type: integer
- nullable: true
- title: referred count
- description: 字段 referred_count。
- locked_fields:
- type: array
- items:
- type: string
- title: locked_fields元素
- nullable: true
- title: locked fields
- description: 字段 locked_fields。
- editable_fields:
- type: array
- items:
- type: string
- title: editable_fields元素
- nullable: true
- title: editable fields
- description: 字段 editable_fields。
- created_by:
- type: string
- nullable: true
- title: created by
- description: 字段 created_by。
- created_by_name:
- type: string
- nullable: true
- title: created by name
- description: 字段 created_by_name。
- created_team_id:
- type: string
- nullable: true
- title: created team id
- description: 字段 created_team_id。
- created_team_name:
- type: string
- nullable: true
- title: created team name
- description: 字段 created_team_name。
- source_label:
- type: string
- nullable: true
- title: source label
- description: 字段 source_label。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- plan_desc:
- type: string
- nullable: true
- title: plan desc
- description: 字段 plan_desc。
- sort_no:
- type: number
- nullable: true
- title: sort no
- description: 字段 sort_no。
- cost_items:
- type: array
- items:
- $ref: '#/components/schemas/PlanCostItemRow'
- nullable: true
- title: cost items
- description: 字段 cost_items。
- required:
- - plan_id
- - plan_name
- - plan_kind
- - plan_family
- - annual_price_cents
- - sub_account_quota
- - bandwidth_committed
- - bandwidth_up_mbps
- - bandwidth_down_mbps
- - customer_id
- - status
- - created_at
- - row_version
- description: CatalogGetResult 业务数据
- title: CatalogGetResult
- CatalogListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/CatalogPlanRow'
- title: 列表项
- description: 列表项。
- fixed:
- type: array
- items:
- $ref: '#/components/schemas/CatalogPlanRow'
- nullable: true
- description: 同一次请求按 plan_kind 分组返回, 两次请求
- title: fixed
- custom:
- type: array
- items:
- $ref: '#/components/schemas/CatalogPlanRow'
- nullable: true
- title: custom
- description: 字段 custom。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- facets:
- type: object
- properties:
- created_team:
- type: array
- items:
- $ref: '#/components/schemas/CatalogFacetItem'
- created_by:
- type: array
- items:
- $ref: '#/components/schemas/CatalogFacetItem'
- required:
- - created_team
- - created_by
- nullable: true
- description: '* R-14 台账筛选下拉项:服务端在「base 谓词 ∧ plan_kind=custom」上聚合, * 用当前页行凑(翻页就会少选项,筛选后也凑不出已选项)。'
- title: facets
- kind_totals:
- type: object
- properties:
- fixed:
- type: number
- nullable: true
- custom:
- type: number
- nullable: true
- nullable: true
- description: tab 角标:关键字+可见域下的分档计数( 被当前 plan_kind/建档人收窄)。
- title: kind totals
- required:
- - items
- description: CatalogListResult 业务数据
- title: CatalogListResult
- CatalogPlanRow:
- type: object
- properties:
- plan_id:
- type: string
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- title: 档位名称
- description: 档位名称。
- plan_kind:
- type: string
- title: plan kind
- description: 字段 plan_kind。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- annual_price_cents:
- type: integer
- title: 年价(分)
- description: 年价(分)。
- sub_account_quota:
- type: number
- nullable: true
- title: sub account quota
- description: 字段 sub_account_quota。
- bandwidth_committed:
- type: boolean
- nullable: true
- title: bandwidth committed
- description: 字段 bandwidth_committed。
- bandwidth_up_mbps:
- type: integer
- nullable: true
- title: bandwidth up mbps
- description: 字段 bandwidth_up_mbps。
- bandwidth_down_mbps:
- type: integer
- nullable: true
- title: bandwidth down mbps
- description: 字段 bandwidth_down_mbps。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- status:
- type: string
- title: 状态
- description: 状态。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- plan_cost_cents:
- type: integer
- nullable: true
- description: 月成本=年订阅价 ÷ 12 向下取整(三态:null ⇒ 配齐但值为空=未配置)
- title: plan cost cents
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- plan_cost_note:
- type: string
- nullable: true
- description: 月成本列备注:`failed` 时为取数失败原因;其余态为口径说明
- title: plan cost note
- frozen:
- type: boolean
- nullable: true
- description: 被引用后价格类字段冻结(年价/额度/带宽/归属客户等;提示文案与 locked_fields 同源)
- title: frozen
- referred_count:
- type: integer
- nullable: true
- title: referred count
- description: 字段 referred_count。
- locked_fields:
- type: array
- items:
- type: string
- title: locked_fields元素
- nullable: true
- description: 服务端锁定字段键名清单(与弹窗置灰/提示同源,D-PKG-14)
- title: locked fields
- editable_fields:
- type: array
- items:
- type: string
- title: editable_fields元素
- nullable: true
- title: editable fields
- description: 字段 editable_fields。
- created_by:
- type: string
- nullable: true
- description: 建档归属:账号 ID+快照团队 ID,以及读侧联查出的两个名称。
- title: created by
- created_by_name:
- type: string
- nullable: true
- title: created by name
- description: 字段 created_by_name。
- created_team_id:
- type: string
- nullable: true
- title: created team id
- description: 字段 created_team_id。
- created_team_name:
- type: string
- nullable: true
- title: created team name
- description: 字段 created_team_name。
- source_label:
- type: string
- nullable: true
- title: source label
- description: 字段 source_label。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- plan_desc:
- type: string
- nullable: true
- title: plan desc
- description: 字段 plan_desc。
- sort_no:
- type: number
- nullable: true
- title: sort no
- description: 字段 sort_no。
- required:
- - plan_id
- - plan_name
- - plan_kind
- - plan_family
- - annual_price_cents
- - sub_account_quota
- - bandwidth_committed
- - bandwidth_up_mbps
- - bandwidth_down_mbps
- - customer_id
- - status
- - created_at
- - row_version
- description: CatalogPlanRow 业务数据
- title: CatalogPlanRow
- CatalogUpdateResult:
- type: object
- properties:
- plan_id:
- type: string
- title: 档位 ID
- description: 档位 ID。
- updated:
- type: boolean
- title: 是否已更新
- description: 是否已更新。
- required:
- - plan_id
- - updated
- description: CatalogUpdateResult 业务数据
- title: CatalogUpdateResult
- CheckDoneResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- all_done:
- type: boolean
- title: all done
- description: 字段 all_done。
- pending_rows:
- type: number
- title: pending rows
- description: 字段 pending_rows。
- missing_item_ids:
- type: array
- items:
- type: string
- title: missing_item_ids元素
- title: missing item ids
- description: 字段 missing_item_ids。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - ticket_id
- - all_done
- - pending_rows
- - missing_item_ids
- - audit_written
- description: CheckDoneResult 业务数据
- title: CheckDoneResult
- ClosureConfig:
- type: object
- properties:
- closure_mode:
- type: string
- title: closure mode
- description: 字段 closure_mode。
- closure_mode_name:
- type: string
- title: closure mode name
- description: 字段 closure_mode_name。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- updated_at:
- type: string
- nullable: true
- title: 更新时间
- description: 更新时间。
- updated_by:
- type: string
- nullable: true
- title: updated by
- description: 字段 updated_by。
- required:
- - closure_mode
- - closure_mode_name
- - row_version
- - updated_at
- - updated_by
- description: ClosureConfig 业务数据
- title: ClosureConfig
- ClosureConfigUpdateResult:
- type: object
- properties:
- closure_mode:
- type: string
- title: closure mode
- description: 字段 closure_mode。
- changed:
- type: boolean
- title: 是否已变更
- description: 是否已变更。
- from:
- type: string
- nullable: true
- description: 同档提交(changed=false)时服务端不回此键
- title: from
- row_version:
- type: integer
- title: 乐观锁版本
- description: 乐观锁版本。
- updated_by:
- type: string
- title: updated by
- description: 字段 updated_by。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - closure_mode
- - changed
- - row_version
- - updated_by
- - audit_written
- - next_step
- description: ClosureConfigUpdateResult 业务数据
- title: ClosureConfigUpdateResult
- Completion:
- type: object
- properties:
- completion_id:
- type: string
- title: completion id
- description: 字段 completion_id。
- completion_no:
- type: string
- nullable: true
- title: completion no
- description: 字段 completion_no。
- action:
- type: string
- nullable: true
- title: 动作
- description: 动作。
- exec_conclusion:
- type: string
- nullable: true
- title: exec conclusion
- description: 字段 exec_conclusion。
- mode:
- type: string
- nullable: true
- title: mode
- description: 字段 mode。
- pushed_at:
- type: string
- nullable: true
- title: pushed at
- description: 字段 pushed_at。
- pushed_by:
- type: string
- nullable: true
- title: pushed by
- description: 字段 pushed_by。
- receipt_at:
- type: string
- nullable: true
- title: receipt at
- description: 字段 receipt_at。
- receipt_valid:
- type: string
- nullable: true
- description: 回执仍有效(`"1"`/`"0"`)=`receipt_at` 非空且晚于最近一次退回重办;退回后回执失效但 `receipt_at` 仍是历史值。
- title: receipt valid
- receipt_user_id:
- type: string
- nullable: true
- title: receipt user id
- description: 字段 receipt_user_id。
- receipt_remark:
- type: string
- nullable: true
- title: receipt remark
- description: 字段 receipt_remark。
- ip_rule_version:
- type: string
- nullable: true
- title: ip rule version
- description: 字段 ip_rule_version。
- pdf_ready:
- type: string
- nullable: true
- title: pdf ready
- description: 字段 pdf_ready。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- required:
- - completion_id
- - completion_no
- - action
- - exec_conclusion
- - mode
- - pushed_at
- - pushed_by
- - receipt_at
- - receipt_valid
- - receipt_user_id
- - receipt_remark
- - ip_rule_version
- - pdf_ready
- - row_version
- - created_at
- description: Completion 业务数据
- title: Completion
- CompletionGenerateResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_status:
- $ref: '#/components/schemas/TicketStatus'
- completion_id:
- type: string
- title: completion id
- description: 字段 completion_id。
- completion_no:
- type: string
- title: completion no
- description: 字段 completion_no。
- action:
- type: string
- title: 动作
- description: 动作。
- exec_conclusion:
- type: string
- title: exec conclusion
- description: 字段 exec_conclusion。
- mode:
- type: string
- title: mode
- description: 字段 mode。
- pushed_at:
- type: string
- title: pushed at
- description: 字段 pushed_at。
- pushed_by:
- type: string
- title: pushed by
- description: 字段 pushed_by。
- pushed_by_name:
- type: string
- nullable: true
- title: pushed by name
- description: 字段 pushed_by_name。
- ip_rule_version:
- type: string
- title: ip rule version
- description: 字段 ip_rule_version。
- pdf_oss_key:
- type: string
- nullable: true
- title: pdf oss key
- description: 字段 pdf_oss_key。
- reissued:
- type: boolean
- title: 换新条数
- description: 换新条数。
- receipt_valid:
- type: boolean
- title: receipt valid
- description: 字段 receipt_valid。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - ticket_id
- - ticket_status
- - completion_id
- - completion_no
- - action
- - exec_conclusion
- - mode
- - pushed_at
- - pushed_by
- - pushed_by_name
- - ip_rule_version
- - pdf_oss_key
- - reissued
- - receipt_valid
- - audit_written
- - next_step
- description: CompletionGenerateResult 业务数据
- title: CompletionGenerateResult
- CompletionReceiptResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_status:
- $ref: '#/components/schemas/TicketStatus'
- completion_no:
- type: string
- nullable: true
- title: completion no
- description: 字段 completion_no。
- receipt_at:
- type: string
- title: receipt at
- description: 字段 receipt_at。
- receipt_user_id:
- type: string
- title: receipt user id
- description: 字段 receipt_user_id。
- receipt_user_name:
- type: string
- nullable: true
- title: receipt user name
- description: 字段 receipt_user_name。
- settled_at:
- type: string
- title: 办结时间
- description: 办结时间。
- completed_at:
- type: string
- title: 完成时间
- description: 完成时间。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - ticket_id
- - ticket_status
- - completion_no
- - receipt_at
- - receipt_user_id
- - receipt_user_name
- - settled_at
- - completed_at
- - audit_written
- - next_step
- description: CompletionReceiptResult 业务数据
- title: CompletionReceiptResult
- CompletionReject:
- type: object
- properties:
- reject_seq:
- type: string
- title: reject seq
- description: 字段 reject_seq。
- channel:
- type: string
- title: channel
- description: 字段 channel。
- completion_no:
- type: string
- title: completion no
- description: 字段 completion_no。
- primary_code:
- type: string
- title: primary code
- description: 字段 primary_code。
- reason_codes:
- type: string
- title: reason codes
- description: 字段 reason_codes。
- reason_text:
- type: string
- title: reason text
- description: 字段 reason_text。
- pushed_at:
- type: string
- nullable: true
- title: pushed at
- description: 字段 pushed_at。
- rejected_at:
- type: string
- nullable: true
- title: rejected at
- description: 字段 rejected_at。
- required:
- - reject_seq
- - channel
- - completion_no
- - primary_code
- - reason_codes
- - reason_text
- - pushed_at
- - rejected_at
- description: 竣工驳回记录(`ticket_completion_reject`,)。 出参里没有 `external_reject_no`: 把它列为门户/合伙人 回显字段,
- 服务端直接把它排除在 SELECT 之外,前端 指望"拿到再隐藏"。
- title: CompletionReject
- CompletionRejectResult:
- type: object
- description: 竣工驳回结果
- properties:
- ticket_id:
- type: string
- description: 工单 ID
- title: 工单 ID
- ticket_no:
- type: string
- description: 工单号
- nullable: true
- title: 工单号
- ticket_status:
- type: string
- description: 工单状态
- title: ticket status
- reject_seq:
- type: string
- description: 驳回序号
- title: reject seq
- completion_no:
- type: string
- description: 竣工单号
- title: completion no
- primary_code:
- type: string
- description: 主原因码
- title: primary code
- reason_codes:
- type: array
- items:
- type: string
- title: reason_codes元素
- description: 驳回原因码列表
- title: reason codes
- completion_channel:
- type: string
- description: 竣工通道
- nullable: true
- title: completion channel
- external_wait_seconds:
- type: integer
- description: 外部等待秒数
- nullable: true
- title: external wait seconds
- row_version:
- type: integer
- description: 乐观锁版本
- nullable: true
- title: 乐观锁版本
- pathway:
- type: string
- description: 通路标识
- nullable: true
- title: pathway
- idempotent_replay:
- type: boolean
- description: 是否幂等重放
- nullable: true
- title: idempotent replay
- message:
- type: string
- description: 结果说明
- title: 说明
- required:
- - ticket_id
- - ticket_status
- - reject_seq
- - completion_no
- - primary_code
- - reason_codes
- - message
- title: CompletionRejectResult
- ConstructionGuide:
- type: object
- properties:
- ticket_type:
- type: string
- nullable: true
- title: 工单类型
- description: 工单类型。
- plan:
- $ref: '#/components/schemas/ConstructionPlanSummary'
- member_plans:
- type: array
- items:
- $ref: '#/components/schemas/ConstructionPlanSummary'
- nullable: true
- title: member plans
- description: 字段 member_plans。
- defaults:
- $ref: '#/components/schemas/ConstructionGuideDefaults'
- prior_activation:
- $ref: '#/components/schemas/PriorActivation'
- plan_before:
- $ref: '#/components/schemas/ConstructionPlanSummary'
- plan_after:
- $ref: '#/components/schemas/ConstructionPlanSummary'
- pending_accounts:
- type: array
- items:
- $ref: '#/components/schemas/OpenStopAccount'
- nullable: true
- description: 开通类待开通分账号预览。
- title: pending accounts
- bandwidth_missing:
- type: boolean
- nullable: true
- title: bandwidth missing
- description: 字段 bandwidth_missing。
- subscription_missing:
- type: boolean
- nullable: true
- title: subscription missing
- description: 字段 subscription_missing。
- subscription_fallback:
- type: boolean
- nullable: true
- title: subscription fallback
- description: 字段 subscription_fallback。
- hint:
- type: string
- nullable: true
- title: hint
- description: 字段 hint。
- description: ConstructionGuide 业务数据
- title: ConstructionGuide
- ConstructionGuideDefaults:
- type: object
- properties:
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- suggest_down_mbps:
- type: integer
- nullable: true
- title: suggest down mbps
- description: 字段 suggest_down_mbps。
- suggest_up_mbps:
- type: integer
- nullable: true
- title: suggest up mbps
- description: 字段 suggest_up_mbps。
- suggest_ip_bandwidth_mbps:
- type: integer
- nullable: true
- title: suggest ip bandwidth mbps
- description: 字段 suggest_ip_bandwidth_mbps。
- suggest_seat_count:
- type: integer
- nullable: true
- title: suggest seat count
- description: 字段 suggest_seat_count。
- description: ConstructionGuideDefaults 业务数据
- title: ConstructionGuideDefaults
- ConstructionPlanSummary:
- type: object
- properties:
- subscription_id:
- type: string
- nullable: true
- title: 订阅 ID
- description: 订阅 ID。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_kind:
- type: string
- nullable: true
- title: plan kind
- description: 字段 plan_kind。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- sub_account_quota:
- type: number
- nullable: true
- title: sub account quota
- description: 字段 sub_account_quota。
- quota_slots:
- type: number
- nullable: true
- title: quota slots
- description: 字段 quota_slots。
- bandwidth_up_mbps:
- type: integer
- nullable: true
- title: bandwidth up mbps
- description: 字段 bandwidth_up_mbps。
- bandwidth_down_mbps:
- type: integer
- nullable: true
- title: bandwidth down mbps
- description: 字段 bandwidth_down_mbps。
- bandwidth_committed:
- type: boolean
- nullable: true
- title: bandwidth committed
- description: 字段 bandwidth_committed。
- bandwidth_missing:
- type: boolean
- nullable: true
- description: 档位未配齐上下行。
- title: bandwidth missing
- bandwidth_from_prior:
- type: boolean
- nullable: true
- description: 带宽取自历史开通通路,非档位承诺值。
- title: bandwidth from prior
- line_exits:
- oneOf:
- - type: string
- - type: string
- nullable: true
- title: line exits
- description: 字段 line_exits。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- parent_subscription_id:
- type: string
- nullable: true
- title: parent subscription id
- description: 字段 parent_subscription_id。
- replaces_subscription_id:
- type: string
- nullable: true
- title: replaces subscription id
- description: 字段 replaces_subscription_id。
- summary:
- type: string
- nullable: true
- title: summary
- description: 字段 summary。
- items:
- type: array
- items:
- $ref: '#/components/schemas/ServiceItem'
- nullable: true
- title: 列表项
- description: 列表项。
- description: 套餐/订阅施工参考摘要。
- title: ConstructionPlanSummary
- ContractAttachmentDiscardResult:
- type: object
- properties:
- discarded:
- type: boolean
- description: '`true`=本次真的删了;`false`=仍被合同引用或删除未成功(看 `object_delete`)。'
- title: discarded
- referenced:
- type: boolean
- description: '`true`=查库发现仍有合同指向它(并发保存刚提交也会落到这里)⇒ 未删除。'
- title: referenced
- object_delete:
- $ref: '#/components/schemas/ContractObjectReclaim'
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- required:
- - discarded
- - referenced
- description: ContractAttachmentDiscardResult 业务数据
- title: ContractAttachmentDiscardResult
- ContractChangeLogItem:
- type: object
- properties:
- occurred_at:
- type: string
- nullable: true
- title: occurred at
- description: 字段 occurred_at。
- action:
- type: string
- title: 动作
- description: 动作。
- action_label:
- type: string
- title: action label
- description: 字段 action_label。
- actor:
- type: object
- properties:
- user_id:
- type: string
- nullable: true
- name:
- type: string
- nullable: true
- required:
- - user_id
- - name
- title: actor
- description: 字段 actor。
- detail:
- type: object
- additionalProperties: {}
- nullable: true
- description: 审计 detail:`fields`(字段旧→新)/`items_diff`/`item_labels`/`ip_diff` …
- title: detail
- cursor:
- type: string
- nullable: true
- description: '`occurred_at` 缺失时回 `null`(该条翻不动页)'
- title: 游标
- required:
- - occurred_at
- - action
- - action_label
- - actor
- - detail
- - cursor
- description: ContractChangeLogItem 业务数据
- title: ContractChangeLogItem
- ContractDeleteResult:
- type: object
- properties:
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- blocks:
- type: object
- properties:
- subscriptions:
- type: array
- items: {}
- nullable: true
- tickets:
- type: array
- items: {}
- nullable: true
- nullable: true
- title: blocks
- description: 字段 blocks。
- ticket_state:
- type: string
- nullable: true
- title: ticket state
- description: 字段 ticket_state。
- attachment_object_delete:
- $ref: '#/components/schemas/ContractObjectReclaim'
- required:
- - deleted
- description: ContractDeleteResult 业务数据
- title: ContractDeleteResult
- ContractEditAxis:
- type: object
- properties:
- editable:
- type: boolean
- title: editable
- description: 字段 editable。
- reason:
- type: string
- nullable: true
- description: '`opened`|`expired`|`synced_source`|`grace_expired`|`effective`'
- title: reason
- required:
- - editable
- - reason
- description: 编辑口径的单轴结论(`reason` 是机器码,文案表在前端;`null`=该轴可改)。
- title: ContractEditAxis
- ContractEditScope:
- type: object
- properties:
- state:
- type: string
- description: '`pending`|`effective_unopened`|`opened`|`expired`'
- title: state
- billing:
- $ref: '#/components/schemas/ContractEditAxis'
- archive:
- $ref: '#/components/schemas/ContractEditAxis'
- grace_until:
- type: string
- nullable: true
- description: 录后更正期截止时刻(RFC3339);`null`=录入时刻缺失或不可解析
- title: grace until
- agent:
- type: object
- properties:
- editable:
- type: string
- description: 类型:false
- reason:
- type: string
- description: 类型:"filled_from_account"
- note:
- type: string
- required:
- - editable
- - reason
- - note
- nullable: true
- title: agent
- description: 字段 agent。
- required:
- - state
- - billing
- - archive
- - grace_until
- description: ContractEditScope 业务数据
- title: ContractEditScope
- ContractListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/ContractRow'
- title: 列表项
- description: 列表项。
- stats:
- type: object
- properties:
- total:
- type: number
- opened:
- type: number
- not_opened:
- type: number
- required:
- - total
- - opened
- - not_opened
- nullable: true
- description: 统计卡与列表同谓词
- title: stats
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- description: ContractListResult 业务数据
- title: ContractListResult
- ContractLookupCustomer:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- identity_no_masked:
- type: string
- nullable: true
- title: identity no masked
- description: 字段 identity_no_masked。
- province_name:
- type: string
- nullable: true
- title: province name
- description: 字段 province_name。
- required:
- - customer_id
- - customer_name
- description: ContractLookupCustomer 业务数据
- title: ContractLookupCustomer
- ContractLookupResult:
- type: object
- properties:
- matched:
- type: boolean
- title: 是否匹配
- description: 是否匹配。
- customers:
- type: array
- items:
- $ref: '#/components/schemas/ContractLookupCustomer'
- title: 客户数
- description: 客户数。
- required:
- - matched
- - customers
- description: ContractLookupResult 业务数据
- title: ContractLookupResult
- ContractObjectReclaim:
- type: object
- properties:
- status:
- type: string
- enum:
- - deleted
- - partial
- - failed
- title: 状态
- description: 状态。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- deleted:
- type: number
- nullable: true
- title: 是否已删除
- description: 是否已删除。
- failed_codes:
- type: array
- items:
- type: number
- title: failed_codes元素
- nullable: true
- title: failed codes
- description: 字段 failed_codes。
- error:
- type: string
- nullable: true
- title: error
- description: 字段 error。
- required:
- - status
- description: 附件对象回收回执(写口即时回收 / 孤儿回。
- `reason`:`attachment_replaced`(被替换/清空)/`contract_deleted`(合同删除)/
- `unsaved_upload`(上传后没人引用)。`failed` 时需运维按合同档案补删。
- title: ContractObjectReclaim
- ContractRenewalConfig:
- type: object
- description: 合同续签提醒配置
- properties:
- notice_days:
- type: integer
- description: 提前提醒天数(1~180)
- title: notice days
- generate_mode:
- type: string
- description: 生成模式
- title: generate mode
- row_version:
- type: integer
- description: 乐观锁版本
- title: 乐观锁版本
- required:
- - notice_days
- - generate_mode
- - row_version
- title: ContractRenewalConfig
- ContractRenewalConfigUpdateResult:
- type: object
- description: 合同续签提醒配置更新结果
- properties:
- notice_days:
- type: integer
- description: 提前提醒天数
- title: notice days
- generate_mode:
- type: string
- description: 生成模式
- title: generate mode
- row_version:
- type: integer
- description: 新版本号
- title: 乐观锁版本
- updated:
- type: boolean
- description: 是否已更新
- title: 是否已更新
- required:
- - notice_days
- - generate_mode
- - row_version
- - updated
- title: ContractRenewalConfigUpdateResult
- ContractReplacementResult:
- type: object
- properties:
- item_index:
- type: number
- description: 0 基条目下标(与请求 `service_items` 对齐)。
- title: item index
- mode:
- type: string
- enum:
- - replaced
- - renewed
- nullable: true
- description: '* `replaced`=截原替换(升降配);`renewed`=续签新开(到期续签/按新订阅开通, * 截原、 替换边、 `updown`)。'
- title: mode
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- replaces_subscription_id:
- type: string
- nullable: true
- description: 续签新开时为 `null`(旧订阅没被回收)。
- title: replaces subscription id
- ticket_type:
- type: string
- nullable: true
- description: 实际生成的工单类型:已交付且客户在用 ⇒ `updown`;未交付 ⇒ `open`/`service_open`;未生成 ⇒ `null`。
- title: 工单类型
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- actual_opened_at:
- type: string
- nullable: true
- description: '* 续签且服务内容未变 ⇒ 免派工,新订阅按续签开始日视为已交付(`actual_opened_at` 的落点)。 * 未免派工(或回填失败)时为 `null`。'
- title: actual opened at
- required:
- - item_index
- - subscription_id
- - replaces_subscription_id
- description: '`POST /contract/create@v1` 回执里的逐条替换结果。'
- title: ContractReplacementResult
- ContractRow:
- type: object
- properties:
- contract_id:
- type: string
- title: 合同 ID
- description: 合同 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- contract_no:
- type: string
- title: 合同编号
- description: 合同编号。
- external_no:
- type: string
- nullable: true
- title: external no
- description: 字段 external_no。
- status:
- type: string
- title: 状态
- description: 状态。
- contract_amount_cents:
- type: integer
- title: contract amount cents
- description: 字段 contract_amount_cents。
- amount_cents:
- type: integer
- nullable: true
- title: 金额(分)
- description: 金额(分)。
- discount_rate_pct:
- type: number
- nullable: true
- description: 折扣率(百分数,默认 100);最终合同金额=套餐总×本列/100。
- title: discount rate pct
- contract_type:
- type: string
- nullable: true
- description: 合同类型:`new`(新建)/`renew`(续签)/`expand`(扩容补充协议)/`change`(变更协议)。
- title: contract type
- sign_date:
- type: string
- nullable: true
- description: 签署日期(`YYYY-MM-DD`;存量行按交接日期回填)。
- title: sign date
- service_months:
- type: number
- nullable: true
- description: 服务期(月):结束日=生效日+服务期−1 天(替代原 `pay_cycle`)。
- title: service months
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- agent_name:
- type: string
- nullable: true
- title: agent name
- description: 字段 agent_name。
- agent_mobile:
- type: string
- nullable: true
- title: agent mobile
- description: 字段 agent_mobile。
- agent_handover_on:
- type: string
- nullable: true
- title: agent handover on
- description: 字段 agent_handover_on。
- agent_org:
- type: string
- nullable: true
- title: agent org
- description: 字段 agent_org。
- attachment_url:
- type: string
- nullable: true
- description: '* 合同附件(单值,):外部 `http(s)` 链接,或浏览器直传平台桶后回报的对象键 * (`klt/contract/attachment/…`)。
- 直接把对象键当可打开的链接用。'
- title: attachment url
- attachment_kind:
- type: string
- enum:
- - none
- - link
- - object
- - other
- nullable: true
- description: 附件取值形态:`none`/`link`(外部链接)/`object`(对象键,需读口现签)/`other`(存量脏值)。
- title: attachment kind
- attachment_view_url:
- type: string
- nullable: true
- description: 短时效下载地址:`link`=原链接;`object`=详情读口现签;列表口恒 `null`( 按行 N 次调平台)。
- title: attachment view url
- attachment_view_url_expires_at:
- type: string
- nullable: true
- title: attachment view url expires at
- description: 字段 attachment_view_url_expires_at。
- service_items:
- type: array
- items:
- $ref: '#/components/schemas/ContractServiceItem'
- nullable: true
- title: service items
- description: 字段 service_items。
- created_at:
- type: string
- description: 合同级 `ip_entries` 自 不再下发:固定 IP 条目已由「套餐档位 × 订阅份数」取代, *
- 历史行只留在库里追溯;读到该键=对端仍是旧版本,页面不应再据此渲染 IP 表。
- title: 创建时间
- source:
- type: string
- nullable: true
- description: 合同来源(`manual`/`import`/`operator_sync`)——编辑口径按它分叉
- title: 来源
- created_by:
- type: string
- nullable: true
- description: 合同经办人=界面录入账号 ID(存量行 `null`=未记录)
- title: created by
- created_by_name:
- type: string
- nullable: true
- title: created by name
- description: 字段 created_by_name。
- created_by_org:
- type: string
- nullable: true
- description: 录入账号所属机构(运营/运维团队名;`hq` 账号回落「总运营」);`null`=未记录
- title: created by org
- created_by_mobile:
- type: string
- nullable: true
- description: 录入账号绑定手机号(后端已按需求 掩码);`null`=未绑定
- title: created by mobile
- edit_scope:
- $ref: '#/components/schemas/ContractEditScope'
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- opened:
- type: boolean
- nullable: true
- title: opened
- description: 字段 opened。
- opened_state:
- $ref: '#/components/schemas/ValueState'
- source_label:
- type: string
- nullable: true
- description: 合同来源标识
- title: source label
- customer_free_text:
- type: string
- nullable: true
- description: 自由录入的客户资料(customer_lookup 未命中时)
- title: customer free text
- actual_opened_at:
- type: string
- nullable: true
- description: 实际开通日:本册只读,唯一写入方=工单回填
- title: actual opened at
- required:
- - contract_id
- - customer_id
- - contract_no
- - external_no
- - status
- - contract_amount_cents
- - start_date
- - end_date
- - agent_name
- - agent_mobile
- - agent_handover_on
- - agent_org
- - attachment_url
- - created_at
- - row_version
- description: ContractRow 业务数据
- title: ContractRow
- ContractServiceItem:
- type: object
- properties:
- item_id:
- type: string
- nullable: true
- title: item id
- description: 字段 item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- item_family:
- type: string
- nullable: true
- description: 交付形态回落值:读侧随条目下发,写侧由后端从档位带入( 前端造值)。
- title: item family
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- description: 线路出口:单选(恰 1 个);新建/修改条目多值由后端回 `KLT-L222`。
- title: line exits
- succession:
- $ref: '#/components/schemas/ContractSuccessionReq'
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- sub_account_quota:
- type: number
- nullable: true
- description: 所引目录档的分账号额度( 依赖目录列表接口才能显示账号数)。
- title: sub account quota
- remark:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- serves_item_id:
- type: string
- nullable: true
- description: '* P1:叠加服务所服务的父条目主键;`link` 条目恒空。 * 新建合同里父条目也是本次新建时,父还没有主键 ⇒ 改用 `serves_item_index`(0
- 基序号)。'
- title: serves item id
- serves_item_index:
- type: number
- nullable: true
- description: 写侧:父条目在 `service_items` 里的 0 基序号( 与 `serves_item_id` 同现)。
- title: serves item index
- item_mode:
- type: string
- nullable: true
- description: P1:条目形态 `new`/`increment`;读侧缺省按 `new` 渲染。
- title: item mode
- ref_subscription_id:
- type: string
- nullable: true
- description: P1:增量条目引用的既有链路订阅(可跨合同; 与 `serves_item_id` 同现)。
- title: ref subscription id
- description: 合同服务构成条目(请求与应答同源)。
- title: ContractServiceItem
- ContractSuccessionReq:
- type: object
- properties:
- replaces_subscription_id:
- type: string
- description: 被替换的原订阅(本客户、active/pending、同分类同出口、未被替换过)。
- title: replaces subscription id
- start_date:
- type: string
- nullable: true
- description: 新订阅起日,缺省=max(业务当天, 合同生效日);结束日恒取合同止期。
- title: 开始日
- term:
- type: string
- nullable: true
- description: 订阅方式(`yearly`/`monthly`);缺省按档位与分类派生。
- title: term
- required:
- - replaces_subscription_id
- description: 契约内逐条替换的 `service_items[].succession`。 只认这三键:价格、状态、`row_version` 等只读派生列出现即
- `KLT-L222` 点名。
- title: ContractSuccessionReq
- ContractUpdateResult:
- type: object
- properties:
- contract_id:
- type: string
- title: 合同 ID
- description: 合同 ID。
- updated:
- type: boolean
- title: 是否已更新
- description: 是否已更新。
- attachment_object_delete:
- $ref: '#/components/schemas/ContractObjectReclaim'
- required:
- - contract_id
- - updated
- description: ContractUpdateResult 业务数据
- title: ContractUpdateResult
- CorrectionCreateResult:
- type: object
- properties:
- correction_id:
- type: string
- title: correction id
- description: 字段 correction_id。
- required:
- - correction_id
- description: CorrectionCreateResult 业务数据
- title: CorrectionCreateResult
- CorrectionDetailResult:
- type: object
- properties:
- correction_id:
- type: string
- title: correction id
- description: 字段 correction_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- period:
- type: string
- nullable: true
- title: 账期
- description: 字段 period。
- region_label:
- type: string
- nullable: true
- title: region label
- description: 字段 region_label。
- region_node_id:
- type: string
- nullable: true
- description: 归属区域节点 ID:详情窗与列表同口径兜底取名(缺陷 详情「—」、列表「江苏省」)。
- title: 区域节点 ID
- operator_name:
- type: string
- description: 登记人可读名(与列表「登记人」列同口径)。
- title: operator name
- holder_name:
- type: string
- nullable: true
- description: 分成方(运营商)名, 当登记人渲染。
- title: holder name
- error_text:
- type: string
- title: error text
- description: 字段 error_text。
- raw_ref:
- type: string
- nullable: true
- title: 原始关联
- description: 字段 raw_ref。
- matched:
- type: boolean
- title: 是否匹配
- description: 是否匹配。
- matched_batch_no:
- type: string
- nullable: true
- title: matched batch no
- description: 字段 matched_batch_no。
- matched_bill_detail_id:
- type: string
- nullable: true
- title: matched bill detail id
- description: 字段 matched_bill_detail_id。
- matched_holder_id:
- type: string
- nullable: true
- description: '* 命中批次的持有方 id(拼批次详情路由 `/settlement-batches/:holderId/:no` 用); * 未下发 ⇒ batch_no
- 渲纯文本、不给批次入口(明细入口不受影响),已登记缺口清单。'
- title: matched holder id
- required:
- - correction_id
- - created_at
- - period
- - region_label
- - operator_name
- - error_text
- - raw_ref
- - matched
- - matched_batch_no
- - matched_bill_detail_id
- description: CorrectionDetailResult 业务数据
- title: CorrectionDetailResult
- CorrectionDraftResult:
- type: object
- properties:
- form:
- type: string
- description: 字段 form。
- nullable: true
- title: 表单
- required:
- - form
- description: CorrectionDraftResult 业务数据
- title: CorrectionDraftResult
- CorrectionDraftSaveResult:
- type: object
- description: 纠错单草稿保存结果
- properties:
- correction_id:
- type: string
- description: 纠错单 ID
- title: correction id
- saved:
- type: boolean
- description: 是否已保存
- title: 是否已保存
- row_version:
- type: integer
- description: 乐观锁版本
- nullable: true
- title: 乐观锁版本
- required:
- - correction_id
- - saved
- title: CorrectionDraftSaveResult
- CorrectionRow:
- type: object
- properties:
- correction_id:
- type: string
- title: correction id
- description: 字段 correction_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- period:
- type: string
- nullable: true
- description: 自然月不落库、现推;取不到 ⇒ null(界面显示「—」, 相似度推测)
- title: 账期
- ref_label:
- type: string
- description: 关联对象展示文本(命中候选=候选标签;未命中=raw_ref 原文)
- title: ref label
- region_label:
- type: string
- nullable: true
- title: region label
- description: 字段 region_label。
- region_node_id:
- type: string
- nullable: true
- description: 归属区域节点 ID(系统推导落库);`region_label` 缺值时前端据此从区域树取名。
- title: 区域节点 ID
- operator_name:
- type: string
- description: 登记人可读名(显示名→登录名);`operator_keyword` 按同一口径筛(缺陷 此前是分成方名)。
- title: operator name
- holder_name:
- type: string
- nullable: true
- description: 分成方(运营商)名—— 当登记人渲染,只在需要时另列。
- title: holder name
- created_by:
- type: string
- nullable: true
- description: 登记人=网关注入的登录用户 ID。
- title: created by
- error_excerpt:
- type: string
- description: 错误内容摘要(超 100 字截断;全文只在详情, 复制第二份)
- title: error excerpt
- matched:
- type: boolean
- description: false ⇒ 标「未关联到系统账目」
- title: 是否匹配
- required:
- - correction_id
- - created_at
- - period
- - ref_label
- - region_label
- - operator_name
- - error_excerpt
- - matched
- description: CorrectionRow 业务数据
- title: CorrectionRow
- CostAmountListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/CostAmountPivotRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- available:
- type: boolean
- nullable: true
- description: '`false`=一条透视行都配不出来,`message` 说明原因。'
- title: available
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- rows:
- type: array
- items:
- $ref: '#/components/schemas/CostAmountRow'
- nullable: true
- title: 行集
- description: 行集。
- rows_total:
- type: number
- nullable: true
- title: rows total
- description: 字段 rows_total。
- rows_unattributed:
- type: array
- items:
- $ref: '#/components/schemas/CostAmountRow'
- nullable: true
- title: rows unattributed
- description: 字段 rows_unattributed。
- rows_unattributed_total:
- type: number
- nullable: true
- title: rows unattributed total
- description: 字段 rows_unattributed_total。
- required:
- - items
- description: CostAmountListResult 业务数据
- title: CostAmountListResult
- CostAmountPivotRow:
- type: object
- properties:
- province_node_id:
- type: string
- title: province node id
- description: 字段 province_node_id。
- province_name:
- type: string
- nullable: true
- title: province name
- description: 字段 province_name。
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- operator_name:
- type: string
- nullable: true
- title: operator name
- description: 字段 operator_name。
- items:
- type: array
- items:
- $ref: '#/components/schemas/CostAmountRow'
- title: 列表项
- description: 列表项。
- required:
- - province_node_id
- - province_name
- - operator_id
- - operator_name
- - items
- description: CostAmountPivotRow 业务数据
- title: CostAmountPivotRow
- CostAmountRow:
- type: object
- properties:
- amount_id:
- type: string
- nullable: true
- title: amount id
- description: 字段 amount_id。
- province_node_id:
- type: string
- title: province node id
- description: 字段 province_node_id。
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- cost_item_id:
- type: string
- title: cost item id
- description: 字段 cost_item_id。
- item_name:
- type: string
- nullable: true
- title: item name
- description: 字段 item_name。
- category:
- type: string
- nullable: true
- title: category
- description: 字段 category。
- province_name:
- type: string
- nullable: true
- description: 名称无来源(后端 区域名称表)⇒ `null`=后端未下发, 由前端造名称。
- title: province name
- operator_name:
- type: string
- nullable: true
- title: operator name
- description: 字段 operator_name。
- period:
- type: string
- nullable: true
- title: 账期
- description: 字段 period。
- amount_cents:
- type: integer
- nullable: true
- title: 金额(分)
- description: 金额(分)。
- row_version:
- oneOf:
- - type: number
- - type: string
- nullable: true
- title: 乐观锁版本
- description: 乐观锁版本。
- required:
- - province_node_id
- - operator_id
- - cost_item_id
- - amount_cents
- - row_version
- description: 成本金额明细行
- title: CostAmountRow
- CostAmountSaveResult:
- type: object
- properties:
- province_node_id:
- type: string
- title: province node id
- description: 字段 province_node_id。
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- saved:
- type: boolean
- title: 是否已保存
- description: 是否已保存。
- deleted_count:
- type: integer
- nullable: true
- description: 留空被删除的差异行数
- title: deleted count
- required:
- - province_node_id
- - operator_id
- - saved
- description: CostAmountSaveResult 业务数据
- title: CostAmountSaveResult
- CostItemDeleteResult:
- type: object
- properties:
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- cost_item_id:
- type: string
- nullable: true
- title: cost item id
- description: 字段 cost_item_id。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- required:
- - deleted
- description: CostItemDeleteResult 业务数据
- title: CostItemDeleteResult
- CostItemListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/CostItemRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- columns_pending:
- type: array
- items:
- type: string
- title: columns_pending元素
- nullable: true
- description: 下发的列名清单(dev 库尚未补列 ⇒ 名称之外的字段可能整体缺位)。
- title: columns pending
- required:
- - items
- description: CostItemListResult 业务数据
- title: CostItemListResult
- CostItemRow:
- type: object
- properties:
- cost_item_id:
- type: string
- title: cost item id
- description: 字段 cost_item_id。
- item_id:
- type: string
- nullable: true
- title: item id
- description: 字段 item_id。
- category:
- type: string
- nullable: true
- description: 类别(`intl_resource`/`device_purchase`/`project_fee`);`null`=历史行未灌值 ⇒「后端未下发」。
- title: category
- item_name:
- type: string
- title: item name
- description: 字段 item_name。
- billing_unit:
- type: string
- nullable: true
- description: 计费单位(`per_customer`/`per_account`/`per_copy`);同上可为 `null`。
- title: billing unit
- is_amortized:
- type: boolean
- nullable: true
- title: is amortized
- description: 字段 is_amortized。
- amortization_months:
- type: number
- nullable: true
- title: amortization months
- description: 字段 amortization_months。
- deduct_from_base:
- type: boolean
- nullable: true
- title: deduct from base
- description: 字段 deduct_from_base。
- remark:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- status:
- type: string
- title: 状态
- description: 状态。
- row_version:
- oneOf:
- - type: number
- - type: string
- nullable: true
- title: 乐观锁版本
- description: 乐观锁版本。
- cycle:
- type: string
- nullable: true
- description: 周期(设计册 分成:一期恒 `monthly`);`null`=旧库未补列 ⇒「后端未下发」。
- title: cycle
- configured_row_count:
- type: integer
- nullable: true
- description: 该成本项名下金额行总数(含缺省份/运营商轴的存量行;后端 `LEFT JOIN` 现算)。
- title: configured row count
- configured_combo_count:
- type: integer
- nullable: true
- description: 已配金额的「省份×运营商」组合数(后端 `LEFT JOIN` 现算;0=一条都没配)。
- title: configured combo count
- configured_total_cents:
- type: integer
- nullable: true
- description: 这些组合的月合计(整数分)。
- title: configured total cents
- referring_plan_count:
- type: integer
- nullable: true
- description: 被套餐档引用份数(按 `plan_cost_item.cost_item_id` 强引用现算)。
- title: referring plan count
- referring_plans:
- type: array
- items:
- type: object
- properties:
- plan_id:
- type: string
- plan_name:
- type: string
- nullable: true
- required:
- - plan_id
- - plan_name
- nullable: true
- description: 引用该成本项的套餐档;`[]`=真的没有档位引用,`null`=后端未下发该概况。
- title: referring plans
- required:
- - cost_item_id
- - category
- - item_name
- - billing_unit
- - is_amortized
- - amortization_months
- - deduct_from_base
- - remark
- - status
- - row_version
- description: CostItemRow 业务数据
- title: CostItemRow
- CostItemSaveResult:
- type: object
- properties:
- cost_item_id:
- type: string
- title: cost item id
- description: 字段 cost_item_id。
- saved:
- type: boolean
- title: 是否已保存
- description: 是否已保存。
- required:
- - cost_item_id
- - saved
- description: CostItemSaveResult 业务数据
- title: CostItemSaveResult
- CustomerAttributionResult:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- updated:
- type: boolean
- title: 是否已更新
- description: 是否已更新。
- blocked:
- type: array
- items:
- type: string
- title: 阻塞项元素
- title: 阻塞项
- description: 阻塞项。
- operator_id:
- type: string
- nullable: true
- title: 运营商 ID
- description: 运营商 ID。
- partner_id:
- type: string
- nullable: true
- title: 合伙人 ID
- description: 合伙人 ID。
- required:
- - customer_id
- - updated
- - blocked
- description: CustomerAttributionResult 业务数据
- title: CustomerAttributionResult
- CustomerCreateResult:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- user_id:
- type: string
- nullable: true
- title: 用户 ID
- description: 用户 ID。
- activation_code:
- type: string
- nullable: true
- title: activation code
- description: 字段 activation_code。
- required:
- - customer_id
- description: CustomerCreateResult 业务数据
- title: CustomerCreateResult
- CustomerDeletePrecheck:
- type: object
- properties:
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- can_delete:
- type: boolean
- title: can delete
- description: 字段 can_delete。
- blockers:
- type: array
- items:
- type: string
- title: blockers元素
- title: blockers
- description: 字段 blockers。
- verified_checks:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- count:
- type: number
- blocking:
- type: boolean
- required:
- - key
- - label
- - count
- - blocking
- nullable: true
- title: verified checks
- description: 字段 verified_checks。
- unverifiable_checks:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- nullable: true
- why:
- type: string
- nullable: true
- reason:
- type: string
- nullable: true
- required:
- - key
- nullable: true
- title: unverifiable checks
- description: 字段 unverifiable_checks。
- precheck_version:
- type: string
- title: precheck version
- description: 字段 precheck_version。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - can_delete
- - blockers
- - precheck_version
- description: CustomerDeletePrecheck 业务数据
- title: CustomerDeletePrecheck
- CustomerDeleteResult:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- blockers:
- type: array
- items:
- type: string
- title: blockers元素
- nullable: true
- title: blockers
- description: 字段 blockers。
- verified_checks:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- count:
- type: number
- blocking:
- type: boolean
- required:
- - key
- - label
- - count
- - blocking
- nullable: true
- title: verified checks
- description: 字段 verified_checks。
- unverifiable_checks:
- type: array
- items:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- nullable: true
- why:
- type: string
- nullable: true
- reason:
- type: string
- nullable: true
- required:
- - key
- nullable: true
- title: unverifiable checks
- description: 字段 unverifiable_checks。
- precheck_version:
- type: string
- nullable: true
- title: precheck version
- description: 字段 precheck_version。
- required:
- - customer_id
- - deleted
- description: CustomerDeleteResult 业务数据
- title: CustomerDeleteResult
- CustomerDetail:
- type: object
- properties:
- customer:
- type: object
- properties:
- customer_id:
- type: string
- customer_name:
- type: string
- subject_type:
- type: string
- operator_id:
- type: string
- nullable: true
- operator_name:
- type: string
- nullable: true
- partner_id:
- type: string
- nullable: true
- partner_name:
- type: string
- nullable: true
- acct_status:
- type: string
- quota_cents:
- type: string
- created_at:
- type: string
- nullable: true
- updated_at:
- type: string
- nullable: true
- contact_name:
- type: string
- nullable: true
- contact_mobile:
- type: string
- nullable: true
- tech_contact_name:
- type: string
- nullable: true
- tech_contact_mobile:
- type: string
- nullable: true
- finance_contact_name:
- type: string
- nullable: true
- finance_contact_mobile:
- type: string
- nullable: true
- remark:
- type: string
- nullable: true
- address:
- type: string
- nullable: true
- identity_no_masked:
- type: string
- nullable: true
- row_version:
- type: number
- nullable: true
- required:
- - customer_id
- - customer_name
- - subject_type
- - operator_id
- - operator_name
- - partner_id
- - partner_name
- - acct_status
- - quota_cents
- - created_at
- title: customer
- description: 字段 customer。
- team_ids:
- type: array
- items:
- type: string
- title: team_ids元素
- description: 当期承接团队(运维团队;历史脏数据可能回显 >1,前端按实呈现并提示改派)。
- title: team ids
- sub_account_count:
- type: integer
- title: sub account count
- description: 字段 sub_account_count。
- region_mounts:
- type: array
- items:
- type: object
- properties:
- parent_node_id:
- type: string
- hierarchy_id:
- type: string
- terminal_state:
- type: string
- path_name:
- type: string
- nullable: true
- required:
- - parent_node_id
- - hierarchy_id
- - terminal_state
- description: '* 挂载区域。`path_name`=层级真源 `bos_region_meta.path_name`(形如「全网/上海市/市辖区/浦东新区」), * 后端
- 随挂载点下发:`/region/tree@v1` 只回省级两层,挂载点常是市/区县节点 ⇒ * 光靠区域树查名必查不到(客户档案「所属区域」显示「—」实证)。未定级时后端回落为节点
- ID 本身。'
- title: region mounts
- license:
- type: object
- properties:
- file_name:
- type: string
- nullable: true
- status:
- type: string
- enum:
- - none
- - viewable
- - expired
- view_url:
- type: string
- nullable: true
- view_url_expires_at:
- type: string
- nullable: true
- required:
- - file_name
- - status
- - view_url
- - view_url_expires_at
- nullable: true
- description: "* 登记材料摘要( 第八分区,`` )——一次读口给全, 为影像另发请求。 * · `status='none'`:未登记影像(个人/个体工商户恒此态,页面显示「不适用」;企业也可能未登记——影像选填);
- * · `status='viewable'`:`view_url` 为平台 `unified-oss` 短时效下载签名(TTL 取平台默认), * 「查看」与「下载」共用同一张签名(
- 前端拼地址、 另签第二张); * · `status='expired'`:`now − customer.created_at > license_image_retention_days`(默认
- 3650 天, * 起算点=建档日、重新上传不重置)⇒ 两格为 `null`,页面固定渲染「已超期」空态。 * 对象键 出现在响应体——前端 自行拼 URL。"
- title: 登记材料
- required:
- - customer
- - team_ids
- - sub_account_count
- - region_mounts
- description: CustomerDetail 业务数据
- title: CustomerDetail
- CustomerHistoryResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/CustomerHistoryRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - items
- - total
- description: CustomerHistoryResult 业务数据
- title: CustomerHistoryResult
- CustomerHistoryRow:
- type: object
- properties:
- field_key:
- type: string
- title: field key
- description: 字段 field_key。
- old_value:
- type: string
- nullable: true
- title: old value
- description: 字段 old_value。
- new_value:
- type: string
- nullable: true
- title: new value
- description: 字段 new_value。
- operator:
- type: string
- nullable: true
- title: operator
- description: 字段 operator。
- changed_at:
- type: string
- nullable: true
- title: changed at
- description: 字段 changed_at。
- change_basis:
- type: string
- nullable: true
- title: 变更依据
- description: 字段 change_basis。
- source:
- type: string
- title: 来源
- description: 来源。
- required:
- - field_key
- - old_value
- - new_value
- - operator
- - changed_at
- - change_basis
- - source
- description: CustomerHistoryRow 业务数据
- title: CustomerHistoryRow
- CustomerListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/CustomerListRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: CustomerListResult 业务数据
- title: CustomerListResult
- CustomerListRow:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- subject_type:
- type: string
- title: 主体类型
- description: 主体类型。
- operator_id:
- type: string
- nullable: true
- title: 运营商 ID
- description: 运营商 ID。
- operator_name:
- type: string
- nullable: true
- title: operator name
- description: 字段 operator_name。
- partner_id:
- type: string
- nullable: true
- title: 合伙人 ID
- description: 合伙人 ID。
- partner_name:
- type: string
- nullable: true
- title: partner name
- description: 字段 partner_name。
- acct_status:
- type: string
- title: 账号状态
- description: 账号状态。
- quota_cents:
- type: string
- title: quota cents
- description: 字段 quota_cents。
- identity_no_masked:
- type: string
- nullable: true
- description: 脱敏识别号(后端经平台 keybox 解密后掩码下发;`null`=该客户未登记识别号)。
- title: identity no masked
- parent_node_id:
- type: string
- nullable: true
- description: 客户挂载的区域节点 ID(后端 扩展自 customer_region_mount.parent_node_id)。
- title: 父节点 ID
- region_path:
- type: string
- nullable: true
- description: '* 挂载区域的完整路径(后端 扩展:`customer_region_mount` LEFT JOIN * `bos_region_meta.path_name`,未定级时回落节点
- ID;口径同 `region_mounts.path_name`)。 * 区域树只下发授权范围内两层,市/区县级挂载点 能在树里查到名 ⇒ 列表侧必须后端下发。'
- title: region path
- team_ids:
- type: array
- items:
- type: string
- title: team_ids元素
- description: 运维团队 ID(;历史脏数据可能回显 >1,前端按实呈现并提示改派)。
- title: team ids
- ops_team_names:
- type: array
- items:
- type: string
- title: ops_team_names元素
- nullable: true
- description: 运维团队中文名数组(后端 JOIN ops_team 批量查)。
- title: ops team names
- plan_names:
- type: array
- items:
- type: string
- title: plan_names元素
- nullable: true
- description: 在用订阅的套餐名数组(后端批量查 order,status ∈ pending/active;空数组=无在用订阅)。
- title: plan names
- sub_account_count:
- type: integer
- title: sub account count
- description: 字段 sub_account_count。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- required:
- - customer_id
- - customer_name
- - subject_type
- - operator_id
- - operator_name
- - partner_id
- - partner_name
- - acct_status
- - quota_cents
- - team_ids
- - sub_account_count
- - created_at
- description: CustomerListRow 业务数据
- title: CustomerListRow
- CustomerMoveRegionResult:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- moved:
- type: boolean
- title: moved
- description: 字段 moved。
- blocked:
- type: array
- items:
- type: string
- title: 阻塞项元素
- title: 阻塞项
- description: 阻塞项。
- new_region_node_id:
- type: string
- nullable: true
- title: new region node id
- description: 字段 new_region_node_id。
- required:
- - customer_id
- - moved
- - blocked
- description: CustomerMoveRegionResult 业务数据
- title: CustomerMoveRegionResult
- CustomerOption:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- required:
- - customer_id
- - customer_name
- description: CustomerOption 业务数据
- title: CustomerOption
- CustomerUpdateResult:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- updated:
- type: boolean
- title: 是否已更新
- description: 是否已更新。
- required:
- - customer_id
- - updated
- description: CustomerUpdateResult 业务数据
- title: CustomerUpdateResult
- DelegateResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- assignee_user_id:
- type: string
- title: 处理人用户 ID
- description: 处理人用户 ID。
- assignee_snapshot_name:
- type: string
- title: assignee snapshot name
- description: 字段 assignee_snapshot_name。
- delegate_from_user_id:
- type: string
- title: delegate from user id
- description: 字段 delegate_from_user_id。
- delegated_at:
- type: string
- title: delegated at
- description: 字段 delegated_at。
- status:
- $ref: '#/components/schemas/TicketStatus'
- required:
- - ticket_id
- - assignee_user_id
- - assignee_snapshot_name
- - delegate_from_user_id
- - delegated_at
- - status
- description: DelegateResult 业务数据
- title: DelegateResult
- DeliveryExportResult:
- type: object
- properties:
- file_name:
- type: string
- title: 文件名
- description: 文件名。
- oss_key:
- type: string
- title: 对象键
- description: 对象键。
- row_count:
- type: integer
- title: row count
- description: 字段 row_count。
- limit:
- type: number
- title: limit
- description: 字段 limit。
- truncated:
- type: boolean
- title: 是否截断
- description: 是否截断。
- required:
- - file_name
- - oss_key
- - row_count
- - limit
- - truncated
- description: '`POST /delivery/export@v1`'
- title: DeliveryExportResult
- DeliveryListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/DeliveryRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- state:
- type: string
- nullable: true
- description: 本次生效的三态过滤(默认 `in_use`=在用+已到期待回收)。
- title: state
- include_released:
- type: boolean
- nullable: true
- title: include released
- description: 字段 include_released。
- required:
- - items
- - total
- description: '`POST /delivery/list@v1`'
- title: DeliveryListResult
- DeliveryRow:
- type: object
- properties:
- assign_id:
- type: string
- title: assign id
- description: 字段 assign_id。
- state:
- type: string
- enum:
- - in_use
- - pending_release
- - released
- description: 三态:`in_use`(在用)/`pending_release`(已到期待回收)/`released`(已回收)。
- title: state
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- description: 交付形态:`link`(跨境)/`addon`(附加)。
- title: plan family
- parent_subscription_id:
- type: string
- nullable: true
- description: 附加订阅的父单号(前端只标注「叠加于 ⟨父单号⟩」, 折叠嵌套)。
- title: parent subscription id
- sub_start_date:
- type: string
- nullable: true
- title: sub start date
- description: 字段 sub_start_date。
- sub_end_date:
- type: string
- nullable: true
- title: sub end date
- description: 字段 sub_end_date。
- opened_at:
- type: string
- nullable: true
- description: 开通日(订阅 `actual_opened_at`)。
- title: opened at
- sub_account_id:
- type: string
- title: sub account id
- description: 字段 sub_account_id。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- net_account:
- type: string
- nullable: true
- title: net account
- description: 字段 net_account。
- account_status:
- type: string
- nullable: true
- title: account status
- description: 字段 account_status。
- overseas_ip:
- type: string
- nullable: true
- title: overseas ip
- description: 字段 overseas_ip。
- ip_egress:
- type: string
- nullable: true
- title: ip egress
- description: 字段 ip_egress。
- ip_type:
- type: string
- nullable: true
- title: ip type
- description: 字段 ip_type。
- declared_bandwidth_mbps:
- type: integer
- nullable: true
- description: 台账申报带宽(IP 侧口径;跨境账号另见 `plan_bandwidth_*`)。
- title: declared bandwidth mbps
- activated_at:
- type: string
- nullable: true
- title: 激活时间
- description: 激活时间。
- released_at:
- type: string
- nullable: true
- title: released at
- description: 字段 released_at。
- release_reason:
- type: string
- nullable: true
- title: release reason
- description: 字段 release_reason。
- source_ticket_no:
- type: string
- nullable: true
- description: 来源回填单号(`ticket.ticket_no`)。
- title: source ticket no
- plan_bandwidth_committed:
- type: boolean
- nullable: true
- title: plan bandwidth committed
- description: 字段 plan_bandwidth_committed。
- plan_bandwidth_up_mbps:
- type: integer
- nullable: true
- title: plan bandwidth up mbps
- description: 字段 plan_bandwidth_up_mbps。
- plan_bandwidth_down_mbps:
- type: integer
- nullable: true
- title: plan bandwidth down mbps
- description: 字段 plan_bandwidth_down_mbps。
- contract_exits:
- type: array
- items:
- type: string
- title: contract_exits元素
- nullable: true
- description: 合同出口集合(`subscription.line_exits`)。
- title: contract exits
- measured_egress:
- type: string
- nullable: true
- description: 实测出口(`ticket_backfill_route.egress_pop`)。
- title: measured egress
- exit_mismatch:
- type: boolean
- nullable: true
- description: '`true`=实测出口不在合同出口集合内(前端两值同显并标红);`null`=无从比对。'
- title: exit mismatch
- intranet_ip:
- type: string
- nullable: true
- title: intranet ip
- description: 字段 intranet_ip。
- measured_down_mbps:
- type: integer
- nullable: true
- title: measured down mbps
- description: 字段 measured_down_mbps。
- measured_up_mbps:
- type: integer
- nullable: true
- title: measured up mbps
- description: 字段 measured_up_mbps。
- measured_at:
- type: string
- nullable: true
- description: 实测日期(列头日期;`null`=该账号无成功回填)。
- title: measured at
- required:
- - assign_id
- - state
- - customer_id
- - customer_name
- - subscription_id
- - plan_name
- - plan_family
- - parent_subscription_id
- - sub_start_date
- - sub_end_date
- - opened_at
- - sub_account_id
- - username
- - display_name
- - net_account
- - account_status
- - overseas_ip
- - ip_egress
- - ip_type
- - declared_bandwidth_mbps
- - activated_at
- - released_at
- - release_reason
- - source_ticket_no
- - plan_bandwidth_committed
- - plan_bandwidth_up_mbps
- - plan_bandwidth_down_mbps
- - contract_exits
- - measured_egress
- - exit_mismatch
- - intranet_ip
- - measured_down_mbps
- - measured_up_mbps
- - measured_at
- description: 交付现状行 [实](`POST /delivery/list@v1`)。 三类字段三个来源, 混读: -
- 在册资源(`overseas_ip`/`ip_egress`/`declared_bandwidth_mbps`/账号)=台账 `released_at IS NULL` 的行; -
- 账号资料与合同口径(`display_name`/`net_account`/`accoun
- title: DeliveryRow
- DeliveryTicketOutcome:
- type: object
- properties:
- kind:
- type: string
- nullable: true
- title: 类型
- description: 类型。
- ticket_id:
- type: string
- nullable: true
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- items:
- type: number
- nullable: true
- title: 列表项
- description: 列表项。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- failed:
- type: boolean
- nullable: true
- title: failed
- description: 字段 failed。
- description: 订阅保存触发的交付建单结论(`delivery_ticket`)。
- title: DeliveryTicketOutcome
- DispatchResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- scanned:
- type: number
- title: scanned
- description: 字段 scanned。
- dispatched:
- type: array
- items:
- $ref: '#/components/schemas/DispatchedTicket'
- title: dispatched
- description: 字段 dispatched。
- skipped:
- type: array
- items:
- $ref: '#/components/schemas/DispatchSkipped'
- title: skipped
- description: 字段 skipped。
- required:
- - team_id
- - scanned
- - dispatched
- - skipped
- description: DispatchResult 业务数据
- title: DispatchResult
- DispatchSkipped:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- reason:
- type: string
- description: no_candidate=无合适成员;already_taken=并发下已被他人分派
- title: reason
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - ticket_id
- - reason
- description: DispatchSkipped 业务数据
- title: DispatchSkipped
- DispatchedTicket:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- assignee_user_id:
- type: string
- title: 处理人用户 ID
- description: 处理人用户 ID。
- assignee_snapshot_name:
- type: string
- nullable: true
- title: assignee snapshot name
- description: 字段 assignee_snapshot_name。
- required:
- - ticket_id
- - ticket_no
- - assignee_user_id
- - assignee_snapshot_name
- description: 自动分派回执(create.rs dispatch_auto_inner):dispatched/skipped 是明细数组,不是计数。
- title: DispatchedTicket
- EffectiveMode:
- type: string
- enum:
- - period_snapshot
- - live_at_billing
- description: 生效时点(对账/14.4)。
- title: EffectiveMode
- EmptyObject:
- type: object
- description: 空业务载荷
- additionalProperties: false
- properties: {}
- title: EmptyObject
- EntTeamCreateResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- remark:
- type: string
- nullable: true
- description: '备注回读(未带=null)'
- title: 备注
- is_builtin:
- type: boolean
- title: is builtin
- description: 字段 is_builtin。
- owner_user_id:
- type: string
- nullable: true
- title: owner user id
- description: 字段 owner_user_id。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- title: members
- description: 字段 members。
- account:
- $ref: '#/components/schemas/AccountOut'
- scope_note:
- type: string
- title: scope note
- description: 字段 scope_note。
- builtin_note:
- type: string
- title: builtin note
- description: 字段 builtin_note。
- required:
- - team_id
- - team_name
- - remark
- - is_builtin
- - owner_user_id
- - member_count
- - members
- - account
- - scope_note
- - builtin_note
- description: EntTeamCreateResult 业务数据
- title: EntTeamCreateResult
- EntTeamDeleteResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- deleted:
- type: string
- description: 类型:false
- title: 是否已删除
- blockers:
- type: array
- items:
- $ref: '#/components/schemas/BlockerItem'
- title: blockers
- description: 字段 blockers。
- unverifiable_checks:
- type: array
- items:
- $ref: '#/components/schemas/UnverifiableCheck'
- title: unverifiable checks
- description: 字段 unverifiable_checks。
- audit_key:
- type: string
- nullable: true
- title: audit key
- description: 字段 audit_key。
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - team_id
- - team_name
- - deleted
- - blockers
- - unverifiable_checks
- - note
- description: EntTeamDeleteResult 业务数据
- title: EntTeamDeleteResult
- EntTeamListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: EntTeamListResult 业务数据
- title: EntTeamListResult
- EntTeamMember:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- display_name:
- type: string
- nullable: true
- description: '本人姓名(`bos_account_ext.display_name`);未填=null, 用登录名冒充。'
- title: 显示名
- name:
- type: string
- nullable: true
- description: '展示名回落链:姓名 → 登录名 → user_id。下拉框/表格统一读此字段。'
- title: 名称
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- role_code:
- type: string
- nullable: true
- title: 角色码
- description: 角色码。
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- binding_status:
- type: string
- nullable: true
- description: '`bos_user_binding.status`(账号启停:active/disabled);与激活码生命周期正交。'
- title: binding status
- activation_status:
- type: string
- nullable: true
- description: '`bos_account_ext.status`(激活码生命周期);`null`=无激活码扩展行。'
- title: 激活态
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- nullable: true
- description: '* 可承接工单类型清单(`ops_account_ticket_type`, 新增, 判据二)。 * 空数组=该运营账号不接任何单( 折算成「不限类型」);老后端
- 该键时视为未知。'
- title: 工单类型清单
- required:
- - user_id
- - username
- - mobile
- - role_code
- - is_primary
- description: '[实] 成员行'
- title: EntTeamMember
- EntTeamMemberAddResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- added:
- type: string
- description: 类型:true
- title: added
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- role_code:
- type: string
- description: '`opsMain`(主账号)/`opsSub`(子账号)'
- title: 角色码
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- primary_forced:
- type: boolean
- description: '团队原 成员且 指定 ⇒ 自动置主账号'
- title: primary forced
- primary_forced_note:
- type: string
- title: primary forced note
- description: 字段 primary_forced_note。
- account:
- $ref: '#/components/schemas/AccountOut'
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- title: members
- description: 字段 members。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- duplicate_member_note:
- type: string
- description: 同 user_id 已在团 ⇒ 显式报错(本字段为「 重复」说明)
- title: duplicate member note
- scope_note:
- type: string
- title: scope note
- description: 字段 scope_note。
- required:
- - team_id
- - team_name
- - added
- - user_id
- - role_code
- - is_primary
- - primary_forced
- - primary_forced_note
- - account
- - members
- - member_count
- - duplicate_member_note
- - scope_note
- description: EntTeamMemberAddResult 业务数据
- title: EntTeamMemberAddResult
- EntTeamMemberRemoveResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- role_code:
- type: string
- nullable: true
- title: 角色码
- description: 角色码。
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- team_primary_user_id:
- type: string
- nullable: true
- title: team primary user id
- description: 字段 team_primary_user_id。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- removed:
- type: string
- description: 类型:false
- title: removed
- blockers:
- type: array
- items:
- $ref: '#/components/schemas/BlockerItem'
- title: blockers
- description: 字段 blockers。
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- title: members
- description: 字段 members。
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - team_id
- - team_name
- - user_id
- - username
- - role_code
- - is_primary
- - team_primary_user_id
- - member_count
- - removed
- - blockers
- - members
- - note
- description: EntTeamMemberRemoveResult 业务数据
- title: EntTeamMemberRemoveResult
- EntTeamMemberUpdateResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- display_name:
- type: string
- nullable: true
- description: '写后姓名(`bos_account_ext.display_name`);未填=null'
- title: 显示名
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- updated:
- type: object
- properties:
- name:
- type: boolean
- mobile:
- type: boolean
- ticket_types:
- type: boolean
- nullable: true
- required:
- - name
- - mobile
- description: '本次实际改动的字段(缺省键= 改)'
- title: 是否已更新
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- nullable: true
- description: '本次提交的可承接类型清单(`ticket_types` 缺省时为 `null`)'
- title: 工单类型清单
- ticket_types_note:
- type: string
- nullable: true
- title: ticket types note
- description: 字段 ticket_types_note。
- unchanged_note:
- type: string
- title: unchanged note
- description: 字段 unchanged_note。
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- title: members
- description: 字段 members。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- required:
- - team_id
- - team_name
- - user_id
- - username
- - display_name
- - is_primary
- - updated
- - unchanged_note
- - members
- - member_count
- description: EntTeamMemberUpdateResult 业务数据
- title: EntTeamMemberUpdateResult
- EntTeamRow:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- remark:
- type: string
- nullable: true
- description: '* 备注=`ent_team.remark VARCHAR(200) NULL`( 补列, ``)。 * 参与唯一键、 参与算账与判权;未配置=null(
- 折算成空串冒充"已配置且无内容")。'
- title: 备注
- is_builtin:
- type: boolean
- title: is builtin
- description: 字段 is_builtin。
- owner_username:
- type: string
- nullable: true
- title: owner username
- description: 字段 owner_username。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- nullable: true
- description: '成员明细(含姓名);老后端 该键时按成员数缺失去展示, 编造名单。'
- title: members
- scope_regions:
- type: array
- items:
- type: string
- title: scope_regions元素
- description: '* 「所属区域」列=`bos_data_scope` 里的授权节点(`ent_team` region 列,区域归属 * 按 只落 scope 表)。空数组:内置团队=「不限」,非内置=「未配置」,
- * 显示成某个真实区域。'
- title: scope regions
- scope_customers:
- type: array
- items:
- type: string
- title: scope_customers元素
- description: '范围内直接多选的客户'
- title: scope customers
- coverage_customers:
- type: number
- nullable: true
- description: '覆盖客户数;内置空范围=全量在册;非内置空范围=null(未配置, 折算 0)'
- title: coverage customers
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- required:
- - team_id
- - team_name
- - remark
- - is_builtin
- - owner_username
- - member_count
- - scope_regions
- - scope_customers
- - coverage_customers
- - created_at
- description: EntTeamRow 业务数据
- title: EntTeamRow
- EntTeamScope:
- type: object
- properties:
- grants:
- type: array
- items:
- $ref: '#/components/schemas/ScopeGrant'
- title: grants
- description: 字段 grants。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- required:
- - grants
- - total
- description: EntTeamScope 业务数据
- title: EntTeamScope
- EntTeamScopeSaveResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- nullable: true
- description: '仅「确有改动」分支下发'
- title: 团队名称
- region_node_ids:
- type: array
- items:
- type: string
- title: region_node_ids元素
- description: '回读 `bos_data_scope` 的 target_id 集'
- title: region node ids
- total:
- type: integer
- title: 总条数
- description: 总条数。
- inserted:
- type: number
- title: inserted
- description: 字段 inserted。
- deleted:
- type: number
- title: 是否已删除
- description: 是否已删除。
- unchanged:
- type: number
- title: unchanged
- description: 字段 unchanged。
- empty_allowed:
- type: boolean
- description: 授权清零(全部子账号失去可见性)说明
- title: empty allowed
- noop:
- type: boolean
- nullable: true
- title: noop
- description: 字段 noop。
- consistent:
- type: boolean
- nullable: true
- title: consistent
- description: 字段 consistent。
- diff_with_requested:
- type: object
- properties:
- expected:
- type: array
- items:
- type: string
- actual:
- type: array
- items:
- type: string
- required:
- - expected
- - actual
- nullable: true
- title: diff with requested
- description: 字段 diff_with_requested。
- shrink_note:
- type: string
- title: shrink note
- description: 字段 shrink_note。
- required:
- - team_id
- - region_node_ids
- - total
- - inserted
- - deleted
- - unchanged
- - empty_allowed
- - shrink_note
- description: EntTeamScopeSaveResult 业务数据
- title: EntTeamScopeSaveResult
- EntTeamTransferPrimaryResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- transferred:
- type: string
- description: 类型:true
- title: 是否已移交
- from_user_id:
- type: string
- title: from user id
- description: 字段 from_user_id。
- from_username:
- type: string
- nullable: true
- title: from username
- description: 字段 from_username。
- to_user_id:
- type: string
- title: to user id
- description: 字段 to_user_id。
- to_username:
- type: string
- nullable: true
- title: to username
- description: 字段 to_username。
- owner_user_id:
- type: string
- title: owner user id
- description: 字段 owner_user_id。
- statement_order:
- type: array
- items:
- type: string
- title: statement_order元素
- description: '逐语句标签,顺序=执行顺序'
- title: statement order
- role_switch_note:
- type: string
- title: role switch note
- description: 字段 role_switch_note。
- unchanged_note:
- type: string
- title: unchanged note
- description: 字段 unchanged_note。
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- title: members
- description: 字段 members。
- audit_before_after:
- type: object
- properties:
- before:
- type: object
- properties:
- primary_user_id:
- type: string
- nullable: true
- owner_user_id:
- type: string
- nullable: true
- required:
- - primary_user_id
- - owner_user_id
- after:
- type: object
- properties:
- primary_user_id:
- type: string
- nullable: true
- owner_user_id:
- type: string
- nullable: true
- required:
- - primary_user_id
- - owner_user_id
- required:
- - before
- - after
- title: audit before after
- description: 字段 audit_before_after。
- required:
- - team_id
- - team_name
- - transferred
- - from_user_id
- - from_username
- - to_user_id
- - to_username
- - owner_user_id
- - statement_order
- - role_switch_note
- - unchanged_note
- - members
- - audit_before_after
- description: EntTeamTransferPrimaryResult 业务数据
- title: EntTeamTransferPrimaryResult
- EntTeamUpdateResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- remark:
- type: string
- nullable: true
- description: '备注回读(写后真值)'
- title: 备注
- remark_touched:
- type: boolean
- description: '本次是否改了备注(`true`=请求带 `remark` 键,含清空)'
- title: remark touched
- is_builtin:
- type: boolean
- title: is builtin
- description: 字段 is_builtin。
- owner_user_id:
- type: string
- nullable: true
- title: owner user id
- description: 字段 owner_user_id。
- members:
- type: array
- items:
- $ref: '#/components/schemas/EntTeamMember'
- title: members
- description: 字段 members。
- builtin_renamed_note:
- type: string
- nullable: true
- description: '内置团队改名说明(非内置=null)'
- title: builtin renamed note
- platform_sync_note:
- type: string
- title: platform sync note
- description: 字段 platform_sync_note。
- row_version_note:
- type: string
- description: 未传 `row_version` ⇒ `未传 row_version`(dev `ent_team` 版本列 ⇒ 乐观锁未启用)
- title: row version note
- required:
- - team_id
- - team_name
- - remark
- - remark_touched
- - is_builtin
- - owner_user_id
- - members
- - builtin_renamed_note
- - platform_sync_note
- - row_version_note
- description: EntTeamUpdateResult 业务数据
- title: EntTeamUpdateResult
- ExportCodeItem:
- type: object
- title: 激活码条目
- description: 平台导出条目原样转发;页面遇缺失字段显示「—」,勿猜测补全。
- required:
- - id
- - user_id
- - purpose
- - plaintext
- - expires_at
- - reissued
- properties:
- id:
- type: string
- title: 平台条目 ID
- description: 平台侧凭证条目标识。
- user_id:
- type: string
- title: 用户 ID
- description: 绑定的本系统用户 ID。
- purpose:
- type: string
- title: 用途
- description: 平台用途标识,常见值为 activate。
- example: activate
- plaintext:
- type: string
- title: 激活码明文
- description: 仅本次应答出现;平台不落库,须立即分发或安全保存。
- expires_at:
- type: string
- title: 过期时间
- description: 凭证失效时间(平台原样)。
- reissued:
- type: boolean
- title: 是否换新
- description: true=本条为先作废再换新得到的新码。
- additionalProperties: true
- ExportResult:
- type: object
- properties:
- file_name:
- type: string
- nullable: true
- title: 文件名
- description: 文件名。
- download_url:
- type: string
- nullable: true
- title: 下载地址
- description: 下载地址。
- content_base64:
- type: string
- nullable: true
- title: content base64
- description: 字段 content_base64。
- expires_at:
- type: string
- nullable: true
- title: expires at
- description: 字段 expires_at。
- task_id:
- type: string
- nullable: true
- description: 超 export_async_rows 时异步通道任务号。
- title: task id
- async:
- type: boolean
- nullable: true
- title: async
- description: 字段 async。
- rows:
- type: array
- items:
- type: object
- additionalProperties: {}
- title: 行集元素
- nullable: true
- title: 行集
- description: 行集。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- scope_type:
- type: string
- nullable: true
- title: 作用域类型
- description: 作用域类型。
- scope_id:
- type: string
- nullable: true
- title: 作用域 ID
- description: 作用域 ID。
- validity:
- type: string
- nullable: true
- title: 有效性口径
- description: 有效性口径。
- user_count:
- type: integer
- nullable: true
- title: 账号数
- description: 账号数。
- user_ids:
- type: array
- items:
- type: string
- title: 用户 ID 列表元素
- nullable: true
- title: 用户 ID 列表
- description: 用户 ID 列表。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- items:
- type: array
- items:
- $ref: '#/components/schemas/ExportCodeItem'
- nullable: true
- title: 列表项
- description: 列表项。
- chunks:
- type: number
- nullable: true
- title: chunks
- description: 字段 chunks。
- pages:
- type: number
- nullable: true
- title: pages
- description: 字段 pages。
- reissued:
- type: number
- nullable: true
- title: 换新条数
- description: 换新条数。
- kept:
- type: number
- nullable: true
- title: 保留条数
- description: 保留条数。
- revoked:
- type: number
- nullable: true
- title: 作废条数
- description: 作废条数。
- write_capability:
- type: boolean
- nullable: true
- title: 是否写操作
- description: 是否写操作。
- export_mode:
- type: string
- nullable: true
- description: 与 `write_capability` 同义的显式枚举:`read`=只读导出,`write`=作废换新路径。
- title: 导出模式
- plaintext_once:
- type: boolean
- nullable: true
- title: 明文一次性
- description: 明文一次性。
- plaintext_note:
- type: string
- nullable: true
- title: 明文说明
- description: 明文说明。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- audit_note:
- type: string
- nullable: true
- description: 与 `audit_written` 成对:已留痕/未留痕的人读说明( 勿仅凭布尔值猜测)。
- title: 审计说明
- batch_id:
- type: string
- nullable: true
- title: 批次 ID
- description: 批次 ID。
- batch_no:
- type: string
- nullable: true
- title: 批次号
- description: 批次号。
- description: 导出类应答
- title: ExportResult
- FinalizeResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- status:
- $ref: '#/components/schemas/TicketStatus'
- closed_at:
- type: string
- nullable: true
- title: 关闭时间
- description: 关闭时间。
- open_stop_closed:
- type: boolean
- nullable: true
- title: open stop closed
- description: 字段 open_stop_closed。
- settled_at:
- type: string
- nullable: true
- title: 办结时间
- description: 办结时间。
- defer_scope:
- type: string
- nullable: true
- title: defer scope
- description: 字段 defer_scope。
- deferred_until:
- type: string
- nullable: true
- title: 延期至
- description: 延期至。
- reverted_from:
- type: string
- nullable: true
- title: reverted from
- description: 字段 reverted_from。
- untouched:
- type: array
- items:
- type: string
- title: untouched元素
- nullable: true
- title: untouched
- description: 字段 untouched。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - ticket_id
- - status
- - audit_written
- description: FinalizeResult 业务数据
- title: FinalizeResult
- FormExtPayload:
- type: object
- properties:
- template_id:
- type: string
- nullable: true
- title: template id
- description: 字段 template_id。
- template_version:
- oneOf:
- - type: number
- - type: string
- nullable: true
- title: template version
- description: 字段 template_version。
- schema:
- $ref: '#/components/schemas/FormSchema'
- values:
- type: object
- additionalProperties: {}
- nullable: true
- title: values
- description: 字段 values。
- description: 详情 `backfill.ext`/回填提交 `ext`。
- title: FormExtPayload
- FormFieldFormat:
- type: string
- description: FormFieldFormat 业务数据
- title: FormFieldFormat
- FormFieldSchema:
- type: object
- properties:
- key:
- type: string
- title: key
- description: 字段 key。
- label:
- type: string
- title: 标签
- description: 标签。
- type:
- type: string
- title: type
- description: 字段 type。
- required:
- type: boolean
- nullable: true
- title: required
- description: 字段 required。
- options:
- type: array
- items:
- type: object
- properties:
- value:
- type: string
- label:
- type: string
- required:
- - value
- - label
- nullable: true
- title: options
- description: 字段 options。
- help:
- type: string
- nullable: true
- title: help
- description: 字段 help。
- maxLength:
- type: number
- nullable: true
- description: 文本类长度上限:text/material_ref ≤200,textarea ≤2000。
- title: maxLength
- min:
- type: number
- nullable: true
- description: number 最小值。
- title: min
- max:
- type: number
- nullable: true
- description: number 最大值。
- title: max
- step:
- type: number
- nullable: true
- description: number 步长(>0);相对 min(缺省 0)对齐。
- title: step
- format:
- oneOf:
- - $ref: '#/components/schemas/FormFieldFormat'
- - type: string
- nullable: true
- description: 文本类命名格式规则。
- title: format
- span:
- type: number
- nullable: true
- description: 本字段跨列数(1..=layout.columns);缺省 1。`array` 不使用。
- title: span
- minItems:
- type: number
- nullable: true
- description: '`array`:最少卡片数;缺省 0;组 required 时至少 1。'
- title: minItems
- maxItems:
- type: number
- nullable: true
- description: '`array`:最多卡片数;缺省 20,上限 20。'
- title: maxItems
- itemLabel:
- type: string
- nullable: true
- description: '`array`:卡头前缀(呈现时拼 1 基序号)。'
- title: itemLabel
- fields:
- type: array
- items:
- $ref: '#/components/schemas/FormFieldSchema'
- nullable: true
- description: '`array`:卡内叶子字段(禁止再嵌套 array)。'
- title: fields
- required:
- - key
- - label
- - type
- description: FormFieldSchema 业务数据
- title: FormFieldSchema
- FormSchema:
- type: object
- properties:
- fields:
- type: array
- items:
- $ref: '#/components/schemas/FormFieldSchema'
- title: fields
- description: 字段 fields。
- layout:
- type: object
- properties:
- columns:
- type: number
- nullable: true
- nullable: true
- description: 布局列数:1/2/3。
- title: layout
- required:
- - fields
- description: FormSchema 业务数据
- title: FormSchema
- FormTemplateBundle:
- type: object
- properties:
- ticket_type:
- type: string
- title: 工单类型
- description: 工单类型。
- ticket_type_name:
- type: string
- nullable: true
- title: ticket type name
- description: 字段 ticket_type_name。
- published:
- $ref: '#/components/schemas/FormTemplateRow'
- draft:
- $ref: '#/components/schemas/FormTemplateRow'
- versions:
- type: array
- items:
- $ref: '#/components/schemas/FormTemplateRow'
- title: versions
- description: 字段 versions。
- required:
- - ticket_type
- - published
- - draft
- - versions
- description: FormTemplateBundle 业务数据
- title: FormTemplateBundle
- FormTemplateRow:
- type: object
- properties:
- template_id:
- type: string
- title: template id
- description: 字段 template_id。
- ticket_type:
- type: string
- title: 工单类型
- description: 工单类型。
- ticket_type_name:
- type: string
- nullable: true
- title: ticket type name
- description: 字段 ticket_type_name。
- version:
- oneOf:
- - type: string
- - type: number
- title: version
- description: 字段 version。
- status:
- type: string
- title: 状态
- description: 状态。
- schema:
- $ref: '#/components/schemas/FormSchema'
- row_version:
- oneOf:
- - type: string
- - type: number
- title: 乐观锁版本
- description: 乐观锁版本。
- published_at:
- type: string
- nullable: true
- title: published at
- description: 字段 published_at。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- required:
- - template_id
- - ticket_type
- - version
- - status
- - schema
- - row_version
- description: 模板管理口单条版本行。
- title: FormTemplateRow
- HealthInfo:
- type: object
- properties:
- status:
- type: string
- title: 状态
- description: 状态。
- required:
- - status
- description: HealthInfo 业务数据
- title: HealthInfo
- HolderType:
- type: string
- enum:
- - operator
- - partner
- - ops_team
- description: 分成方类型值域(holder_type,对账)。
- title: HolderType
- ImportBatchDetail:
- type: object
- properties:
- batch:
- $ref: '#/components/schemas/ImportBatchRowT'
- status_counts:
- type: array
- items:
- type: object
- properties:
- validate_status:
- type: string
- count:
- type: string
- required:
- - validate_status
- - count
- title: status counts
- description: 字段 status_counts。
- rows:
- type: array
- items:
- $ref: '#/components/schemas/ImportRowDetail'
- title: 行集
- description: 行集。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - batch
- - status_counts
- - rows
- description: ImportBatchDetail 业务数据
- title: ImportBatchDetail
- ImportBatchListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/ImportBatchRowT'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: ImportBatchListResult 业务数据
- title: ImportBatchListResult
- ImportBatchRowT:
- type: object
- properties:
- batch_id:
- type: string
- title: 批次 ID
- description: 批次 ID。
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- batch_type:
- type: string
- title: batch type
- description: 字段 batch_type。
- status:
- type: string
- title: 状态
- description: 状态。
- total_rows:
- type: string
- title: total rows
- description: 字段 total_rows。
- success_rows:
- type: string
- title: success rows
- description: 字段 success_rows。
- fail_rows:
- type: string
- title: fail rows
- description: 字段 fail_rows。
- operator_username:
- type: string
- nullable: true
- title: operator username
- description: 字段 operator_username。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- file_name:
- type: string
- nullable: true
- description: 导入来源文件名;粘贴录入=「粘贴录入」;未传=null。
- title: 文件名
- customer_names:
- type: string
- nullable: true
- description: 批次内客户名称汇总(空格分隔);供台账按客户名搜索。
- title: customer names
- required:
- - batch_id
- - batch_no
- - batch_type
- - status
- - total_rows
- - success_rows
- - fail_rows
- - operator_username
- - created_at
- description: ImportBatchRowT 业务数据
- title: ImportBatchRowT
- ImportConfirmResult:
- type: object
- properties:
- batch_id:
- type: string
- title: 批次 ID
- description: 批次 ID。
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- status:
- type: string
- title: 状态
- description: 状态。
- total_rows:
- oneOf:
- - type: string
- - type: number
- title: total rows
- description: 字段 total_rows。
- success_rows:
- oneOf:
- - type: string
- - type: number
- title: success rows
- description: 字段 success_rows。
- fail_rows:
- oneOf:
- - type: string
- - type: number
- title: fail rows
- description: 字段 fail_rows。
- imported_this_call:
- type: number
- nullable: true
- title: imported this call
- description: 字段 imported_this_call。
- failed_this_call:
- type: number
- nullable: true
- title: failed this call
- description: 字段 failed_this_call。
- already_imported_rows:
- type: number
- nullable: true
- title: already imported rows
- description: 字段 already_imported_rows。
- rows:
- type: string
- description: 行集。
- nullable: true
- title: 行集
- required:
- - batch_id
- - batch_no
- - status
- - total_rows
- - success_rows
- - fail_rows
- description: ImportConfirmResult 业务数据
- title: ImportConfirmResult
- ImportResumeResult:
- type: object
- properties:
- batch_id:
- type: string
- title: 批次 ID
- description: 批次 ID。
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- status_before:
- type: string
- title: status before
- description: 字段 status_before。
- status_after:
- type: string
- title: status after
- description: 字段 status_after。
- updated_rows:
- type: number
- title: updated rows
- description: 字段 updated_rows。
- inserted_rows:
- type: number
- title: inserted rows
- description: 字段 inserted_rows。
- affected_rows:
- type: number
- title: affected rows
- description: 字段 affected_rows。
- already_imported_rows:
- type: number
- title: already imported rows
- description: 字段 already_imported_rows。
- summary:
- type: object
- properties:
- status:
- type: string
- total_rows:
- type: string
- success_rows:
- type: string
- fail_rows:
- type: string
- required:
- - status
- - total_rows
- - success_rows
- - fail_rows
- title: summary
- description: 字段 summary。
- rows:
- type: array
- items:
- $ref: '#/components/schemas/ImportResumeRow'
- title: 行集
- description: 行集。
- checks_pending:
- type: array
- items:
- type: string
- title: checks_pending元素
- title: checks pending
- description: 字段 checks_pending。
- required:
- - batch_id
- - batch_no
- - status_before
- - status_after
- - updated_rows
- - inserted_rows
- - affected_rows
- - already_imported_rows
- - summary
- - rows
- - checks_pending
- description: ImportResumeResult 业务数据
- title: ImportResumeResult
- ImportResumeRow:
- type: object
- properties:
- row_no:
- type: number
- title: row no
- description: 字段 row_no。
- outcome:
- type: string
- enum:
- - already_imported
- - overwritten
- - inserted
- title: outcome
- description: 字段 outcome。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- validate_status:
- type: string
- nullable: true
- title: validate status
- description: 字段 validate_status。
- errors:
- type: array
- items:
- type: string
- title: errors元素
- nullable: true
- description: 行级错误(契约字段 `errors`);`error_list` 为过渡双写。
- title: errors
- error_list:
- type: array
- items:
- type: string
- title: error_list元素
- nullable: true
- title: error list
- description: 字段 error_list。
- required:
- - row_no
- - outcome
- description: ImportResumeRow 业务数据
- title: ImportResumeRow
- ImportRowDetail:
- type: object
- properties:
- row_no:
- type: string
- title: row no
- description: 字段 row_no。
- validate_status:
- type: string
- title: validate status
- description: 字段 validate_status。
- business_id:
- type: string
- nullable: true
- title: business id
- description: 字段 business_id。
- errors:
- title: errors
- description: 字段 errors。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- region_name:
- type: string
- nullable: true
- title: region name
- description: 字段 region_name。
- subject_type:
- type: string
- nullable: true
- title: 主体类型
- description: 主体类型。
- operator_name:
- type: string
- nullable: true
- title: operator name
- description: 字段 operator_name。
- partner_name:
- type: string
- nullable: true
- title: partner name
- description: 字段 partner_name。
- ops_team_names:
- type: array
- items:
- type: string
- title: ops_team_names元素
- nullable: true
- title: ops team names
- description: 字段 ops_team_names。
- required:
- - row_no
- - validate_status
- - business_id
- - errors
- description: 导入行明细 [实]
- title: ImportRowDetail
- ImportSubmitResult:
- type: object
- properties:
- batch_id:
- type: string
- title: 批次 ID
- description: 批次 ID。
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- status:
- type: string
- title: 状态
- description: 状态。
- total_rows:
- type: number
- title: total rows
- description: 字段 total_rows。
- success_rows:
- type: number
- title: success rows
- description: 字段 success_rows。
- fail_rows:
- type: number
- title: fail rows
- description: 字段 fail_rows。
- valid_rows:
- type: number
- title: valid rows
- description: 字段 valid_rows。
- invalid_rows:
- type: number
- title: invalid rows
- description: 字段 invalid_rows。
- rows_written:
- type: number
- title: rows written
- description: 字段 rows_written。
- rows:
- type: array
- items:
- type: object
- properties:
- row_no:
- type: number
- validate_status:
- type: string
- errors:
- type: array
- items:
- type: string
- nullable: true
- error_list:
- type: array
- items:
- type: string
- nullable: true
- required:
- - row_no
- - validate_status
- title: 行集
- description: 行集。
- checks_pending:
- type: array
- items:
- type: string
- title: checks_pending元素
- description: 上传阶段仍待能力项(如实披露)
- title: checks pending
- region_match_note:
- type: string
- title: region match note
- description: 字段 region_match_note。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- audit_note:
- type: string
- nullable: true
- title: 审计说明
- description: 审计说明。
- required:
- - batch_id
- - batch_no
- - status
- - total_rows
- - success_rows
- - fail_rows
- - valid_rows
- - invalid_rows
- - rows_written
- - rows
- - checks_pending
- - region_match_note
- description: ImportSubmitResult 业务数据
- title: ImportSubmitResult
- ImportTemplateDownloadResult:
- type: object
- description: 导入模板下载信息
- properties:
- file_name:
- type: string
- description: 文件名
- title: 文件名
- oss_key:
- type: string
- description: 对象存储键
- title: 对象键
- download_url:
- type: string
- description: 短时效下载地址
- nullable: true
- title: 下载地址
- content_type:
- type: string
- description: MIME 类型
- nullable: true
- title: 内容类型
- required:
- - file_name
- - oss_key
- title: ImportTemplateDownloadResult
- ImportTemplateSpec:
- type: object
- properties:
- format:
- type: string
- title: format
- description: 字段 format。
- columns:
- type: number
- title: columns
- description: 字段 columns。
- max_rows:
- type: number
- title: max rows
- description: 字段 max_rows。
- column_names:
- type: array
- items:
- type: string
- title: column_names元素
- nullable: true
- description: 模板表头列名(顺序固定);缺省时前端按本地约定生成。
- title: column names
- sample_row:
- type: array
- items:
- type: string
- title: sample_row元素
- nullable: true
- description: 示例行(行编号=「示例」);上传时自动跳过。
- title: sample row
- fill_notes:
- type: array
- items:
- type: string
- title: fill_notes元素
- nullable: true
- description: 填写注意(主账号留空、区域名称/node_id 等)。
- title: fill notes
- required:
- - format
- - columns
- - max_rows
- description: GET/POST /import_batch/template_download@v1
- title: ImportTemplateSpec
- InboxListResult:
- type: object
- properties:
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- title: 页码
- description: 页码。
- page_size:
- type: integer
- title: 每页条数
- description: 每页条数。
- unread:
- type: integer
- description: 未读总数(不受 `unread_only` 影响)。
- title: 未读数
- rows:
- type: array
- items:
- $ref: '#/components/schemas/InboxMessage'
- title: 行集
- description: 行集。
- required:
- - total
- - page
- - page_size
- - unread
- - rows
- description: InboxListResult 业务数据
- title: InboxListResult
- InboxMessage:
- type: object
- properties:
- message_id:
- type: string
- title: 消息 ID
- description: 消息 ID。
- kind:
- type: string
- description: '* 消息类型:`contract_renewal`/`ticket_urge`/`customer_region_transfer`/ * `ticket_awaiting_confirm`/`completion_rejected`。'
- title: 类型
- ref_type:
- type: string
- description: 关联对象类型:`contract`/`ticket`/`customer`。
- title: ref type
- ref_id:
- type: string
- description: 关联对象 ID(续签=合同 ID;催办=`{ticket_id}:{业务日}`;改挂=`{customer_id}:{transfer_id}`)。
- title: ref id
- title:
- type: string
- title: 标题
- description: 标题。
- body:
- type: string
- nullable: true
- title: body
- description: 字段 body。
- action:
- type: string
- nullable: true
- description: '`create_renewal_ticket`/`open_ticket`/`open_customer`/`confirm_close`。'
- title: 动作
- payload:
- type: object
- properties:
- contract_id:
- type: string
- nullable: true
- contract_no:
- type: string
- nullable: true
- customer_id:
- type: string
- nullable: true
- customer_name:
- type: string
- nullable: true
- end_date:
- type: string
- nullable: true
- days_left:
- type: number
- nullable: true
- ticket_id:
- type: string
- nullable: true
- ticket_no:
- type: string
- nullable: true
- ticket_type:
- type: string
- nullable: true
- ticket_title:
- type: string
- nullable: true
- counterparty_kind:
- type: string
- nullable: true
- counterparty_name:
- type: string
- nullable: true
- from_user_name:
- type: string
- nullable: true
- waiting_hours:
- type: number
- nullable: true
- business_date:
- type: string
- nullable: true
- nullable: true
- title: 载荷
- description: 载荷。
- read_at:
- type: string
- nullable: true
- title: 已读时间
- description: 已读时间。
- handled_at:
- type: string
- nullable: true
- title: 处理时间
- description: 处理时间。
- handled_by:
- type: string
- nullable: true
- title: handled by
- description: 字段 handled_by。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- required:
- - message_id
- - kind
- - ref_type
- - ref_id
- - title
- - body
- - action
- - payload
- - read_at
- - handled_at
- - handled_by
- - created_at
- description: 消息行(列表与动作回执共用形状)。
- title: InboxMessage
- InboxReadResult:
- type: object
- description: 站内信已读标记结果
- properties:
- message_id:
- type: string
- description: 消息 ID
- title: 消息 ID
- changed:
- type: boolean
- description: 本次是否从未读变为已读
- title: 是否已变更
- required:
- - message_id
- - changed
- title: InboxReadResult
- InfluenceItem:
- type: object
- properties:
- key:
- type: string
- title: key
- description: 字段 key。
- label:
- type: string
- title: 标签
- description: 标签。
- count:
- type: number
- title: count
- description: 字段 count。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- required:
- - key
- - label
- - count
- - note
- description: InfluenceItem 业务数据
- title: InfluenceItem
- IpBandwidthTierListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/IpBandwidthTierRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- required:
- - items
- description: IpBandwidthTierListResult 业务数据
- title: IpBandwidthTierListResult
- IpBandwidthTierRow:
- type: object
- properties:
- tier_key:
- type: string
- title: tier key
- description: 字段 tier_key。
- tier_name:
- type: string
- title: tier name
- description: 字段 tier_name。
- bandwidth_tier_mbps:
- type: integer
- nullable: true
- title: bandwidth tier mbps
- description: 字段 bandwidth_tier_mbps。
- bandwidth_committed:
- type: boolean
- title: bandwidth committed
- description: 字段 bandwidth_committed。
- sort_no:
- type: number
- title: sort no
- description: 字段 sort_no。
- ref_count:
- type: integer
- nullable: true
- title: ref count
- description: 字段 ref_count。
- ref_summary:
- type: string
- nullable: true
- title: ref summary
- description: 字段 ref_summary。
- required:
- - tier_key
- - tier_name
- - bandwidth_tier_mbps
- - bandwidth_committed
- - sort_no
- description: IP 带宽档位目录行(套餐配置 → 线路出口 tab 内维护;)。 `bandwidth_tier_mbps === null`
- =「不承诺带宽」;`bandwidth_committed` 是同一件事的可读位。 `ref_count`/`ref_summary` 由后端逐条带出:>0 表示已被合同 IP
- 备案引用,目录侧不允许删除。
- title: IpBandwidthTierRow
- IpBandwidthTierSaveResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/IpBandwidthTierRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- added:
- type: number
- nullable: true
- title: added
- description: 字段 added。
- updated:
- type: number
- nullable: true
- title: 是否已更新
- description: 是否已更新。
- removed:
- type: number
- nullable: true
- title: removed
- description: 字段 removed。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - items
- description: IpBandwidthTierSaveResult 业务数据
- title: IpBandwidthTierSaveResult
- IpRow:
- type: object
- properties:
- id:
- type: string
- title: ID
- description: ID。
- row_no:
- type: string
- title: row no
- description: 字段 row_no。
- egress:
- type: string
- nullable: true
- title: egress
- description: 字段 egress。
- overseas_ip:
- type: string
- nullable: true
- title: overseas ip
- description: 字段 overseas_ip。
- ip_type:
- type: string
- nullable: true
- title: ip type
- description: 字段 ip_type。
- bandwidth_mbps:
- type: string
- nullable: true
- title: bandwidth mbps
- description: 字段 bandwidth_mbps。
- pin_registered:
- type: string
- nullable: true
- title: pin registered
- description: 字段 pin_registered。
- cpid_registered:
- type: string
- nullable: true
- title: cpid registered
- description: 字段 cpid_registered。
- action:
- type: string
- nullable: true
- description: P1:行级动作 `allocate`/`release`;释放行只定位旧 IP,不再要求重填凭据。
- title: 动作
- sub_account_ids:
- type: array
- items:
- type: string
- title: sub_account_ids元素
- nullable: true
- description: P1:该 IP 映射到的分账号主键(`fixed_ip` 恒 1 个、`nat_forward` 1..N 个)。
- title: sub account ids
- required:
- - id
- - row_no
- - egress
- - overseas_ip
- - ip_type
- - bandwidth_mbps
- - pin_registered
- - cpid_registered
- description: PIN/CPID 库里只有密文 ⇒ 只出"有没有登记"(`"true"`/`"false"` 字符串)。
- title: IpRow
- JobKey:
- type: string
- description: 作业 key(`bos_jobs::registry::JobKey` 的 serde 序列化名)。
- title: JobKey
- JobRunDetailItem:
- type: object
- properties:
- object_type:
- type: string
- nullable: true
- title: object type
- description: 字段 object_type。
- object_id:
- type: string
- nullable: true
- title: object id
- description: 字段 object_id。
- object_name:
- type: string
- nullable: true
- title: object name
- description: 字段 object_name。
- disposition:
- type: string
- nullable: true
- title: disposition
- description: 字段 disposition。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- description: 一轮执行的对象级明细(最多 200 条;后端 `bos_job_run.detail_json`)。
- title: JobRunDetailItem
- JobRunReport:
- type: object
- properties:
- run_id:
- type: string
- title: run id
- description: 字段 run_id。
- job_key:
- $ref: '#/components/schemas/JobKey'
- job_name:
- type: string
- title: job name
- description: 字段 job_name。
- biz_date:
- type: string
- title: 业务日
- description: 字段 biz_date。
- period:
- type: string
- nullable: true
- title: 账期
- description: 字段 period。
- status:
- type: string
- enum:
- - success
- - partial
- - failed
- title: 状态
- description: 状态。
- status_label:
- type: string
- title: status label
- description: 字段 status_label。
- scanned:
- type: number
- title: scanned
- description: 字段 scanned。
- matched:
- type: number
- title: 是否匹配
- description: 是否匹配。
- processed:
- type: number
- title: processed
- description: 字段 processed。
- succeeded:
- type: number
- title: succeeded
- description: 字段 succeeded。
- skipped:
- type: number
- title: skipped
- description: 字段 skipped。
- failed:
- type: number
- title: failed
- description: 字段 failed。
- message:
- type: string
- title: 说明
- description: 说明。
- details:
- type: array
- items:
- $ref: '#/components/schemas/JobRunDetailItem'
- title: details
- description: 字段 details。
- violations:
- type: array
- items:
- $ref: '#/components/schemas/JobRunDetailItem'
- title: violations
- description: 字段 violations。
- disposition:
- type: string
- title: disposition
- description: 字段 disposition。
- disposition_code:
- type: string
- title: disposition code
- description: 字段 disposition_code。
- required:
- - run_id
- - job_key
- - job_name
- - biz_date
- - period
- - status
- - status_label
- - scanned
- - matched
- - processed
- - succeeded
- - skipped
- - failed
- - message
- - details
- - violations
- - disposition
- - disposition_code
- description: JobRunReport 业务数据
- title: JobRunReport
- JobRunRow:
- type: object
- properties:
- run_id:
- type: string
- title: run id
- description: 字段 run_id。
- job_key:
- $ref: '#/components/schemas/JobKey'
- job_name:
- type: string
- nullable: true
- title: job name
- description: 字段 job_name。
- trigger:
- type: string
- description: 定时/事件/人工
- title: trigger
- trigger_code:
- type: string
- enum:
- - schedule
- - event
- - manual
- title: trigger code
- description: 字段 trigger_code。
- started_at:
- type: string
- title: started at
- description: 字段 started_at。
- finished_at:
- type: string
- nullable: true
- title: finished at
- description: 字段 finished_at。
- status:
- type: string
- enum:
- - 成功
- - 部分成功
- - 失败
- title: 状态
- description: 状态。
- status_code:
- type: string
- enum:
- - success
- - partial
- - failed
- title: status code
- description: 字段 status_code。
- scanned:
- type: number
- title: scanned
- description: 字段 scanned。
- matched:
- type: number
- title: 是否匹配
- description: 是否匹配。
- succeeded:
- type: number
- title: succeeded
- description: 字段 succeeded。
- skipped:
- type: number
- title: skipped
- description: 字段 skipped。
- failed:
- type: number
- title: failed
- description: 字段 failed。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- disposition:
- type: string
- title: disposition
- description: 字段 disposition。
- disposition_code:
- type: string
- enum:
- - none
- - pending_rerun
- - rerun_done
- - covered
- title: disposition code
- description: 字段 disposition_code。
- goto_page:
- type: string
- nullable: true
- title: goto page
- description: 字段 goto_page。
- goto_visible:
- type: boolean
- title: goto visible
- description: 字段 goto_visible。
- detail:
- type: array
- items:
- $ref: '#/components/schemas/JobRunDetailItem'
- title: detail
- description: 字段 detail。
- violations:
- type: array
- items:
- $ref: '#/components/schemas/JobRunDetailItem'
- title: violations
- description: 字段 violations。
- actor_user_id:
- type: string
- nullable: true
- title: actor user id
- description: 字段 actor_user_id。
- actor_role:
- type: string
- nullable: true
- title: actor role
- description: 字段 actor_role。
- biz_date:
- type: string
- nullable: true
- title: 业务日
- description: 字段 biz_date。
- period:
- type: string
- nullable: true
- title: 账期
- description: 字段 period。
- required:
- - run_id
- - job_key
- - trigger
- - trigger_code
- - started_at
- - finished_at
- - status
- - status_code
- - scanned
- - matched
- - succeeded
- - skipped
- - failed
- - message
- - disposition
- - disposition_code
- - goto_page
- - goto_visible
- - detail
- - violations
- - actor_user_id
- - actor_role
- - biz_date
- - period
- description: JobRunRow 业务数据
- title: JobRunRow
- JobSpecRow:
- type: object
- properties:
- key:
- $ref: '#/components/schemas/JobKey'
- name:
- type: string
- description: 注册契约名称
- title: 名称
- display_name:
- type: string
- nullable: true
- description: 业务展示名(清单第 2 列)
- title: 显示名
- group:
- type: string
- enum:
- - business
- - system
- nullable: true
- title: group
- description: 字段 group。
- annotation:
- type: boolean
- nullable: true
- title: annotation
- description: 字段 annotation。
- cron_hint:
- type: string
- title: cron hint
- description: 字段 cron_hint。
- cadence:
- type: object
- properties:
- kind:
- type: string
- enum:
- - daily
- - monthly_first
- hour:
- type: number
- minute:
- type: number
- required:
- - kind
- - hour
- - minute
- nullable: true
- title: cadence
- description: 字段 cadence。
- trigger_text:
- type: string
- nullable: true
- title: trigger text
- description: 字段 trigger_text。
- wired_in_phase1:
- type: boolean
- description: 作业体是否已接线可执行
- title: wired in phase1
- page_switch:
- type: boolean
- nullable: true
- title: page switch
- description: 字段 page_switch。
- enabled:
- type: boolean
- nullable: true
- title: enabled
- description: 字段 enabled。
- toggleable:
- type: boolean
- nullable: true
- title: toggleable
- description: 字段 toggleable。
- reason_code:
- type: string
- enum:
- - NOT_WIRED
- - ROLE_READONLY
- - NO_SWITCH
- nullable: true
- title: reason code
- description: 字段 reason_code。
- last_run_at:
- type: string
- nullable: true
- title: last run at
- description: 字段 last_run_at。
- last_status:
- type: string
- nullable: true
- title: last status
- description: 字段 last_status。
- last_status_code:
- type: string
- enum:
- - success
- - partial
- - failed
- nullable: true
- title: last status code
- description: 字段 last_status_code。
- last_duration_ms:
- type: number
- nullable: true
- title: last duration ms
- description: 字段 last_duration_ms。
- last_counts:
- type: object
- properties:
- scanned:
- type: number
- matched:
- type: number
- succeeded:
- type: number
- skipped:
- type: number
- failed:
- type: number
- required:
- - scanned
- - matched
- - succeeded
- - skipped
- - failed
- nullable: true
- title: last counts
- description: 字段 last_counts。
- run_count:
- type: integer
- nullable: true
- description: 累计执行轮次
- title: run count
- object_scope:
- type: string
- nullable: true
- description: 作业定义弹窗第 5–7 行(注册契约文案逐字)
- title: object scope
- action_text:
- type: string
- nullable: true
- title: action text
- description: 字段 action_text。
- idempotency_text:
- type: string
- nullable: true
- title: idempotency text
- description: 字段 idempotency_text。
- stop_impact_note:
- type: string
- nullable: true
- title: stop impact note
- description: 字段 stop_impact_note。
- required:
- - key
- - name
- - cron_hint
- - wired_in_phase1
- description: JobSpecRow 业务数据
- title: JobSpecRow
- JobToggleResult:
- type: object
- properties:
- job_key:
- $ref: '#/components/schemas/JobKey'
- enabled:
- type: boolean
- title: enabled
- description: 字段 enabled。
- changed:
- type: boolean
- title: 是否已变更
- description: 是否已变更。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- request_id:
- type: string
- nullable: true
- title: request id
- description: 字段 request_id。
- message:
- type: string
- title: 说明
- description: 说明。
- required:
- - job_key
- - enabled
- - changed
- - audit_written
- - message
- description: JobToggleResult 业务数据
- title: JobToggleResult
- LineExitListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/LineExitRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- required:
- - items
- description: LineExitListResult 业务数据
- title: LineExitListResult
- LineExitRow:
- type: object
- properties:
- exit_name:
- type: string
- title: exit name
- description: 字段 exit_name。
- exit_key:
- type: string
- title: exit key
- description: 字段 exit_key。
- sort_no:
- type: number
- title: sort no
- description: 字段 sort_no。
- price_factor:
- type: number
- nullable: true
- description: 计费系数(默认 1,取值 (0, 1],最多两位小数);最终订阅价=档位价×本列。
- title: price factor
- price_factor_text:
- type: string
- nullable: true
- title: price factor text
- description: 字段 price_factor_text。
- ref_count:
- type: integer
- nullable: true
- title: ref count
- description: 字段 ref_count。
- ref_summary:
- type: string
- nullable: true
- title: ref summary
- description: 字段 ref_summary。
- required:
- - exit_name
- - exit_key
- - sort_no
- description: 线路出口目录行(套餐配置统一维护;合同条目只选择)。 `ref_count`/`ref_summary` 由后端逐条带出:>0 表示已被合同条目/派生档/订阅引用
- (IP 备案那列随合同 IP 条目下线不再计入),目录侧不允许删除( 。
- title: LineExitRow
- LineExitSaveResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/LineExitRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- added:
- type: number
- nullable: true
- title: added
- description: 字段 added。
- updated:
- type: number
- nullable: true
- title: 是否已更新
- description: 是否已更新。
- removed:
- type: number
- nullable: true
- title: removed
- description: 字段 removed。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - items
- description: LineExitSaveResult 业务数据
- title: LineExitSaveResult
- MarkDoneResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- status:
- $ref: '#/components/schemas/TicketStatus'
- completed_at:
- type: string
- title: 完成时间
- description: 完成时间。
- biz_date:
- type: string
- title: 业务日
- description: 字段 biz_date。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - ticket_id
- - status
- - completed_at
- - biz_date
- - audit_written
- description: MarkDoneResult 业务数据
- title: MarkDoneResult
- MaterialAttachResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- material_id:
- type: string
- title: material id
- description: 字段 material_id。
- kind:
- type: string
- title: 类型
- description: 类型。
- file_name:
- type: string
- title: 文件名
- description: 文件名。
- size_bytes:
- type: string
- nullable: true
- title: size bytes
- description: 字段 size_bytes。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - ticket_id
- - material_id
- - kind
- - file_name
- - size_bytes
- - audit_written
- - next_step
- description: MaterialAttachResult 业务数据
- title: MaterialAttachResult
- MaterialGrantDownload:
- type: object
- properties:
- purpose:
- type: string
- description: 类型:"download"
- title: purpose
- material_id:
- type: string
- title: material id
- description: 字段 material_id。
- kind:
- type: string
- title: 类型
- description: 类型。
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_status:
- $ref: '#/components/schemas/TicketStatus'
- file_name:
- type: string
- title: 文件名
- description: 文件名。
- download_url:
- type: string
- title: 下载地址
- description: 下载地址。
- expires_at:
- type: string
- nullable: true
- title: expires at
- description: 字段 expires_at。
- required:
- - purpose
- - material_id
- - kind
- - ticket_id
- - ticket_status
- - file_name
- - download_url
- - expires_at
- description: 下载分支: 对象键 下发,只给一条平台现签的短时效地址。
- title: MaterialGrantDownload
- MaterialGrantResult:
- oneOf:
- - $ref: '#/components/schemas/MaterialGrantUpload'
- - $ref: '#/components/schemas/MaterialGrantDownload'
- description: MaterialGrantResult 业务数据
- title: MaterialGrantResult
- MaterialGrantUpload:
- type: object
- properties:
- purpose:
- type: string
- description: 类型:"upload"
- title: purpose
- kind:
- type: string
- title: 类型
- description: 类型。
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_status:
- $ref: '#/components/schemas/TicketStatus'
- file_name:
- type: string
- title: 文件名
- description: 文件名。
- oss_key:
- type: string
- title: 对象键
- description: 对象键。
- prefix:
- type: string
- title: prefix
- description: 字段 prefix。
- presign_endpoint:
- type: string
- title: presign endpoint
- description: 字段 presign_endpoint。
- bucket:
- type: string
- title: bucket
- description: 字段 bucket。
- size_limit_bytes:
- type: number
- title: size limit bytes
- description: 字段 size_limit_bytes。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - purpose
- - kind
- - ticket_id
- - ticket_status
- - file_name
- - oss_key
- - prefix
- - presign_endpoint
- - bucket
- - size_limit_bytes
- - next_step
- description: 上传分支:服务端派生的对象键与前缀(直传完成后必须原样交给 `material_attach`)。
- title: MaterialGrantUpload
- MessageActionResult:
- type: object
- properties:
- message_id:
- type: string
- title: 消息 ID
- description: 消息 ID。
- status:
- type: string
- title: 状态
- description: 状态。
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - message_id
- - status
- - ticket_id
- - audit_written
- - next_step
- description: MessageActionResult 业务数据
- title: MessageActionResult
- MessagePendingResult:
- type: object
- properties:
- rows:
- type: array
- items:
- $ref: '#/components/schemas/TicketMessage'
- title: 行集
- description: 行集。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- title: 页码
- description: 页码。
- page_size:
- type: integer
- title: 每页条数
- description: 每页条数。
- required:
- - rows
- - total
- - page
- - page_size
- description: MessagePendingResult 业务数据
- title: MessagePendingResult
- MountCandidateRow:
- type: object
- properties:
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_path:
- type: string
- title: region path
- description: 字段 region_path。
- operator_id:
- type: string
- nullable: true
- title: 运营商 ID
- description: 运营商 ID。
- required:
- - customer_id
- - customer_name
- - region_node_id
- - region_path
- - operator_id
- description: MountCandidateRow 业务数据
- title: MountCandidateRow
- MountCandidatesResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/MountCandidateRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- required:
- - items
- description: MountCandidatesResult 业务数据
- title: MountCandidatesResult
- NotifyChannelPref:
- type: object
- properties:
- enabled:
- type: boolean
- title: enabled
- description: 字段 enabled。
- available:
- type: boolean
- title: available
- description: 字段 available。
- address_hint:
- type: string
- nullable: true
- description: 地址摘要(邮箱/手机号均脱敏);站内恒 `null`。
- title: address hint
- required:
- - enabled
- - available
- - address_hint
- description: 单通道偏好:`enabled` 是记录值;`available` 是服务端判定的可否切换。
- title: NotifyChannelPref
- OpenStop:
- type: object
- properties:
- open_stop_id:
- type: string
- nullable: true
- title: open stop id
- description: 字段 open_stop_id。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- subscription_id:
- type: string
- nullable: true
- title: 订阅 ID
- description: 订阅 ID。
- action:
- type: string
- nullable: true
- title: 动作
- description: 动作。
- exec_status:
- type: string
- nullable: true
- title: exec status
- description: 字段 exec_status。
- exec_date:
- type: string
- nullable: true
- title: exec date
- description: 字段 exec_date。
- effective_account_count:
- type: string
- nullable: true
- title: effective account count
- description: 字段 effective_account_count。
- backfill_id:
- type: string
- nullable: true
- title: backfill id
- description: 字段 backfill_id。
- deferred_until:
- type: string
- nullable: true
- title: 延期至
- description: 延期至。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- closed_flag:
- type: string
- nullable: true
- title: closed flag
- description: 字段 closed_flag。
- row_version:
- type: string
- nullable: true
- title: 乐观锁版本
- description: 乐观锁版本。
- accounts:
- type: array
- items:
- $ref: '#/components/schemas/OpenStopAccount'
- title: accounts
- description: 字段 accounts。
- overdue:
- type: boolean
- nullable: true
- title: overdue
- description: 字段 overdue。
- preview:
- type: boolean
- nullable: true
- description: 尚无 open_stop 行时的待停账号预览块。
- title: preview
- required:
- - effective_account_count
- - accounts
- description: OpenStop 业务数据
- title: OpenStop
- OpenStopAccount:
- type: object
- properties:
- id:
- type: string
- nullable: true
- description: 回填落库行有 id; 预览行可能缺席。
- title: ID
- sub_account_id:
- type: string
- nullable: true
- title: sub account id
- description: 字段 sub_account_id。
- before_status:
- type: string
- nullable: true
- title: before status
- description: 字段 before_status。
- after_status:
- type: string
- nullable: true
- title: after status
- description: 字段 after_status。
- effective_date:
- type: string
- nullable: true
- title: effective date
- description: 字段 effective_date。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- net_account:
- type: string
- nullable: true
- title: net account
- description: 字段 net_account。
- required:
- - sub_account_id
- - before_status
- - source
- - display_name
- - net_account
- description: OpenStopAccount 业务数据
- title: OpenStopAccount
- OperatorCreateResult:
- type: object
- properties:
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- name:
- type: string
- title: 名称
- description: 名称。
- brand:
- type: string
- title: brand
- description: 字段 brand。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- required:
- - operator_id
- - name
- - brand
- - region_node_id
- description: OperatorCreateResult 业务数据
- title: OperatorCreateResult
- OperatorDeleteResult:
- type: object
- properties:
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- blocked:
- type: array
- items:
- type: string
- title: 阻塞项元素
- description: 删除前检查未通过项(成功时为空)
- title: 阻塞项
- revoked_user_ids:
- type: array
- items:
- type: string
- title: revoked_user_ids元素
- nullable: true
- description: 级联处置的对账账号 user_id
- title: revoked user ids
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - operator_id
- - deleted
- - blocked
- description: OperatorDeleteResult 业务数据
- title: OperatorDeleteResult
- OperatorListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/OperatorRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: OperatorListResult 业务数据
- title: OperatorListResult
- OperatorRow:
- type: object
- properties:
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- name:
- type: string
- title: 名称
- description: 名称。
- brand:
- type: string
- nullable: true
- title: brand
- description: 字段 brand。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_path_name:
- type: string
- nullable: true
- description: '`bos_region_meta.path_name`(现为节点 ID 链;未建档=null)'
- title: region path name
- region_level:
- type: string
- nullable: true
- description: '`bos_region_meta.level`,dev 值域:省/市/区县'
- title: region level
- account:
- $ref: '#/components/schemas/SubjectAccount'
- recon_day:
- type: number
- nullable: true
- description: '对账日;`null`=未单独设置(跟随系统默认), 与「字段缺失」混为一谈'
- title: recon day
- pay_cycle:
- type: string
- title: pay cycle
- description: 字段 pay_cycle。
- settle_mode:
- type: string
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- title: settle value
- description: 字段 settle_value。
- customer_count:
- type: integer
- title: customer count
- description: 字段 customer_count。
- required:
- - operator_id
- - name
- - brand
- - region_node_id
- - region_path_name
- - region_level
- - account
- - recon_day
- - pay_cycle
- - settle_mode
- - settle_value
- - customer_count
- description: OperatorRow 业务数据
- title: OperatorRow
- OperatorUpdateResult:
- type: object
- properties:
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- updated:
- type: boolean
- title: 是否已更新
- description: 是否已更新。
- required:
- - operator_id
- - updated
- description: OperatorUpdateResult 业务数据
- title: OperatorUpdateResult
- OpsMemberAddResult:
- type: object
- properties:
- member_id:
- type: string
- title: 成员 ID
- description: 成员 ID。
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- scope_mode:
- type: string
- title: 可见形态
- description: 可见形态。
- display_name:
- type: string
- nullable: true
- description: 成员姓名(`bos_account_ext.display_name`);`null`=未填,前端回落显示登录名
- title: 显示名
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- ticket_mode:
- type: string
- description: 可处理类型形态:`follow_team`=随团队;`custom`=勾选子集
- title: ticket mode
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- description: 成员有效可接类型(`follow_team`=团队可分配类型)
- title: 工单类型清单
- account:
- $ref: '#/components/schemas/AccountOut'
- required:
- - member_id
- - team_id
- - user_id
- - is_primary
- - scope_mode
- - display_name
- - username
- - mobile
- - member_count
- - ticket_mode
- - ticket_types
- - account
- description: OpsMemberAddResult 业务数据
- title: OpsMemberAddResult
- OpsMemberRemoveResult:
- type: object
- properties:
- member_id:
- type: string
- title: 成员 ID
- description: 成员 ID。
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- removed:
- type: string
- description: 类型:false
- title: removed
- blockers:
- type: array
- items:
- $ref: '#/components/schemas/BlockerItem'
- title: blockers
- description: 字段 blockers。
- account_deactivation:
- type: object
- properties:
- applied:
- type: boolean
- reason:
- type: string
- required:
- - applied
- - reason
- title: account deactivation
- description: 字段 account_deactivation。
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - member_id
- - team_id
- - user_id
- - removed
- - blockers
- - account_deactivation
- - note
- description: OpsMemberRemoveResult 业务数据
- title: OpsMemberRemoveResult
- OpsMemberScopeSaveResult:
- type: object
- properties:
- member_id:
- type: string
- title: 成员 ID
- description: 成员 ID。
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- scope_mode:
- type: string
- title: 可见形态
- description: 可见形态。
- scope_mode_before:
- type: string
- nullable: true
- title: scope mode before
- description: 字段 scope_mode_before。
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- scope_rows:
- type: array
- items:
- type: string
- title: scope_rows元素
- title: scope rows
- description: 字段 scope_rows。
- scope_row_count:
- type: integer
- title: scope row count
- description: 字段 scope_row_count。
- team_coverage_count:
- type: integer
- title: team coverage count
- description: 字段 team_coverage_count。
- team_coverage_basis:
- type: string
- title: team coverage basis
- description: 字段 team_coverage_basis。
- required:
- - member_id
- - team_id
- - scope_mode
- - scope_mode_before
- - is_primary
- - scope_rows
- - scope_row_count
- - team_coverage_count
- - team_coverage_basis
- description: OpsMemberScopeSaveResult 业务数据
- title: OpsMemberScopeSaveResult
- OpsMemberUpdateResult:
- type: object
- properties:
- member_id:
- type: string
- title: 成员 ID
- description: 成员 ID。
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- scope_mode:
- type: string
- title: 可见形态
- description: 可见形态。
- display_name:
- type: string
- nullable: true
- description: 回读的成员姓名真值(`bos_account_ext.display_name`)
- title: 显示名
- display_name_updated:
- type: boolean
- title: display name updated
- description: 字段 display_name_updated。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- mobile_updated:
- type: boolean
- title: mobile updated
- description: 字段 mobile_updated。
- ticket_mode:
- type: string
- description: 回读的类型形态:`follow_team`/`custom`
- title: ticket mode
- ticket_mode_updated:
- type: boolean
- title: ticket mode updated
- description: 字段 ticket_mode_updated。
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- description: 成员有效可接类型(`follow_team`/主账号=团队类型;`custom` 空数组=不接单)
- title: 工单类型清单
- required:
- - member_id
- - team_id
- - user_id
- - is_primary
- - scope_mode
- - display_name
- - display_name_updated
- - mobile
- - mobile_updated
- - ticket_mode
- - ticket_mode_updated
- - ticket_types
- description: OpsMemberUpdateResult 业务数据
- title: OpsMemberUpdateResult
- OpsTeamCoverage:
- type: object
- properties:
- customers:
- type: array
- items:
- type: object
- properties:
- customer_id:
- type: string
- customer_name:
- type: string
- valid_from:
- type: string
- nullable: true
- required:
- - customer_id
- - customer_name
- - valid_from
- title: 客户数
- description: 客户数。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- required:
- - customers
- - total
- description: OpsTeamCoverage 业务数据
- title: OpsTeamCoverage
- OpsTeamCreateResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_level:
- type: string
- description: '`bos_region_meta.level`(运维团队 限省级,可下沉市/区县)'
- title: region level
- region_path_name:
- type: string
- title: region path name
- description: 字段 region_path_name。
- dispatch_mode:
- type: string
- title: dispatch mode
- description: 字段 dispatch_mode。
- settle_mode:
- type: string
- nullable: true
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- title: settle value
- description: 字段 settle_value。
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- description: '回读 `ops_team_ticket_type`'
- title: 工单类型清单
- requested_ticket_types:
- type: array
- items:
- type: string
- title: requested_ticket_types元素
- description: 本次请求提交的类型(与 `ticket_types` 不一致即未落库)
- title: requested ticket types
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- primary_member_id:
- type: string
- title: primary member id
- description: 字段 primary_member_id。
- primary_account:
- $ref: '#/components/schemas/AccountOut'
- ops_main_scope_check:
- $ref: '#/components/schemas/ScopeCheck'
- required:
- - team_id
- - team_name
- - region_node_id
- - region_level
- - region_path_name
- - dispatch_mode
- - settle_mode
- - settle_value
- - ticket_types
- - requested_ticket_types
- - member_count
- - primary_member_id
- - primary_account
- - ops_main_scope_check
- description: OpsTeamCreateResult 业务数据
- title: OpsTeamCreateResult
- OpsTeamDeleteResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- deleted:
- type: string
- description: 类型:false
- title: 是否已删除
- blockers:
- type: array
- items:
- $ref: '#/components/schemas/BlockerItem'
- title: blockers
- description: 字段 blockers。
- unverifiable_checks:
- type: array
- items:
- $ref: '#/components/schemas/UnverifiableCheck'
- title: unverifiable checks
- description: 字段 unverifiable_checks。
- ops_main_scope_check:
- $ref: '#/components/schemas/ScopeCheck'
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - team_id
- - team_name
- - deleted
- - blockers
- - unverifiable_checks
- - ops_main_scope_check
- - note
- description: OpsTeamDeleteResult 业务数据
- title: OpsTeamDeleteResult
- OpsTeamDispatchResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- dispatch_mode:
- type: string
- title: dispatch mode
- description: 字段 dispatch_mode。
- dispatch_mode_before:
- type: string
- nullable: true
- description: '仅「确有变更」分支下发'
- title: dispatch mode before
- changed:
- type: boolean
- title: 是否已变更
- description: 是否已变更。
- written:
- type: boolean
- title: written
- description: 字段 written。
- scanned:
- type: number
- nullable: true
- description: '本次扫描的待分派工单数(切到 auto_avg 时才有意义)'
- title: scanned
- dispatched:
- type: array
- items:
- type: object
- properties:
- ticket_id:
- type: string
- ticket_no:
- type: string
- nullable: true
- assignee_user_id:
- type: string
- assignee_snapshot_name:
- type: string
- required:
- - ticket_id
- - ticket_no
- - assignee_user_id
- - assignee_snapshot_name
- description: '本次同批次分派成功的工单(与模式切换在同一次 `/dml/batch@v1` 提交)'
- title: dispatched
- skipped:
- type: array
- items:
- type: object
- properties:
- ticket_id:
- type: string
- ticket_no:
- type: string
- nullable: true
- reason:
- type: string
- message:
- type: string
- required:
- - ticket_id
- - ticket_no
- - reason
- - message
- description: '仍留在团队队列的工单:`no_candidate`/`ops_account_only`/`already_taken`'
- title: skipped
- mode_changed:
- type: boolean
- nullable: true
- description: '模式行是否真被本批改写;`false`=提交时模式已被并发改动( 谎报已切换)'
- title: mode changed
- note:
- type: string
- title: 备注
- description: 备注。
- ops_main_scope_check:
- $ref: '#/components/schemas/ScopeCheck'
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- audit_note:
- type: string
- nullable: true
- title: 审计说明
- description: 审计说明。
- time_note:
- type: string
- nullable: true
- title: time note
- description: 字段 time_note。
- required:
- - team_id
- - dispatch_mode
- - changed
- - written
- - dispatched
- - skipped
- - note
- - ops_main_scope_check
- description: OpsTeamDispatchResult 业务数据
- title: OpsTeamDispatchResult
- OpsTeamListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/OpsTeamRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- load_pending:
- type: string
- nullable: true
- description: 后端在有条目时下发:负载列降级说明
- title: load pending
- member_load_pending:
- type: string
- nullable: true
- description: 成员未完成工单列降级说明(`null`/缺省=取数成功)
- title: member load pending
- required:
- - items
- - total
- description: OpsTeamListResult 业务数据
- title: OpsTeamListResult
- OpsTeamMemberRow:
- type: object
- properties:
- member_id:
- type: string
- title: 成员 ID
- description: 成员 ID。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- display_name:
- type: string
- nullable: true
- description: 成员姓名(`bos_account_ext.display_name`);`null`=未填,前端回落显示登录名
- title: 显示名
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- role_code:
- type: string
- nullable: true
- title: 角色码
- description: 角色码。
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- scope_mode:
- type: string
- title: 可见形态
- description: 可见形态。
- scope_regions:
- type: array
- items:
- type: string
- title: scope_regions元素
- title: scope regions
- description: 字段 scope_regions。
- scope_customers:
- type: array
- items:
- type: string
- title: scope_customers元素
- title: scope customers
- description: 字段 scope_customers。
- ticket_mode:
- type: string
- description: 可处理类型形态:`follow_team`=随团队;`custom`=勾选子集
- title: ticket mode
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- nullable: true
- description: 成员有效可接类型(`follow_team`/主账号=团队类型;`custom` 空数组=不接单);`null`=后端未下发
- title: 工单类型清单
- binding_status:
- type: string
- nullable: true
- description: KLT 侧 `bos_user_binding.status` 原文;平台账号状态按权限单独判定
- title: binding status
- activation_status:
- type: string
- nullable: true
- description: '`bos_account_ext.status`(激活码生命周期 none/issued/issuing/activated),与 `binding_status`
- 正交'
- title: 激活态
- open_tickets:
- type: number
- nullable: true
- description: 成员未完成工单数(`pending`+`processing`,责任人是本人;`null`=取数失败)
- title: open tickets
- required:
- - member_id
- - user_id
- - display_name
- - username
- - mobile
- - role_code
- - is_primary
- - scope_mode
- - scope_regions
- - scope_customers
- - ticket_mode
- - ticket_types
- - binding_status
- description: '[实] `ops_team/get_list@v1` 内联成员投影(`ops_member` + `bos_user_binding`)。'
- title: OpsTeamMemberRow
- OpsTeamRow:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_path_name:
- type: string
- nullable: true
- description: '`bos_region_meta.path_name`(节点 ID 链;未建档=null)'
- title: region path name
- region_level:
- type: string
- nullable: true
- description: '`bos_region_meta.level`(运维团队 限省级,可下沉市/区县)'
- title: region level
- dispatch_mode:
- type: string
- title: dispatch mode
- description: 字段 dispatch_mode。
- settle_mode:
- type: string
- nullable: true
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- title: settle value
- description: 字段 settle_value。
- primary_username:
- type: string
- nullable: true
- title: primary username
- description: 字段 primary_username。
- member_count:
- type: integer
- title: member count
- description: 字段 member_count。
- members:
- type: array
- items:
- $ref: '#/components/schemas/OpsTeamMemberRow'
- description: '成员明细投影(member_id/user_id 可定位成员级写接口)'
- title: members
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- title: 工单类型清单
- description: 字段 ticket_types。
- scope_regions:
- type: array
- items:
- type: string
- title: scope_regions元素
- description: '「负责范围」列:授权区域节点+直接多选客户'
- title: scope regions
- scope_customers:
- type: array
- items:
- type: string
- title: scope_customers元素
- title: scope customers
- description: 字段 scope_customers。
- coverage_customers:
- type: number
- nullable: true
- description: '「覆盖客户」列:范围(含下级)内去重在册客户数;未配置=null'
- title: coverage customers
- open_tickets:
- type: number
- nullable: true
- title: open tickets
- description: 字段 open_tickets。
- overdue_open_tickets:
- type: number
- nullable: true
- title: overdue open tickets
- description: 字段 overdue_open_tickets。
- required:
- - team_id
- - team_name
- - region_node_id
- - region_path_name
- - region_level
- - dispatch_mode
- - settle_mode
- - settle_value
- - primary_username
- - member_count
- - members
- - ticket_types
- - scope_regions
- - scope_customers
- - coverage_customers
- - open_tickets
- - overdue_open_tickets
- description: OpsTeamRow 业务数据
- title: OpsTeamRow
- OpsTeamScopeSaveResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- region_node_ids:
- type: array
- items:
- type: string
- title: region_node_ids元素
- title: region node ids
- description: 字段 region_node_ids。
- customer_ids:
- type: array
- items:
- type: string
- title: customer_ids元素
- title: customer ids
- description: 字段 customer_ids。
- region_count:
- type: integer
- title: region count
- description: 字段 region_count。
- customer_count:
- type: integer
- title: customer count
- description: 字段 customer_count。
- coverage_before:
- type: number
- title: coverage before
- description: 字段 coverage_before。
- coverage_after:
- type: number
- title: coverage after
- description: 字段 coverage_after。
- coverage_basis_before:
- type: string
- title: coverage basis before
- description: 字段 coverage_basis_before。
- coverage_basis_after:
- type: string
- title: coverage basis after
- description: 字段 coverage_basis_after。
- coverage_basis_saved:
- type: string
- title: coverage basis saved
- description: 字段 coverage_basis_saved。
- allow_empty:
- type: string
- description: 类型:true
- title: allow empty
- required:
- - team_id
- - region_node_ids
- - customer_ids
- - region_count
- - customer_count
- - coverage_before
- - coverage_after
- - coverage_basis_before
- - coverage_basis_after
- - coverage_basis_saved
- - allow_empty
- description: OpsTeamScopeSaveResult 业务数据
- title: OpsTeamScopeSaveResult
- OpsTeamTransferPrimaryResult:
- type: object
- description: 运维团队主账号移交结果
- properties:
- ops_team_id:
- type: string
- description: 运维团队 ID
- title: 运维团队 ID
- from_member_id:
- type: string
- description: 原主账号成员 ID
- title: from member id
- to_member_id:
- type: string
- description: 新主账号成员 ID
- title: to member id
- transferred:
- type: boolean
- description: 是否已移交
- title: 是否已移交
- required:
- - ops_team_id
- - transferred
- title: OpsTeamTransferPrimaryResult
- OpsTeamUpdateResult:
- type: object
- properties:
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- team_name:
- type: string
- title: 团队名称
- description: 团队名称。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- dispatch_mode:
- type: string
- title: dispatch mode
- description: 字段 dispatch_mode。
- settle_mode:
- type: string
- nullable: true
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- title: settle value
- description: 字段 settle_value。
- ticket_types:
- type: array
- items:
- type: string
- title: ticket_types元素
- title: 工单类型清单
- description: 字段 ticket_types。
- dropped_team_types:
- type: array
- items:
- type: string
- title: dropped_team_types元素
- description: '本次被收窄掉的团队类型( 收窄=空数组)'
- title: dropped team types
- member_type_trim:
- type: string
- description: '成员级类型载体表 `ops_member_ticket_type` 建表 ⇒ 有收窄即 `applied: false`'
- title: member type trim
- ops_main_scope_check:
- $ref: '#/components/schemas/ScopeCheck'
- required:
- - team_id
- - team_name
- - region_node_id
- - dispatch_mode
- - settle_mode
- - settle_value
- - ticket_types
- - dropped_team_types
- - member_type_trim
- - ops_main_scope_check
- description: OpsTeamUpdateResult 业务数据
- title: OpsTeamUpdateResult
- OrderChangeResult:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- contract_id:
- type: string
- nullable: true
- title: 合同 ID
- description: 合同 ID。
- contract_item_id:
- type: string
- nullable: true
- title: contract item id
- description: 字段 contract_item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- status:
- type: string
- title: 状态
- description: 状态。
- status_display:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- note:
- type: string
- nullable: true
- required:
- - key
- - label
- nullable: true
- title: status display
- description: 字段 status_display。
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- effective_date:
- type: string
- nullable: true
- title: effective date
- description: 字段 effective_date。
- expire_date:
- type: string
- nullable: true
- title: 到期日
- description: 到期日。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- quota_slots:
- type: number
- title: quota slots
- description: 字段 quota_slots。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- parent_subscription_id:
- type: string
- nullable: true
- title: parent subscription id
- description: 字段 parent_subscription_id。
- replaces_subscription_id:
- type: string
- nullable: true
- title: replaces subscription id
- description: 字段 replaces_subscription_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- contract_no:
- type: string
- nullable: true
- title: 合同编号
- description: 合同编号。
- plan_kind:
- type: string
- nullable: true
- title: plan kind
- description: 字段 plan_kind。
- plan_owner_customer_id:
- type: string
- nullable: true
- title: plan owner customer id
- description: 字段 plan_owner_customer_id。
- sub_mode:
- type: string
- nullable: true
- title: sub mode
- description: 字段 sub_mode。
- sub_mode_label:
- type: string
- nullable: true
- title: sub mode label
- description: 字段 sub_mode_label。
- term:
- type: string
- nullable: true
- title: term
- description: 字段 term。
- trial_months:
- type: number
- nullable: true
- title: trial months
- description: 字段 trial_months。
- discount_monthly_cents:
- type: integer
- nullable: true
- title: discount monthly cents
- description: 字段 discount_monthly_cents。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- line_exit_key:
- type: string
- nullable: true
- title: line exit key
- description: 字段 line_exit_key。
- order_no:
- type: string
- nullable: true
- title: order no
- description: 字段 order_no。
- actual_opened_at:
- type: string
- nullable: true
- title: actual opened at
- description: 字段 actual_opened_at。
- early_stopped_at:
- type: string
- nullable: true
- title: early stopped at
- description: 字段 early_stopped_at。
- plan_cost_cents:
- type: integer
- nullable: true
- title: plan cost cents
- description: 字段 plan_cost_cents。
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- billing:
- $ref: '#/components/schemas/SubscriptionBilling'
- editable:
- type: boolean
- nullable: true
- title: editable
- description: 字段 editable。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- replaced_by:
- $ref: '#/components/schemas/RelatedOrderRef'
- original:
- $ref: '#/components/schemas/RelatedOrderRef'
- replaced_subscription_id:
- type: string
- nullable: true
- title: replaced subscription id
- description: 字段 replaced_subscription_id。
- cut_end_date:
- type: string
- nullable: true
- title: cut end date
- description: 字段 cut_end_date。
- quota_changed:
- type: boolean
- nullable: true
- title: quota changed
- description: 字段 quota_changed。
- notes:
- type: array
- items:
- type: string
- title: 说明列表元素
- nullable: true
- title: 说明列表
- description: 说明列表。
- delivery_ticket:
- $ref: '#/components/schemas/DeliveryTicketOutcome'
- required:
- - subscription_id
- - customer_id
- - contract_id
- - contract_item_id
- - plan_id
- - plan_name
- - plan_family
- - status
- - start_date
- - end_date
- - effective_date
- - expire_date
- - annual_price_cents
- - monthly_settle_cents
- - quota_slots
- - replaces_subscription_id
- - created_at
- - row_version
- description: OrderChangeResult 业务数据
- title: OrderChangeResult
- OrderContractItemOption:
- type: object
- properties:
- item_id:
- type: string
- title: item id
- description: 字段 item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- item_family:
- type: string
- nullable: true
- title: item family
- description: 字段 item_family。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- available:
- type: boolean
- nullable: true
- description: 条目可选性(后端已剔除「已有订阅的条目」,此处再给档位停用等原因)。
- title: available
- unavailable_reason:
- type: string
- nullable: true
- title: unavailable reason
- description: 字段 unavailable_reason。
- required:
- - item_id
- - plan_id
- - plan_name
- - item_family
- - quantity
- - annual_price_cents
- - line_exits
- description: OrderContractItemOption 业务数据
- title: OrderContractItemOption
- OrderCreateResult:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- contract_id:
- type: string
- nullable: true
- title: 合同 ID
- description: 合同 ID。
- contract_item_id:
- type: string
- nullable: true
- title: contract item id
- description: 字段 contract_item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- status:
- type: string
- title: 状态
- description: 状态。
- status_display:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- note:
- type: string
- nullable: true
- required:
- - key
- - label
- nullable: true
- title: status display
- description: 字段 status_display。
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- effective_date:
- type: string
- nullable: true
- title: effective date
- description: 字段 effective_date。
- expire_date:
- type: string
- nullable: true
- title: 到期日
- description: 到期日。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- quota_slots:
- type: number
- title: quota slots
- description: 字段 quota_slots。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- parent_subscription_id:
- type: string
- nullable: true
- title: parent subscription id
- description: 字段 parent_subscription_id。
- replaces_subscription_id:
- type: string
- nullable: true
- title: replaces subscription id
- description: 字段 replaces_subscription_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- contract_no:
- type: string
- nullable: true
- title: 合同编号
- description: 合同编号。
- plan_kind:
- type: string
- nullable: true
- title: plan kind
- description: 字段 plan_kind。
- plan_owner_customer_id:
- type: string
- nullable: true
- title: plan owner customer id
- description: 字段 plan_owner_customer_id。
- sub_mode:
- type: string
- nullable: true
- title: sub mode
- description: 字段 sub_mode。
- sub_mode_label:
- type: string
- nullable: true
- title: sub mode label
- description: 字段 sub_mode_label。
- term:
- type: string
- nullable: true
- title: term
- description: 字段 term。
- trial_months:
- type: number
- nullable: true
- title: trial months
- description: 字段 trial_months。
- discount_monthly_cents:
- type: integer
- nullable: true
- title: discount monthly cents
- description: 字段 discount_monthly_cents。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- line_exit_key:
- type: string
- nullable: true
- title: line exit key
- description: 字段 line_exit_key。
- order_no:
- type: string
- nullable: true
- title: order no
- description: 字段 order_no。
- actual_opened_at:
- type: string
- nullable: true
- title: actual opened at
- description: 字段 actual_opened_at。
- early_stopped_at:
- type: string
- nullable: true
- title: early stopped at
- description: 字段 early_stopped_at。
- plan_cost_cents:
- type: integer
- nullable: true
- title: plan cost cents
- description: 字段 plan_cost_cents。
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- billing:
- $ref: '#/components/schemas/SubscriptionBilling'
- editable:
- type: boolean
- nullable: true
- title: editable
- description: 字段 editable。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- replaced_by:
- $ref: '#/components/schemas/RelatedOrderRef'
- original:
- $ref: '#/components/schemas/RelatedOrderRef'
- quota_changed:
- type: boolean
- nullable: true
- title: quota changed
- description: 字段 quota_changed。
- notes:
- type: array
- items:
- type: string
- title: 说明列表元素
- nullable: true
- title: 说明列表
- description: 说明列表。
- delivery_ticket:
- $ref: '#/components/schemas/DeliveryTicketOutcome'
- required:
- - subscription_id
- - customer_id
- - contract_id
- - contract_item_id
- - plan_id
- - plan_name
- - plan_family
- - status
- - start_date
- - end_date
- - effective_date
- - expire_date
- - annual_price_cents
- - monthly_settle_cents
- - quota_slots
- - replaces_subscription_id
- - created_at
- - row_version
- description: OrderCreateResult 业务数据
- title: OrderCreateResult
- OrderDeleteCheckResult:
- type: object
- properties:
- deletable:
- type: boolean
- title: deletable
- description: 字段 deletable。
- blocks:
- type: object
- properties:
- billing_details:
- type: array
- items: {}
- nullable: true
- change_chain:
- type: array
- items: {}
- nullable: true
- nullable: true
- title: blocks
- description: 字段 blocks。
- billing_state:
- $ref: '#/components/schemas/ValueState'
- snapshot_version:
- type: string
- nullable: true
- title: snapshot version
- description: 字段 snapshot_version。
- required:
- - deletable
- description: OrderDeleteCheckResult 业务数据
- title: OrderDeleteCheckResult
- OrderDeleteResult:
- type: object
- properties:
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- quota_released:
- type: number
- nullable: true
- title: quota released
- description: 字段 quota_released。
- required:
- - deleted
- description: OrderDeleteResult 业务数据
- title: OrderDeleteResult
- OrderGetResult:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- contract_id:
- type: string
- nullable: true
- title: 合同 ID
- description: 合同 ID。
- contract_item_id:
- type: string
- nullable: true
- title: contract item id
- description: 字段 contract_item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- status:
- type: string
- title: 状态
- description: 状态。
- status_display:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- note:
- type: string
- nullable: true
- required:
- - key
- - label
- nullable: true
- title: status display
- description: 字段 status_display。
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- effective_date:
- type: string
- nullable: true
- title: effective date
- description: 字段 effective_date。
- expire_date:
- type: string
- nullable: true
- title: 到期日
- description: 到期日。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- quota_slots:
- type: number
- title: quota slots
- description: 字段 quota_slots。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- parent_subscription_id:
- type: string
- nullable: true
- title: parent subscription id
- description: 字段 parent_subscription_id。
- replaces_subscription_id:
- type: string
- nullable: true
- title: replaces subscription id
- description: 字段 replaces_subscription_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- contract_no:
- type: string
- nullable: true
- title: 合同编号
- description: 合同编号。
- plan_kind:
- type: string
- nullable: true
- title: plan kind
- description: 字段 plan_kind。
- plan_owner_customer_id:
- type: string
- nullable: true
- title: plan owner customer id
- description: 字段 plan_owner_customer_id。
- sub_mode:
- type: string
- nullable: true
- title: sub mode
- description: 字段 sub_mode。
- sub_mode_label:
- type: string
- nullable: true
- title: sub mode label
- description: 字段 sub_mode_label。
- term:
- type: string
- nullable: true
- title: term
- description: 字段 term。
- trial_months:
- type: number
- nullable: true
- title: trial months
- description: 字段 trial_months。
- discount_monthly_cents:
- type: integer
- nullable: true
- title: discount monthly cents
- description: 字段 discount_monthly_cents。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- line_exit_key:
- type: string
- nullable: true
- title: line exit key
- description: 字段 line_exit_key。
- order_no:
- type: string
- nullable: true
- title: order no
- description: 字段 order_no。
- actual_opened_at:
- type: string
- nullable: true
- title: actual opened at
- description: 字段 actual_opened_at。
- early_stopped_at:
- type: string
- nullable: true
- title: early stopped at
- description: 字段 early_stopped_at。
- plan_cost_cents:
- type: integer
- nullable: true
- title: plan cost cents
- description: 字段 plan_cost_cents。
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- billing:
- $ref: '#/components/schemas/SubscriptionBilling'
- editable:
- type: boolean
- nullable: true
- title: editable
- description: 字段 editable。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- replaced_by:
- $ref: '#/components/schemas/RelatedOrderRef'
- original:
- $ref: '#/components/schemas/RelatedOrderRef'
- related:
- type: object
- properties:
- replaced_by:
- $ref: '#/components/schemas/RelatedOrderRef'
- original:
- $ref: '#/components/schemas/RelatedOrderRef'
- nullable: true
- title: related
- description: 字段 related。
- required:
- - subscription_id
- - customer_id
- - contract_id
- - contract_item_id
- - plan_id
- - plan_name
- - plan_family
- - status
- - start_date
- - end_date
- - effective_date
- - expire_date
- - annual_price_cents
- - monthly_settle_cents
- - quota_slots
- - replaces_subscription_id
- - created_at
- - row_version
- description: OrderGetResult 业务数据
- title: OrderGetResult
- OrderListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/OrderRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- description: OrderListResult 业务数据
- title: OrderListResult
- OrderPlanOption:
- type: object
- properties:
- plan_id:
- type: string
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- title: 档位名称
- description: 档位名称。
- plan_kind:
- type: string
- title: plan kind
- description: 字段 plan_kind。
- owner_customer_id:
- type: string
- nullable: true
- description: 档位归属客户(固定档=null,自定义档=该客户)。
- title: owner customer id
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- annual_price_cents:
- type: integer
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- description: 月结算标准金额(`monthly_settle_of` 折算,只读带出)。
- title: 月结算(分)
- sub_account_quota:
- type: number
- nullable: true
- title: sub account quota
- description: 字段 sub_account_quota。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- referred_count:
- type: integer
- nullable: true
- description: 被引用次数/是否已首次引用(改档冻结判据)。
- title: referred count
- first_referred:
- type: boolean
- nullable: true
- title: first referred
- description: 字段 first_referred。
- available:
- type: boolean
- title: available
- description: 字段 available。
- unavailable_reason:
- type: string
- nullable: true
- title: unavailable reason
- description: 字段 unavailable_reason。
- required:
- - plan_id
- - plan_name
- - plan_kind
- - plan_family
- - annual_price_cents
- - sub_account_quota
- - line_exits
- - available
- description: OrderPlanOption 业务数据
- title: OrderPlanOption
- OrderRow:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- contract_id:
- type: string
- nullable: true
- title: 合同 ID
- description: 合同 ID。
- contract_item_id:
- type: string
- nullable: true
- title: contract item id
- description: 字段 contract_item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- status:
- type: string
- title: 状态
- description: 状态。
- status_display:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- note:
- type: string
- nullable: true
- required:
- - key
- - label
- nullable: true
- description: 读侧状态:终态(含 early_stopped)原样保留,其余按起止日推导。
- title: status display
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- effective_date:
- type: string
- nullable: true
- title: effective date
- description: 字段 effective_date。
- expire_date:
- type: string
- nullable: true
- title: 到期日
- description: 到期日。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- quota_slots:
- type: number
- title: quota slots
- description: 字段 quota_slots。
- quantity:
- type: number
- nullable: true
- description: 订阅份数:可叠加档可 > 1(例:境外 IP 按个),其余恒 1。
- title: quantity
- parent_subscription_id:
- type: string
- nullable: true
- description: P1:附加订阅的父订阅;`null`/缺省=独立订阅。
- title: parent subscription id
- replaces_subscription_id:
- type: string
- nullable: true
- title: replaces subscription id
- description: 字段 replaces_subscription_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- contract_no:
- type: string
- nullable: true
- title: 合同编号
- description: 合同编号。
- plan_kind:
- type: string
- nullable: true
- title: plan kind
- description: 字段 plan_kind。
- plan_owner_customer_id:
- type: string
- nullable: true
- description: 档位归属客户:固定档=平台方,自定义档=该客户
- title: plan owner customer id
- sub_mode:
- type: string
- nullable: true
- title: sub mode
- description: 字段 sub_mode。
- sub_mode_label:
- type: string
- nullable: true
- title: sub mode label
- description: 字段 sub_mode_label。
- term:
- type: string
- nullable: true
- description: 规格(年付/季付/月付三值, 显示英文码)
- title: term
- trial_months:
- type: number
- nullable: true
- title: trial months
- description: 字段 trial_months。
- discount_monthly_cents:
- type: integer
- nullable: true
- title: discount monthly cents
- description: 字段 discount_monthly_cents。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- description: 线路出口(数组)
- title: line exits
- line_exit_key:
- type: string
- nullable: true
- title: line exit key
- description: 字段 line_exit_key。
- order_no:
- type: string
- nullable: true
- description: 工单号:本册只读,写入方在
- title: order no
- actual_opened_at:
- type: string
- nullable: true
- description: 实际开通日:本册只读,唯一写入方=工单回填
- title: actual opened at
- early_stopped_at:
- type: string
- nullable: true
- description: 提前停机日:service_stop 回填生效写入;起止日不变
- title: early stopped at
- plan_cost_cents:
- type: integer
- nullable: true
- description: 月成本三态
- title: plan cost cents
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- billing:
- $ref: '#/components/schemas/SubscriptionBilling'
- editable:
- type: boolean
- nullable: true
- description: 写口可见性由后端给出,前端 自行推导
- title: editable
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- replaced_by:
- $ref: '#/components/schemas/RelatedOrderRef'
- original:
- $ref: '#/components/schemas/RelatedOrderRef'
- required:
- - subscription_id
- - customer_id
- - contract_id
- - contract_item_id
- - plan_id
- - plan_name
- - plan_family
- - status
- - start_date
- - end_date
- - effective_date
- - expire_date
- - annual_price_cents
- - monthly_settle_cents
- - quota_slots
- - replaces_subscription_id
- - created_at
- - row_version
- description: OrderRow 业务数据
- title: OrderRow
- OrderStackResult:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- updated_fields:
- type: array
- items:
- type: string
- title: updated_fields元素
- nullable: true
- title: updated fields
- description: 字段 updated_fields。
- required:
- - subscription_id
- description: OrderStackResult 业务数据
- title: OrderStackResult
- OrderUpdateResult:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- contract_id:
- type: string
- nullable: true
- title: 合同 ID
- description: 合同 ID。
- contract_item_id:
- type: string
- nullable: true
- title: contract item id
- description: 字段 contract_item_id。
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- status:
- type: string
- title: 状态
- description: 状态。
- status_display:
- type: object
- properties:
- key:
- type: string
- label:
- type: string
- note:
- type: string
- nullable: true
- required:
- - key
- - label
- nullable: true
- title: status display
- description: 字段 status_display。
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- effective_date:
- type: string
- nullable: true
- title: effective date
- description: 字段 effective_date。
- expire_date:
- type: string
- nullable: true
- title: 到期日
- description: 到期日。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- quota_slots:
- type: number
- title: quota slots
- description: 字段 quota_slots。
- quantity:
- type: number
- nullable: true
- title: quantity
- description: 字段 quantity。
- parent_subscription_id:
- type: string
- nullable: true
- title: parent subscription id
- description: 字段 parent_subscription_id。
- replaces_subscription_id:
- type: string
- nullable: true
- title: replaces subscription id
- description: 字段 replaces_subscription_id。
- created_at:
- type: string
- title: 创建时间
- description: 创建时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- contract_no:
- type: string
- nullable: true
- title: 合同编号
- description: 合同编号。
- plan_kind:
- type: string
- nullable: true
- title: plan kind
- description: 字段 plan_kind。
- plan_owner_customer_id:
- type: string
- nullable: true
- title: plan owner customer id
- description: 字段 plan_owner_customer_id。
- sub_mode:
- type: string
- nullable: true
- title: sub mode
- description: 字段 sub_mode。
- sub_mode_label:
- type: string
- nullable: true
- title: sub mode label
- description: 字段 sub_mode_label。
- term:
- type: string
- nullable: true
- title: term
- description: 字段 term。
- trial_months:
- type: number
- nullable: true
- title: trial months
- description: 字段 trial_months。
- discount_monthly_cents:
- type: integer
- nullable: true
- title: discount monthly cents
- description: 字段 discount_monthly_cents。
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- line_exit_key:
- type: string
- nullable: true
- title: line exit key
- description: 字段 line_exit_key。
- order_no:
- type: string
- nullable: true
- title: order no
- description: 字段 order_no。
- actual_opened_at:
- type: string
- nullable: true
- title: actual opened at
- description: 字段 actual_opened_at。
- early_stopped_at:
- type: string
- nullable: true
- title: early stopped at
- description: 字段 early_stopped_at。
- plan_cost_cents:
- type: integer
- nullable: true
- title: plan cost cents
- description: 字段 plan_cost_cents。
- plan_cost_state:
- $ref: '#/components/schemas/ValueState'
- billing:
- $ref: '#/components/schemas/SubscriptionBilling'
- editable:
- type: boolean
- nullable: true
- title: editable
- description: 字段 editable。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- replaced_by:
- $ref: '#/components/schemas/RelatedOrderRef'
- original:
- $ref: '#/components/schemas/RelatedOrderRef'
- updated:
- type: boolean
- nullable: true
- title: 是否已更新
- description: 是否已更新。
- required:
- - subscription_id
- - customer_id
- - contract_id
- - contract_item_id
- - plan_id
- - plan_name
- - plan_family
- - status
- - start_date
- - end_date
- - effective_date
- - expire_date
- - annual_price_cents
- - monthly_settle_cents
- - quota_slots
- - replaces_subscription_id
- - created_at
- - row_version
- description: OrderUpdateResult 业务数据
- title: OrderUpdateResult
- OverviewStat:
- type: object
- properties:
- role:
- oneOf:
- - $ref: '#/components/schemas/RoleCode'
- - type: string
- title: role
- description: 字段 role。
- tickets:
- type: object
- properties:
- pending:
- type: number
- nullable: true
- processing:
- type: number
- nullable: true
- available:
- type: boolean
- required:
- - pending
- - processing
- - available
- title: tickets
- description: 字段 tickets。
- overdue:
- type: object
- properties:
- count:
- type: number
- nullable: true
- available:
- type: boolean
- required:
- - count
- - available
- title: overdue
- description: 字段 overdue。
- message:
- type: string
- title: 说明
- description: 说明。
- required:
- - role
- - tickets
- - overdue
- - message
- description: OverviewStat 业务数据
- title: OverviewStat
- PartnerCreateResult:
- type: object
- properties:
- partner_id:
- type: string
- title: 合伙人 ID
- description: 合伙人 ID。
- name:
- type: string
- title: 名称
- description: 名称。
- duty_desc:
- type: string
- nullable: true
- title: duty desc
- description: 字段 duty_desc。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_level:
- type: string
- description: '`bos_region_meta` 回读(合伙人限省级)'
- title: region level
- region_path_name:
- type: string
- title: region path name
- description: 字段 region_path_name。
- ops_main_scope_check:
- $ref: '#/components/schemas/ScopeCheck'
- mobile:
- type: string
- nullable: true
- description: '已按 掩码'
- title: 手机号
- status:
- type: string
- title: 状态
- description: 状态。
- settle_mode:
- type: string
- nullable: true
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- description: dev UDS 对 numeric 写入有静默落 NULL 缺陷 ⇒ 与 `settle_requested` 不一致即未落库
- title: settle value
- settle_value_note:
- type: string
- title: settle value note
- description: 字段 settle_value_note。
- settle_requested:
- type: object
- properties:
- settle_mode:
- type: string
- nullable: true
- settle_value:
- oneOf:
- - type: string
- - type: number
- nullable: true
- required:
- - settle_mode
- - settle_value
- description: 本次请求的分成入参(原样回显,供与 `settle_value` 比对)
- title: settle requested
- account:
- $ref: '#/components/schemas/AccountOut'
- required:
- - partner_id
- - name
- - duty_desc
- - region_node_id
- - region_level
- - region_path_name
- - ops_main_scope_check
- - mobile
- - status
- - settle_mode
- - settle_value
- - settle_value_note
- - settle_requested
- - account
- description: PartnerCreateResult 业务数据
- title: PartnerCreateResult
- PartnerDeleteResult:
- type: object
- properties:
- partner_id:
- type: string
- title: 合伙人 ID
- description: 合伙人 ID。
- name:
- type: string
- title: 名称
- description: 名称。
- deleted:
- type: string
- description: 类型:false
- title: 是否已删除
- blockers:
- type: array
- items:
- $ref: '#/components/schemas/BlockerItem'
- title: blockers
- description: 字段 blockers。
- unverifiable_checks:
- type: array
- items:
- $ref: '#/components/schemas/UnverifiableCheck'
- title: unverifiable checks
- description: 字段 unverifiable_checks。
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - partner_id
- - name
- - deleted
- - blockers
- - unverifiable_checks
- - note
- description: PartnerDeleteResult 业务数据
- title: PartnerDeleteResult
- PartnerListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/PartnerRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: PartnerListResult 业务数据
- title: PartnerListResult
- PartnerRow:
- type: object
- properties:
- partner_id:
- type: string
- title: 合伙人 ID
- description: 合伙人 ID。
- name:
- type: string
- title: 名称
- description: 名称。
- duty_desc:
- type: string
- nullable: true
- title: duty desc
- description: 字段 duty_desc。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_path_name:
- type: string
- nullable: true
- description: '`bos_region_meta.path_name`(节点 ID 链;未建档=null)'
- title: region path name
- region_level:
- type: string
- nullable: true
- description: '`bos_region_meta.level`(合伙人限省级)'
- title: region level
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- status:
- type: string
- title: 状态
- description: 状态。
- settle_mode:
- type: string
- nullable: true
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- title: settle value
- description: 字段 settle_value。
- customer_count:
- type: integer
- title: customer count
- description: 字段 customer_count。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- account:
- $ref: '#/components/schemas/SubjectAccount'
- scope:
- type: object
- properties:
- regions:
- type: array
- items:
- type: string
- customers:
- type: array
- items:
- type: string
- coverage_customers:
- type: number
- nullable: true
- required:
- - regions
- - customers
- - coverage_customers
- description: '* 「配置范围」弹窗回显 —— 随列表一并下发, 另开「按 id 查他人范围」的接口 * (`partner/scope/get@v1` 设计上只允许本人查自己,admin
- 越权读他人范围在本域被禁止)。'
- title: scope
- required:
- - partner_id
- - name
- - duty_desc
- - region_node_id
- - region_path_name
- - region_level
- - mobile
- - status
- - settle_mode
- - settle_value
- - customer_count
- - created_at
- - account
- - scope
- description: PartnerRow 业务数据
- title: PartnerRow
- PartnerScope:
- type: object
- properties:
- grants:
- type: array
- items:
- $ref: '#/components/schemas/ScopeGrant'
- title: grants
- description: 字段 grants。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- required:
- - grants
- - total
- description: PartnerScope 业务数据
- title: PartnerScope
- PartnerScopeSaveResult:
- type: object
- properties:
- partner_id:
- type: string
- title: 合伙人 ID
- description: 合伙人 ID。
- grants:
- type: array
- items:
- $ref: '#/components/schemas/ScopeGrant'
- title: grants
- description: 字段 grants。
- region_count:
- type: integer
- title: region count
- description: 字段 region_count。
- customer_count:
- type: integer
- title: customer count
- description: 字段 customer_count。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- inserted:
- type: number
- title: inserted
- description: 字段 inserted。
- deleted:
- type: number
- title: 是否已删除
- description: 是否已删除。
- unchanged:
- type: number
- title: unchanged
- description: 字段 unchanged。
- noop:
- type: boolean
- nullable: true
- description: '仅「本次无需改动」分支下发'
- title: noop
- consistent:
- type: boolean
- nullable: true
- description: '回读与请求是否一致( 假定 true);noop 分支 下发'
- title: consistent
- diff_with_requested:
- type: object
- properties:
- expected:
- type: array
- items:
- type: string
- actual:
- type: array
- items:
- type: string
- required:
- - expected
- - actual
- nullable: true
- title: diff with requested
- description: 字段 diff_with_requested。
- scope_note:
- type: string
- title: scope note
- description: 字段 scope_note。
- required:
- - partner_id
- - grants
- - region_count
- - customer_count
- - total
- - inserted
- - deleted
- - unchanged
- - scope_note
- description: PartnerScopeSaveResult 业务数据
- title: PartnerScopeSaveResult
- PartnerUpdateResult:
- type: object
- properties:
- partner_id:
- type: string
- title: 合伙人 ID
- description: 合伙人 ID。
- name:
- type: string
- title: 名称
- description: 名称。
- duty_desc:
- type: string
- nullable: true
- title: duty desc
- description: 字段 duty_desc。
- region_node_id:
- type: string
- title: 区域节点 ID
- description: 区域节点 ID。
- region_level:
- type: string
- title: region level
- description: 字段 region_level。
- region_path_name:
- type: string
- title: region path name
- description: 字段 region_path_name。
- ops_main_scope_check:
- $ref: '#/components/schemas/ScopeCheck'
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- status:
- type: string
- title: 状态
- description: 状态。
- settle_mode:
- type: string
- nullable: true
- title: settle mode
- description: 字段 settle_mode。
- settle_value:
- type: string
- nullable: true
- title: settle value
- description: 字段 settle_value。
- settle_requested:
- type: object
- properties:
- settle_mode:
- type: string
- nullable: true
- settle_value:
- oneOf:
- - type: string
- - type: number
- nullable: true
- required:
- - settle_mode
- - settle_value
- title: settle requested
- description: 字段 settle_requested。
- username:
- type: string
- nullable: true
- description: 随本接口同步平台账号,此处=本地绑定行真值
- title: 登录名
- form_semantics:
- type: string
- title: form semantics
- description: 字段 form_semantics。
- platform_sync_note:
- type: string
- title: platform sync note
- description: 字段 platform_sync_note。
- row_version_note:
- type: string
- title: row version note
- description: 字段 row_version_note。
- required:
- - partner_id
- - name
- - duty_desc
- - region_node_id
- - region_level
- - region_path_name
- - ops_main_scope_check
- - mobile
- - status
- - settle_mode
- - settle_value
- - settle_requested
- - username
- - form_semantics
- - platform_sync_note
- - row_version_note
- description: PartnerUpdateResult 业务数据
- title: PartnerUpdateResult
- PendingQueueItem:
- type: object
- properties:
- seq_no:
- type: number
- nullable: true
- title: 序号
- description: 序号。
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- ticket_type:
- $ref: '#/components/schemas/TicketType'
- title:
- type: string
- nullable: true
- title: 标题
- description: 标题。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- assign_team_id:
- type: string
- nullable: true
- title: 承接团队 ID
- description: 承接团队 ID。
- team_name:
- type: string
- nullable: true
- title: 团队名称
- description: 团队名称。
- assignee_user_id:
- type: string
- nullable: true
- title: 处理人用户 ID
- description: 处理人用户 ID。
- assignee_name:
- type: string
- nullable: true
- title: 处理人姓名
- description: 处理人姓名。
- status:
- $ref: '#/components/schemas/TicketStatus'
- backfill_source:
- type: string
- nullable: true
- title: 回填来源
- description: 回填来源。
- expected_done_date:
- type: string
- nullable: true
- title: 期望完成日
- description: 期望完成日。
- deferred_until:
- type: string
- nullable: true
- title: 延期至
- description: 延期至。
- overdue_7d:
- type: boolean
- nullable: true
- title: 七日超期
- description: 七日超期。
- execution_locked:
- type: boolean
- nullable: true
- title: 执行锁定
- description: 执行锁定。
- execution_not_before:
- type: string
- nullable: true
- title: 最早可执行日
- description: 最早可执行日。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- completed_at:
- type: string
- nullable: true
- title: 完成时间
- description: 完成时间。
- waiting:
- $ref: '#/components/schemas/TicketWaiting'
- submitter_type:
- type: string
- nullable: true
- title: 提交方类型
- description: 提交方类型。
- candidates:
- type: array
- items:
- $ref: '#/components/schemas/AssignCandidate'
- title: 候选人
- description: 候选人。
- required:
- - ticket_id
- - ticket_no
- - ticket_type
- - title
- - customer_id
- - customer_name
- - assign_team_id
- - assignee_user_id
- - status
- - backfill_source
- - expected_done_date
- - created_at
- - candidates
- description: PendingQueueItem 业务数据
- title: PendingQueueItem
- PendingQueueResult:
- type: object
- properties:
- rows:
- type: array
- items:
- $ref: '#/components/schemas/PendingQueueItem'
- title: 行集
- description: 行集。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- title: 页码
- description: 页码。
- page_size:
- type: integer
- title: 每页条数
- description: 每页条数。
- required:
- - rows
- - total
- - page
- - page_size
- description: PendingQueueResult 业务数据
- title: PendingQueueResult
- PingInfo:
- type: object
- properties:
- status:
- type: string
- title: 状态
- description: 状态。
- service:
- type: string
- title: 服务名
- description: 服务名。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- role_code:
- $ref: '#/components/schemas/RoleCode'
- required:
- - status
- - service
- - user_id
- - role_code
- description: PingInfo 业务数据
- title: PingInfo
- PlanCostItemListResult:
- type: object
- description: 档位随附成本项列表
- properties:
- items:
- type: array
- description: 成本项行
- items:
- type: object
- additionalProperties: true
- title: 列表项元素
- title: 列表项
- plan_id:
- type: string
- description: 套餐档位 ID
- nullable: true
- title: 档位 ID
- frozen:
- type: boolean
- description: 是否冻结(只读提示)
- nullable: true
- title: frozen
- required:
- - items
- title: PlanCostItemListResult
- PlanCostItemRow:
- type: object
- properties:
- item_id:
- type: string
- nullable: true
- title: item id
- description: 字段 item_id。
- cost_item_id:
- type: string
- nullable: true
- description: 全局成本项 ID(强引用,保存时必填)。
- title: cost item id
- item_name:
- type: string
- title: item name
- description: 字段 item_name。
- amount_cents:
- type: integer
- nullable: true
- title: 金额(分)
- description: 金额(分)。
- billing_unit:
- type: string
- nullable: true
- title: billing unit
- description: 字段 billing_unit。
- category:
- type: string
- nullable: true
- title: category
- description: 字段 category。
- remark:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- sort_no:
- type: number
- nullable: true
- title: sort no
- description: 字段 sort_no。
- required:
- - item_name
- - amount_cents
- - billing_unit
- - category
- - remark
- description: 套餐随附成本项(`plan_cost_item`)。`cost_item_id` 为对全局 `cost_item` 的强引用;
- `item_name`/`category`/`billing_unit` 读时取全局现名(服务端 JOIN),保存时由服务端快照覆盖。
- title: PlanCostItemRow
- PlanCostItemSaveResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/PlanCostItemRow'
- title: 列表项
- description: 列表项。
- saved_count:
- type: integer
- nullable: true
- title: saved count
- description: 字段 saved_count。
- required:
- - items
- description: PlanCostItemSaveResult 业务数据
- title: PlanCostItemSaveResult
- PortalPlanBoardResult:
- type: object
- description: 客户门户套餐看板
- properties:
- view:
- type: string
- description: 视图:board/list/detail
- title: 视图
- party:
- type: object
- description: 页头主体
- properties:
- customer_id:
- type: string
- description: 客户 ID
- customer_name:
- type: string
- description: 客户名称
- nullable: true
- operator_name:
- type: string
- description: 签订方运营商名称
- nullable: true
- region_path:
- type: string
- description: 区域路径
- nullable: true
- title: 主体信息
- current_rows:
- type: array
- description: 当前套餐行(status.key ∈ active/pending)
- items:
- $ref: '#/components/schemas/PortalPlanBoardRow'
- title: 当前行
- history_rows:
- type: array
- description: 往期套餐行(含 expired/cancelled/replaced)
- items:
- $ref: '#/components/schemas/PortalPlanBoardRow'
- title: 历史行
- amount_note:
- type: string
- description: 合同总额与每期结算口径说明
- title: 金额说明
- notes:
- type: array
- items:
- type: string
- title: 说明列表元素
- description: 补充说明
- title: 说明列表
- required:
- - view
- - current_rows
- - history_rows
- title: PortalPlanBoardResult
- PriorActivation:
- type: object
- properties:
- ticket_id:
- type: string
- nullable: true
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- actual_opened_date:
- type: string
- nullable: true
- title: actual opened date
- description: 字段 actual_opened_date。
- pin_bind_mode:
- type: string
- nullable: true
- title: pin bind mode
- description: 字段 pin_bind_mode。
- routes:
- type: array
- items:
- $ref: '#/components/schemas/RouteRow'
- nullable: true
- title: routes
- description: 字段 routes。
- ips:
- type: array
- items:
- $ref: '#/components/schemas/IpRow'
- nullable: true
- title: ips
- description: 字段 ips。
- ip_binds:
- type: array
- items:
- type: object
- properties:
- backfill_ip_id:
- type: string
- nullable: true
- sub_account_id:
- type: string
- nullable: true
- nullable: true
- title: ip binds
- description: 字段 ip_binds。
- description: PriorActivation 业务数据
- title: PriorActivation
- ProcessLog:
- type: object
- properties:
- log_id:
- type: string
- title: log id
- description: 字段 log_id。
- action:
- type: string
- nullable: true
- title: 动作
- description: 动作。
- actor_user_id:
- type: string
- nullable: true
- description: '* 操作人平台主体号。 服务端按角色下发:台账读侧五档给原值(要拿它对齐审计流水), * 客户侧/合作方侧置 `null`;`"0"`=系统/定时作。'
- title: actor user id
- actor_name:
- type: string
- nullable: true
- description: 操作人姓名/展示名(服务端按 `bos_account_ext.display_name` 优先、未自填回落登录名现查;查无或系统主体为 `null`)。
- title: actor name
- actor_role:
- type: string
- nullable: true
- title: actor role
- description: 字段 actor_role。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- at:
- type: string
- nullable: true
- title: at
- description: 字段 at。
- required:
- - log_id
- - action
- - actor_user_id
- - actor_role
- - note
- - at
- description: 处理记录=append-only 纯文本留痕(数据模型): `related_id` 之类的关联列。
- title: ProcessLog
- ReconAccountCreateResult:
- type: object
- properties:
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- title: 登录名
- description: 登录名。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- status:
- type: string
- title: 状态
- description: 状态。
- status_hint:
- type: string
- nullable: true
- description: 状态提示,如「未发送,线下告知本人」
- title: status hint
- initial_password:
- type: string
- nullable: true
- description: 仅创建当次返回,查询接口不下发
- title: initial password
- required:
- - operator_id
- - user_id
- - username
- - mobile
- - status
- - status_hint
- description: ReconAccountCreateResult 业务数据
- title: ReconAccountCreateResult
- ReconAccountGetResult:
- type: object
- properties:
- found:
- type: boolean
- title: 是否命中
- description: 是否命中。
- operator_id:
- type: string
- title: 运营商 ID
- description: 运营商 ID。
- user_id:
- type: string
- nullable: true
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- status_hint:
- type: string
- nullable: true
- title: status hint
- description: 字段 status_hint。
- required:
- - found
- - operator_id
- - user_id
- - username
- - mobile
- - status
- - status_hint
- description: ReconAccountGetResult 业务数据
- title: ReconAccountGetResult
- ReconBatchRow:
- type: object
- properties:
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- holder_type:
- $ref: '#/components/schemas/HolderType'
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- holder_name:
- type: string
- description: 当期快照名称( 不存批次快照,显示时按快照口径取名)
- title: holder name
- period:
- type: string
- title: 账期
- description: 字段 period。
- recon_date:
- type: string
- title: recon date
- description: 字段 recon_date。
- trigger_type:
- $ref: '#/components/schemas/ReconTriggerType'
- detail_count:
- type: integer
- description: 明细条数:count(active) 现算,void 行不计
- title: detail count
- base_cents:
- type: integer
- description: 本批 SUM(active share_base_cents)——与卡片口径不同(不去重)
- title: base cents
- share_cents:
- type: integer
- description: 本批 SUM(active share_amount_cents)
- title: share cents
- reconcile_status:
- $ref: '#/components/schemas/ReconcileStatus'
- status:
- $ref: '#/components/schemas/ReconBatchStatus'
- fail_reason:
- type: string
- nullable: true
- description: failed 行行末红点悬浮原文( 不是 KLT-* 码,对账 末格)
- title: fail reason
- operator_user_id:
- type: string
- nullable: true
- description: 执行人;NULL ⇒ 界面显示「系统」( 显示 0/占位用户名)
- title: operator user id
- operator_username:
- type: string
- nullable: true
- description: 执行人可读名(`bos_user_binding` 联表): 无绑定 ⇒ null ⇒ 回落「系统」。
- title: operator username
- required:
- - batch_no
- - holder_type
- - holder_id
- - holder_name
- - period
- - recon_date
- - trigger_type
- - detail_count
- - base_cents
- - share_cents
- - reconcile_status
- - status
- - fail_reason
- - operator_user_id
- description: ReconBatchRow 业务数据
- title: ReconBatchRow
- ReconBatchStatus:
- type: string
- enum:
- - pending
- - executed
- - failed
- - voided
- description: 批次状态四值(对账)。 与出账状态是两个维度, 混列。
- title: ReconBatchStatus
- ReconDetailLine:
- type: object
- properties:
- bill_detail_id:
- type: string
- title: bill detail id
- description: 字段 bill_detail_id。
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- subscription_label:
- type: string
- title: subscription label
- description: 字段 subscription_label。
- receivable_cents:
- type: integer
- title: receivable cents
- description: 字段 receivable_cents。
- share_base_cents:
- type: integer
- title: share base cents
- description: 字段 share_base_cents。
- share_mode:
- type: string
- title: share mode
- description: 字段 share_mode。
- share_value:
- type: number
- title: share value
- description: 字段 share_value。
- share_amount_cents:
- type: integer
- title: share amount cents
- description: 字段 share_amount_cents。
- zero_note:
- $ref: '#/components/schemas/ZeroNote'
- required:
- - bill_detail_id
- - customer_name
- - subscription_label
- - receivable_cents
- - share_base_cents
- - share_mode
- - share_value
- - share_amount_cents
- - zero_note
- description: ReconDetailLine 业务数据
- title: ReconDetailLine
- ReconDetailResult:
- type: object
- properties:
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- holder_type:
- $ref: '#/components/schemas/HolderType'
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- holder_name:
- type: string
- title: holder name
- description: 字段 holder_name。
- period:
- type: string
- title: 账期
- description: 字段 period。
- recon_date:
- type: string
- title: recon date
- description: 字段 recon_date。
- status:
- $ref: '#/components/schemas/ReconBatchStatus'
- operator_user_id:
- type: string
- nullable: true
- title: operator user id
- description: 字段 operator_user_id。
- operator_username:
- type: string
- nullable: true
- description: 执行人可读名(`bos_user_binding` 联表):人工补跑=操作人账号名,自动出账/ 无绑定 ⇒ null。
- title: operator username
- executed_at:
- type: string
- nullable: true
- title: executed at
- description: 字段 executed_at。
- fail_reason:
- type: string
- nullable: true
- description: 只在 failed/voided 时渲染
- title: fail reason
- voided_by_batch_no:
- type: string
- nullable: true
- description: voided 时必带:由哪一次补跑作废(新批 batch_no,作废通路唯一人类可读轨迹)
- title: voided by batch no
- trigger_type:
- $ref: '#/components/schemas/ReconTriggerType'
- detail_count:
- type: integer
- title: detail count
- description: 字段 detail_count。
- base_cents:
- type: integer
- title: base cents
- description: 字段 base_cents。
- share_cents:
- type: integer
- title: share cents
- description: 字段 share_cents。
- can_rerun:
- type: boolean
- nullable: true
- description: '* 动作可用性三布尔位:服务端算、与 对账 同源常量, 前端按角色自猜=第二套判据。 * 后端未下发 ⇒ null ⇒ 界面禁用+「可操作性位后端未下发」。'
- title: can rerun
- can_export:
- type: boolean
- nullable: true
- title: can export
- description: 字段 can_export。
- can_correct:
- type: boolean
- nullable: true
- title: can correct
- description: 字段 can_correct。
- ticket_gap_count:
- type: integer
- nullable: true
- description: 本批仍有未完成开户工单(ticket_gap_counts);KLT-S406 ⇒ null 且 gap_failed=true(只坏该格)
- title: ticket gap count
- ticket_gap_failed:
- type: boolean
- title: ticket gap failed
- description: 字段 ticket_gap_failed。
- cost_unconfigured:
- type: array
- items:
- type: string
- title: cost_unconfigured元素
- description: 成本未配置提示(configured=false 的成本项名,一行文本,不建提醒表)
- title: cost unconfigured
- items:
- type: array
- items:
- $ref: '#/components/schemas/ReconDetailLine'
- title: 列表项
- description: 列表项。
- required:
- - batch_no
- - holder_type
- - holder_id
- - holder_name
- - period
- - recon_date
- - status
- - operator_user_id
- - executed_at
- - fail_reason
- - voided_by_batch_no
- - trigger_type
- - detail_count
- - base_cents
- - share_cents
- - can_rerun
- - can_export
- - can_correct
- - ticket_gap_count
- - ticket_gap_failed
- - cost_unconfigured
- - items
- description: ReconDetailResult 业务数据
- title: ReconDetailResult
- ReconExportResult:
- type: object
- properties:
- file_name:
- type: string
- nullable: true
- title: 文件名
- description: 文件名。
- oss_key:
- type: string
- nullable: true
- title: 对象键
- description: 对象键。
- row_count:
- type: integer
- nullable: true
- title: row count
- description: 字段 row_count。
- accepted_id:
- type: string
- nullable: true
- description: 异步受理号(超 export_async_rows 阈值时同步/异步共用同一段行集查询)
- title: accepted id
- description: ReconExportResult 业务数据
- title: ReconExportResult
- ReconPeriodsResult:
- type: object
- properties:
- periods:
- type: array
- items:
- type: string
- title: periods元素
- title: periods
- description: 字段 periods。
- required:
- - periods
- description: ReconPeriodsResult 业务数据
- title: ReconPeriodsResult
- ReconRerunResult:
- type: object
- properties:
- batch_no:
- type: string
- title: 批次号
- description: 批次号。
- required:
- - batch_no
- description: ReconRerunResult 业务数据
- title: ReconRerunResult
- ReconTriggerType:
- type: string
- enum:
- - auto
- - manual
- description: 触发方式两值( 补账功能取消后无第三值, 二次。
- title: ReconTriggerType
- ReconcileStatus:
- type: string
- enum:
- - settled
- - abnormal
- - unsettled
- description: 出账状态三值(唯一派生 reconcile_status_of,对账; 前端自写 CASE)。
- title: ReconcileStatus
- RegionChangeLogResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/RegionChangeLogRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- audit_write_ready:
- type: boolean
- nullable: true
- title: 审计可写
- description: 审计可写。
- truncated:
- type: boolean
- nullable: true
- title: 是否截断
- description: 是否截断。
- window_size:
- type: integer
- nullable: true
- title: 窗口大小
- description: 窗口大小。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - items
- - total
- description: RegionChangeLogResult 业务数据
- title: RegionChangeLogResult
- RegionChangeLogRow:
- type: object
- properties:
- action:
- type: string
- title: 动作
- description: 动作。
- object:
- type: object
- properties:
- type:
- type: string
- nullable: true
- id:
- type: string
- nullable: true
- nullable: true
- title: object
- description: 字段 object。
- before:
- type: string
- nullable: true
- title: before
- description: 字段 before。
- after:
- type: string
- nullable: true
- title: after
- description: 字段 after。
- actor:
- type: object
- properties:
- user_id:
- type: string
- nullable: true
- username:
- type: string
- nullable: true
- nullable: true
- title: actor
- description: 字段 actor。
- detail:
- type: object
- properties:
- object:
- type: string
- nullable: true
- before:
- type: string
- nullable: true
- after:
- type: string
- nullable: true
- actor_name:
- type: string
- nullable: true
- nullable: true
- title: detail
- description: 字段 detail。
- occurred_at:
- type: string
- nullable: true
- title: occurred at
- description: 字段 occurred_at。
- required:
- - action
- - object
- - before
- - after
- - actor
- - detail
- - occurred_at
- description: RegionChangeLogRow 业务数据
- title: RegionChangeLogRow
- RegionCreateResult:
- type: object
- properties:
- node_id:
- type: string
- title: 节点 ID
- description: 节点 ID。
- node_name:
- type: string
- nullable: true
- title: 节点名称
- description: 节点名称。
- parent_node_id:
- type: string
- nullable: true
- title: 父节点 ID
- description: 父节点 ID。
- level:
- type: string
- nullable: true
- title: 层级
- description: 层级。
- level_label:
- type: string
- nullable: true
- title: 层级标签
- description: 层级标签。
- required:
- - node_id
- description: RegionCreateResult 业务数据
- title: RegionCreateResult
- RegionDeleteResult:
- type: object
- properties:
- node_id:
- type: string
- title: 节点 ID
- description: 节点 ID。
- deleted:
- type: boolean
- title: 是否已删除
- description: 是否已删除。
- blocked:
- type: array
- items:
- type: string
- title: 阻塞项元素
- description: 阻塞项:has_children / has_children_customers / has_operator_profiles /
- has_partner_profiles / has_ops_teams / has_team_scope_refs
- title: 阻塞项
- required:
- - node_id
- - deleted
- - blocked
- description: RegionDeleteResult 业务数据
- title: RegionDeleteResult
- RegionNode:
- type: object
- properties:
- node_id:
- type: string
- title: 节点 ID
- description: 节点 ID。
- parent_id:
- type: string
- nullable: true
- title: 父 ID
- description: 父 ID。
- node_name:
- type: string
- nullable: true
- description: RM 下发的节点中文名;`null`=后端未下发( 用 ID 顶名)
- title: 节点名称
- name:
- type: string
- nullable: true
- description: 展示名(=path_name,现为节点 ID 链;未建档=null)
- title: 名称
- path_name:
- type: string
- nullable: true
- title: 路径名
- description: 路径名。
- level:
- type: string
- nullable: true
- description: dev 值域:省/市/区县
- title: 层级
- level_label:
- type: string
- nullable: true
- title: 层级标签
- description: 层级标签。
- counters:
- type: object
- properties:
- operators:
- type: number
- partners:
- type: number
- ops_teams:
- type: number
- customers:
- type: number
- customers_in_subtree:
- type: number
- children:
- type: number
- required:
- - operators
- - partners
- - ops_teams
- - customers
- - customers_in_subtree
- - children
- title: 计数
- description: 计数。
- required:
- - node_id
- - parent_id
- - node_name
- - name
- - path_name
- - level
- - level_label
- - counters
- description: 区域树节点 [实]
- title: RegionNode
- RegionOrphanResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/RegionOrphanRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- dangling_count:
- type: integer
- title: 疑似悬空数
- description: 疑似悬空数。
- window_size:
- type: integer
- nullable: true
- title: 窗口大小
- description: 窗口大小。
- platform_state_verified:
- type: boolean
- nullable: true
- title: 是否已核平台态
- description: 是否已核平台态。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - items
- - total
- - dangling_count
- description: RegionOrphanResult 业务数据
- title: RegionOrphanResult
- RegionOrphanRow:
- type: object
- properties:
- mount_request_id:
- type: string
- title: mount request id
- description: 字段 mount_request_id。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- hierarchy_id:
- type: string
- title: hierarchy id
- description: 字段 hierarchy_id。
- parent_node_id:
- type: string
- nullable: true
- title: 父节点 ID
- description: 父节点 ID。
- terminal_state:
- type: string
- title: terminal state
- description: 字段 terminal_state。
- local_customer_exists:
- type: boolean
- title: local customer exists
- description: 字段 local_customer_exists。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- cleaned_at:
- type: string
- nullable: true
- title: cleaned at
- description: 字段 cleaned_at。
- required:
- - mount_request_id
- - customer_id
- - hierarchy_id
- - parent_node_id
- - terminal_state
- - local_customer_exists
- - created_at
- - cleaned_at
- description: RegionOrphanRow 业务数据
- title: RegionOrphanRow
- RegionRenameResult:
- type: object
- properties:
- node_id:
- type: string
- title: 节点 ID
- description: 节点 ID。
- node_name:
- type: string
- title: 节点名称
- description: 节点名称。
- required:
- - node_id
- - node_name
- description: RegionRenameResult 业务数据
- title: RegionRenameResult
- RegionSubtreeResult:
- $ref: '#/components/schemas/RegionTreeResult'
- RegionTreeResult:
- type: object
- properties:
- node_ids:
- type: array
- items:
- type: string
- title: 节点 ID 列表元素
- title: 节点 ID 列表
- description: 节点 ID 列表。
- nodes:
- type: array
- items:
- $ref: '#/components/schemas/RegionNode'
- title: 节点列表
- description: 节点列表。
- root:
- type: string
- nullable: true
- title: 根节点
- description: 根节点。
- name_ready:
- type: boolean
- description: false=可见集合的中文名 全部到手(`name_source` 说明卡在哪一环)
- title: 名称是否齐全
- name_source:
- type: string
- title: 名称来源
- description: 名称来源。
- name_missing:
- type: array
- items:
- type: string
- title: 缺名节点元素
- description: RM 明确未给名的节点 id(截 20 条控体积)。 平台把「不存在」与「越权」混在一起, 渲染成"节点不存在"
- title: 缺名节点
- name_missing_count:
- type: integer
- title: 缺名数量
- description: 缺名数量。
- grant_scope:
- type: string
- nullable: true
- description: RM 据以判权的调用方作用域(如 `end_user:376985101906509824`);排障用, 据此放宽可见范围
- title: 授权作用域
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - node_ids
- - nodes
- - root
- - name_ready
- - name_source
- - name_missing
- - name_missing_count
- - grant_scope
- - note
- description: RegionTreeResult 业务数据
- title: RegionTreeResult
- RelatedOrderRef:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- term:
- type: string
- nullable: true
- title: term
- description: 字段 term。
- annual_price_cents:
- type: integer
- nullable: true
- title: 年价(分)
- description: 年价(分)。
- monthly_settle_cents:
- type: integer
- nullable: true
- title: 月结算(分)
- description: 月结算(分)。
- start_date:
- type: string
- nullable: true
- title: 开始日
- description: 开始日。
- end_date:
- type: string
- nullable: true
- title: 结束日
- description: 结束日。
- required:
- - subscription_id
- description: 升降配替换关系的对照行(订阅 条件面板)。
- title: RelatedOrderRef
- RenewalCandidate:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- member_id:
- type: string
- nullable: true
- description: 团队成员档案号;运营账号(`source=ops_account`)没有成员档案 ⇒ null
- title: 成员 ID
- is_primary:
- type: boolean
- title: 是否主账号
- description: 是否主账号。
- label:
- type: string
- title: 标签
- description: 标签。
- source:
- type: string
- enum:
- - member
- - ops_account
- nullable: true
- description: 候选来源:缺省/`member`=运维团队成员,`ops_account`=运营主/子账号
- title: 来源
- required:
- - user_id
- - username
- - member_id
- - is_primary
- - label
- description: 可指派成员(同团队 ∩ 可接 renewal ∩ 负责范围覆盖客户;含运营账号)[实]。
- title: RenewalCandidate
- RenewalCandidatesResult:
- type: object
- properties:
- message_id:
- type: string
- title: 消息 ID
- description: 消息 ID。
- contract_id:
- type: string
- title: 合同 ID
- description: 合同 ID。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- team_id:
- type: string
- title: 团队 ID
- description: 团队 ID。
- rows:
- type: array
- items:
- $ref: '#/components/schemas/RenewalCandidate'
- title: 行集
- description: 行集。
- required:
- - message_id
- - contract_id
- - customer_id
- - team_id
- - rows
- description: RenewalCandidatesResult 业务数据
- title: RenewalCandidatesResult
- RenewalTicketResult:
- type: object
- properties:
- message_id:
- type: string
- title: 消息 ID
- description: 消息 ID。
- contract_id:
- type: string
- title: 合同 ID
- description: 合同 ID。
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- title: 工单号
- description: 工单号。
- created:
- type: boolean
- title: 是否已创建
- description: 是否已创建。
- assignee_user_id:
- type: string
- nullable: true
- title: 处理人用户 ID
- description: 处理人用户 ID。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- messages_handled:
- type: integer
- title: messages handled
- description: 字段 messages_handled。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - message_id
- - contract_id
- - ticket_id
- - ticket_no
- - created
- - assignee_user_id
- - status
- - messages_handled
- - next_step
- description: 读信人生成续签工单并指派 [实]。
- title: RenewalTicketResult
- ReplacementProbeReq:
- type: object
- properties:
- index:
- type: number
- nullable: true
- description: 0 基条目下标(缺省=数组位置)。
- title: index
- plan_id:
- type: string
- nullable: true
- title: 档位 ID
- description: 档位 ID。
- plan_family:
- type: string
- nullable: true
- description: 缺省时后端回落档位的交付形态。
- title: plan family
- line_exits:
- type: array
- items:
- type: string
- title: line_exits元素
- nullable: true
- title: line exits
- description: 字段 line_exits。
- description: '`POST /subscription/replacement_candidates@v1`'
- title: ReplacementProbeReq
- RoleCode:
- type: string
- enum:
- - admin
- - opsMain
- - opsSub
- - teamLead
- - ops
- - enterprise
- - sub
- - partner
- - operator
- description: klt-bos 前端类型层(应答载荷契约)。 权威依据(优先级从高到低): 1. `src/modules/account/src/handlers/*.rs`
- 中 `json_ok(...)` 真实写出的 JSON
- title: RoleCode
- RouteRow:
- type: object
- properties:
- id:
- type: string
- title: ID
- description: ID。
- sub_account_id:
- type: string
- nullable: true
- title: sub account id
- description: 字段 sub_account_id。
- network_account_name:
- type: string
- nullable: true
- title: network account name
- description: 字段 network_account_name。
- intranet_ip:
- type: string
- nullable: true
- title: intranet ip
- description: 字段 intranet_ip。
- subnet_mask:
- type: string
- nullable: true
- title: subnet mask
- description: 字段 subnet_mask。
- gateway:
- type: string
- nullable: true
- title: gateway
- description: 字段 gateway。
- vlan:
- type: string
- nullable: true
- title: vlan
- description: 字段 vlan。
- tunnel_encap:
- type: string
- nullable: true
- title: tunnel encap
- description: 字段 tunnel_encap。
- vni:
- type: string
- nullable: true
- title: vni
- description: 字段 vni。
- src_endpoint:
- type: string
- nullable: true
- title: src endpoint
- description: 字段 src_endpoint。
- dst_endpoint:
- type: string
- nullable: true
- title: dst endpoint
- description: 字段 dst_endpoint。
- egress_pop:
- type: string
- nullable: true
- title: egress pop
- description: 字段 egress_pop。
- down_mbps:
- type: string
- nullable: true
- title: down mbps
- description: 字段 down_mbps。
- up_mbps:
- type: string
- nullable: true
- title: up mbps
- description: 字段 up_mbps。
- proxy_host:
- type: string
- nullable: true
- title: proxy host
- description: 字段 proxy_host。
- proxy_port:
- type: string
- nullable: true
- title: proxy port
- description: 字段 proxy_port。
- pin_registered:
- type: string
- nullable: true
- title: pin registered
- description: 字段 pin_registered。
- cpid_registered:
- type: string
- nullable: true
- title: cpid registered
- description: 字段 cpid_registered。
- required:
- - id
- - sub_account_id
- - network_account_name
- - intranet_ip
- - subnet_mask
- - gateway
- - vlan
- - vni
- - src_endpoint
- - dst_endpoint
- - egress_pop
- - down_mbps
- - up_mbps
- description: RouteRow 业务数据
- title: RouteRow
- ScopeCheck:
- type: object
- properties:
- applied:
- type: boolean
- title: applied
- description: 字段 applied。
- evidence:
- type: string
- nullable: true
- title: evidence
- description: 字段 evidence。
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- required:
- - applied
- description: opsMain 区域上界核对 [实]
- title: ScopeCheck
- ScopeGrant:
- type: object
- properties:
- target_type:
- type: string
- title: target type
- description: 字段 target_type。
- target_id:
- type: string
- title: target id
- description: 字段 target_id。
- grant_id:
- type: string
- nullable: true
- title: grant id
- description: 字段 grant_id。
- holder_type:
- type: string
- nullable: true
- title: holder type
- description: 字段 holder_type。
- holder_id:
- type: string
- nullable: true
- title: holder id
- description: 字段 holder_id。
- updated_at:
- type: string
- nullable: true
- title: 更新时间
- description: 更新时间。
- required:
- - target_type
- - target_id
- description: '`bos_data_scope` 一行(holder×target 模型;partner/ent_team 共用)。后端只下发 target 两列。'
- title: ScopeGrant
- ScopeView:
- type: object
- properties:
- kind:
- type: string
- enum:
- - all
- - regions
- - teams
- - customers
- - self
- title: 类型
- description: 类型。
- region_node_ids:
- type: array
- items:
- type: string
- title: region_node_ids元素
- title: region node ids
- description: 字段 region_node_ids。
- customer_ids:
- type: array
- items:
- type: string
- title: customer_ids元素
- title: customer ids
- description: 字段 customer_ids。
- team_ids:
- type: array
- items:
- type: string
- title: team_ids元素
- title: team ids
- description: 字段 team_ids。
- required:
- - kind
- - region_node_ids
- - customer_ids
- - team_ids
- description: '后端待实现,契约以此为准:auth/context 目前只下发 `scope_mode: string | null`,未下发本结构。'
- title: ScopeView
- ServiceItem:
- type: object
- properties:
- item_id:
- type: string
- title: item id
- description: 字段 item_id。
- seq_no:
- type: string
- title: 序号
- description: 序号。
- item_name:
- type: string
- nullable: true
- title: item name
- description: 字段 item_name。
- spec_text:
- type: string
- nullable: true
- title: spec text
- description: 字段 spec_text。
- spec_before:
- type: string
- nullable: true
- description: '* 升降配(`updown`)的参数对照( 补列):`spec_before`=原档位参数摘要、 * `spec_after`=新档位参数摘要(回收行写「停用(截止新订阅生效前一日)」);其余类型两列为
- null。'
- title: spec before
- spec_after:
- type: string
- nullable: true
- title: spec after
- description: 字段 spec_after。
- expect_qty:
- type: string
- nullable: true
- title: expect qty
- description: 字段 expect_qty。
- check_result:
- type: string
- nullable: true
- title: check result
- description: 字段 check_result。
- checked_at:
- type: string
- nullable: true
- title: checked at
- description: 字段 checked_at。
- checked_by:
- type: string
- nullable: true
- title: checked by
- description: 字段 checked_by。
- note:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- required:
- - item_id
- - seq_no
- - item_name
- - spec_text
- - spec_before
- - spec_after
- - expect_qty
- - check_result
- - checked_at
- - checked_by
- - note
- description: ServiceItem 业务数据
- title: ServiceItem
- ShareParamSummaryRequest:
- type: object
- properties:
- holders:
- type: array
- items:
- type: object
- properties:
- holder_type:
- $ref: '#/components/schemas/HolderType'
- holder_id:
- type: string
- required:
- - holder_type
- - holder_id
- description: 调用计数=1:列表页一次提交全部 holder(契约 14.1.3 注 3, 逐行调用)。
- title: holders
- required:
- - holders
- description: '[实] POST /share_rule/param_summary@v1'
- title: ShareParamSummaryRequest
- ShareRuleDeleteResult:
- type: object
- properties:
- rule_id:
- type: string
- nullable: true
- title: rule id
- description: 字段 rule_id。
- deleted:
- type: boolean
- nullable: true
- title: 是否已删除
- description: 是否已删除。
- description: ShareRuleDeleteResult 业务数据
- title: ShareRuleDeleteResult
- ShareRuleDetail:
- type: object
- properties:
- holder_type:
- type: string
- title: holder type
- description: 字段 holder_type。
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- holder_name:
- type: string
- nullable: true
- title: holder name
- description: 字段 holder_name。
- cards:
- type: object
- additionalProperties:
- type: number
- nullable: true
- description: 四张卡=结算口径(宿主,一期恒 `null`。
- title: cards
- cards_available:
- type: boolean
- nullable: true
- title: cards available
- description: 字段 cards_available。
- cards_message:
- type: string
- nullable: true
- title: cards message
- description: 字段 cards_message。
- rules:
- type: array
- items:
- $ref: '#/components/schemas/ShareRuleRow'
- title: rules
- description: 字段 rules。
- available:
- type: boolean
- nullable: true
- description: '`false`=该档案行查不到/未知 `holder_type`。'
- title: available
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- derived:
- type: string
- nullable: true
- title: derived
- description: 字段 derived。
- columns_pending:
- type: array
- items:
- type: string
- title: columns_pending元素
- nullable: true
- title: columns pending
- description: 字段 columns_pending。
- required:
- - holder_type
- - holder_id
- - holder_name
- - cards
- - rules
- description: ShareRuleDetail 业务数据
- title: ShareRuleDetail
- ShareRuleListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/ShareRuleRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- nullable: true
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- source:
- type: string
- nullable: true
- description: 恒 `"archive"`=取值来自档案两列, 读 dev 库遗留 `share_rule` 表。
- title: 来源
- derived:
- type: string
- nullable: true
- description: 派生代价说明(`rule_id`/`rule_level` 为视图键)。
- title: derived
- columns_pending:
- type: array
- items:
- type: string
- title: columns_pending元素
- nullable: true
- description: 下发的列名清单,页面据此标「后端未下发」。
- title: columns pending
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - items
- description: ShareRuleListResult 业务数据
- title: ShareRuleListResult
- ShareRuleRow:
- type: object
- properties:
- rule_id:
- type: string
- title: rule id
- description: 字段 rule_id。
- holder_type:
- type: string
- title: holder type
- description: 字段 holder_type。
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- holder_name:
- type: string
- nullable: true
- title: holder name
- description: 字段 holder_name。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- rule_level:
- type: string
- title: rule level
- description: 字段 rule_level。
- share_mode:
- type: string
- nullable: true
- title: share mode
- description: 字段 share_mode。
- share_value:
- type: number
- nullable: true
- title: share value
- description: 字段 share_value。
- remark:
- type: string
- nullable: true
- title: 备注
- description: 备注。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- row_version:
- type: integer
- title: 乐观锁版本
- description: |-
- 档案乐观锁版本(operator/ops_team/partner.row_version;与 save/三档案 update 同链)。
- minimum: 1
- required:
- - rule_id
- - holder_type
- - holder_id
- - customer_id
- - rule_level
- - share_mode
- - share_value
- - remark
- - status
- - row_version
- description: ShareRuleRow 业务数据
- title: ShareRuleRow
- ShareRuleSaveResult:
- type: object
- properties:
- holder_type:
- type: string
- title: holder type
- description: 字段 holder_type。
- holder_id:
- type: string
- title: holder id
- description: 字段 holder_id。
- saved:
- type: boolean
- title: 是否已保存
- description: 是否已保存。
- saved_count:
- type: integer
- nullable: true
- title: saved count
- description: 净写入条数;同值=0。
- changed:
- type: integer
- nullable: true
- title: changed
- description: 0=同值未改;1=已写入并推版本。
- row_version:
- type: integer
- nullable: true
- title: 乐观锁版本
- description: 写后档案版本(同值=原版本)。
- rule:
- $ref: '#/components/schemas/ShareRuleRow'
- source:
- type: string
- nullable: true
- title: 来源
- description: 来源。
- derived:
- type: string
- nullable: true
- title: derived
- description: 字段 derived。
- columns_pending:
- type: array
- items:
- type: string
- title: columns_pending元素
- nullable: true
- title: columns pending
- description: 仍未落库的派生列(customer_id/customer_name/remark);row_version 已落地。
- message:
- type: string
- nullable: true
- title: 说明
- description: 说明。
- required:
- - holder_type
- - holder_id
- - saved
- description: ShareRuleSaveResult 业务数据
- title: ShareRuleSaveResult
- StartResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- advanced:
- type: boolean
- title: advanced
- description: 字段 advanced。
- status:
- $ref: '#/components/schemas/TicketStatus'
- reason:
- type: string
- enum:
- - not_assignee
- - already_advanced
- - concurrent
- nullable: true
- description: '`advanced:false` 时后端回的原因:非责任人/已被推进/并发。'
- title: reason
- advanced_at:
- type: string
- nullable: true
- title: advanced at
- description: 字段 advanced_at。
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- required:
- - ticket_id
- - advanced
- - status
- description: StartResult 业务数据
- title: StartResult
- SubAccountListResult:
- type: object
- properties:
- items:
- type: array
- items:
- $ref: '#/components/schemas/SubAccountRow'
- title: 列表项
- description: 列表项。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- nullable: true
- title: 页码
- description: 页码。
- page_size:
- type: integer
- nullable: true
- title: 每页条数
- description: 每页条数。
- required:
- - items
- - total
- description: GET(列表)/sub_account/get_list@v1
- title: SubAccountListResult
- SubAccountRow:
- type: object
- properties:
- sub_account_id:
- type: string
- title: sub account id
- description: 字段 sub_account_id。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- username:
- type: string
- nullable: true
- title: 登录名
- description: 登录名。
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- purpose:
- type: string
- nullable: true
- title: purpose
- description: 字段 purpose。
- net_account:
- type: string
- nullable: true
- title: net account
- description: 字段 net_account。
- status:
- type: string
- title: 状态
- description: 状态。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- stopped_at:
- type: string
- nullable: true
- description: 停用日 :取最近一次停机类开停记录的生效日(`ticket_open_stop_account.effective_date`);`null`=从未停用。
- title: stopped at
- required:
- - sub_account_id
- - customer_id
- - username
- - display_name
- - purpose
- - net_account
- - status
- - created_at
- - stopped_at
- description: 分账号行 [实](`sub_account` LEFT JOIN `bos_user_binding`)。
- title: SubAccountRow
- SubAccountUpdateResult:
- type: object
- properties:
- sub_account_id:
- type: string
- title: sub account id
- description: 字段 sub_account_id。
- customer_id:
- type: string
- title: 客户 ID
- description: 客户 ID。
- display_name:
- type: string
- nullable: true
- title: 显示名
- description: 显示名。
- network_account_name:
- type: string
- nullable: true
- description: =库内 `sub_account.net_account`(与列表行同值,仅键名不同)
- title: network account name
- purpose:
- type: string
- nullable: true
- description: 可改,恒为改前原值
- title: purpose
- status:
- type: string
- title: 状态
- description: 状态。
- updated_fields:
- type: array
- items:
- type: string
- title: updated_fields元素
- description: 本次实际写入的列名:`display_name`/`net_account`
- title: updated fields
- written_cols:
- type: array
- items:
- type: string
- title: written_cols元素
- title: written cols
- description: 字段 written_cols。
- audit_key:
- type: string
- title: audit key
- description: 字段 audit_key。
- audit_before_after:
- type: object
- properties:
- before:
- type: object
- properties:
- display_name:
- type: string
- nullable: true
- net_account:
- type: string
- nullable: true
- required:
- - display_name
- - net_account
- after:
- type: object
- properties:
- display_name:
- type: string
- nullable: true
- net_account:
- type: string
- nullable: true
- required:
- - display_name
- - net_account
- required:
- - before
- - after
- title: audit before after
- description: 字段 audit_before_after。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: 是否已写审计。
- audit_note:
- type: string
- title: 审计说明
- description: 审计说明。
- purpose_note:
- type: string
- title: purpose note
- description: 字段 purpose_note。
- platform_sync:
- type: object
- properties:
- applied:
- type: boolean
- reason:
- type: string
- required:
- - applied
- - reason
- title: platform sync
- description: 字段 platform_sync。
- time_note:
- type: string
- title: time note
- description: 字段 time_note。
- required:
- - sub_account_id
- - customer_id
- - display_name
- - network_account_name
- - purpose
- - status
- - updated_fields
- - written_cols
- - audit_key
- - audit_before_after
- - audit_written
- - audit_note
- - purpose_note
- - platform_sync
- - time_note
- description: SubAccountUpdateResult 业务数据
- title: SubAccountUpdateResult
- SubjectAccount:
- type: object
- properties:
- user_id:
- type: string
- title: 用户 ID
- description: 用户 ID。
- username:
- type: string
- title: 登录名
- description: 登录名。
- mobile:
- type: string
- nullable: true
- title: 手机号
- description: 手机号。
- status:
- type: string
- description: '`bos_user_binding.status`(启停 active/disabled)。'
- title: 状态
- activation_status:
- type: string
- nullable: true
- description: '`bos_account_ext.status`(激活码生命周期 none/issued/issuing/activated),与 `status` 正交。'
- title: 激活态
- account_count:
- type: integer
- title: account count
- description: 字段 account_count。
- required:
- - user_id
- - username
- - mobile
- - status
- - account_count
- description: 主体名下账号(列表页内联下发,`bos_user_binding` ⋈ `bos_account_ext`)[实]。 同主体绑定多账号时取 `user_id`
- 最小的一行作代表,`account_count` 给出总数; `mobile` 已按 掩码, 再用于拨打/复制。
- title: SubjectAccount
- SubjectType:
- type: string
- enum:
- - hq
- - region
- - ops_team
- - ent_team
- - customer
- - sub_account
- - partner
- - operator
- description: 主体类型(spec subject_type;SQL 注释含
- hq/region/ops_team/ent_team/customer/sub_account/partner/operator)
- title: SubjectType
- SubscriptionBilling:
- type: object
- properties:
- state:
- type: string
- enum:
- - ok
- - no_receivable
- title: state
- description: 字段 state。
- receivable_cents:
- type: integer
- nullable: true
- title: receivable cents
- description: 字段 receivable_cents。
- billed_cents:
- type: integer
- nullable: true
- title: billed cents
- description: 字段 billed_cents。
- unbilled_cents:
- type: integer
- nullable: true
- title: unbilled cents
- description: 字段 unbilled_cents。
- cost_cents:
- type: integer
- nullable: true
- title: cost cents
- description: 字段 cost_cents。
- periods:
- type: number
- title: periods
- description: 字段 periods。
- required:
- - state
- - receivable_cents
- - billed_cents
- - unbilled_cents
- - cost_cents
- - periods
- description: 订阅出账聚合(。 `state="no_receivable"` ⇒ 四值 `null`(该订阅尚无应收行, 用 0 元冒充「未出账」);
- `state="ok"` ⇒ 数值来自 `billing_receivable` 与已执行批次 `bill_detail`。
- title: SubscriptionBilling
- TicketCreateResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- title: 工单号
- description: 工单号。
- status:
- $ref: '#/components/schemas/TicketStatus'
- assign_team_id:
- type: string
- nullable: true
- title: 承接团队 ID
- description: 承接团队 ID。
- materials:
- type: number
- nullable: true
- description: 随单登记的材料条数(建单不再有「同类未完成并入」分支)
- title: materials
- required:
- - ticket_id
- - ticket_no
- - status
- - assign_team_id
- description: TicketCreateResult 业务数据
- title: TicketCreateResult
- TicketDetail:
- type: object
- properties:
- ticket:
- $ref: '#/components/schemas/TicketHead'
- customer:
- type: object
- properties:
- customer_id:
- type: string
- customer_name:
- type: string
- nullable: true
- customer_code:
- type: string
- nullable: true
- contact_name:
- type: string
- nullable: true
- contact_mobile:
- type: string
- nullable: true
- contact_mobile_full:
- type: string
- nullable: true
- contact_name_missing:
- type: boolean
- nullable: true
- contact_mobile_missing:
- type: boolean
- nullable: true
- address:
- type: string
- nullable: true
- address_missing:
- type: boolean
- nullable: true
- required:
- - customer_id
- - customer_name
- - customer_code
- - contact_name
- - contact_mobile
- - address
- nullable: true
- title: customer
- description: 字段 customer。
- order:
- type: object
- properties:
- subscription_id:
- type: string
- customer_id:
- type: string
- nullable: true
- contract_id:
- type: string
- nullable: true
- plan_id:
- type: string
- nullable: true
- plan_name:
- type: string
- nullable: true
- plan_kind:
- type: string
- nullable: true
- plan_family:
- type: string
- nullable: true
- sub_mode:
- type: string
- nullable: true
- line_exits:
- type: array
- items:
- oneOf:
- - type: string
- - type: string
- nullable: true
- order_no:
- type: string
- nullable: true
- term:
- type: string
- nullable: true
- start_date:
- type: string
- nullable: true
- status:
- type: string
- nullable: true
- actual_opened_at:
- type: string
- nullable: true
- quantity:
- oneOf:
- - type: string
- - type: number
- nullable: true
- quota_slots:
- oneOf:
- - type: string
- - type: number
- nullable: true
- sub_account_quota:
- oneOf:
- - type: string
- - type: number
- nullable: true
- bandwidth_up_mbps:
- oneOf:
- - type: string
- - type: number
- nullable: true
- bandwidth_down_mbps:
- oneOf:
- - type: string
- - type: number
- nullable: true
- bandwidth_committed:
- oneOf:
- - type: string
- - type: boolean
- nullable: true
- bandwidth_missing:
- type: boolean
- nullable: true
- replaces_subscription_id:
- type: string
- nullable: true
- parent_subscription_id:
- type: string
- nullable: true
- required:
- - subscription_id
- - customer_id
- - plan_name
- - plan_kind
- - plan_family
- - sub_mode
- - line_exits
- - order_no
- - term
- - start_date
- - status
- - actual_opened_at
- nullable: true
- title: order
- description: 字段 order。
- service_items:
- type: array
- items:
- $ref: '#/components/schemas/ServiceItem'
- title: service items
- description: 字段 service_items。
- subscriptions:
- type: array
- items:
- $ref: '#/components/schemas/TicketMemberSubscription'
- nullable: true
- description: '* P1:并单成员订阅(`ticket_subscription`,只装本单交付的附加订阅)。 * 主订阅仍唯一落在 `order`;本数组永远平铺,附加成员靠
- `parent_subscription_id` 标「叠加于」。'
- title: subscriptions
- open_stop:
- $ref: '#/components/schemas/OpenStop'
- backfill:
- $ref: '#/components/schemas/Backfill'
- completion:
- $ref: '#/components/schemas/Completion'
- completion_rejects:
- type: array
- items:
- $ref: '#/components/schemas/CompletionReject'
- nullable: true
- description: 驳回流水(旧→新)。门户/合伙人拿到的行集与运维侧同形,只是少了对外编号列。
- title: completion rejects
- reject_pending:
- type: boolean
- nullable: true
- description: 「外部等待中」判据( 第六条):由服务端判, 前端用 `length > 0` 推导。
- title: reject pending
- process_logs:
- type: array
- items:
- $ref: '#/components/schemas/ProcessLog'
- title: process logs
- description: 字段 process_logs。
- materials:
- type: array
- items:
- $ref: '#/components/schemas/TicketMaterial'
- title: materials
- description: 字段 materials。
- messages:
- type: array
- items:
- $ref: '#/components/schemas/TicketMessage'
- title: messages
- description: 字段 messages。
- gaps:
- type: array
- items:
- type: string
- title: gaps元素
- description: 缺口分组名(与 `required_groups` 同词典);空集=可出竣工
- title: gaps
- required_groups:
- type: array
- items:
- type: string
- title: required_groups元素
- title: required groups
- description: 字段 required_groups。
- actions:
- type: object
- additionalProperties:
- type: boolean
- title: actions
- description: 字段 actions。
- read_advanced:
- type: boolean
- title: read advanced
- description: 字段 read_advanced。
- waiting:
- $ref: '#/components/schemas/TicketWaiting'
- construction_guide:
- $ref: '#/components/schemas/ConstructionGuide'
- backfill_draft:
- $ref: '#/components/schemas/BackfillDraft'
- required:
- - ticket
- - customer
- - order
- - service_items
- - open_stop
- - backfill
- - completion
- - process_logs
- - materials
- - messages
- - gaps
- - required_groups
- - actions
- - read_advanced
- description: TicketDetail 业务数据
- title: TicketDetail
- TicketHead:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- title: 工单号
- description: 工单号。
- ticket_type:
- $ref: '#/components/schemas/TicketType'
- status:
- $ref: '#/components/schemas/TicketStatus'
- title:
- type: string
- title: 标题
- description: 标题。
- detail:
- type: string
- nullable: true
- title: detail
- description: 字段 detail。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- subscription_id:
- type: string
- nullable: true
- title: 订阅 ID
- description: 订阅 ID。
- contract_id:
- type: string
- nullable: true
- description: 经订阅/续签投影的合同 ID(工单表本身不存)。
- title: 合同 ID
- reporter_account_id:
- type: string
- nullable: true
- title: reporter account id
- description: 字段 reporter_account_id。
- carrier_order_no:
- type: string
- nullable: true
- title: carrier order no
- description: 字段 carrier_order_no。
- submitter_type:
- type: string
- nullable: true
- title: 提交方类型
- description: 提交方类型。
- submitter_user_id:
- type: string
- nullable: true
- title: submitter user id
- description: 字段 submitter_user_id。
- assign_team_id:
- type: string
- nullable: true
- title: 承接团队 ID
- description: 承接团队 ID。
- assignee_user_id:
- type: string
- nullable: true
- title: 处理人用户 ID
- description: 处理人用户 ID。
- assignee_snapshot_name:
- type: string
- nullable: true
- title: assignee snapshot name
- description: 字段 assignee_snapshot_name。
- assign_team_name:
- type: string
- nullable: true
- description: 服务端把 *_user_id 解析成的姓名回填进这三键(无匹配 ⇒ 键缺席,保留 ID 值)
- title: assign team name
- creator_name:
- type: string
- nullable: true
- title: creator name
- description: 字段 creator_name。
- delegate_from_name:
- type: string
- nullable: true
- title: delegate from name
- description: 字段 delegate_from_name。
- assignee_name:
- type: string
- nullable: true
- title: 处理人姓名
- description: 处理人姓名。
- delegate_from_user_id:
- type: string
- nullable: true
- title: delegate from user id
- description: 字段 delegate_from_user_id。
- delegated_at:
- type: string
- nullable: true
- title: delegated at
- description: 字段 delegated_at。
- expected_done_date:
- type: string
- nullable: true
- title: 期望完成日
- description: 期望完成日。
- execution_locked:
- type: boolean
- nullable: true
- description: 执行锁:开通类未到服务开始日 ⇒ `true`(写侧同口径拒绝)。
- title: 执行锁定
- execution_not_before:
- type: string
- nullable: true
- description: 计划执行日=服务开始日(非开通类恒 `null`)。
- title: 最早可执行日
- deferred_until:
- type: string
- nullable: true
- title: 延期至
- description: 延期至。
- confirm_deadline:
- type: string
- nullable: true
- title: confirm deadline
- description: 字段 confirm_deadline。
- source_message_id:
- type: string
- nullable: true
- title: source message id
- description: 字段 source_message_id。
- close_reason:
- type: string
- nullable: true
- title: close reason
- description: 字段 close_reason。
- completed_at:
- type: string
- nullable: true
- title: 完成时间
- description: 完成时间。
- closed_at:
- type: string
- nullable: true
- title: 关闭时间
- description: 关闭时间。
- settled_at:
- type: string
- nullable: true
- title: 办结时间
- description: 办结时间。
- creator_user_id:
- type: string
- nullable: true
- title: creator user id
- description: 字段 creator_user_id。
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- updated_at:
- type: string
- nullable: true
- title: 更新时间
- description: 更新时间。
- row_version:
- type: string
- title: 乐观锁版本
- description: 乐观锁版本。
- overdue:
- type: boolean
- title: overdue
- description: 字段 overdue。
- renew_from_contract_id:
- type: string
- nullable: true
- description: 续签:原合同/新合同(;非续签单缺席)
- title: renew from contract id
- renew_contract_id:
- type: string
- nullable: true
- title: renew contract id
- description: 字段 renew_contract_id。
- renew_from_contract_no:
- type: string
- nullable: true
- title: renew from contract no
- description: 字段 renew_from_contract_no。
- renew_from_end_date:
- type: string
- nullable: true
- title: renew from end date
- description: 字段 renew_from_end_date。
- renew_contract_no:
- type: string
- nullable: true
- title: renew contract no
- description: 字段 renew_contract_no。
- required:
- - ticket_id
- - ticket_no
- - ticket_type
- - status
- - title
- - detail
- - customer_id
- - subscription_id
- - reporter_account_id
- - carrier_order_no
- - submitter_type
- - submitter_user_id
- - assign_team_id
- - assignee_user_id
- - assignee_snapshot_name
- - delegate_from_user_id
- - delegated_at
- - expected_done_date
- - deferred_until
- - confirm_deadline
- - source_message_id
- - close_reason
- - completed_at
- - closed_at
- - settled_at
- - creator_user_id
- - created_at
- - updated_at
- - row_version
- - overdue
- description: TicketHead 业务数据
- title: TicketHead
- TicketListItem:
- type: object
- properties:
- seq_no:
- type: number
- nullable: true
- description: 全局序号(按当页偏移现算)
- title: 序号
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- ticket_no:
- type: string
- nullable: true
- title: 工单号
- description: 工单号。
- ticket_type:
- $ref: '#/components/schemas/TicketType'
- title:
- type: string
- nullable: true
- title: 标题
- description: 标题。
- customer_id:
- type: string
- nullable: true
- title: 客户 ID
- description: 客户 ID。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- assign_team_id:
- type: string
- nullable: true
- title: 承接团队 ID
- description: 承接团队 ID。
- team_name:
- type: string
- nullable: true
- title: 团队名称
- description: 团队名称。
- assignee_user_id:
- type: string
- nullable: true
- title: 处理人用户 ID
- description: 处理人用户 ID。
- assignee_name:
- type: string
- nullable: true
- title: 处理人姓名
- description: 处理人姓名。
- status:
- $ref: '#/components/schemas/TicketStatus'
- backfill_source:
- type: string
- nullable: true
- description: 回填来源(manual/unicom_feedback/mixed;NULL=未回填)
- title: 回填来源
- expected_done_date:
- type: string
- nullable: true
- title: 期望完成日
- description: 期望完成日。
- deferred_until:
- type: string
- nullable: true
- description: '* 延期后的生效期限(`YYYY-MM-DD`;无延期=`null`/`undefined`)。 * * 服务端 `handlers/read.rs` 已按
- `os.deferred_until` → `t.deferred_until` 折算后下发 * (与 `overdue_7d` 同一优先级)。行内日期、分组与「还剩 N 天」都用它,
- 再用 * `expected_done_date`——那会让延期单显示「已超 N 天」而页顶「已超期」不数它。'
- title: 延期至
- overdue_7d:
- type: boolean
- nullable: true
- description: 7 日内到期/已超期(真布尔;仅队列口下发)
- title: 七日超期
- execution_locked:
- type: boolean
- nullable: true
- description: '* 执行锁(,服务端业务日现算):开通类三类 * (`open`/`service_open`/`updown`)的计划执行日=订阅服务开始日,未到该日 *
- ⇒ `true`:工单可见可分派,但回填/核对一律被 `KLT-G20403` 拒。 * * 前端按 `expected_done_date - 今天` 自行推断:业务日锚在 `Asia/Shanghai`,
- * 浏览器时钟与它不同源(跨零点会打架)。'
- title: 执行锁定
- execution_not_before:
- type: string
- nullable: true
- description: 计划执行日(=服务开始日;非开通类恒 `null`),可作日期输入的 `min`。
- title: 最早可执行日
- created_at:
- type: string
- nullable: true
- title: 创建时间
- description: 创建时间。
- completed_at:
- type: string
- nullable: true
- title: 完成时间
- description: 完成时间。
- waiting:
- $ref: '#/components/schemas/TicketWaiting'
- submitter_type:
- type: string
- nullable: true
- description: '* 提交方(`customer`=客户自报/`ops`=运营代建/`system`/`unicom`)。 * * 声明成可选是事实而非猜测:`handlers/read.rs`
- 的 `LIST_COLS` 投影里没有这一列, * `list_inner` 的 `json!` 也不下发 ⇒ 列表行拿到这里通常是 `undefined`。 * 客户侧「我的工单」据此判闸门(`customerLiveTicketActions`):`undefined`=还没取过详情,
- * 凭空当作 `customer` 给「确认完成,关闭工单」按钮(运维代建的单点了必被 `KLT-G20401` 拒)。 * 后端哪天补上这列,前端无需改动即可直接在同一行给出按钮。'
- title: 提交方类型
- required:
- - ticket_id
- - ticket_no
- - ticket_type
- - title
- - customer_id
- - customer_name
- - assign_team_id
- - assignee_user_id
- - status
- - backfill_source
- - expected_done_date
- - created_at
- description: '`POST /ticket/list@v1` 行(`list_inner` 的 `json!`,键名逐字对齐)。'
- title: TicketListItem
- TicketListResult:
- type: object
- properties:
- rows:
- type: array
- items:
- $ref: '#/components/schemas/TicketListItem'
- title: 行集
- description: 行集。
- total:
- type: integer
- title: 总条数
- description: 总条数。
- page:
- type: integer
- title: 页码
- description: 页码。
- page_size:
- type: integer
- title: 每页条数
- description: 每页条数。
- status_totals:
- type: object
- additionalProperties:
- type: number
- nullable: true
- description: '`include_status_totals=true` 时下发:可见范围内各状态张数(台账 Tab 角标)。'
- title: status totals
- required:
- - rows
- - total
- - page
- - page_size
- description: TicketListResult 业务数据
- title: TicketListResult
- TicketMaterial:
- type: object
- properties:
- material_id:
- type: string
- title: material id
- description: 字段 material_id。
- kind:
- type: string
- nullable: true
- title: 类型
- description: 类型。
- file_name:
- type: string
- nullable: true
- title: 文件名
- description: 文件名。
- size_bytes:
- type: string
- nullable: true
- title: size bytes
- description: 字段 size_bytes。
- uploaded_by:
- type: string
- nullable: true
- title: uploaded by
- description: 字段 uploaded_by。
- uploaded_at:
- type: string
- nullable: true
- title: uploaded at
- description: 字段 uploaded_at。
- required:
- - material_id
- - kind
- - file_name
- - size_bytes
- - uploaded_by
- - uploaded_at
- description: 期望 `oss_key`:下载走 `material_grant`,服务端不外泄对象键。
- title: TicketMaterial
- TicketMemberSubscription:
- type: object
- properties:
- subscription_id:
- type: string
- title: 订阅 ID
- description: 订阅 ID。
- plan_name:
- type: string
- nullable: true
- title: 档位名称
- description: 档位名称。
- plan_family:
- type: string
- nullable: true
- title: plan family
- description: 字段 plan_family。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- parent_subscription_id:
- type: string
- nullable: true
- description: 指向父链路订阅;非空即界面上标「叠加于 SUB-xxx」。
- title: parent subscription id
- required:
- - subscription_id
- description: 并单成员订阅(P1,`ticket_subscription`):只承载本单交付的附加订阅,平铺呈现。
- title: TicketMemberSubscription
- TicketMessage:
- type: object
- properties:
- message_id:
- type: string
- title: 消息 ID
- description: 消息 ID。
- carrier_order_no:
- type: string
- nullable: true
- title: carrier order no
- description: 字段 carrier_order_no。
- reported_ticket_no:
- type: string
- nullable: true
- title: reported ticket no
- description: 字段 reported_ticket_no。
- action:
- type: string
- nullable: true
- title: 动作
- description: 动作。
- status:
- type: string
- nullable: true
- title: 状态
- description: 状态。
- external_date:
- type: string
- nullable: true
- title: external date
- description: 字段 external_date。
- received_at:
- type: string
- nullable: true
- title: received at
- description: 字段 received_at。
- effective_at:
- type: string
- nullable: true
- title: effective at
- description: 字段 effective_at。
- void_reason:
- type: string
- nullable: true
- title: void reason
- description: 字段 void_reason。
- conflict_note:
- type: string
- nullable: true
- title: conflict note
- description: 字段 conflict_note。
- customer_name:
- type: string
- nullable: true
- title: 客户名称
- description: 客户名称。
- identity_no:
- type: string
- nullable: true
- title: identity no
- description: 字段 identity_no。
- contact_name:
- type: string
- nullable: true
- title: contact name
- description: 字段 contact_name。
- contact_phone:
- type: string
- nullable: true
- title: contact phone
- description: 字段 contact_phone。
- network_account_name:
- type: string
- nullable: true
- title: network account name
- description: 字段 network_account_name。
- required:
- - message_id
- - carrier_order_no
- - reported_ticket_no
- - action
- - status
- - external_date
- - received_at
- - effective_at
- - void_reason
- - conflict_note
- - customer_name
- - identity_no
- - contact_name
- - contact_phone
- - network_account_name
- description: 报文出参(`message_json`:已脱敏, 期望拿到原文)。
- title: TicketMessage
- TicketStatus:
- oneOf:
- - type: string
- - type: string
- description: TicketStatus 业务数据
- title: TicketStatus
- TicketType:
- oneOf:
- - type: string
- - type: string
- description: TicketType 业务数据
- title: TicketType
- TicketUrgeResult:
- type: object
- properties:
- ticket_id:
- type: string
- title: 工单 ID
- description: 工单 ID。
- created:
- type: boolean
- description: '`true`=本轮真的投递了一封;`false`=当日已发过(幂等去重)或并发已投。'
- title: 是否已创建
- reason:
- type: string
- nullable: true
- title: reason
- description: 字段 reason。
- message_id:
- type: string
- nullable: true
- title: 消息 ID
- description: 消息 ID。
- business_date:
- type: string
- title: business date
- description: 字段 business_date。
- counterparty:
- type: object
- properties:
- user_id:
- type: string
- name:
- type: string
- role:
- type: string
- org_name:
- type: string
- nullable: true
- required:
- - user_id
- - name
- - role
- - org_name
- nullable: true
- title: counterparty
- description: 字段 counterparty。
- waiting:
- $ref: '#/components/schemas/TicketWaiting'
- audit_written:
- type: boolean
- nullable: true
- title: 是否已写审计
- description: 是否已写审计。
- next_step:
- type: string
- title: next step
- description: 字段 next_step。
- required:
- - ticket_id
- - created
- - reason
- - business_date
- - waiting
- - next_step
- description: 站内催办 [实](,)
- title: TicketUrgeResult
- TicketWaiting:
- type: object
- properties:
- kind:
- type: string
- title: 类型
- description: 类型。
- label:
- type: string
- description: 服务端中文主文案(「等运营商回执」/「等客户确认」), 前端再拼一份。
- title: 标签
- counterparty_user_id:
- type: string
- nullable: true
- title: counterparty user id
- description: 字段 counterparty_user_id。
- counterparty_name:
- type: string
- nullable: true
- title: counterparty name
- description: 字段 counterparty_name。
- counterparty_role:
- type: string
- nullable: true
- title: counterparty role
- description: 字段 counterparty_role。
- org_name:
- type: string
- nullable: true
- description: 所属主体名(运营商所在地/客户名);无值时不加括号。
- title: org name
- since:
- type: string
- nullable: true
- title: since
- description: 字段 since。
- hours:
- type: number
- nullable: true
- title: hours
- description: 字段 hours。
- urge:
- type: object
- properties:
- eligible:
- type: boolean
- reason:
- type: string
- nullable: true
- sent_today:
- type: boolean
- last_sent_at:
- type: string
- nullable: true
- min_hours:
- type: number
- required:
- - eligible
- - reason
- - sent_today
- - last_sent_at
- - min_hours
- title: urge
- description: 字段 urge。
- required:
- - kind
- - label
- - counterparty_user_id
- - counterparty_name
- - counterparty_role
- - org_name
- - since
- - hours
- - urge
- description: 「卡在别人手里」的对家与催办读数(`waiting.rs::to_json`,列表 `rows[].waiting` 与详情 `waiting` 同形)。 *
- `kind`:`receipt`=等运营商回执(v1.62 起对家=该客户所属运营商的账号); `customer`=等客户确认(对家=提交方账号)。 *
- `counterparty_user_id` 为 `null` =主体档案在
- title: TicketWaiting
- TodoCounts:
- type: object
- properties:
- item_1_pending_exec_overdue:
- type: number
- description: 件1:开户/到期停机/服务停用/升降配 ∧ 尚未回填出开停事实 ∧ 已超期(开通类=超过服务开始日才计入;停机类=建单日+7
- 当天计入;批准延期后按新期限)
- title: item 1 pending exec overdue
- item_2_service_open_incomplete:
- type: number
- description: 件2:服务开通工单(待分派/待处理/处理中)同口径筛超期,与件1 单集互斥
- title: item 2 service open incomplete
- item_4_message_pending:
- type: number
- description: 件4:待处置报文(未归集+待确认), 与未回填合算
- title: item 4 message pending
- note:
- type: string
- title: 备注
- description: 备注。
- required:
- - item_1_pending_exec_overdue
- - item_2_service_open_incomplete
- - item_4_message_pending
- - note
- description: '`GET /ticket/todo_counts@v1`:四件套计数(口径写死在 SQL,`note` 是人读口径说明)。'
- title: TodoCounts
- TraceResult:
- type: object
- properties:
- ticket:
- type: object
- properties:
- ticket_id:
- type: string
- ticket_no:
- type: string
- nullable: true
- ticket_type:
- $ref: '#/components/schemas/TicketType'
- status:
- $ref: '#/components/schemas/TicketStatus'
- customer_id:
- type: string
- nullable: true
- carrier_order_no:
- type: string
- nullable: true
- title:
- type: string
- nullable: true
- required:
- - ticket_id
- - ticket_no
- - ticket_type
- - status
- - customer_id
- - carrier_order_no
- - title
- title: ticket
- description: 字段 ticket。
- open_stop:
- type: array
- items:
- type: object
- additionalProperties:
- type: string
- nullable: true
- title: open_stop元素
- description: 开停载体行(`::text` 字符串布尔判 `isYes`)
- title: open stop
- backfill:
- type: array
- items:
- type: object
- additionalProperties:
- type: string
- nullable: true
- title: backfill元素
- description: 回填头(至多一行)
- title: backfill
- completion:
- type: array
- items:
- type: object
- additionalProperties:
- type: string
- nullable: true
- title: completion元素
- description: 竣工件行
- title: completion
- messages:
- type: array
- items:
- $ref: '#/components/schemas/TicketMessage'
- title: messages
- description: 字段 messages。
- required:
- - ticket
- - open_stop
- - backfill
- - completion
- - messages
- description: TraceResult 业务数据
- title: TraceResult
- UnverifiableCheck:
- type: object
- properties:
- key:
- type: string
- title: key
- description: 字段 key。
- reason:
- type: string
- title: reason
- description: 字段 reason。
- required:
- - key
- - reason
- description: 可判定项 [实]
- title: UnverifiableCheck
- ValueState:
- type: string
- enum:
- - ok
- - unconfigured
- - by_combination
- - error
- - failed
- description: 取值状态:成功 / 未配置 / 按组合(无唯一金额)/ 取数失败(后端 回退 0 冒充缺值)。
- title: ValueState
- ViewBillDetailRow:
- type: object
- properties:
- bill_detail_id:
- type: string
- title: bill detail id
- description: 字段 bill_detail_id。
- customer_id:
- type: string
- description: 客户行键(V-D1 客户详情链接入参;customer_visible=false 时不渲染链接)
- title: 客户 ID
- customer_name:
- type: string
- title: 客户名称
- description: 客户名称。
- receivable_no:
- type: string
- description: 应收单号
- title: receivable no
- period:
- type: string
- title: 账期
- description: 字段 period。
- receivable_cents:
- type: integer
- description: 应结金额(整数分)
- title: receivable cents
- batch_no:
- type: string
- description: 所属对账单号(恒有值;批次详情宿主路由未在 14.1 声明 ⇒ 前端暂渲纯文本,缺口已登记)
- title: 批次号
- customer_visible:
- type: boolean
- description: false ⇒ 客户名纯文本无链接+标「归属已变更」(C76/视图,断链只在快照侧出现)
- title: customer visible
- required:
- - bill_detail_id
- - customer_id
- - customer_name
- - receivable_no
- - period
- - receivable_cents
- - batch_no
- - customer_visible
- description: V- 表 2 明细行(A18:只含已进入本方 executed 批次且 active 的行)。
- title: ViewBillDetailRow
- ViewPartnerReconResult:
- type: object
- properties:
- settle:
- type: object
- properties:
- mode:
- type: string
- nullable: true
- value:
- type: number
- nullable: true
- required:
- - mode
- - value
- description: 卡 1:本方分成方式与取值(档案现值、三档同构;value 未配 ⇒ null, 返 0)
- title: settle
- config:
- type: object
- properties:
- recon_day:
- type: number
- nullable: true
- pay_cycle:
- type: string
- nullable: true
- required:
- - recon_day
- - pay_cycle
- nullable: true
- description: '* 页顶配置卡(14.2① V6):对账日/付款周期。两格都给具体取值: * `recon_day` 缺失 ⇒ 「留空=跟随默认」;`pay_cycle`
- 由后端给生效值 * (未配置 ⇒ 系统默认「按月」, 页面显示「留空=跟随默认」)。'
- title: config
- batch_total:
- type: number
- title: batch total
- description: 字段 batch_total。
- batch_shown:
- type: number
- title: batch shown
- description: 字段 batch_shown。
- detail_total:
- type: number
- title: detail total
- description: 字段 detail_total。
- detail_shown:
- type: number
- title: detail shown
- description: 字段 detail_shown。
- batches:
- type: array
- items:
- $ref: '#/components/schemas/ViewReconBatchRow'
- title: batches
- description: 字段 batches。
- details:
- type: array
- items:
- $ref: '#/components/schemas/ViewBillDetailRow'
- title: details
- description: 字段 details。
- share_sum:
- type: number
- nullable: true
- description: 卡 4 当前筛选合计(整数分;取数失败 ⇒ null + 状态位, 返 0)
- title: share sum
- share_sum_all:
- type: number
- nullable: true
- description: 本方全部合计(筛选态双值常驻,视图 条 7)
- title: share sum all
- month_options:
- type: string
- description: A52;取数失败 ⇒ 整个字段 "failed"(前端禁用下拉, 回落近 12 个月)
- title: month options
- month_options_truncated:
- type: boolean
- nullable: true
- description: true ⇒ 筛选条下显示「仅显示最近 {N} 个月」(view_month_option_limit)
- title: month options truncated
- snapshot_state:
- type: string
- enum:
- - ok
- - not_ready
- - failed
- description: not_ready ⇒ 整页 KLT-O20703(①—⑥ 全替换, 渲染空表)
- title: snapshot state
- required:
- - settle
- - config
- - batch_total
- - batch_shown
- - detail_total
- - detail_shown
- - batches
- - details
- - share_sum
- - share_sum_all
- - month_options
- - snapshot_state
- description: ViewPartnerReconResult 业务数据
- title: ViewPartnerReconResult
- ViewReconBatchRow:
- type: object
- properties:
- batch_no:
- type: string
- description: 对账单号=行键+导出本批入参(recon/export_detail@v1 以 batch_no 作 batch_id,同册 6 惯例)
- title: 批次号
- period:
- type: string
- title: 账期
- description: 字段 period。
- reconcile_status:
- $ref: '#/components/schemas/ReconcileStatus'
- status:
- $ref: '#/components/schemas/ReconBatchStatus'
- detail_count:
- type: integer
- title: detail count
- description: 字段 detail_count。
- share_cents:
- type: integer
- description: 本方分成金额(整数分)
- title: share cents
- has_detail:
- type: boolean
- description: 该批次本方有明细 ⇒ 行末「导出本批」渲染判据( 无明细=按钮整块不渲染,)
- title: has detail
- required:
- - batch_no
- - period
- - reconcile_status
- - status
- - detail_count
- - share_cents
- - has_detail
- description: V- 表 1 批次行(视图 列清单; 无「其他分成方」列)。
- title: ViewReconBatchRow
- ZeroNote:
- type: string
- enum:
- - base_zero
- - no_in_period_account
- description: 明细行 zero_note 取值域(对账 恒 0 表;partner_amount_unsupported 已随 删除)。
- title: ZeroNote
- ActivationCodeExportData:
- type: object
- title: 激活码导出结果
- description: 读(validity=valid)与写(expired/all)共用同一信封;差别体现在 write_capability、export_mode 与计数。
- required:
- - status
- - validity
- - user_count
- - user_ids
- - total
- - items
- - write_capability
- - export_mode
- - plaintext_once
- - audit_written
- properties:
- status:
- type: string
- title: 处理状态
- description: 成功导出时为 ok。
- example: ok
- scope_type:
- type: string
- title: 作用域类型
- description: 服务端派生,固定为 end_user。
- example: end_user
- scope_id:
- type: string
- title: 作用域 ID
- description: 服务端派生的项目空间 ID。
- validity:
- type: string
- title: 导出口径
- description: valid=仍有效(只读);expired=已过期(写/换新);all=全部(写)。
- enum:
- - valid
- - expired
- - all
- user_count:
- type: integer
- title: 请求账号数
- description: 本次提交并经可见性收窄后的账号个数。
- minimum: 0
- user_ids:
- type: array
- title: 账号 ID 列表
- description: 实际参与导出的用户 ID。
- items:
- type: string
- title: 用户 ID
- total:
- type: integer
- title: 条目总数
- description: items 数组长度。
- minimum: 0
- items:
- type: array
- title: 激活码条目
- description: 平台 bootstrap_credential/export 条目原样转发;含明文 plaintext。
- items:
- $ref: '#/components/schemas/ExportCodeItem'
- chunks:
- type: integer
- title: 分片数
- description: 按平台分页自动分片时的片数。
- minimum: 0
- pages:
- type: integer
- title: 翻页数
- description: 平台翻页次数。
- minimum: 0
- reissued:
- type: integer
- title: 换新条数
- description: 本次作废并换发的凭证条数;只读导出时为 0。
- minimum: 0
- kept:
- type: integer
- title: 保留条数
- description: 未换新、仍保留的未消费凭证条数。
- minimum: 0
- revoked:
- type: integer
- title: 作废条数
- description: 本次作废的凭证条数。
- minimum: 0
- write_capability:
- type: boolean
- title: 是否写操作
- description: true=本次含换新/作废(validity 为 expired 或 all);false=只读。
- export_mode:
- type: string
- title: 导出模式
- description: read=只读导出;write=作废换新路径。与 write_capability 对应。
- enum:
- - read
- - write
- plaintext_once:
- type: boolean
- title: 明文一次性
- description: 恒为 true:明文只随本次应答回显,平台侧不落库。
- example: true
- plaintext_note:
- type: string
- title: 明文说明
- description: 提示调用方立即分发或安全保存明文。
- audit_written:
- type: boolean
- title: 是否已写审计
- description: true=已写入 bos_audit_log;false=本次未留痕。
- audit_note:
- type: string
- title: 审计说明
- description: 与 audit_written 成对的人读说明,勿仅凭布尔值猜测。
- batch_id:
- type: string
- title: 批次 ID
- description: 按批次导出口回显;账号导出口不下发。
- nullable: true
- batch_no:
- type: string
- title: 批次号
- description: 按批次导出口回显;账号导出口不下发。
- nullable: true
- ApiResponseHealth:
- type: object
- title: 健康检查响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/HealthInfo'
- ApiResponseHealthV1:
- type: object
- title: 健康检查(v1)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/HealthInfo'
- ApiResponsePing:
- type: object
- title: 存活探测响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PingInfo'
- ApiResponseAuthContext:
- type: object
- title: 当前登录上下文响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AuthContext'
- ApiResponseRegionCreate:
- type: object
- title: 新建区域节点响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionCreateResult'
- ApiResponseRegionRename:
- type: object
- title: 重命名区域节点响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionRenameResult'
- ApiResponseRegionDelete:
- type: object
- title: 删除区域节点响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionDeleteResult'
- ApiResponseRegionTree:
- type: object
- title: 查询可见区域树响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionTreeResult'
- ApiResponseRegionSubtree:
- type: object
- title: 查询区域子树响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionSubtreeResult'
- ApiResponseRegionChangeLog:
- type: object
- title: 区域变更流水响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionChangeLogResult'
- ApiResponseRegionOrphans:
- type: object
- title: 悬空区域节点响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RegionOrphanResult'
- ApiResponseAccountGetList:
- type: object
- title: 成员账号列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountListResult'
- ApiResponseEntTeamGetList:
- type: object
- title: 运营团队列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamListResult'
- ApiResponseOpsTeamGetList:
- type: object
- title: 运维团队列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamListResult'
- ApiResponseAuditGetList:
- type: object
- title: 审计日志检索响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AuditItem'
- ApiResponseAuditExport:
- type: object
- title: 审计日志导出响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AuditExportResult'
- ApiResponseAccountProvision:
- type: object
- title: 开通账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountProvisionResult'
- ApiResponseAccountUpdateStatus:
- type: object
- title: 停用或恢复账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountStatusResult'
- ApiResponseAccountUnbind:
- type: object
- title: 注销/解绑账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountUnbindResult'
- ApiResponseAccountResetCode:
- type: object
- title: 重置激活码响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountResetCodeResult'
- ApiResponseAccountExportCodes:
- type: object
- title: 导出激活码响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ActivationCodeExportData'
- ApiResponseAccountChangePassword:
- type: object
- title: 自助修改密码响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountChangePasswordResult'
- ApiResponseAccountProfileUpdate:
- type: object
- title: 本人维护姓名响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountProfileUpdateResult'
- ApiResponseAccountNotifyPref:
- type: object
- title: 读通知投递偏好响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountNotifyPrefResult'
- ApiResponseAccountNotifyPrefSave:
- type: object
- title: 保存通知投递开关响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountNotifyPrefSaveResult'
- ApiResponseAccountNotifyEmailGet:
- type: object
- title: 本人只读通知投递邮箱响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountNotifyEmailResult'
- ApiResponseAccountNotifyEmail:
- type: object
- title: 本人维护通知投递邮箱响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountNotifyEmailResult'
- ApiResponseAccountNotifyEmailSet:
- type: object
- title: 运营代办维护通知投递邮箱响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AccountNotifyEmailSetResult'
- ApiResponseActivationVerify:
- type: object
- title: 激活并设置密码响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ActivationVerifyResult'
- ApiResponseActivationPrecheck:
- type: object
- title: 激活第 1 步预校验(登录名与激活状态)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ActivationPrecheckResult'
- ApiResponseOperatorCreate:
- type: object
- title: 新建运营商响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OperatorCreateResult'
- ApiResponseOperatorUpdate:
- type: object
- title: 编辑运营商响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OperatorUpdateResult'
- ApiResponseOperatorDelete:
- type: object
- title: 删除运营商响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OperatorDeleteResult'
- ApiResponseOperatorGetList:
- type: object
- title: 运营商列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OperatorListResult'
- ApiResponseOperatorReconAccountCreate:
- type: object
- title: 创建对账账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconAccountCreateResult'
- ApiResponseOperatorReconAccountGet:
- type: object
- title: 查询对账账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconAccountGetResult'
- ApiResponsePartnerCreate:
- type: object
- title: 新建合伙人响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PartnerCreateResult'
- ApiResponsePartnerUpdate:
- type: object
- title: 编辑合伙人响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PartnerUpdateResult'
- ApiResponsePartnerDelete:
- type: object
- title: 删除合伙人响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PartnerDeleteResult'
- ApiResponsePartnerGetList:
- type: object
- title: 合伙人列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PartnerListResult'
- ApiResponsePartnerScopeGet:
- type: object
- title: 读取合伙人负责范围响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PartnerScope'
- ApiResponsePartnerScopeSave:
- type: object
- title: 保存合伙人负责范围响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PartnerScopeSaveResult'
- ApiResponseEntTeamCreate:
- type: object
- title: 新建运营团队响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamCreateResult'
- ApiResponseEntTeamUpdate:
- type: object
- title: 编辑运营团队响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamUpdateResult'
- ApiResponseEntTeamDelete:
- type: object
- title: 删除运营团队响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamDeleteResult'
- ApiResponseEntTeamMemberAdd:
- type: object
- title: 添加运营团队成员响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamMemberAddResult'
- ApiResponseEntTeamMemberUpdate:
- type: object
- title: 编辑运营团队成员资料响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamMemberUpdateResult'
- ApiResponseEntTeamMemberRemove:
- type: object
- title: 移除运营团队成员响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamMemberRemoveResult'
- ApiResponseEntTeamTransferPrimary:
- type: object
- title: 转交运营团队主账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamTransferPrimaryResult'
- ApiResponseEntTeamScopeGet:
- type: object
- title: 读取运营团队负责范围响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamScope'
- ApiResponseEntTeamScopeSave:
- type: object
- title: 保存运营团队负责范围响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/EntTeamScopeSaveResult'
- ApiResponseOpsTeamCreate:
- type: object
- title: 新建运维团队响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamCreateResult'
- ApiResponseOpsTeamUpdate:
- type: object
- title: 编辑运维团队响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamUpdateResult'
- ApiResponseOpsTeamDelete:
- type: object
- title: 删除运维团队响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamDeleteResult'
- ApiResponseOpsTeamScopeSave:
- type: object
- title: 保存运维团队负责范围响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamScopeSaveResult'
- ApiResponseOpsTeamMemberAdd:
- type: object
- title: 添加运维成员响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsMemberAddResult'
- ApiResponseOpsTeamMemberUpdate:
- type: object
- title: 更新运维成员响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsMemberUpdateResult'
- ApiResponseOpsTeamTransferPrimary:
- type: object
- title: 转交运维团队主账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamTransferPrimaryResult'
- ApiResponseOpsTeamMemberRemove:
- type: object
- title: 移除运维成员响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsMemberRemoveResult'
- ApiResponseOpsMemberScopeSave:
- type: object
- title: 保存运维成员负责范围响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsMemberScopeSaveResult'
- ApiResponseOpsTeamDispatchModeUpdate:
- type: object
- title: 更新分派方式响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamDispatchResult'
- ApiResponseOpsTeamCoverageGet:
- type: object
- title: 运维团队覆盖客户响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OpsTeamCoverage'
- ApiResponseCustomerCreate:
- type: object
- title: 新建客户响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerCreateResult'
- ApiResponseCustomerGetList:
- type: object
- title: 客户列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerListResult'
- ApiResponseCustomerGet:
- type: object
- title: 客户详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerDetail'
- ApiResponseCustomerUpdate:
- type: object
- title: 编辑客户响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerUpdateResult'
- ApiResponseCustomerDeletePrecheck:
- type: object
- title: 客户删除前置检查响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerDeletePrecheck'
- ApiResponseCustomerDelete:
- type: object
- title: 删除客户响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerDeleteResult'
- ApiResponseCustomerHistory:
- type: object
- title: 客户变更历史响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerHistoryResult'
- ApiResponseCustomerMountCandidates:
- type: object
- title: 改挂候选客户响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MountCandidatesResult'
- ApiResponseCustomerInfluence:
- type: object
- title: 改挂影响面响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/InfluenceItem'
- ApiResponseCustomerMoveRegion:
- type: object
- title: 客户改挂区域响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerMoveRegionResult'
- ApiResponseCustomerAttributionUpdate:
- type: object
- title: 更新客户归属响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerAttributionResult'
- ApiResponseImportBatchTemplateDownload:
- type: object
- title: 下载导入模板响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportTemplateDownloadResult'
- ApiResponseImportBatchTemplateDownloadPost:
- type: object
- title: 下载导入模板(POST 兼容)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportTemplateSpec'
- ApiResponseCustomerImportConfirm:
- type: object
- title: 确认导入(逐行建档)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportConfirmResult'
- ApiResponseImportBatchSubmit:
- type: object
- title: 提交客户批量导入响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportSubmitResult'
- ApiResponseImportBatchGetList:
- type: object
- title: 导入批次列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportBatchListResult'
- ApiResponseImportBatchGet:
- type: object
- title: 导入批次详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportBatchDetail'
- ApiResponseImportBatchResume:
- type: object
- title: 失败行续传响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ImportResumeResult'
- ApiResponseImportBatchExportCodes:
- type: object
- title: 按批次导出激活码响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ActivationCodeExportData'
- ApiResponseImportBatchExportCustomers:
- type: object
- title: 按批次导出客户响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/DeliveryExportResult'
- ApiResponseSubAccountGetList:
- type: object
- title: 分账号列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/SubAccountListResult'
- ApiResponseSubAccountUpdate:
- type: object
- title: 更新分账号响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/SubAccountUpdateResult'
- ApiResponseDeliveryList:
- type: object
- title: 交付现状(在册资源一览)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/DeliveryListResult'
- ApiResponseDeliveryExport:
- type: object
- title: 交付现状导出响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/DeliveryExportResult'
- ApiResponseLineExitGetList:
- type: object
- title: 线路出口目录列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/LineExitListResult'
- ApiResponseLineExitSave:
- type: object
- title: 线路出口目录整段全量替换响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/LineExitSaveResult'
- ApiResponseIpBandwidthTierGetList:
- type: object
- title: 带宽档位目录列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/IpBandwidthTierListResult'
- ApiResponseIpBandwidthTierSave:
- type: object
- title: 带宽档位目录整段全量替换响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/IpBandwidthTierSaveResult'
- ApiResponsePortalPlanBoard:
- type: object
- title: 客户侧「我的套餐」看板响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PortalPlanBoardResult'
- ApiResponseCatalogCreate:
- type: object
- title: 新建套餐档位响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CatalogCreateResult'
- ApiResponseCatalogUpdate:
- type: object
- title: 编辑套餐档位响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CatalogUpdateResult'
- ApiResponseCatalogGetList:
- type: object
- title: 套餐档位列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CatalogListResult'
- ApiResponseCatalogGet:
- type: object
- title: 套餐档位详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CatalogGetResult'
- ApiResponseCatalogDelete:
- type: object
- title: 套餐档位条件删除响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CatalogDeleteResult'
- ApiResponseCatalogCustomerOptions:
- type: object
- title: 归属客户下拉响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CustomerOption'
- ApiResponsePlanCostItemGetList:
- type: object
- title: 档位随附成本项列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PlanCostItemListResult'
- ApiResponsePlanCostItemSave:
- type: object
- title: 档位随附成本项整段全量替换响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PlanCostItemSaveResult'
- ApiResponseContractCreate:
- type: object
- title: 新建合同响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractReplacementResult'
- ApiResponseContractUpdate:
- type: object
- title: 编辑合同响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractUpdateResult'
- ApiResponseContractGetList:
- type: object
- title: 合同列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractListResult'
- ApiResponseContractChangeLog:
- type: object
- title: 合同修改记录响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractChangeLogItem'
- ApiResponseContractGet:
- type: object
- title: 合同详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractEditScope'
- ApiResponseContractCustomerLookup:
- type: object
- title: 合同客户身份解析响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractLookupResult'
- ApiResponseContractDelete:
- type: object
- title: 合同条件删除响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractDeleteResult'
- ApiResponseContractAttachmentDiscard:
- type: object
- title: 回收无人引用的上传附件(孤儿对象)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractAttachmentDiscardResult'
- ApiResponseSubscriptionCreate:
- type: object
- title: 新建订阅响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderCreateResult'
- ApiResponseSubscriptionChange:
- type: object
- title: 订阅升降配响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderChangeResult'
- ApiResponseSubscriptionReplacementCandidates:
- type: object
- title: 替换候选探测(只读)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReplacementProbeReq'
- ApiResponseSubscriptionStack:
- type: object
- title: 订阅叠加(已停用 · 请改走 create)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderStackResult'
- ApiResponseSubscriptionGetList:
- type: object
- title: 订阅列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderListResult'
- ApiResponseSubscriptionGet:
- type: object
- title: 订阅详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderGetResult'
- ApiResponseSubscriptionPlanOptions:
- type: object
- title: 订阅档位候选响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderPlanOption'
- ApiResponseSubscriptionContractOptions:
- type: object
- title: 未开通合同与服务条目候选响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderContractItemOption'
- ApiResponseSubscriptionUpdate:
- type: object
- title: 订阅修改(白名单)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderUpdateResult'
- ApiResponseSubscriptionDeleteCheck:
- type: object
- title: 订阅删除前阻塞检查响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderDeleteCheckResult'
- ApiResponseSubscriptionDelete:
- type: object
- title: 删除订阅并回退额度响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderDeleteResult'
- ApiResponseSubscriptionListAll:
- type: object
- title: 全部订阅(跨客户)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OrderListResult'
- ApiResponseCostItemSave:
- type: object
- title: 保存成本项定义响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CostItemSaveResult'
- ApiResponseCostItemDelete:
- type: object
- title: 删除成本项定义响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CostItemDeleteResult'
- ApiResponseCostItemGetList:
- type: object
- title: 成本项列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CostItemListResult'
- ApiResponseCostAmountSave:
- type: object
- title: 保存成本金额响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CostAmountSaveResult'
- ApiResponseCostAmountGetList:
- type: object
- title: 成本金额一览响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CostAmountListResult'
- ApiResponseShareRuleSave:
- type: object
- title: 保存分成规则响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ShareRuleSaveResult'
- ApiResponseShareRuleGetList:
- type: object
- title: 分成规则列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ShareRuleListResult'
- ApiResponseShareRuleGet:
- type: object
- title: 分成规则详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ShareRuleDetail'
- ApiResponseShareRuleDelete:
- type: object
- title: 删除分成规则响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ShareRuleDeleteResult'
- ApiResponseOpsviewHome:
- type: object
- title: 运维只读首页响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/OverviewStat'
- ApiResponseJobsGetList:
- type: object
- title: 定时作业清单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/JobSpecRow'
- ApiResponseJobsToggle:
- type: object
- title: 启停定时作业响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/JobToggleResult'
- ApiResponseJobsRuns:
- type: object
- title: 作业执行记录响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/JobRunRow'
- ApiResponseJobsRunOnce:
- type: object
- title: 补跑作业一次响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/JobRunReport'
- ApiResponseShareRuleParamSummary:
- type: object
- title: 分成参数摘要响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ShareParamSummaryRequest'
- ApiResponseBillingConfigGet:
- type: object
- title: 出账配置读响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/BillingConfigResult'
- ApiResponseBillingConfigUpdate:
- type: object
- title: 出账配置写响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/BillingConfigUpdateResult'
- ApiResponseReconPeriods:
- type: object
- title: 对账期次下拉响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconPeriodsResult'
- ApiResponseReconGetList:
- type: object
- title: 对账批次清单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconBatchRow'
- ApiResponseReconDetail:
- type: object
- title: 对账批次详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconDetailResult'
- ApiResponseReconRerun:
- type: object
- title: 人工补跑出账响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconRerunResult'
- ApiResponseReconExportList:
- type: object
- title: 导出对账清单(B 表)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconExportResult'
- ApiResponseReconExportDetail:
- type: object
- title: 导出账单明细(A 表)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ReconExportResult'
- ApiResponseViewPartnerRecon:
- type: object
- title: 合伙人与运维团队本方对账合并页响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ViewPartnerReconResult'
- ApiResponseBillGetList:
- type: object
- title: 账单明细清单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/BillLineRow'
- ApiResponseBillDetail:
- type: object
- title: 账单明细详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/BillDetailResult'
- ApiResponseCorrectionCreate:
- type: object
- title: 登记出账更正响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CorrectionCreateResult'
- ApiResponseCorrectionGetList:
- type: object
- title: 出账更正列表响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CorrectionRow'
- ApiResponseCorrectionDetail:
- type: object
- title: 出账更正详情响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CorrectionDetailResult'
- ApiResponseCorrectionDraftSave:
- type: object
- title: 保存更正草稿响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CorrectionDraftSaveResult'
- ApiResponseCorrectionDraftGet:
- type: object
- title: 读取更正草稿响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CorrectionDraftResult'
- ApiResponseTicketList:
- type: object
- title: 工单列表查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TicketListResult'
- ApiResponseTicketDetail:
- type: object
- title: 工单详情查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TicketDetail'
- ApiResponseTicketPendingQueue:
- type: object
- title: 待分派队列查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/PendingQueueResult'
- ApiResponseTicketTodoCounts:
- type: object
- title: 待办计数查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TodoCounts'
- ApiResponseTicketTrace:
- type: object
- title: 跨主体追溯查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TraceResult'
- ApiResponseMessagePending:
- type: object
- title: 报文待处置队列查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MessagePendingResult'
- ApiResponseTicketCreate:
- type: object
- title: 新建工单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TicketCreateResult'
- ApiResponseTicketAssign:
- type: object
- title: 手动分派工单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/AssignResult'
- ApiResponseTicketDispatchAuto:
- type: object
- title: 自动分派(整批)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/DispatchResult'
- ApiResponseTicketDeliveryReissue:
- type: object
- title: 按订阅补发交付工单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TicketCreateResult'
- ApiResponseTicketDelegate:
- type: object
- title: 交接转派响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/DelegateResult'
- ApiResponseTicketStart:
- type: object
- title: 进入处理中(阅读推进)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/StartResult'
- ApiResponseTicketBackfill:
- type: object
- title: 回填竣工信息响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/BackfillResult'
- ApiResponseTicketBackfillDraft:
- type: object
- title: 暂存施工回填草稿响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/BackfillDraft'
- ApiResponseTicketCheckDone:
- type: object
- title: 服务项完成直接闭环响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CheckDoneResult'
- ApiResponseTicketMarkDone:
- type: object
- title: 标记已处理(仅服务开通)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MarkDoneResult'
- ApiResponseTicketClose:
- type: object
- title: 关闭工单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FinalizeResult'
- ApiResponseTicketWithdraw:
- type: object
- title: 撤回工单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FinalizeResult'
- ApiResponseTicketConfirmClose:
- type: object
- title: 确认闭环响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FinalizeResult'
- ApiResponseTicketDefer:
- type: object
- title: 临时延期(延后提醒)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FinalizeResult'
- ApiResponseTicketUrge:
- type: object
- title: 站内催办(向「卡在别人手里」的对家发催办信)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/TicketUrgeResult'
- ApiResponseTicketRevert:
- type: object
- title: 退回重办响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FinalizeResult'
- ApiResponseCompletionGenerate:
- type: object
- title: 生成竣工回传文件响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CompletionGenerateResult'
- ApiResponseCompletionReceipt:
- type: object
- title: 录入运营商回执响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CompletionReceiptResult'
- ApiResponseCompletionReject:
- type: object
- title: 登记竣工驳回响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/CompletionRejectResult'
- ApiResponseMessageAttach:
- type: object
- title: 挂接并生效响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MessageActionResult'
- ApiResponseMessageVoid:
- type: object
- title: 作废报文响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MessageActionResult'
- ApiResponseMessageConfirmConflict:
- type: object
- title: 冲突确认响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MessageActionResult'
- ApiResponseMessageRematch:
- type: object
- title: 改挂归属工单响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MessageActionResult'
- ApiResponseTicketMaterialGrant:
- type: object
- title: 材料上传/下载凭证响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MaterialGrantResult'
- ApiResponseTicketMaterialAttach:
- type: object
- title: 登记材料元信息响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/MaterialAttachResult'
- ApiResponseTicketConfigGet:
- type: object
- title: 域配置查询(闭环方式)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ClosureConfig'
- ApiResponseTicketConfigUpdate:
- type: object
- title: 域配置修改(闭环方式)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ClosureConfigUpdateResult'
- ApiResponseTicketFormTemplateGet:
- type: object
- title: 施工回填扩展模板查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FormTemplateBundle'
- ApiResponseTicketFormTemplateSave:
- type: object
- title: 施工回填扩展模板保存草稿响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FormTemplateBundle'
- ApiResponseTicketFormTemplatePublish:
- type: object
- title: 施工回填扩展模板发布响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/FormTemplateBundle'
- ApiResponseContractRenewalConfigGet:
- type: object
- title: 合同续签提醒配置查询(GET)响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractRenewalConfig'
- ApiResponseContractRenewalConfig:
- type: object
- title: 合同续签提醒配置查询响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractRenewalConfig'
- ApiResponseContractRenewalConfigUpdate:
- type: object
- title: 合同续签提醒配置修改响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/ContractRenewalConfigUpdateResult'
- ApiResponseInboxList:
- type: object
- title: 本人站内提醒箱响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/InboxListResult'
- ApiResponseInboxRead:
- type: object
- title: 标记站内提醒已读响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/InboxReadResult'
- ApiResponseInboxRenewalCandidates:
- type: object
- title: 续签工单可指派人员响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RenewalCandidatesResult'
- ApiResponseInboxRenewalTicket:
- type: object
- title: 读信人生成续签工单并指派响应
- description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
- required:
- - code
- - message
- properties:
- code:
- type: integer
- title: 业务码
- description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
- example: 10000
- message:
- type: string
- title: 响应消息
- description: 成功或错误说明。
- example: ok
- error_code:
- type: string
- title: 稳定错误码
- description: 失败时的 KLT-* 字符串;成功时不下发。
- nullable: true
- data:
- $ref: '#/components/schemas/RenewalTicketResult'
|