openapi.yaml 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907
  1. openapi: 3.1.0
  2. info:
  3. title: klt-bos
  4. version: 0.1.0
  5. description: |-
  6. 恪澜通运营支撑扩展微服务(klt-bos)。
  7. 统一请求信封:`{ "data": { … } }`;统一响应信封:`{ code, message, error_code?, data }`。
  8. 业务错误码段 60000–60999。本服务产出的数字码落在该段内;鉴权失败类透传平台原码:
  9. 未认证 `11000`、无权限 `11001`(含平台 SDK 鉴权闸门在本进程内产出的响应,业务侧不得改写)。
  10. 其余平台通用码(11100/11103/11104/10110)由 `S` 段自造码承接,平台原码在 `message` 原文保留。
  11. 通用块 60000–60049(`S` 段):`KLT-S407`/60001 通用冲突、`KLT-S20002`/11000 未认证(透传)、
  12. `KLT-S20003`/11001 无权限(透传)、`KLT-S20004`/60004 参数缺失或格式错误、`KLT-S20005`/60005 对象不存在、
  13. `KLT-S20006`/60006 下游依赖失败、`KLT-S20007`/60007 内部错误、`KLT-S20008`/60008 功能未实现;
  14. 角色档拒绝 `KLT-P301`/60058(路由级 AC 已放行,但本服务 `require_roles` 细粒度角色档拦下;
  15. 与网关授权层 `11001` 区分:`11001`=路由 catalog 未绑键/授权层拦下,`60058`=本服务角色档拒下)。
  16. 设计口径码 `KLT-T2xx`(`error_code`=代码,`code`=数字,与通用族 `KLT-S2xxxx` 并行且不得混用):
  17. `KLT-T201`/60068 名称已存在、`KLT-T216`/60095 负责范围与同类其他主体交叉、
  18. `KLT-T222`/60076 操作过于频繁、`KLT-T223`/60077 新密码不能与原密码相同、
  19. `KLT-T224`/60089 同省份下已存在同品牌运营商档案、`KLT-T225`/60090 运营商档案所属区域须为省级节点、
  20. `KLT-T226`/60096 合伙人名称全站唯一、`KLT-T227`/60096 负责范围同请求内祖先与子孙混选。
  21. `KLT-*` 字符串为对外稳定契约,字符串内嵌数字与 `code` 已脱钩。
  22. 成功码沿用平台统一值 10000。调用方断言只绑 `error_code`(`KLT-*`),不绑数字顺位。
  23. 判权/判成功:经网关一律以 HTTP 200 返回,结果只体现在信封 `code`;调用方不得据 HTTP 状态判成败/判权限。
  24. 经网关对外前缀:`/api/klt/klt-bos/{resource}/{action}@v1`(本文件路径不含 namespace 前缀)。
  25. 分页约定:请求页码 0 基;呈现时再转为 1 基。
  26. x-error-code-range:
  27. start: 60000
  28. end: 60999
  29. servers:
  30. - url: /
  31. tags:
  32. - name: 系统健康
  33. description: 服务存活与状态探测,不含业务写操作。
  34. - name: 认证与激活
  35. description: 当前登录上下文查询;免登录的激活码校验与密码设置。
  36. - name: 区域管理
  37. description: 区域树节点新建、改名、删除与可见范围查询。
  38. - name: 账号管理
  39. description: 账号开通、状态、激活码、改密与客户分账号。
  40. - name: 审计日志
  41. description: 平台操作审计查询与导出。
  42. - name: 运营商
  43. description: 运营商建档与对账账号。
  44. - name: 合伙人
  45. description: 合伙人建档、负责范围读写。
  46. - name: 运营团队
  47. description: 运营团队(ent_team)档案、成员与负责范围。
  48. - name: 运维团队与成员
  49. description: 运维团队建档、成员、分派方式、覆盖客户与成员范围。
  50. - name: 运维团队
  51. description: 运维团队只读/管理相关入口。
  52. - name: 客户管理
  53. description: 客户建档、改挂区域、归属变更与变更历史。
  54. - name: 批量导入
  55. description: 客户批量导入模板、提交、批次、续传与导出。
  56. - name: 交付现状
  57. description: 在册资源一览与导出(客户详情、订阅详情、门户摘要共用台账)。
  58. - name: 客户门户
  59. description: 客户侧门户只读视图(套餐看板等)。
  60. - name: 套餐档位
  61. description: 固定/自定义套餐档位维护。
  62. - name: 合同
  63. description: 合同新建、编辑与查询(含服务条目)。
  64. - name: 订阅
  65. description: 订阅开通、升降配、叠加与查询。
  66. - name: 成本与分成
  67. description: 成本项定义、成本金额与分成规则。
  68. - name: 计费与对账
  69. description: 计费配置、账单、对账与纠错。
  70. - name: 运维视图
  71. description: 运维侧只读首页概览。
  72. - name: 定时作业
  73. description: 已注册作业清单、启停、执行记录与补跑。
  74. - name: 站内提醒箱
  75. description: 站内消息列表、已读与续签提醒。
  76. - name: 工单与开停交付
  77. description: 工单列表/详情/分派/回填/终态/材料与闭环配置。
  78. - name: 竣工与回执
  79. description: 竣工回传文件生成与运营商回执确认。
  80. - name: 报文人工处置
  81. description: 运营商报文待处置队列、挂接并生效、作废、冲突确认与改挂。
  82. - name: 合伙人与运营商只读视图
  83. description: 合伙人/运营商侧只读对账与视图入口。
  84. paths:
  85. /health:
  86. get:
  87. summary: 健康检查
  88. description: 返回服务存活状态,无需登录,供网关与监控探测。
  89. operationId: health
  90. tags:
  91. - 系统健康
  92. x-require-auth: false
  93. x-resource-type:
  94. $ref: '#/components/x-resource-types/health/code'
  95. x-action:
  96. $ref: '#/components/x-actions/view/code'
  97. x-version: v1
  98. x-permission-visibility: catalog
  99. x-error-codes: []
  100. responses:
  101. '200':
  102. description: 成功时 code=10000;失败时查看 code/message/error_code。
  103. content:
  104. application/json:
  105. schema:
  106. $ref: '#/components/schemas/ApiResponseHealth'
  107. /health@v1:
  108. get:
  109. summary: 健康检查(v1)
  110. description: 返回服务存活状态(v1),无需登录,供网关与监控探测。
  111. operationId: health_v1
  112. tags:
  113. - 系统健康
  114. x-require-auth: false
  115. x-resource-type:
  116. $ref: '#/components/x-resource-types/health/code'
  117. x-action:
  118. $ref: '#/components/x-actions/view/code'
  119. x-version: v1
  120. x-permission-visibility: catalog
  121. x-error-codes: []
  122. responses:
  123. '200':
  124. description: 成功时 code=10000;失败时查看 code/message/error_code。
  125. content:
  126. application/json:
  127. schema:
  128. $ref: '#/components/schemas/ApiResponseHealthV1'
  129. /ping@v1:
  130. get:
  131. summary: 存活探测
  132. description: 已登录存活探测,返回服务名与当前用户摘要。
  133. operationId: ping
  134. tags:
  135. - 系统健康
  136. x-require-auth: true
  137. x-resource-type:
  138. $ref: '#/components/x-resource-types/ping/code'
  139. x-action:
  140. $ref: '#/components/x-actions/view/code'
  141. x-version: v1
  142. x-permission-visibility: catalog
  143. x-error-codes: []
  144. responses:
  145. '200':
  146. description: 成功时 code=10000;失败时查看 code/message/error_code。
  147. content:
  148. application/json:
  149. schema:
  150. $ref: '#/components/schemas/ApiResponsePing'
  151. /auth/context@v1:
  152. get:
  153. summary: 当前登录上下文
  154. description: 返回当前登录身份、业务角色、主体与可见形态等上下文;未激活或已过期在此拦截。
  155. operationId: auth_context
  156. tags:
  157. - 认证与激活
  158. x-require-auth: true
  159. x-resource-type:
  160. $ref: '#/components/x-resource-types/auth/code'
  161. x-action:
  162. $ref: '#/components/x-actions/view/code'
  163. x-version: v1
  164. x-permission-visibility: catalog
  165. x-error-codes: []
  166. responses:
  167. '200':
  168. description: 成功时 code=10000;失败时查看 code/message/error_code。
  169. content:
  170. application/json:
  171. schema:
  172. $ref: '#/components/schemas/ApiResponseAuthContext'
  173. /region/create@v1:
  174. post:
  175. summary: 新建区域节点
  176. description: 在区域树下新建省/市/区县节点。admin 任意层级;区域运营主/子账号仅限本团队负责范围内已有省份下建市/区县(不得建省;越界/省级 ⇒ 60058
  177. KLT-P301)。
  178. operationId: region_create
  179. tags:
  180. - 区域管理
  181. x-require-auth: true
  182. x-resource-type:
  183. $ref: '#/components/x-resource-types/region/code'
  184. x-action:
  185. $ref: '#/components/x-actions/create/code'
  186. x-version: v1
  187. x-permission-visibility: catalog
  188. x-enumeration-kind: tree
  189. requestBody:
  190. required: true
  191. description: JSON 请求体,业务字段置于 data
  192. content:
  193. application/json:
  194. schema:
  195. type: object
  196. description: 统一信封请求体,业务字段放在 data 内
  197. properties:
  198. data:
  199. type: object
  200. description: 新建区域参数
  201. properties:
  202. parent_node_id:
  203. type: string
  204. description: 父节点 ID,必填;区域树根由平台建立,业务侧不自行挂根
  205. title: 父节点 ID
  206. node_name:
  207. type: string
  208. description: 本级区域名称,同父唯一
  209. title: 节点名称
  210. level:
  211. type: string
  212. enum:
  213. - 省
  214. - 市
  215. - 区县
  216. description: 业务侧自持层级,必填且不得按平台 depth 推导
  217. title: 层级
  218. required:
  219. - parent_node_id
  220. - node_name
  221. - level
  222. title: 新建区域节点请求数据
  223. required:
  224. - data
  225. x-error-codes: [60058, 60059, 60060, 60063, 60087]
  226. responses:
  227. '200':
  228. description: 成功时 code=10000;失败时查看 code/message/error_code。
  229. content:
  230. application/json:
  231. schema:
  232. $ref: '#/components/schemas/ApiResponseRegionCreate'
  233. /region/rename@v1:
  234. post:
  235. summary: 重命名区域节点
  236. description: 仅修改节点名称 node_name,不改层级与父子关系。admin
  237. 可改任意可见节点;区域运营主/子账号仅可改本团队负责省份下的市/区县名称(不得改省级节点;越界/省级 ⇒ 60058 KLT-P301)。
  238. operationId: region_rename
  239. tags:
  240. - 区域管理
  241. x-require-auth: true
  242. x-resource-type:
  243. $ref: '#/components/x-resource-types/region/code'
  244. x-action:
  245. $ref: '#/components/x-actions/update/code'
  246. x-version: v1
  247. x-permission-visibility: catalog
  248. x-enumeration-kind: tree
  249. requestBody:
  250. required: true
  251. description: JSON 请求体,业务字段置于 data
  252. content:
  253. application/json:
  254. schema:
  255. type: object
  256. description: 统一信封请求体,业务字段放在 data 内
  257. properties:
  258. data:
  259. type: object
  260. description: 重命名区域节点请求参数
  261. properties:
  262. node_id:
  263. type: string
  264. description: 区域节点 ID
  265. title: 节点 ID
  266. node_name:
  267. type: string
  268. description: 新名称
  269. title: 节点名称
  270. required:
  271. - node_id
  272. - node_name
  273. title: 重命名区域节点请求数据
  274. required:
  275. - data
  276. x-error-codes: [60058, 60060, 60063]
  277. responses:
  278. '200':
  279. description: 成功时 code=10000;失败时查看 code/message/error_code。
  280. content:
  281. application/json:
  282. schema:
  283. $ref: '#/components/schemas/ApiResponseRegionRename'
  284. /region/delete@v1:
  285. post:
  286. summary: 删除区域节点
  287. description: 仅 admin。须提交 confirm_name(与当前区域名逐字一致)并通过三重守卫(无下级/无挂载客户/无引用)。
  288. operationId: region_delete
  289. tags:
  290. - 区域管理
  291. x-require-auth: true
  292. x-resource-type:
  293. $ref: '#/components/x-resource-types/region/code'
  294. x-action:
  295. $ref: '#/components/x-actions/delete/code'
  296. x-version: v1
  297. x-permission-visibility: catalog
  298. requestBody:
  299. required: true
  300. description: JSON 请求体,业务字段置于 data
  301. content:
  302. application/json:
  303. schema:
  304. type: object
  305. description: 统一信封请求体,业务字段放在 data 内
  306. properties:
  307. data:
  308. type: object
  309. description: 删除区域节点请求参数
  310. properties:
  311. node_id:
  312. type: string
  313. description: 待删除区域节点 ID
  314. title: 节点 ID
  315. confirm_name:
  316. type: string
  317. description: 确认名称,须与当前区域名逐字一致
  318. title: 确认名称
  319. required:
  320. - node_id
  321. - confirm_name
  322. title: 删除区域节点请求数据
  323. required:
  324. - data
  325. x-error-codes: [60058, 60063]
  326. responses:
  327. '200':
  328. description: 成功时 code=10000;失败时查看 code/message/error_code。
  329. content:
  330. application/json:
  331. schema:
  332. $ref: '#/components/schemas/ApiResponseRegionDelete'
  333. /region/tree@v1:
  334. post:
  335. summary: 查询可见区域树
  336. description: 按操作人可见范围返回区域节点集合/树;运营主/子账号只见本范围及下级。注意: 由 GET 改 POST(R-5:GET 无请求体,网关无法注入授权上界)。
  337. operationId: region_tree
  338. tags:
  339. - 区域管理
  340. x-require-auth: true
  341. x-resource-type:
  342. $ref: '#/components/x-resource-types/region/code'
  343. x-action:
  344. $ref: '#/components/x-actions/view/code'
  345. x-version: v1
  346. x-permission-visibility: catalog
  347. x-enumeration-kind: tree
  348. requestBody:
  349. required: true
  350. description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
  351. content:
  352. application/json:
  353. schema:
  354. type: object
  355. properties:
  356. data:
  357. type: object
  358. description: 查询可见区域树的请求字段,置于统一信封 data 内。
  359. additionalProperties: false
  360. properties: {}
  361. title: 查询可见区域树请求数据
  362. required:
  363. - data
  364. x-error-codes: [60063]
  365. responses:
  366. '200':
  367. description: 成功时 code=10000;失败时查看 code/message/error_code。
  368. content:
  369. application/json:
  370. schema:
  371. $ref: '#/components/schemas/ApiResponseRegionTree'
  372. /region/subtree@v1:
  373. post:
  374. summary: 查询区域子树
  375. description: 挂载弹窗左树、区域钻取共用;按可见范围裁剪。
  376. operationId: region_subtree
  377. tags:
  378. - 区域管理
  379. x-require-auth: true
  380. x-resource-type:
  381. $ref: '#/components/x-resource-types/region/code'
  382. x-action:
  383. $ref: '#/components/x-actions/view/code'
  384. x-version: v1
  385. x-permission-visibility: catalog
  386. # 注册中心折叠为 scope_config.POST.source_enumeration 后 AC 才回传授权上界、网关才注入
  387. # (手写 x-scope.source_enumeration 会被注册中心拒,registry.rs:510-528)。
  388. # 标 tree 的依据:本路由可见集=区域资源树授权子集——handler 已消费通道②
  389. # (region.rs tree_inner → ScopedSelect::visible_region_node_ids,scoped_select.rs:120 优先取
  390. # tree(GET 无请求体,网关无法注入授权上界;改 POST 后 data 传空对象即可触发注入)。
  391. x-enumeration-kind: tree
  392. requestBody:
  393. required: true
  394. description: JSON 请求体,业务字段置于 data
  395. content:
  396. application/json:
  397. schema:
  398. type: object
  399. description: 统一信封请求体,业务字段放在 data 内
  400. properties:
  401. data:
  402. type: object
  403. description: 子树查询参数
  404. properties:
  405. node_id:
  406. type: string
  407. description: 根节点 ID(可选;空则按可见根展开)
  408. title: 节点 ID
  409. title: 查询区域子树请求数据
  410. required:
  411. - data
  412. x-error-codes: [60063]
  413. responses:
  414. '200':
  415. description: 成功时 code=10000;失败时查看 code/message/error_code。
  416. content:
  417. application/json:
  418. schema:
  419. $ref: '#/components/schemas/ApiResponseRegionSubtree'
  420. /region/change_log@v1:
  421. get:
  422. summary: 区域变更流水
  423. description: 仅 admin 可见;运营子账号可见节点但不可见变更流水。
  424. operationId: region_change_log
  425. tags:
  426. - 区域管理
  427. x-require-auth: true
  428. x-resource-type:
  429. $ref: '#/components/x-resource-types/region/code'
  430. x-action:
  431. $ref: '#/components/x-actions/view/code'
  432. x-version: v1
  433. x-permission-visibility: catalog
  434. x-error-codes: [60058, 60063]
  435. responses:
  436. '200':
  437. description: 成功时 code=10000;失败时查看 code/message/error_code。
  438. content:
  439. application/json:
  440. schema:
  441. $ref: '#/components/schemas/ApiResponseRegionChangeLog'
  442. /region/orphans@v1:
  443. post:
  444. summary: 悬空区域节点
  445. description: 查询悬空/孤儿节点;按节点所在区域分派可见性,admin 全量。注意: 由 GET 改 POST(R-5)。
  446. operationId: region_orphans
  447. tags:
  448. - 区域管理
  449. x-require-auth: true
  450. x-resource-type:
  451. $ref: '#/components/x-resource-types/region/code'
  452. x-action:
  453. $ref: '#/components/x-actions/view/code'
  454. x-version: v1
  455. x-permission-visibility: catalog
  456. x-enumeration-kind: tree
  457. requestBody:
  458. required: true
  459. description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
  460. content:
  461. application/json:
  462. schema:
  463. type: object
  464. properties:
  465. data:
  466. type: object
  467. description: 悬空区域节点的请求字段,置于统一信封 data 内。
  468. additionalProperties: false
  469. properties: {}
  470. title: 悬空区域节点请求数据
  471. required:
  472. - data
  473. x-error-codes: [60063]
  474. responses:
  475. '200':
  476. description: 成功时 code=10000;失败时查看 code/message/error_code。
  477. content:
  478. application/json:
  479. schema:
  480. $ref: '#/components/schemas/ApiResponseRegionOrphans'
  481. /account/get_list@v1:
  482. post:
  483. summary: 成员账号列表
  484. description:
  485. 列登录名/手机号(掩码)/角色/主体/主-子账号标记/启停状态,并下发激活码生命周期(交付、激活、设密时间与有效截止日)。`status`=账号启停(`bos_user_binding.status`),`activation_status`=激活态(`bos_account_ext.status`),两者正交。运维侧全量,团队侧限本团队成员。注意:「姓名」列无数据源(`bos_user_binding`
  486. 无该列),见。
  487. operationId: account_get_list
  488. tags:
  489. - 账号管理
  490. x-require-auth: true
  491. x-resource-type:
  492. $ref: '#/components/x-resource-types/account/code'
  493. x-action:
  494. $ref: '#/components/x-actions/list/code'
  495. x-version: v1
  496. x-permission-visibility: catalog
  497. requestBody:
  498. required: false
  499. description: >-
  500. 分页与过滤(page/page_size/keyword/role_code/subject_type/subject_id/customer_id/status/activation_status)。
  501. `customer_id` 为别名:非空时映射为 `subject_type=customer` + `subject_id`;与显式 subject_id/subject_type
  502. 冲突 ⇒ 60004。
  503. content:
  504. application/json:
  505. schema:
  506. type: object
  507. x-error-codes: [60001, 60053, 60054, 60077, 60082]
  508. responses:
  509. '200':
  510. description: 成功时 code=10000;失败时查看 code/message/error_code。
  511. content:
  512. application/json:
  513. schema:
  514. $ref: '#/components/schemas/ApiResponseAccountGetList'
  515. /ent_team/get_list@v1:
  516. post:
  517. summary: 运营团队列表
  518. description: 一条团队带负责人登录名、成员数与成员明细(`members[]`,含 `name`/`display_name`/`username`、账号启停
  519. `binding_status` 与可承接工单类型 `ticket_types`,主/子账号一并下发);仅 admin/opsMain/opsSub。
  520. operationId: ent_team_get_list
  521. tags:
  522. - 运营团队
  523. x-require-auth: true
  524. x-resource-type:
  525. $ref: '#/components/x-resource-types/ent_team/code'
  526. x-action:
  527. $ref: '#/components/x-actions/list/code'
  528. x-version: v1
  529. x-permission-visibility: catalog
  530. requestBody:
  531. required: false
  532. description: 分页与过滤(page/page_size/keyword),业务字段置于 data
  533. content:
  534. application/json:
  535. schema:
  536. type: object
  537. x-error-codes: [60053, 60054, 60068]
  538. responses:
  539. '200':
  540. description: 成功时 code=10000;失败时查看 code/message/error_code。
  541. content:
  542. application/json:
  543. schema:
  544. $ref: '#/components/schemas/ApiResponseEntTeamGetList'
  545. /ops_team/get_list@v1:
  546. post:
  547. summary: 运维团队列表
  548. description: 一页列出全部团队,带可分配工单类型、成员数与派单/结算口径。两列负载(未完成工单/超期未完成)与成员级 open_tickets
  549. 均已内联真值(批量一次算全部团队);取数失败才回 null+顶层 load_pending/member_load_pending,不回落 0。
  550. operationId: ops_team_get_list
  551. tags:
  552. - 运维团队
  553. x-require-auth: true
  554. x-resource-type:
  555. $ref: '#/components/x-resource-types/ops_team/code'
  556. x-action:
  557. $ref: '#/components/x-actions/list/code'
  558. x-version: v1
  559. x-permission-visibility: catalog
  560. requestBody:
  561. required: false
  562. description: 分页与过滤(page/page_size/keyword/region_node_id),业务字段置于 data
  563. content:
  564. application/json:
  565. schema:
  566. type: object
  567. x-error-codes: [60053, 60054, 60068, 60082]
  568. responses:
  569. '200':
  570. description: 成功时 code=10000;失败时查看 code/message/error_code。
  571. content:
  572. application/json:
  573. schema:
  574. $ref: '#/components/schemas/ApiResponseOpsTeamGetList'
  575. /audit/get_list@v1:
  576. post:
  577. summary: 审计日志检索
  578. description: SC-04 六列(时间/操作人/操作类型/对象/变更前/变更后);时间倒序+(occurred_at,id) 游标,不用 OFFSET。数据取自
  579. bos_audit_log,各业务写口(含 /audit/export@v1)均写留痕;响应附
  580. audit_read_ready/audit_write_ready/cursor_usable 三个诚实标记。
  581. operationId: audit_get_list
  582. tags:
  583. - 审计日志
  584. x-require-auth: true
  585. x-resource-type:
  586. $ref: '#/components/x-resource-types/audit/code'
  587. x-action:
  588. $ref: '#/components/x-actions/list/code'
  589. x-version: v1
  590. x-permission-visibility: catalog
  591. requestBody:
  592. required: false
  593. description:
  594. 游标与检索条件(cursor/page_size/object_type/object_ref/actor_user_id/occurred_from/occurred_to/keyword),业务字段置于
  595. data
  596. content:
  597. application/json:
  598. schema:
  599. type: object
  600. x-error-codes: [60053]
  601. responses:
  602. '200':
  603. description: 成功时 code=10000;失败时查看 code/message/error_code。
  604. content:
  605. application/json:
  606. schema:
  607. $ref: '#/components/schemas/ApiResponseAuditGetList'
  608. /audit/export@v1:
  609. post:
  610. summary: 审计日志导出
  611. description: 'SC-04 导出:入参与 /audit/get_list@v1 逐字同构(同一份 DTO、同一段可见范围谓词),不接受 row_ids[];CSV(UTF-8 带
  612. BOM)首行为 `#` 说明行(导出时刻+筛选条件逐项回显+文件行数/同一谓词命中总数+范围裁剪声明);行数上限 20000,超限 KLT-R20903(detail.row_count/detail.limit)且不产文件、不写审计、不落
  613. OSS;产出成功写 object_type=audit_export 留痕,留痕失败 KLT-S405。仅运营侧(admin/opsMain/opsSub)。'
  614. operationId: audit_export
  615. tags:
  616. - 审计日志
  617. x-require-auth: true
  618. x-resource-type:
  619. $ref: '#/components/x-resource-types/audit/code'
  620. x-action:
  621. $ref: '#/components/x-actions/export/code'
  622. x-version: v1
  623. x-permission-visibility: catalog
  624. requestBody:
  625. required: false
  626. description: 与 /audit/get_list@v1 同构的筛选条件(cursor/page_size 不参与导出)
  627. content:
  628. application/json:
  629. schema:
  630. type: object
  631. x-error-codes: [60903, 60905]
  632. responses:
  633. '200':
  634. description: 成功时 code=10000;失败时查看 code/message/error_code。
  635. content:
  636. application/json:
  637. schema:
  638. $ref: '#/components/schemas/ApiResponseAuditExport'
  639. /account/provision@v1:
  640. post:
  641. summary: 开通账号
  642. description: 四入口共用开通管线。唯一性守卫(登录名/手机号)先于平台调用;角色与主体须一致。
  643. operationId: account_provision
  644. tags:
  645. - 账号管理
  646. x-require-auth: true
  647. x-resource-type:
  648. $ref: '#/components/x-resource-types/account/code'
  649. x-action:
  650. $ref: '#/components/x-actions/create/code'
  651. x-version: v1
  652. x-permission-visibility: catalog
  653. requestBody:
  654. required: true
  655. description: JSON 请求体,业务字段置于 data
  656. content:
  657. application/json:
  658. schema:
  659. type: object
  660. description: 统一信封请求体,业务字段放在 data 内
  661. properties:
  662. data:
  663. type: object
  664. description: 开通账号请求参数
  665. properties:
  666. username:
  667. type: string
  668. description: 登录名(归一化后全站唯一)
  669. title: 登录名
  670. role_code:
  671. type: string
  672. description: 业务角色码
  673. title: 角色码
  674. subject_type:
  675. type: string
  676. description: 主体类型(operator/partner/ent_team/ops_team/customer 等)
  677. title: 主体类型
  678. subject_id:
  679. type: string
  680. description: 主体 ID
  681. title: 主体 ID
  682. mobile:
  683. type: string
  684. description: 手机号(可选,唯一)
  685. title: 手机号
  686. required:
  687. - username
  688. - role_code
  689. - subject_type
  690. - subject_id
  691. title: 开通账号请求数据
  692. required:
  693. - data
  694. x-error-codes: [60001, 60053, 60054, 60077, 60082]
  695. responses:
  696. '200':
  697. description: 成功时 code=10000;失败时查看 code/message/error_code。
  698. content:
  699. application/json:
  700. schema:
  701. $ref: '#/components/schemas/ApiResponseAccountProvision'
  702. /account/update_status@v1:
  703. post:
  704. summary: 停用或恢复账号
  705. description: 停用/恢复账号状态;不可操作当前登录账号。
  706. operationId: account_update_status
  707. tags:
  708. - 账号管理
  709. x-require-auth: true
  710. x-resource-type:
  711. $ref: '#/components/x-resource-types/account/code'
  712. x-action:
  713. $ref: '#/components/x-actions/manage/code'
  714. x-version: v1
  715. x-permission-visibility: catalog
  716. requestBody:
  717. required: true
  718. description: JSON 请求体,业务字段置于 data
  719. content:
  720. application/json:
  721. schema:
  722. type: object
  723. description: 统一信封请求体,业务字段放在 data 内
  724. properties:
  725. data:
  726. type: object
  727. description: 停用或恢复账号请求参数
  728. properties:
  729. user_id:
  730. type: string
  731. description: 目标用户 ID
  732. title: 用户 ID
  733. status:
  734. type: string
  735. description: 目标状态(如 disabled/active)
  736. title: 状态
  737. required:
  738. - user_id
  739. - status
  740. title: 停用或恢复账号请求数据
  741. required:
  742. - data
  743. x-error-codes: [60001, 60053, 60054, 60077, 60082]
  744. responses:
  745. '200':
  746. description: 成功时 code=10000;失败时查看 code/message/error_code。
  747. content:
  748. application/json:
  749. schema:
  750. $ref: '#/components/schemas/ApiResponseAccountUpdateStatus'
  751. /account/unbind@v1:
  752. post:
  753. summary: 注销/解绑账号
  754. description: |-
  755. 本地处置 `bos_user_binding`+`bos_account_ext`(与运营商删除级联同口径)。
  756. 平台 iam-user 删除类接口仅认 Bearer 用户令牌 ⇒ `platform_sync.applied=false` 诚实标记。
  757. 不可注销当前登录账号。档案删除/成员移出亦走同一级联。
  758. operationId: account_unbind
  759. tags:
  760. - 账号管理
  761. x-require-auth: true
  762. x-resource-type:
  763. $ref: '#/components/x-resource-types/account/code'
  764. x-action:
  765. $ref: '#/components/x-actions/manage/code'
  766. x-version: v1
  767. x-permission-visibility: catalog
  768. requestBody:
  769. required: true
  770. description: JSON 请求体,业务字段置于 data
  771. content:
  772. application/json:
  773. schema:
  774. type: object
  775. description: 统一信封请求体,业务字段放在 data 内
  776. properties:
  777. data:
  778. type: object
  779. description: 注销/解绑账号请求参数
  780. properties:
  781. user_id:
  782. type: string
  783. description: 目标用户 ID
  784. title: 用户 ID
  785. required:
  786. - user_id
  787. title: 注销/解绑账号请求数据
  788. required:
  789. - data
  790. responses:
  791. '200':
  792. description: 成功时 code=10000;失败时查看 code/message/error_code。
  793. content:
  794. application/json:
  795. schema:
  796. $ref: '#/components/schemas/ApiResponseAccountUnbind'
  797. /account/reset_code@v1:
  798. post:
  799. summary: 重置激活码
  800. description: 仅未激活账号可重置;已激活拒绝。新码仅当次返回。
  801. operationId: account_reset_code
  802. tags:
  803. - 账号管理
  804. x-require-auth: true
  805. x-resource-type:
  806. $ref: '#/components/x-resource-types/account/code'
  807. x-action:
  808. $ref: '#/components/x-actions/manage/code'
  809. x-version: v1
  810. x-permission-visibility: catalog
  811. requestBody:
  812. required: true
  813. description: JSON 请求体,业务字段置于 data
  814. content:
  815. application/json:
  816. schema:
  817. type: object
  818. description: 统一信封请求体,业务字段放在 data 内
  819. properties:
  820. data:
  821. type: object
  822. description: 重置激活码请求参数
  823. properties:
  824. user_id:
  825. type: string
  826. description: 目标用户 ID
  827. title: 用户 ID
  828. required:
  829. - user_id
  830. title: 重置激活码请求数据
  831. required:
  832. - data
  833. x-error-codes: [60001, 60053, 60054, 60077, 60082]
  834. responses:
  835. '200':
  836. description: 成功时 code=10000;失败时查看 code/message/error_code。
  837. content:
  838. application/json:
  839. schema:
  840. $ref: '#/components/schemas/ApiResponseAccountResetCode'
  841. /account/export_codes@v1:
  842. post:
  843. summary: 导出激活码
  844. description: |-
  845. 导出未设密账号的激活码明文。
  846. 必传 `user_ids`(按调用方可见范围收窄后的账号列表;不可传空——平台将空列表视为项目内全量)。
  847. 作用域由服务端派生为 `scope_type=end_user` 与项目空间 ID,不接受客户端传入的 scope 字段。
  848. `validity` 缺省为 `valid`(只读导出);`expired`/`all` 会触发对已过期凭证换新(写操作)。不接受 `active`。
  849. 成功时 `data` 为 ActivationCodeExportData:含明文清单 `items[]`(`plaintext` 仅本次应答出现一次),
  850. 以及 `export_mode`/`write_capability`/`reissued`/`kept`/`revoked`/`audit_written`/`audit_note` 等字段。
  851. 主要错误:空或非法入参 `60004`;账号均未登记 `60005`;有登记但均不可见 `60108`(`KLT-C007`);角色无权 `60058`。
  852. operationId: account_export_codes
  853. tags:
  854. - 账号管理
  855. x-require-auth: true
  856. x-resource-type:
  857. $ref: '#/components/x-resource-types/account/code'
  858. x-action:
  859. $ref: '#/components/x-actions/export/code'
  860. x-version: v1
  861. x-permission-visibility: catalog
  862. requestBody:
  863. required: true
  864. description: JSON 请求体,业务字段置于 data
  865. content:
  866. application/json:
  867. schema:
  868. type: object
  869. description: 统一信封请求体,业务字段放在 data 内
  870. properties:
  871. data:
  872. type: object
  873. description: 导出激活码请求参数
  874. properties:
  875. user_ids:
  876. type: array
  877. description: 按本人可见范围收窄后的用户 ID;不可传空列表。
  878. minItems: 1
  879. items:
  880. type: string
  881. description: 用户 ID
  882. title: 用户 ID 列表元素
  883. title: 用户 ID 列表
  884. validity:
  885. type: string
  886. description: 导出口径:valid=仍有效(只读,缺省);expired=已过期(写/换新);all=全部(写)。不接受 active。
  887. default: valid
  888. enum:
  889. - valid
  890. - expired
  891. - all
  892. title: 导出口径
  893. required:
  894. - user_ids
  895. title: 导出激活码请求数据
  896. required:
  897. - data
  898. x-error-codes: [60004, 60005, 60058, 60108]
  899. responses:
  900. '200':
  901. description: 成功时 code=10000;失败时查看 code/message/error_code。
  902. content:
  903. application/json:
  904. schema:
  905. $ref: '#/components/schemas/ApiResponseAccountExportCodes'
  906. /account/change_password@v1:
  907. post:
  908. summary: 自助修改密码
  909. description: 已登录用户修改本人密码;新旧相同不保存。
  910. operationId: account_change_password
  911. tags:
  912. - 账号管理
  913. x-require-auth: true
  914. # AC-05 明定「任何已登录角色」:不挂业务权限键(`bos.account.manage` 只授给运营侧)。
  915. # 登录即可=复用所有人都在的 `bos.auth.view@v1`;「只改本人」由 handler 保证。
  916. x-resource-type:
  917. $ref: '#/components/x-resource-types/auth/code'
  918. x-action:
  919. $ref: '#/components/x-actions/view/code'
  920. x-version: v1
  921. x-permission-visibility: catalog
  922. requestBody:
  923. required: true
  924. description: JSON 请求体,业务字段置于 data
  925. content:
  926. application/json:
  927. schema:
  928. type: object
  929. description: 统一信封请求体,业务字段放在 data 内
  930. properties:
  931. data:
  932. type: object
  933. description: 自助修改密码请求参数
  934. properties:
  935. old_password:
  936. type: string
  937. description: 原密码
  938. title: 原密码
  939. new_password:
  940. type: string
  941. description: 新密码
  942. title: 新密码
  943. required:
  944. - old_password
  945. - new_password
  946. title: 自助修改密码请求数据
  947. required:
  948. - data
  949. x-error-codes: [60001, 60053, 60054, 60055, 60077, 60082]
  950. responses:
  951. '200':
  952. description: 成功时 code=10000;失败时查看 code/message/error_code。
  953. content:
  954. application/json:
  955. schema:
  956. $ref: '#/components/schemas/ApiResponseAccountChangePassword'
  957. /account/profile/update@v1:
  958. post:
  959. summary: 本人维护姓名
  960. description:
  961. 个人资料;仅限本人。只写账号级自填姓名(bos_account_ext.display_name),不用于主体档案(客户联系人/运营商名/团队名归运营侧维护)。空串或
  962. null=清除自填、回落到档案派生名;超 64 字符或含控制字符 ⇒ 60004。
  963. operationId: account_profile_update
  964. tags:
  965. - 账号管理
  966. x-require-auth: true
  967. # AC-05:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键(`bos.account.manage` 会把客户等角色挡在网关)。
  968. x-resource-type:
  969. $ref: '#/components/x-resource-types/auth/code'
  970. x-action:
  971. $ref: '#/components/x-actions/view/code'
  972. x-version: v1
  973. x-permission-visibility: catalog
  974. requestBody:
  975. required: true
  976. description: JSON 请求体,业务字段置于 data
  977. content:
  978. application/json:
  979. schema:
  980. type: object
  981. description: 统一信封请求体,业务字段放在 data 内
  982. properties:
  983. data:
  984. type: object
  985. description: 本人维护姓名请求参数
  986. properties:
  987. display_name:
  988. type: string
  989. maxLength: 64
  990. description: 本人姓名;空串或 null=清除自填(回落到档案派生名)
  991. title: 显示名
  992. title: 本人维护姓名请求数据
  993. required:
  994. - data
  995. x-error-codes: [60004]
  996. responses:
  997. '200':
  998. description: 成功时 code=10000;失败时查看 code/message/error_code。
  999. content:
  1000. application/json:
  1001. schema:
  1002. $ref: '#/components/schemas/ApiResponseAccountProfileUpdate'
  1003. /account/notify_pref@v1:
  1004. get:
  1005. summary: 读通知投递偏好
  1006. description: 只读本人三通道(站内/邮箱/短信)的 enabled/available/address_hint。站内恒开不可关;地址摘要一律脱敏。任何已登录角色。
  1007. operationId: account_notify_pref
  1008. tags:
  1009. - 账号管理
  1010. x-require-auth: true
  1011. # AC-06:任何已登录角色只读本人;不挂业务权限键(06-接口清单「登录即可」)。
  1012. x-resource-type:
  1013. $ref: '#/components/x-resource-types/auth/code'
  1014. x-action:
  1015. $ref: '#/components/x-actions/view/code'
  1016. x-version: v1
  1017. x-permission-visibility: catalog
  1018. x-error-codes: []
  1019. responses:
  1020. '200':
  1021. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1022. content:
  1023. application/json:
  1024. schema:
  1025. $ref: '#/components/schemas/ApiResponseAccountNotifyPref'
  1026. /account/notify_pref/save@v1:
  1027. post:
  1028. summary: 保存通知投递开关
  1029. description: 仅限本人(user_id
  1030. 取登录上下文)。站内投递不可关闭(KLT-A004/60092);未绑定手机号不能开启短信(KLT-A005/60093)。关闭是合法动作、不发码。
  1031. operationId: account_notify_pref_save
  1032. tags:
  1033. - 账号管理
  1034. x-require-auth: true
  1035. # AC-06:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键。
  1036. x-resource-type:
  1037. $ref: '#/components/x-resource-types/auth/code'
  1038. x-action:
  1039. $ref: '#/components/x-actions/view/code'
  1040. x-version: v1
  1041. x-permission-visibility: catalog
  1042. requestBody:
  1043. required: true
  1044. description: JSON 请求体,业务字段置于 data
  1045. content:
  1046. application/json:
  1047. schema:
  1048. type: object
  1049. description: 统一信封请求体,业务字段放在 data 内
  1050. properties:
  1051. data:
  1052. type: object
  1053. description: 保存通知投递开关请求参数
  1054. properties:
  1055. inapp_enabled:
  1056. type: boolean
  1057. description: 站内投递开关;只接受 true/缺省,false ⇒ KLT-A004
  1058. title: inapp enabled
  1059. mail_enabled:
  1060. type: boolean
  1061. description: 邮箱投递开关
  1062. title: mail enabled
  1063. sms_enabled:
  1064. type: boolean
  1065. description: 短信投递开关;无绑定手机号时 true ⇒ KLT-A005
  1066. title: sms enabled
  1067. required:
  1068. - mail_enabled
  1069. - sms_enabled
  1070. title: 保存通知投递开关请求数据
  1071. required:
  1072. - data
  1073. x-error-codes: [60092, 60093]
  1074. responses:
  1075. '200':
  1076. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1077. content:
  1078. application/json:
  1079. schema:
  1080. $ref: '#/components/schemas/ApiResponseAccountNotifyPrefSave'
  1081. /account/notify_email/get@v1:
  1082. post:
  1083. summary: 本人只读通知投递邮箱
  1084. description: BUG-26F;仅限本人,只读当前生效邮箱(含来源), 改写。
  1085. operationId: account_notify_email_get
  1086. tags:
  1087. - 账号管理
  1088. x-require-auth: true
  1089. x-resource-type:
  1090. $ref: '#/components/x-resource-types/auth/code'
  1091. x-action:
  1092. $ref: '#/components/x-actions/view/code'
  1093. x-version: v1
  1094. x-permission-visibility: catalog
  1095. requestBody:
  1096. required: false
  1097. description: 空 data 即可
  1098. content:
  1099. application/json:
  1100. schema:
  1101. type: object
  1102. responses:
  1103. '200':
  1104. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1105. content:
  1106. application/json:
  1107. schema:
  1108. $ref: '#/components/schemas/ApiResponseAccountNotifyEmailGet'
  1109. /account/notify_email@v1:
  1110. post:
  1111. summary: 本人维护通知投递邮箱
  1112. description: >-
  1113. 仅限本人。须提交 `email` 键(缺字段 ⇒ 60004, 静默清空); 空串/null=清空登记;格式或长度不符 ⇒ KLT-A006/60094。
  1114. operationId: account_notify_email
  1115. tags:
  1116. - 账号管理
  1117. x-require-auth: true
  1118. # AC-06:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键。
  1119. x-resource-type:
  1120. $ref: '#/components/x-resource-types/auth/code'
  1121. x-action:
  1122. $ref: '#/components/x-actions/view/code'
  1123. x-version: v1
  1124. x-permission-visibility: catalog
  1125. requestBody:
  1126. required: true
  1127. description: JSON 请求体,业务字段置于 data
  1128. content:
  1129. application/json:
  1130. schema:
  1131. type: object
  1132. description: 统一信封请求体,业务字段放在 data 内
  1133. properties:
  1134. data:
  1135. type: object
  1136. description: 本人维护通知投递邮箱请求参数
  1137. required:
  1138. - email
  1139. properties:
  1140. email:
  1141. type: string
  1142. nullable: true
  1143. maxLength: 254
  1144. description: 通知投递邮箱;空串或 null=清空登记;缺键拒
  1145. title: email
  1146. title: 本人维护通知投递邮箱请求数据
  1147. required:
  1148. - data
  1149. x-error-codes: [60094]
  1150. responses:
  1151. '200':
  1152. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1153. content:
  1154. application/json:
  1155. schema:
  1156. $ref: '#/components/schemas/ApiResponseAccountNotifyEmail'
  1157. /account/notify_email/set@v1:
  1158. post:
  1159. summary: 运营代办维护通知投递邮箱
  1160. description: admin 全域、opsMain 负责范围内(opsSub 只读)。与本人自助口同一套格式校验(KLT-A006/60094),范围外按 11104 语义拒绝。
  1161. operationId: account_notify_email_set
  1162. tags:
  1163. - 账号管理
  1164. x-require-auth: true
  1165. x-resource-type:
  1166. $ref: '#/components/x-resource-types/account/code'
  1167. x-action:
  1168. $ref: '#/components/x-actions/manage/code'
  1169. x-version: v1
  1170. x-permission-visibility: catalog
  1171. requestBody:
  1172. required: true
  1173. description: JSON 请求体,业务字段置于 data
  1174. content:
  1175. application/json:
  1176. schema:
  1177. type: object
  1178. description: 统一信封请求体,业务字段放在 data 内
  1179. properties:
  1180. data:
  1181. type: object
  1182. description: 运营代办维护通知投递邮箱请求参数
  1183. properties:
  1184. user_id:
  1185. type: string
  1186. description: 目标账号 ID
  1187. title: 用户 ID
  1188. email:
  1189. type: string
  1190. maxLength: 254
  1191. description: 通知投递邮箱;空串或 null=清空登记
  1192. title: email
  1193. required:
  1194. - user_id
  1195. title: 运营代办维护通知投递邮箱请求数据
  1196. required:
  1197. - data
  1198. x-error-codes: [60094]
  1199. responses:
  1200. '200':
  1201. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1202. content:
  1203. application/json:
  1204. schema:
  1205. $ref: '#/components/schemas/ApiResponseAccountNotifyEmailSet'
  1206. /activation/verify@v1:
  1207. post:
  1208. summary: 激活并设置密码
  1209. description: 免登录豁免接口。校验激活码后设置新密码;按来源 IP+码窗口限流,不设失败计数锁死。
  1210. operationId: activation_verify
  1211. tags:
  1212. - 认证与激活
  1213. x-require-auth: false
  1214. x-resource-type:
  1215. $ref: '#/components/x-resource-types/activation/code'
  1216. x-action:
  1217. $ref: '#/components/x-actions/manage/code'
  1218. x-version: v1
  1219. x-permission-visibility: catalog
  1220. requestBody:
  1221. required: true
  1222. description: JSON 请求体,业务字段置于 data
  1223. content:
  1224. application/json:
  1225. schema:
  1226. type: object
  1227. description: 统一信封请求体,业务字段放在 data 内
  1228. properties:
  1229. data:
  1230. type: object
  1231. description: 激活并设置密码请求参数
  1232. properties:
  1233. code:
  1234. type: string
  1235. description: 激活码
  1236. title: 业务码
  1237. new_password:
  1238. type: string
  1239. description: 新密码(建议不少于 8 位)
  1240. minLength: 8
  1241. title: 新密码
  1242. required:
  1243. - code
  1244. - new_password
  1245. title: 激活并设置密码请求数据
  1246. required:
  1247. - data
  1248. x-error-codes: [60006, 60076]
  1249. responses:
  1250. '200':
  1251. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1252. content:
  1253. application/json:
  1254. schema:
  1255. $ref: '#/components/schemas/ApiResponseActivationVerify'
  1256. /activation/precheck@v1:
  1257. post:
  1258. summary: 激活第 1 步预校验(登录名与激活状态)
  1259. description: 免登录豁免接口。在设密步之前按登录名校验账号侧前置:已激活/已停用/未发码/已过期四类在第 1 步拦下;激活码明文仍由平台 bootstrap/consume
  1260. 核销。
  1261. operationId: activation_precheck
  1262. tags:
  1263. - 认证与激活
  1264. x-require-auth: false
  1265. x-resource-type:
  1266. $ref: '#/components/x-resource-types/activation/code'
  1267. x-action:
  1268. $ref: '#/components/x-actions/manage/code'
  1269. x-version: v1
  1270. x-permission-visibility: catalog
  1271. requestBody:
  1272. required: true
  1273. description: JSON 请求体,业务字段置于 data
  1274. content:
  1275. application/json:
  1276. schema:
  1277. type: object
  1278. description: 统一信封请求体,业务字段放在 data 内
  1279. properties:
  1280. data:
  1281. type: object
  1282. description: 激活第 1 步预校验(登录名与激活状态)请求参数
  1283. properties:
  1284. login_name:
  1285. type: string
  1286. description: 登录名(平台定位账号的必填参数)
  1287. title: login name
  1288. code:
  1289. type: string
  1290. description: 激活码(仅作限流隔离键;码值由平台核销)
  1291. title: 业务码
  1292. required:
  1293. - login_name
  1294. title: 激活第 1 步预校验(登录名与激活状态)请求数据
  1295. required:
  1296. - data
  1297. x-error-codes: [60006, 60052, 60076, 60088]
  1298. responses:
  1299. '200':
  1300. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1301. content:
  1302. application/json:
  1303. schema:
  1304. $ref: '#/components/schemas/ApiResponseActivationPrecheck'
  1305. /operator/create@v1:
  1306. post:
  1307. summary: 新建运营商
  1308. description: 运营商建档。所属区域必须是省级节点;同省份×品牌唯一;可写结算口径。
  1309. operationId: operator_create
  1310. tags:
  1311. - 运营商
  1312. x-require-auth: true
  1313. x-resource-type:
  1314. $ref: '#/components/x-resource-types/operator/code'
  1315. x-action:
  1316. $ref: '#/components/x-actions/create/code'
  1317. x-version: v1
  1318. x-permission-visibility: catalog
  1319. requestBody:
  1320. required: true
  1321. description: JSON 请求体,业务字段置于 data
  1322. content:
  1323. application/json:
  1324. schema:
  1325. type: object
  1326. description: 统一信封请求体,业务字段放在 data 内
  1327. properties:
  1328. data:
  1329. type: object
  1330. description: 新建运营商请求参数
  1331. properties:
  1332. name:
  1333. type: string
  1334. description: 运营商名称
  1335. title: 名称
  1336. brand:
  1337. type: string
  1338. description: 品牌:移动/联通/电信
  1339. title: brand
  1340. region_node_id:
  1341. type: string
  1342. description: 建档区域节点 ID(必须省级)
  1343. title: 区域节点 ID
  1344. is_province_node:
  1345. type: boolean
  1346. description: 是否省级节点标记(服务端校验用,可选)
  1347. title: is province node
  1348. settle_mode:
  1349. type: string
  1350. description: 结算方式:ratio=比例;amount=固定金额;per_account=每账号
  1351. enum:
  1352. - ratio
  1353. - amount
  1354. - per_account
  1355. title: settle mode
  1356. settle_value:
  1357. type: number
  1358. description: 结算值:比例时 0<x≤100;金额/每账号时为分且 >0
  1359. title: settle value
  1360. required:
  1361. - name
  1362. - brand
  1363. - region_node_id
  1364. title: 新建运营商请求数据
  1365. required:
  1366. - data
  1367. x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
  1368. responses:
  1369. '200':
  1370. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1371. content:
  1372. application/json:
  1373. schema:
  1374. $ref: '#/components/schemas/ApiResponseOperatorCreate'
  1375. /operator/update@v1:
  1376. post:
  1377. summary: 编辑运营商
  1378. description: 编辑运营商档案;改品牌/省份不得绕过省份×品牌唯一与省级节点校验。
  1379. operationId: operator_update
  1380. tags:
  1381. - 运营商
  1382. x-require-auth: true
  1383. x-resource-type:
  1384. $ref: '#/components/x-resource-types/operator/code'
  1385. x-action:
  1386. $ref: '#/components/x-actions/update/code'
  1387. x-version: v1
  1388. x-permission-visibility: catalog
  1389. requestBody:
  1390. required: true
  1391. description: JSON 请求体,业务字段置于 data
  1392. content:
  1393. application/json:
  1394. schema:
  1395. type: object
  1396. description: 统一信封请求体,业务字段放在 data 内
  1397. properties:
  1398. data:
  1399. type: object
  1400. description: 编辑运营商请求参数
  1401. properties:
  1402. operator_id:
  1403. type: string
  1404. description: 运营商 ID
  1405. title: 运营商 ID
  1406. name:
  1407. type: string
  1408. description: 运营商名称
  1409. title: 名称
  1410. brand:
  1411. type: string
  1412. description: 品牌:移动/联通/电信
  1413. title: brand
  1414. region_node_id:
  1415. type: string
  1416. description: 建档区域节点 ID(必须省级)
  1417. title: 区域节点 ID
  1418. is_province_node:
  1419. type: boolean
  1420. description: 是否省级节点标记(可选)
  1421. title: is province node
  1422. settle_mode:
  1423. type: string
  1424. description: 结算方式:ratio/amount/per_account
  1425. title: settle mode
  1426. settle_value:
  1427. type: number
  1428. description: 结算值
  1429. title: settle value
  1430. row_version:
  1431. type: integer
  1432. description: |-
  1433. 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。
  1434. title: 乐观锁版本
  1435. minimum: 1
  1436. required:
  1437. - operator_id
  1438. - name
  1439. - brand
  1440. - region_node_id
  1441. - row_version
  1442. title: 编辑运营商请求数据
  1443. required:
  1444. - data
  1445. x-error-codes: [60001, 60004, 60053, 60054, 60066, 60068, 60089, 60090]
  1446. responses:
  1447. '200':
  1448. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1449. content:
  1450. application/json:
  1451. schema:
  1452. $ref: '#/components/schemas/ApiResponseOperatorUpdate'
  1453. /operator/delete@v1:
  1454. post:
  1455. summary: 删除运营商
  1456. description: 删除前六项检查并级联注销对账账号。
  1457. operationId: operator_delete
  1458. tags:
  1459. - 运营商
  1460. x-require-auth: true
  1461. x-resource-type:
  1462. $ref: '#/components/x-resource-types/operator/code'
  1463. x-action:
  1464. $ref: '#/components/x-actions/delete/code'
  1465. x-version: v1
  1466. x-permission-visibility: catalog
  1467. requestBody:
  1468. required: true
  1469. description: JSON 请求体,业务字段置于 data
  1470. content:
  1471. application/json:
  1472. schema:
  1473. type: object
  1474. description: 统一信封请求体,业务字段放在 data 内
  1475. properties:
  1476. data:
  1477. type: object
  1478. description: 删除运营商请求参数
  1479. properties:
  1480. operator_id:
  1481. type: string
  1482. description: 运营商 ID
  1483. title: 运营商 ID
  1484. required:
  1485. - operator_id
  1486. title: 删除运营商请求数据
  1487. required:
  1488. - data
  1489. x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
  1490. responses:
  1491. '200':
  1492. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1493. content:
  1494. application/json:
  1495. schema:
  1496. $ref: '#/components/schemas/ApiResponseOperatorDelete'
  1497. /operator/get_list@v1:
  1498. post:
  1499. summary: 运营商列表
  1500. description: 卡片口径:建档区域或下挂客户落在本可见范围。
  1501. operationId: operator_get_list
  1502. tags:
  1503. - 运营商
  1504. x-require-auth: true
  1505. x-resource-type:
  1506. $ref: '#/components/x-resource-types/operator/code'
  1507. x-action:
  1508. $ref: '#/components/x-actions/list/code'
  1509. x-version: v1
  1510. x-permission-visibility: catalog
  1511. requestBody:
  1512. required: true
  1513. description: JSON 请求体,业务字段置于 data
  1514. content:
  1515. application/json:
  1516. schema:
  1517. type: object
  1518. description: 统一信封请求体,业务字段放在 data 内
  1519. properties:
  1520. data:
  1521. type: object
  1522. description: 列表筛选参数
  1523. properties:
  1524. page:
  1525. type: integer
  1526. description: 页码(0 基索引,默认 0)
  1527. minimum: 0
  1528. default: 0
  1529. title: 页码
  1530. page_size:
  1531. type: integer
  1532. description: 每页条数(默认 20,上限 200)
  1533. minimum: 1
  1534. maximum: 200
  1535. default: 20
  1536. title: 每页条数
  1537. keyword:
  1538. type: string
  1539. description: 关键字筛选(可选)
  1540. title: 关键字
  1541. brand:
  1542. type: string
  1543. description: 品牌精确筛选(电信/移动/联通;非法枚举 ⇒ 60004;BUG-26OR-03)
  1544. enum:
  1545. - 电信
  1546. - 移动
  1547. - 联通
  1548. title: brand
  1549. title: 运营商列表请求数据
  1550. required:
  1551. - data
  1552. x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
  1553. responses:
  1554. '200':
  1555. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1556. content:
  1557. application/json:
  1558. schema:
  1559. $ref: '#/components/schemas/ApiResponseOperatorGetList'
  1560. /operator/recon_account/create@v1:
  1561. post:
  1562. summary: 创建对账账号
  1563. description: 一家运营商至多一个对账账号;初始密码仅当次显示。
  1564. operationId: operator_recon_account_create
  1565. tags:
  1566. - 运营商
  1567. x-require-auth: true
  1568. x-resource-type:
  1569. $ref: '#/components/x-resource-types/operator_recon_account/code'
  1570. x-action:
  1571. $ref: '#/components/x-actions/create/code'
  1572. x-version: v1
  1573. x-permission-visibility: catalog
  1574. requestBody:
  1575. required: true
  1576. description: JSON 请求体,业务字段置于 data
  1577. content:
  1578. application/json:
  1579. schema:
  1580. type: object
  1581. description: 统一信封请求体,业务字段放在 data 内
  1582. properties:
  1583. data:
  1584. type: object
  1585. description: 创建对账账号请求参数
  1586. properties:
  1587. operator_id:
  1588. type: string
  1589. description: 运营商 ID
  1590. title: 运营商 ID
  1591. username:
  1592. type: string
  1593. description: 对账账号登录名
  1594. title: 登录名
  1595. mobile:
  1596. type: string
  1597. description: 手机号(可选)
  1598. title: 手机号
  1599. required:
  1600. - operator_id
  1601. - username
  1602. title: 创建对账账号请求数据
  1603. required:
  1604. - data
  1605. x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
  1606. responses:
  1607. '200':
  1608. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1609. content:
  1610. application/json:
  1611. schema:
  1612. $ref: '#/components/schemas/ApiResponseOperatorReconAccountCreate'
  1613. /operator/recon_account/get@v1:
  1614. post:
  1615. summary: 查询对账账号
  1616. description: 只回状态提示(如「未发送,线下告知本人」),不回密码。
  1617. operationId: operator_recon_account_get
  1618. tags:
  1619. - 运营商
  1620. x-require-auth: true
  1621. x-resource-type:
  1622. $ref: '#/components/x-resource-types/operator_recon_account/code'
  1623. x-action:
  1624. $ref: '#/components/x-actions/view/code'
  1625. x-version: v1
  1626. x-permission-visibility: catalog
  1627. requestBody:
  1628. required: true
  1629. description: JSON 请求体,业务字段置于 data
  1630. content:
  1631. application/json:
  1632. schema:
  1633. type: object
  1634. description: 统一信封请求体,业务字段放在 data 内
  1635. properties:
  1636. data:
  1637. type: object
  1638. description: 查询对账账号请求参数
  1639. properties:
  1640. operator_id:
  1641. type: string
  1642. description: 运营商 ID
  1643. title: 运营商 ID
  1644. required:
  1645. - operator_id
  1646. title: 查询对账账号请求数据
  1647. required:
  1648. - data
  1649. x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090]
  1650. responses:
  1651. '200':
  1652. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1653. content:
  1654. application/json:
  1655. schema:
  1656. $ref: '#/components/schemas/ApiResponseOperatorReconAccountGet'
  1657. /partner/create@v1:
  1658. post:
  1659. summary: 新建合伙人
  1660. description: 合伙人建档并同步开通账号;名称全站唯一;结算字段仅 admin 可写。
  1661. operationId: partner_create
  1662. tags:
  1663. - 合伙人
  1664. x-require-auth: true
  1665. x-resource-type:
  1666. $ref: '#/components/x-resource-types/partner/code'
  1667. x-action:
  1668. $ref: '#/components/x-actions/create/code'
  1669. x-version: v1
  1670. x-permission-visibility: catalog
  1671. requestBody:
  1672. required: true
  1673. description: JSON 请求体,业务字段置于 data
  1674. content:
  1675. application/json:
  1676. schema:
  1677. type: object
  1678. description: 统一信封请求体,业务字段放在 data 内
  1679. properties:
  1680. data:
  1681. type: object
  1682. description: 新建合伙人请求参数
  1683. properties:
  1684. name:
  1685. type: string
  1686. description: 合伙人名称(全站唯一)
  1687. title: 名称
  1688. duty_desc:
  1689. type: string
  1690. description: 职务说明(可选)
  1691. title: duty desc
  1692. region_node_id:
  1693. type: string
  1694. description: 建档区域节点 ID
  1695. title: 区域节点 ID
  1696. mobile:
  1697. type: string
  1698. description: 手机号(可选)
  1699. title: 手机号
  1700. username:
  1701. type: string
  1702. description: 登录名(开通账号用)
  1703. title: 登录名
  1704. settle_mode:
  1705. type: string
  1706. description: 结算方式(仅 admin 可写,可选)
  1707. title: settle mode
  1708. settle_value:
  1709. type: number
  1710. description: 结算值(仅 admin 可写,可选)
  1711. title: settle value
  1712. required:
  1713. - name
  1714. - region_node_id
  1715. - username
  1716. title: 新建合伙人请求数据
  1717. required:
  1718. - data
  1719. x-error-codes: [60053, 60054, 60091]
  1720. responses:
  1721. '200':
  1722. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1723. content:
  1724. application/json:
  1725. schema:
  1726. $ref: '#/components/schemas/ApiResponsePartnerCreate'
  1727. /partner/update@v1:
  1728. post:
  1729. summary: 编辑合伙人
  1730. description: 编辑合伙人资料;登录名不可改。
  1731. operationId: partner_update
  1732. tags:
  1733. - 合伙人
  1734. x-require-auth: true
  1735. x-resource-type:
  1736. $ref: '#/components/x-resource-types/partner/code'
  1737. x-action:
  1738. $ref: '#/components/x-actions/update/code'
  1739. x-version: v1
  1740. x-permission-visibility: catalog
  1741. requestBody:
  1742. required: true
  1743. description: JSON 请求体,业务字段置于 data
  1744. content:
  1745. application/json:
  1746. schema:
  1747. type: object
  1748. description: 统一信封请求体,业务字段放在 data 内
  1749. properties:
  1750. data:
  1751. type: object
  1752. description: 编辑合伙人请求参数
  1753. properties:
  1754. partner_id:
  1755. type: string
  1756. description: 合伙人 ID
  1757. title: 合伙人 ID
  1758. name:
  1759. type: string
  1760. description: 合伙人名称(全站唯一)
  1761. title: 名称
  1762. duty_desc:
  1763. type: string
  1764. description: 职务说明(可选)
  1765. title: duty desc
  1766. region_node_id:
  1767. type: string
  1768. description: 建档区域节点 ID
  1769. title: 区域节点 ID
  1770. mobile:
  1771. type: string
  1772. description: 手机号(可选)
  1773. title: 手机号
  1774. settle_mode:
  1775. type: string
  1776. description: 结算方式(仅 admin 可写,可选)
  1777. title: settle mode
  1778. settle_value:
  1779. type: number
  1780. description: 结算值(仅 admin 可写,可选)
  1781. title: settle value
  1782. row_version:
  1783. type: integer
  1784. description: |-
  1785. 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。
  1786. title: 乐观锁版本
  1787. minimum: 1
  1788. required:
  1789. - partner_id
  1790. - name
  1791. - region_node_id
  1792. - row_version
  1793. title: 编辑合伙人请求数据
  1794. required:
  1795. - data
  1796. x-error-codes: [60001, 60004, 60053, 60054, 60091]
  1797. responses:
  1798. '200':
  1799. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1800. content:
  1801. application/json:
  1802. schema:
  1803. $ref: '#/components/schemas/ApiResponsePartnerUpdate'
  1804. /partner/delete@v1:
  1805. post:
  1806. summary: 删除合伙人
  1807. description: 删除合伙人档案及相关授权。
  1808. operationId: partner_delete
  1809. tags:
  1810. - 合伙人
  1811. x-require-auth: true
  1812. x-resource-type:
  1813. $ref: '#/components/x-resource-types/partner/code'
  1814. x-action:
  1815. $ref: '#/components/x-actions/delete/code'
  1816. x-version: v1
  1817. x-permission-visibility: catalog
  1818. requestBody:
  1819. required: true
  1820. description: JSON 请求体,业务字段置于 data
  1821. content:
  1822. application/json:
  1823. schema:
  1824. type: object
  1825. description: 统一信封请求体,业务字段放在 data 内
  1826. properties:
  1827. data:
  1828. type: object
  1829. description: 删除合伙人请求参数
  1830. properties:
  1831. partner_id:
  1832. type: string
  1833. description: 合伙人 ID
  1834. title: 合伙人 ID
  1835. required:
  1836. - partner_id
  1837. title: 删除合伙人请求数据
  1838. required:
  1839. - data
  1840. x-error-codes: [60053, 60054]
  1841. responses:
  1842. '200':
  1843. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1844. content:
  1845. application/json:
  1846. schema:
  1847. $ref: '#/components/schemas/ApiResponsePartnerDelete'
  1848. /partner/get_list@v1:
  1849. post:
  1850. summary: 合伙人列表
  1851. description: 卡片口径:建档区域落在本范围(含下级)。
  1852. operationId: partner_get_list
  1853. tags:
  1854. - 合伙人
  1855. x-require-auth: true
  1856. x-resource-type:
  1857. $ref: '#/components/x-resource-types/partner/code'
  1858. x-action:
  1859. $ref: '#/components/x-actions/list/code'
  1860. x-version: v1
  1861. x-permission-visibility: catalog
  1862. requestBody:
  1863. required: true
  1864. description: JSON 请求体,业务字段置于 data
  1865. content:
  1866. application/json:
  1867. schema:
  1868. type: object
  1869. description: 统一信封请求体,业务字段放在 data 内
  1870. properties:
  1871. data:
  1872. type: object
  1873. description: 列表筛选参数
  1874. properties:
  1875. page:
  1876. type: integer
  1877. description: 页码(0 基索引,默认 0)
  1878. minimum: 0
  1879. default: 0
  1880. title: 页码
  1881. page_size:
  1882. type: integer
  1883. description: 每页条数(默认 20,上限 200)
  1884. minimum: 1
  1885. maximum: 200
  1886. default: 20
  1887. title: 每页条数
  1888. keyword:
  1889. type: string
  1890. description: 关键字筛选(可选)
  1891. title: 关键字
  1892. title: 合伙人列表请求数据
  1893. required:
  1894. - data
  1895. x-error-codes: [60053, 60054]
  1896. responses:
  1897. '200':
  1898. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1899. content:
  1900. application/json:
  1901. schema:
  1902. $ref: '#/components/schemas/ApiResponsePartnerGetList'
  1903. /partner/scope/get@v1:
  1904. post:
  1905. summary: 读取合伙人负责范围
  1906. description: 返回该合伙人的 region/customer 两类 bos_data_scope。注意: 由 GET 改 POST(R-5,统一方法;本接口读 scope
  1907. 表本身,不消费授权上界,故不标 x-enumeration-kind)。
  1908. operationId: partner_scope_get
  1909. tags:
  1910. - 合伙人
  1911. x-require-auth: true
  1912. x-resource-type:
  1913. $ref: '#/components/x-resource-types/partner_scope/code'
  1914. x-action:
  1915. $ref: '#/components/x-actions/view/code'
  1916. x-version: v1
  1917. x-permission-visibility: catalog
  1918. requestBody:
  1919. required: true
  1920. description: 统一信封请求体(无业务参数)
  1921. content:
  1922. application/json:
  1923. schema:
  1924. type: object
  1925. properties:
  1926. data:
  1927. type: object
  1928. description: 读取合伙人负责范围的请求字段,置于统一信封 data 内。
  1929. additionalProperties: false
  1930. properties: {}
  1931. title: 读取合伙人负责范围请求数据
  1932. required:
  1933. - data
  1934. x-error-codes: [60053, 60054]
  1935. responses:
  1936. '200':
  1937. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1938. content:
  1939. application/json:
  1940. schema:
  1941. $ref: '#/components/schemas/ApiResponsePartnerScopeGet'
  1942. /partner/scope/save@v1:
  1943. post:
  1944. summary: 保存合伙人负责范围
  1945. description: 写入 bos_data_scope(holder_type=partner);允许保存为空;保存即 bump
  1946. epoch。同类合伙人区域子树/点客户不得交叉(KLT-T216);异类可并存。
  1947. operationId: partner_scope_save
  1948. tags:
  1949. - 合伙人
  1950. x-require-auth: true
  1951. x-resource-type:
  1952. $ref: '#/components/x-resource-types/partner_scope/code'
  1953. x-action:
  1954. $ref: '#/components/x-actions/manage/code'
  1955. x-version: v1
  1956. x-permission-visibility: catalog
  1957. requestBody:
  1958. required: true
  1959. description: JSON 请求体,业务字段置于 data
  1960. content:
  1961. application/json:
  1962. schema:
  1963. type: object
  1964. description: 统一信封请求体,业务字段放在 data 内
  1965. properties:
  1966. data:
  1967. type: object
  1968. description: 保存合伙人负责范围请求参数
  1969. properties:
  1970. partner_id:
  1971. type: string
  1972. description: 合伙人 ID
  1973. title: 合伙人 ID
  1974. region_node_ids:
  1975. type: array
  1976. description: 负责区域节点 ID 列表(可空)
  1977. items:
  1978. type: string
  1979. description: 区域节点 ID
  1980. title: region_node_ids元素
  1981. title: region node ids
  1982. customer_ids:
  1983. type: array
  1984. description: 负责客户 ID 列表(可空)
  1985. items:
  1986. type: string
  1987. description: 客户 ID
  1988. title: customer_ids元素
  1989. title: customer ids
  1990. required:
  1991. - partner_id
  1992. title: 保存合伙人负责范围请求数据
  1993. required:
  1994. - data
  1995. x-error-codes: [60053, 60054, 60095, 60096]
  1996. responses:
  1997. '200':
  1998. description: 成功时 code=10000;失败时查看 code/message/error_code。
  1999. content:
  2000. application/json:
  2001. schema:
  2002. $ref: '#/components/schemas/ApiResponsePartnerScopeSave'
  2003. /ent_team/create@v1:
  2004. post:
  2005. summary: 新建运营团队
  2006. description: 仅 admin。新建运营团队,负责范围初始为空。
  2007. operationId: ent_team_create
  2008. tags:
  2009. - 运营团队
  2010. x-require-auth: true
  2011. x-resource-type:
  2012. $ref: '#/components/x-resource-types/ent_team/code'
  2013. x-action:
  2014. $ref: '#/components/x-actions/create/code'
  2015. x-version: v1
  2016. x-permission-visibility: catalog
  2017. requestBody:
  2018. required: true
  2019. description: JSON 请求体,业务字段置于 data
  2020. content:
  2021. application/json:
  2022. schema:
  2023. type: object
  2024. description: 统一信封请求体,业务字段放在 data 内
  2025. properties:
  2026. data:
  2027. type: object
  2028. description: 新建运营团队请求参数
  2029. properties:
  2030. team_name:
  2031. type: string
  2032. description: 团队名称
  2033. title: 团队名称
  2034. primary_username:
  2035. type: string
  2036. description: 主账号登录名(可选)
  2037. title: primary username
  2038. primary_mobile:
  2039. type: string
  2040. description: 主账号手机号(可选)
  2041. title: primary mobile
  2042. primary_name:
  2043. type: string
  2044. maxLength: 64
  2045. description: 主账号姓名(可选,落 `bos_account_ext.display_name`;下拉框按姓名选人,前端必填,未带=回落登录名)
  2046. title: primary name
  2047. required:
  2048. - team_name
  2049. title: 新建运营团队请求数据
  2050. required:
  2051. - data
  2052. x-error-codes: [60053, 60054, 60068]
  2053. responses:
  2054. '200':
  2055. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2056. content:
  2057. application/json:
  2058. schema:
  2059. $ref: '#/components/schemas/ApiResponseEntTeamCreate'
  2060. /ent_team/update@v1:
  2061. post:
  2062. summary: 编辑运营团队
  2063. description: 仅 admin。编辑团队资料。
  2064. operationId: ent_team_update
  2065. tags:
  2066. - 运营团队
  2067. x-require-auth: true
  2068. x-resource-type:
  2069. $ref: '#/components/x-resource-types/ent_team/code'
  2070. x-action:
  2071. $ref: '#/components/x-actions/update/code'
  2072. x-version: v1
  2073. x-permission-visibility: catalog
  2074. requestBody:
  2075. required: true
  2076. description: JSON 请求体,业务字段置于 data
  2077. content:
  2078. application/json:
  2079. schema:
  2080. type: object
  2081. description: 统一信封请求体,业务字段放在 data 内
  2082. properties:
  2083. data:
  2084. type: object
  2085. description: 编辑运营团队请求参数
  2086. properties:
  2087. team_id:
  2088. type: string
  2089. description: 团队 ID
  2090. title: 团队 ID
  2091. team_name:
  2092. type: string
  2093. description: 团队名称
  2094. title: 团队名称
  2095. row_version:
  2096. type: integer
  2097. description: 乐观锁版本(若启用)
  2098. title: 乐观锁版本
  2099. required:
  2100. - team_id
  2101. - team_name
  2102. title: 编辑运营团队请求数据
  2103. required:
  2104. - data
  2105. x-error-codes: [60053, 60054, 60068]
  2106. responses:
  2107. '200':
  2108. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2109. content:
  2110. application/json:
  2111. schema:
  2112. $ref: '#/components/schemas/ApiResponseEntTeamUpdate'
  2113. /ent_team/delete@v1:
  2114. post:
  2115. summary: 删除运营团队
  2116. description: 仅 admin。内置「总部·不限区域」团队不可删。
  2117. operationId: ent_team_delete
  2118. tags:
  2119. - 运营团队
  2120. x-require-auth: true
  2121. x-resource-type:
  2122. $ref: '#/components/x-resource-types/ent_team/code'
  2123. x-action:
  2124. $ref: '#/components/x-actions/delete/code'
  2125. x-version: v1
  2126. x-permission-visibility: catalog
  2127. requestBody:
  2128. required: true
  2129. description: JSON 请求体,业务字段置于 data
  2130. content:
  2131. application/json:
  2132. schema:
  2133. type: object
  2134. description: 统一信封请求体,业务字段放在 data 内
  2135. properties:
  2136. data:
  2137. type: object
  2138. description: 删除运营团队请求参数
  2139. properties:
  2140. team_id:
  2141. type: string
  2142. description: 团队 ID
  2143. title: 团队 ID
  2144. required:
  2145. - team_id
  2146. title: 删除运营团队请求数据
  2147. required:
  2148. - data
  2149. x-error-codes: [60053, 60054, 60068]
  2150. responses:
  2151. '200':
  2152. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2153. content:
  2154. application/json:
  2155. schema:
  2156. $ref: '#/components/schemas/ApiResponseEntTeamDelete'
  2157. /ent_team/member_add@v1:
  2158. post:
  2159. summary: 添加运营团队成员
  2160. description: 每团队有且仅有一个主账号;首个成员即主账号;成员姓名(`name`)落
  2161. `bos_account_ext.display_name`(未带=回落登录名)。不可删除当前登录账号。
  2162. operationId: ent_team_member_add
  2163. tags:
  2164. - 运营团队
  2165. x-require-auth: true
  2166. x-resource-type:
  2167. $ref: '#/components/x-resource-types/ent_team/code'
  2168. x-action:
  2169. $ref: '#/components/x-actions/manage/code'
  2170. x-version: v1
  2171. x-permission-visibility: catalog
  2172. requestBody:
  2173. required: true
  2174. description: JSON 请求体,业务字段置于 data
  2175. content:
  2176. application/json:
  2177. schema:
  2178. type: object
  2179. description: 统一信封请求体,业务字段放在 data 内
  2180. properties:
  2181. data:
  2182. type: object
  2183. description: 添加运营团队成员请求参数
  2184. properties:
  2185. team_id:
  2186. type: string
  2187. description: 团队 ID
  2188. title: 团队 ID
  2189. username:
  2190. type: string
  2191. description: 成员登录名
  2192. title: 登录名
  2193. name:
  2194. type: string
  2195. maxLength: 64
  2196. description: 成员姓名(落 `bos_account_ext.display_name`;前端必填,未带=回落登录名)
  2197. title: 名称
  2198. mobile:
  2199. type: string
  2200. description: 手机号(可选)
  2201. title: 手机号
  2202. is_primary:
  2203. type: boolean
  2204. description: 是否设为主账号(可选)
  2205. title: 是否主账号
  2206. required:
  2207. - team_id
  2208. - username
  2209. title: 添加运营团队成员请求数据
  2210. required:
  2211. - data
  2212. x-error-codes: [60053, 60054, 60068]
  2213. responses:
  2214. '200':
  2215. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2216. content:
  2217. application/json:
  2218. schema:
  2219. $ref: '#/components/schemas/ApiResponseEntTeamMemberAdd'
  2220. /ent_team/member_update@v1:
  2221. post:
  2222. summary: 编辑运营团队成员资料
  2223. description: 仅
  2224. admin。改姓名(`bos_account_ext.display_name`)、手机号与运营账号可承接工单类型清单(`ticket_types`);登录名与本/子身份不变(改名办
  2225. `ent_team/transfer_primary@v1`)。
  2226. operationId: ent_team_member_update
  2227. tags:
  2228. - 运营团队
  2229. x-require-auth: true
  2230. x-resource-type:
  2231. $ref: '#/components/x-resource-types/ent_team/code'
  2232. x-action:
  2233. $ref: '#/components/x-actions/manage/code'
  2234. x-version: v1
  2235. x-permission-visibility: catalog
  2236. requestBody:
  2237. required: true
  2238. description: JSON 请求体,业务字段置于 data
  2239. content:
  2240. application/json:
  2241. schema:
  2242. type: object
  2243. description: 统一信封请求体,业务字段放在 data 内
  2244. properties:
  2245. data:
  2246. type: object
  2247. description: 编辑运营团队成员资料请求参数
  2248. properties:
  2249. team_id:
  2250. type: string
  2251. description: 团队 ID
  2252. title: 团队 ID
  2253. user_id:
  2254. type: string
  2255. description: 成员用户 ID
  2256. title: 用户 ID
  2257. name:
  2258. type: string
  2259. maxLength: 64
  2260. description: 姓名(可选;缺省=不改;空白串=拒绝,姓名是下拉框选人的展示值)
  2261. title: 名称
  2262. mobile:
  2263. type: string
  2264. description: 手机号(可选;缺省/空串=不改;全站唯一)
  2265. title: 手机号
  2266. ticket_types:
  2267. type: array
  2268. items:
  2269. type: string
  2270. title: ticket_types元素
  2271. description: 可承接工单类型清单(`ops_account_ticket_type`, 判据二, 新增):缺省=不改;非空=整体替换,且必须含
  2272. `renewal`(续签单只由运营账号受理,清单不可清空;`[]`
  2273. 或漏掉续签一律拒绝)。取值限八类型码(`open`/`service_open`/`updown`/`expiry_stop`/`service_stop`/`fault`/`after_sale`/`renewal`),只对
  2274. `role_code ∈ opsMain/opsSub` 的账号生效。新建与存量账号默认只播种 `renewal`
  2275. title: 工单类型清单
  2276. required:
  2277. - team_id
  2278. - user_id
  2279. title: 编辑运营团队成员资料请求数据
  2280. required:
  2281. - data
  2282. x-error-codes: [60053, 60054, 60068]
  2283. responses:
  2284. '200':
  2285. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2286. content:
  2287. application/json:
  2288. schema:
  2289. $ref: '#/components/schemas/ApiResponseEntTeamMemberUpdate'
  2290. /ent_team/member_remove@v1:
  2291. post:
  2292. summary: 移除运营团队成员
  2293. description: 内置主账号不可删不可转交;不可删除当前登录账号。
  2294. operationId: ent_team_member_remove
  2295. tags:
  2296. - 运营团队
  2297. x-require-auth: true
  2298. x-resource-type:
  2299. $ref: '#/components/x-resource-types/ent_team/code'
  2300. x-action:
  2301. $ref: '#/components/x-actions/manage/code'
  2302. x-version: v1
  2303. x-permission-visibility: catalog
  2304. requestBody:
  2305. required: true
  2306. description: JSON 请求体,业务字段置于 data
  2307. content:
  2308. application/json:
  2309. schema:
  2310. type: object
  2311. description: 统一信封请求体,业务字段放在 data 内
  2312. properties:
  2313. data:
  2314. type: object
  2315. description: 移除运营团队成员请求参数
  2316. properties:
  2317. team_id:
  2318. type: string
  2319. description: 团队 ID
  2320. title: 团队 ID
  2321. user_id:
  2322. type: string
  2323. description: 成员用户 ID
  2324. title: 用户 ID
  2325. required:
  2326. - team_id
  2327. - user_id
  2328. title: 移除运营团队成员请求数据
  2329. required:
  2330. - data
  2331. x-error-codes: [60053, 60054, 60068]
  2332. responses:
  2333. '200':
  2334. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2335. content:
  2336. application/json:
  2337. schema:
  2338. $ref: '#/components/schemas/ApiResponseEntTeamMemberRemove'
  2339. /ent_team/transfer_primary@v1:
  2340. post:
  2341. summary: 转交运营团队主账号
  2342. description: 总运营可办理任意团队;运营主账号(opsMain)只能转交本团队(限本人所属团队)。同事务切换两人的 is_primary 标记并同步
  2343. role_code(opsMain↔opsSub),登录名与负责范围不变;内置总运营团队不可转交,跨团队接收方直接拒。审计记转出与转入账号名。
  2344. operationId: ent_team_transfer_primary
  2345. tags:
  2346. - 运营团队
  2347. x-require-auth: true
  2348. x-resource-type:
  2349. $ref: '#/components/x-resource-types/ent_team/code'
  2350. x-action:
  2351. $ref: '#/components/x-actions/manage/code'
  2352. x-version: v1
  2353. x-permission-visibility: catalog
  2354. requestBody:
  2355. required: true
  2356. description: JSON 请求体,业务字段置于 data
  2357. content:
  2358. application/json:
  2359. schema:
  2360. type: object
  2361. description: 统一信封请求体,业务字段放在 data 内
  2362. properties:
  2363. data:
  2364. type: object
  2365. description: 转交运营团队主账号请求参数
  2366. properties:
  2367. team_id:
  2368. type: string
  2369. description: 团队 ID
  2370. title: 团队 ID
  2371. from_user_id:
  2372. type: string
  2373. description: 原主账号用户 ID
  2374. title: from user id
  2375. to_user_id:
  2376. type: string
  2377. description: 新主账号用户 ID
  2378. title: to user id
  2379. required:
  2380. - team_id
  2381. - from_user_id
  2382. - to_user_id
  2383. title: 转交运营团队主账号请求数据
  2384. required:
  2385. - data
  2386. x-error-codes: [60053, 60054, 60068]
  2387. responses:
  2388. '200':
  2389. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2390. content:
  2391. application/json:
  2392. schema:
  2393. $ref: '#/components/schemas/ApiResponseEntTeamTransferPrimary'
  2394. /ent_team/scope/get@v1:
  2395. post:
  2396. summary: 读取运营团队负责范围
  2397. description: 仅 admin。返回团队区域负责范围。注意: 由 GET 改 POST(R-5,统一方法;本接口读 scope 表本身,不消费授权上界,故不标
  2398. x-enumeration-kind)。
  2399. operationId: ent_team_scope_get
  2400. tags:
  2401. - 运营团队
  2402. x-require-auth: true
  2403. x-resource-type:
  2404. $ref: '#/components/x-resource-types/ent_team_scope/code'
  2405. x-action:
  2406. $ref: '#/components/x-actions/view/code'
  2407. x-version: v1
  2408. x-permission-visibility: catalog
  2409. requestBody:
  2410. required: true
  2411. description: 统一信封请求体(无业务参数)
  2412. content:
  2413. application/json:
  2414. schema:
  2415. type: object
  2416. properties:
  2417. data:
  2418. type: object
  2419. description: 读取运营团队负责范围的请求字段,置于统一信封 data 内。
  2420. additionalProperties: false
  2421. properties: {}
  2422. title: 读取运营团队负责范围请求数据
  2423. required:
  2424. - data
  2425. x-error-codes: [60053, 60054, 60068]
  2426. responses:
  2427. '200':
  2428. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2429. content:
  2430. application/json:
  2431. schema:
  2432. $ref: '#/components/schemas/ApiResponseEntTeamScopeGet'
  2433. /ent_team/scope/save@v1:
  2434. post:
  2435. summary: 保存运营团队负责范围
  2436. description: 仅 admin。勾选区域写入
  2437. bos_data_scope(holder=ent_team),成为区域删除的引用来源。与其它非内置运营团队区域子树互斥(KLT-T216);内置总部豁免。
  2438. operationId: ent_team_scope_save
  2439. tags:
  2440. - 运营团队
  2441. x-require-auth: true
  2442. x-resource-type:
  2443. $ref: '#/components/x-resource-types/ent_team_scope/code'
  2444. x-action:
  2445. $ref: '#/components/x-actions/manage/code'
  2446. x-version: v1
  2447. x-permission-visibility: catalog
  2448. requestBody:
  2449. required: true
  2450. description: JSON 请求体,业务字段置于 data
  2451. content:
  2452. application/json:
  2453. schema:
  2454. type: object
  2455. description: 统一信封请求体,业务字段放在 data 内
  2456. properties:
  2457. data:
  2458. type: object
  2459. description: 保存运营团队负责范围请求参数
  2460. properties:
  2461. team_id:
  2462. type: string
  2463. description: 团队 ID
  2464. title: 团队 ID
  2465. region_node_ids:
  2466. type: array
  2467. description: 负责区域节点 ID 列表
  2468. items:
  2469. type: string
  2470. description: 区域节点 ID
  2471. title: region_node_ids元素
  2472. title: region node ids
  2473. required:
  2474. - team_id
  2475. - region_node_ids
  2476. title: 保存运营团队负责范围请求数据
  2477. required:
  2478. - data
  2479. x-error-codes: [60053, 60054, 60068, 60095, 60096]
  2480. responses:
  2481. '200':
  2482. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2483. content:
  2484. application/json:
  2485. schema:
  2486. $ref: '#/components/schemas/ApiResponseEntTeamScopeSave'
  2487. /ops_team/create@v1:
  2488. post:
  2489. summary: 新建运维团队
  2490. description: 须指定所属区域、可派工单类型≥1、分派方式与结算口径。注意:团队不分类型(无 team_type 键)。
  2491. operationId: ops_team_create
  2492. tags:
  2493. - 运维团队与成员
  2494. x-require-auth: true
  2495. x-resource-type:
  2496. $ref: '#/components/x-resource-types/ops_team/code'
  2497. x-action:
  2498. $ref: '#/components/x-actions/create/code'
  2499. x-version: v1
  2500. x-permission-visibility: catalog
  2501. requestBody:
  2502. required: true
  2503. description: JSON 请求体,业务字段置于 data
  2504. content:
  2505. application/json:
  2506. schema:
  2507. type: object
  2508. description: 统一信封请求体,业务字段放在 data 内
  2509. properties:
  2510. data:
  2511. type: object
  2512. description: 新建运维团队请求参数
  2513. properties:
  2514. team_name:
  2515. type: string
  2516. description: 团队名称
  2517. title: 团队名称
  2518. region_node_id:
  2519. type: string
  2520. description: 所属区域节点 ID
  2521. title: 区域节点 ID
  2522. ticket_types:
  2523. type: array
  2524. description: 可派工单类型列表(至少 1 项; 含 `renewal`——续签单只由运营账号受理,
  2525. items:
  2526. type: string
  2527. description: 工单类型码
  2528. title: ticket_types元素
  2529. title: 工单类型清单
  2530. dispatch_mode:
  2531. type: string
  2532. description: 分派方式:manual=手工;auto_avg=自动均分
  2533. enum:
  2534. - manual
  2535. - auto_avg
  2536. title: dispatch mode
  2537. settle_mode:
  2538. type: string
  2539. description: 结算方式
  2540. title: settle mode
  2541. settle_value:
  2542. type: number
  2543. description: 结算值
  2544. title: settle value
  2545. primary_username:
  2546. type: string
  2547. description: 主账号登录名(空则默认「{团队名}主账号」)
  2548. title: primary username
  2549. primary_name:
  2550. type: string
  2551. description: 主账号姓名(档案名,1~64 字符;空=未填,列表回落显示登录名)
  2552. title: primary name
  2553. primary_mobile:
  2554. type: string
  2555. description: 主账号手机号(可选)
  2556. title: primary mobile
  2557. required:
  2558. - team_name
  2559. - region_node_id
  2560. - ticket_types
  2561. - dispatch_mode
  2562. title: 新建运维团队请求数据
  2563. required:
  2564. - data
  2565. x-error-codes: [60053, 60054, 60068, 60082]
  2566. responses:
  2567. '200':
  2568. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2569. content:
  2570. application/json:
  2571. schema:
  2572. $ref: '#/components/schemas/ApiResponseOpsTeamCreate'
  2573. /ops_team/update@v1:
  2574. post:
  2575. summary: 编辑运维团队
  2576. description: 编辑团队资料。注意:团队不分类型,请求体无 team_type 键。
  2577. operationId: ops_team_update
  2578. tags:
  2579. - 运维团队与成员
  2580. x-require-auth: true
  2581. x-resource-type:
  2582. $ref: '#/components/x-resource-types/ops_team/code'
  2583. x-action:
  2584. $ref: '#/components/x-actions/update/code'
  2585. x-version: v1
  2586. x-permission-visibility: catalog
  2587. requestBody:
  2588. required: true
  2589. description: JSON 请求体,业务字段置于 data
  2590. content:
  2591. application/json:
  2592. schema:
  2593. type: object
  2594. description: 统一信封请求体,业务字段放在 data 内
  2595. properties:
  2596. data:
  2597. type: object
  2598. description: 编辑运维团队请求参数
  2599. properties:
  2600. team_id:
  2601. type: string
  2602. description: 团队 ID
  2603. title: 团队 ID
  2604. team_name:
  2605. type: string
  2606. description: 团队名称
  2607. title: 团队名称
  2608. region_node_id:
  2609. type: string
  2610. description: 所属区域节点 ID
  2611. title: 区域节点 ID
  2612. ticket_types:
  2613. type: array
  2614. description: 可派工单类型列表(整体替换,至少 1 项; 含 `renewal`——续签单只由运营账号受理)
  2615. items:
  2616. type: string
  2617. description: 工单类型码
  2618. title: ticket_types元素
  2619. title: 工单类型清单
  2620. settle_mode:
  2621. type: string
  2622. description: 结算方式
  2623. title: settle mode
  2624. settle_value:
  2625. type: number
  2626. description: 结算值
  2627. title: settle value
  2628. row_version:
  2629. type: integer
  2630. description: |-
  2631. 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。
  2632. title: 乐观锁版本
  2633. minimum: 1
  2634. required:
  2635. - team_id
  2636. - row_version
  2637. title: 编辑运维团队请求数据
  2638. required:
  2639. - data
  2640. x-error-codes: [60001, 60004, 60053, 60054, 60068, 60082]
  2641. responses:
  2642. '200':
  2643. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2644. content:
  2645. application/json:
  2646. schema:
  2647. $ref: '#/components/schemas/ApiResponseOpsTeamUpdate'
  2648. /ops_team/delete@v1:
  2649. post:
  2650. summary: 删除运维团队
  2651. description: 删除前校验引用与未办完工单等守卫。
  2652. operationId: ops_team_delete
  2653. tags:
  2654. - 运维团队与成员
  2655. x-require-auth: true
  2656. x-resource-type:
  2657. $ref: '#/components/x-resource-types/ops_team/code'
  2658. x-action:
  2659. $ref: '#/components/x-actions/delete/code'
  2660. x-version: v1
  2661. x-permission-visibility: catalog
  2662. requestBody:
  2663. required: true
  2664. description: JSON 请求体,业务字段置于 data
  2665. content:
  2666. application/json:
  2667. schema:
  2668. type: object
  2669. description: 统一信封请求体,业务字段放在 data 内
  2670. properties:
  2671. data:
  2672. type: object
  2673. description: 删除运维团队请求参数
  2674. properties:
  2675. team_id:
  2676. type: string
  2677. description: 团队 ID
  2678. title: 团队 ID
  2679. required:
  2680. - team_id
  2681. title: 删除运维团队请求数据
  2682. required:
  2683. - data
  2684. x-error-codes: [60053, 60054, 60068, 60082]
  2685. responses:
  2686. '200':
  2687. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2688. content:
  2689. application/json:
  2690. schema:
  2691. $ref: '#/components/schemas/ApiResponseOpsTeamDelete'
  2692. /ops_team/scope/save@v1:
  2693. post:
  2694. summary: 保存运维团队负责范围
  2695. description: 三个范围写入口之一。同事务校验范围包含关系与未办完工单守卫;失败两侧都不落库。与其它运维团队区域子树/点客户互斥(KLT-T216);异类可并存。
  2696. operationId: ops_team_scope_save
  2697. tags:
  2698. - 运维团队与成员
  2699. x-require-auth: true
  2700. x-resource-type:
  2701. $ref: '#/components/x-resource-types/ops_team_scope/code'
  2702. x-action:
  2703. $ref: '#/components/x-actions/manage/code'
  2704. x-version: v1
  2705. x-permission-visibility: catalog
  2706. requestBody:
  2707. required: true
  2708. description: JSON 请求体,业务字段置于 data
  2709. content:
  2710. application/json:
  2711. schema:
  2712. type: object
  2713. description: 统一信封请求体,业务字段放在 data 内
  2714. properties:
  2715. data:
  2716. type: object
  2717. description: 保存运维团队负责范围请求参数
  2718. properties:
  2719. team_id:
  2720. type: string
  2721. description: 团队 ID
  2722. title: 团队 ID
  2723. region_node_ids:
  2724. type: array
  2725. description: 负责区域节点 ID 列表
  2726. items:
  2727. type: string
  2728. description: 区域节点 ID
  2729. title: region_node_ids元素
  2730. title: region node ids
  2731. customer_ids:
  2732. type: array
  2733. description: 负责客户 ID 列表(可空)
  2734. items:
  2735. type: string
  2736. description: 客户 ID
  2737. title: customer_ids元素
  2738. title: customer ids
  2739. required:
  2740. - team_id
  2741. title: 保存运维团队负责范围请求数据
  2742. required:
  2743. - data
  2744. x-error-codes: [60053, 60054, 60068, 60082, 60095, 60096]
  2745. responses:
  2746. '200':
  2747. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2748. content:
  2749. application/json:
  2750. schema:
  2751. $ref: '#/components/schemas/ApiResponseOpsTeamScopeSave'
  2752. /ops_team/member_add@v1:
  2753. post:
  2754. summary: 添加运维成员
  2755. description: 新建成员档案(含成员姓名)并开通运维子账号(`role_code=ops`)。注意:成员不分类型,服务侧只校验 `ticket_types`
  2756. 是团队可分配类型的子集(`KLT-`,可为空=不接单)。注意: `ticket_mode`
  2757. 与负责范围同构:`follow_team`=随团队(成员级零行),`custom`=勾选子集。注意:`renewal` 不属于运维可承接类型(续签单只由运营账号受理,。
  2758. operationId: ops_team_member_add
  2759. tags:
  2760. - 运维团队与成员
  2761. x-require-auth: true
  2762. x-resource-type:
  2763. $ref: '#/components/x-resource-types/ops_team/code'
  2764. x-action:
  2765. $ref: '#/components/x-actions/manage/code'
  2766. x-version: v1
  2767. x-permission-visibility: catalog
  2768. requestBody:
  2769. required: true
  2770. description: JSON 请求体,业务字段置于 data
  2771. content:
  2772. application/json:
  2773. schema:
  2774. type: object
  2775. description: 统一信封请求体,业务字段放在 data 内
  2776. properties:
  2777. data:
  2778. type: object
  2779. description: 添加运维成员请求参数
  2780. properties:
  2781. team_id:
  2782. type: string
  2783. description: 团队 ID
  2784. title: 团队 ID
  2785. ticket_types:
  2786. type: array
  2787. description: 该成员可处理的工单类型(须为团队可分配类型的子集;空数组=不接单,如录入人员; 含
  2788. `renewal`——续签单只由运营账号受理)。`ticket_mode=follow_team` 时不得传本键
  2789. items:
  2790. type: string
  2791. description: 工单类型码
  2792. title: ticket_types元素
  2793. title: 工单类型清单
  2794. ticket_mode:
  2795. type: string
  2796. description:
  2797. 可处理类型形态:follow_team=随团队可分配类型(成员级零行,团队改类型自动跟随);custom=勾选子集。缺省=follow_team(/OR-14:与负责范围默认同构;显式
  2798. custom 且不带 ticket_types=不接单)
  2799. enum:
  2800. - follow_team
  2801. - custom
  2802. title: ticket mode
  2803. username:
  2804. type: string
  2805. description: 登录名
  2806. title: 登录名
  2807. name:
  2808. type: string
  2809. description: 成员姓名(必填;1~64 字符、不含控制字符;契约字段=`name`,。与登录名分列,列表「成员」列显示该值
  2810. title: 名称
  2811. display_name:
  2812. type: string
  2813. description: 成员姓名别名(;与 `name` 同义,优先用 `name`)
  2814. title: 显示名
  2815. mobile:
  2816. type: string
  2817. description: 手机号(可选)
  2818. title: 手机号
  2819. required:
  2820. - team_id
  2821. - username
  2822. - name
  2823. title: 添加运维成员请求数据
  2824. required:
  2825. - data
  2826. x-error-codes: [60053, 60054, 60068, 60082]
  2827. responses:
  2828. '200':
  2829. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2830. content:
  2831. application/json:
  2832. schema:
  2833. $ref: '#/components/schemas/ApiResponseOpsTeamMemberAdd'
  2834. /ops_team/member_update@v1:
  2835. post:
  2836. summary: 更新运维成员
  2837. description: 可改成员姓名、手机号与可处理工单类型(形态+子集,各字段缺省=不改)。注意:成员不分类型,不因类型变更改写 role_code;`custom` 时子集落
  2838. ops_member_ticket_type,`follow_team` 时清空该成员行并随团队类型。
  2839. operationId: ops_team_member_update
  2840. tags:
  2841. - 运维团队与成员
  2842. x-require-auth: true
  2843. x-resource-type:
  2844. $ref: '#/components/x-resource-types/ops_team/code'
  2845. x-action:
  2846. $ref: '#/components/x-actions/manage/code'
  2847. x-version: v1
  2848. x-permission-visibility: catalog
  2849. requestBody:
  2850. required: true
  2851. description: JSON 请求体,业务字段置于 data
  2852. content:
  2853. application/json:
  2854. schema:
  2855. type: object
  2856. description: 统一信封请求体,业务字段放在 data 内
  2857. properties:
  2858. data:
  2859. type: object
  2860. description: 更新运维成员请求参数
  2861. properties:
  2862. team_id:
  2863. type: string
  2864. description: 团队 ID
  2865. title: 团队 ID
  2866. ticket_types:
  2867. type: array
  2868. description: 该成员可处理的工单类型(整体替换;须为团队可分配类型的子集;空数组=不接单; 含
  2869. `renewal`——续签单只由运营账号受理)。`ticket_mode=follow_team` 时不得传本键
  2870. items:
  2871. type: string
  2872. description: 工单类型码
  2873. title: ticket_types元素
  2874. title: 工单类型清单
  2875. ticket_mode:
  2876. type: string
  2877. description: 可处理类型形态:follow_team=随团队(清空该成员的类型行);custom=按 ticket_types
  2878. 整体替换。缺省且带 ticket_types ⇒ 按 custom;都不带 ⇒ 不动类型
  2879. enum:
  2880. - follow_team
  2881. - custom
  2882. title: ticket mode
  2883. member_id:
  2884. type: string
  2885. description: 成员 ID
  2886. title: 成员 ID
  2887. name:
  2888. type: string
  2889. description: 成员姓名新值(契约字段=`name`,;1~64 字符、不含控制字符;缺省=不改,空串非法
  2890. title: 名称
  2891. display_name:
  2892. type: string
  2893. description: 成员姓名别名(;与 `name` 同义)
  2894. title: 显示名
  2895. mobile:
  2896. type: string
  2897. description: 手机号(可选)
  2898. title: 手机号
  2899. required:
  2900. - team_id
  2901. - member_id
  2902. title: 更新运维成员请求数据
  2903. required:
  2904. - data
  2905. x-error-codes: [60053, 60054, 60068, 60082]
  2906. responses:
  2907. '200':
  2908. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2909. content:
  2910. application/json:
  2911. schema:
  2912. $ref: '#/components/schemas/ApiResponseOpsTeamMemberUpdate'
  2913. /ops_team/transfer_primary@v1:
  2914. post:
  2915. summary: 转交运维团队主账号
  2916. description: 总运营/运维主账号可办;同事务切换两人的 is_primary 并同步
  2917. role_code(teamLead↔ops),新主账号可处理类型强制随团队;登录名与负责范围不变。
  2918. operationId: ops_team_transfer_primary
  2919. tags:
  2920. - 运维团队与成员
  2921. x-require-auth: true
  2922. x-resource-type:
  2923. $ref: '#/components/x-resource-types/ops_team/code'
  2924. x-action:
  2925. $ref: '#/components/x-actions/manage/code'
  2926. x-version: v1
  2927. x-permission-visibility: catalog
  2928. requestBody:
  2929. required: true
  2930. description: JSON 请求体,业务字段置于 data
  2931. content:
  2932. application/json:
  2933. schema:
  2934. type: object
  2935. description: 统一信封请求体,业务字段放在 data 内
  2936. properties:
  2937. data:
  2938. type: object
  2939. description: 转交运维团队主账号请求参数
  2940. properties:
  2941. team_id:
  2942. type: string
  2943. description: 团队 ID
  2944. title: 团队 ID
  2945. from_member_id:
  2946. type: string
  2947. description: 原主账号成员 ID
  2948. title: from member id
  2949. to_member_id:
  2950. type: string
  2951. description: 新主账号成员 ID(须同团队)
  2952. title: to member id
  2953. required:
  2954. - team_id
  2955. - from_member_id
  2956. - to_member_id
  2957. title: 转交运维团队主账号请求数据
  2958. required:
  2959. - data
  2960. x-error-codes: [60053, 60054, 60068]
  2961. responses:
  2962. '200':
  2963. description: 成功时 code=10000;失败时查看 code/message/error_code。
  2964. content:
  2965. application/json:
  2966. schema:
  2967. $ref: '#/components/schemas/ApiResponseOpsTeamTransferPrimary'
  2968. /ops_team/member_remove@v1:
  2969. post:
  2970. summary: 移除运维成员
  2971. description: 删除前五项检查并注销账号。
  2972. operationId: ops_team_member_remove
  2973. tags:
  2974. - 运维团队与成员
  2975. x-require-auth: true
  2976. x-resource-type:
  2977. $ref: '#/components/x-resource-types/ops_team/code'
  2978. x-action:
  2979. $ref: '#/components/x-actions/manage/code'
  2980. x-version: v1
  2981. x-permission-visibility: catalog
  2982. requestBody:
  2983. required: true
  2984. description: JSON 请求体,业务字段置于 data
  2985. content:
  2986. application/json:
  2987. schema:
  2988. type: object
  2989. description: 统一信封请求体,业务字段放在 data 内
  2990. properties:
  2991. data:
  2992. type: object
  2993. description: 移除运维成员请求参数
  2994. properties:
  2995. team_id:
  2996. type: string
  2997. description: 团队 ID
  2998. title: 团队 ID
  2999. member_id:
  3000. type: string
  3001. description: 成员 ID
  3002. title: 成员 ID
  3003. required:
  3004. - team_id
  3005. - member_id
  3006. title: 移除运维成员请求数据
  3007. required:
  3008. - data
  3009. x-error-codes: [60053, 60054, 60068, 60082]
  3010. responses:
  3011. '200':
  3012. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3013. content:
  3014. application/json:
  3015. schema:
  3016. $ref: '#/components/schemas/ApiResponseOpsTeamMemberRemove'
  3017. /ops_member/scope/save@v1:
  3018. post:
  3019. summary: 保存运维成员负责范围
  3020. description: 三个范围写入口之二。scope_mode∈follow_team/region/customer;越界报错不保存。
  3021. operationId: ops_member_scope_save
  3022. tags:
  3023. - 运维团队与成员
  3024. x-require-auth: true
  3025. x-resource-type:
  3026. $ref: '#/components/x-resource-types/ops_member_scope/code'
  3027. x-action:
  3028. $ref: '#/components/x-actions/manage/code'
  3029. x-version: v1
  3030. x-permission-visibility: catalog
  3031. requestBody:
  3032. required: true
  3033. description: JSON 请求体,业务字段置于 data
  3034. content:
  3035. application/json:
  3036. schema:
  3037. type: object
  3038. description: 统一信封请求体,业务字段放在 data 内
  3039. properties:
  3040. data:
  3041. type: object
  3042. description: 保存运维成员负责范围请求参数
  3043. properties:
  3044. member_id:
  3045. type: string
  3046. description: 成员 ID
  3047. title: 成员 ID
  3048. scope_mode:
  3049. type: string
  3050. description: 范围模式:follow_team=跟随团队;region=按区域;customer=按客户
  3051. enum:
  3052. - follow_team
  3053. - region
  3054. - customer
  3055. title: 可见形态
  3056. targets:
  3057. type: array
  3058. description: region/customer 模式下的目标 ID 列表
  3059. items:
  3060. type: string
  3061. description: 目标 ID
  3062. title: targets元素
  3063. title: targets
  3064. required:
  3065. - member_id
  3066. - scope_mode
  3067. title: 保存运维成员负责范围请求数据
  3068. required:
  3069. - data
  3070. x-error-codes: [60053, 60054, 60068, 60082]
  3071. responses:
  3072. '200':
  3073. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3074. content:
  3075. application/json:
  3076. schema:
  3077. $ref: '#/components/schemas/ApiResponseOpsMemberScopeSave'
  3078. /ops_team/dispatch_mode/update@v1:
  3079. post:
  3080. summary: 更新分派方式
  3081. description: |-
  3082. 与运营侧改同一字段,后写入者生效;默认补记审计。
  3083. data 仅接受 team_id/dispatch_mode;顶层未知键 ⇒ 60004(BUG-3D-43)。
  3084. teamLead 仅可改本团队,跨团队 ⇒ 60058。
  3085. operationId: ops_team_dispatch_mode_update
  3086. tags:
  3087. - 运维团队与成员
  3088. x-require-auth: true
  3089. x-resource-type:
  3090. $ref: '#/components/x-resource-types/ops_team_dispatch_mode/code'
  3091. x-action:
  3092. $ref: '#/components/x-actions/update/code'
  3093. x-version: v1
  3094. x-permission-visibility: catalog
  3095. requestBody:
  3096. required: true
  3097. description: JSON 请求体,业务字段置于 data
  3098. content:
  3099. application/json:
  3100. schema:
  3101. type: object
  3102. description: 统一信封请求体,业务字段放在 data 内
  3103. properties:
  3104. data:
  3105. type: object
  3106. description: 更新分派方式请求参数
  3107. properties:
  3108. team_id:
  3109. type: string
  3110. description: 团队 ID
  3111. title: 团队 ID
  3112. dispatch_mode:
  3113. type: string
  3114. description: 分派方式:manual=手工;auto_avg=自动均分
  3115. enum:
  3116. - manual
  3117. - auto_avg
  3118. title: dispatch mode
  3119. additionalProperties: false
  3120. required:
  3121. - team_id
  3122. - dispatch_mode
  3123. title: 更新分派方式请求数据
  3124. required:
  3125. - data
  3126. x-error-codes: [60004, 60053, 60054, 60058, 60068, 60082]
  3127. responses:
  3128. '200':
  3129. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3130. content:
  3131. application/json:
  3132. schema:
  3133. $ref: '#/components/schemas/ApiResponseOpsTeamDispatchModeUpdate'
  3134. /ops_team/coverage/get@v1:
  3135. post:
  3136. summary: 运维团队覆盖客户
  3137. description: 覆盖客户=团队区域范围(Tree) ∩ 本类型归属(Owner),与列表分页同源。注意: 由 GET 改 POST(R-5)。
  3138. operationId: ops_team_coverage_get
  3139. tags:
  3140. - 运维团队与成员
  3141. x-require-auth: true
  3142. x-resource-type:
  3143. $ref: '#/components/x-resource-types/ops_team_coverage/code'
  3144. x-action:
  3145. $ref: '#/components/x-actions/view/code'
  3146. x-version: v1
  3147. x-permission-visibility: catalog
  3148. x-enumeration-kind: list
  3149. requestBody:
  3150. required: true
  3151. description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
  3152. content:
  3153. application/json:
  3154. schema:
  3155. type: object
  3156. properties:
  3157. data:
  3158. type: object
  3159. description: 运维团队覆盖客户的请求字段,置于统一信封 data 内。
  3160. additionalProperties: false
  3161. properties: {}
  3162. title: 运维团队覆盖客户请求数据
  3163. required:
  3164. - data
  3165. x-error-codes: [60053, 60054, 60068, 60082]
  3166. responses:
  3167. '200':
  3168. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3169. content:
  3170. application/json:
  3171. schema:
  3172. $ref: '#/components/schemas/ApiResponseOpsTeamCoverageGet'
  3173. /customer/create@v1:
  3174. post:
  3175. summary: 新建客户
  3176. description: 客户建档(Opt-11 先挂树后建档)。`mount_request_id` 与 `parent_node_id` 至少给一个:给
  3177. `parent_node_id` 时由本接口完成「发号 → 平台资源树注册客户实例 → 回填挂载事实」;给 `mount_request_id` 时就近认领已存在的挂载申请。同时按
  3178. 为客户开通主账号(`primary_username` 留空=按主体号自动派生)。完整弹窗字段还可含识别号、联系人、地址、运维团队等。
  3179. operationId: customer_create
  3180. tags:
  3181. - 客户管理
  3182. x-require-auth: true
  3183. x-resource-type:
  3184. $ref: '#/components/x-resource-types/customer/code'
  3185. x-action:
  3186. $ref: '#/components/x-actions/create/code'
  3187. x-version: v1
  3188. x-permission-visibility: catalog
  3189. requestBody:
  3190. required: true
  3191. description: JSON 请求体,业务字段置于 data
  3192. content:
  3193. application/json:
  3194. schema:
  3195. type: object
  3196. description: 统一信封请求体,业务字段放在 data 内
  3197. properties:
  3198. data:
  3199. type: object
  3200. description: 新建客户请求参数
  3201. properties:
  3202. customer_name:
  3203. type: string
  3204. description: 客户名称
  3205. title: 客户名称
  3206. subject_type:
  3207. type: string
  3208. description: 主体类型
  3209. title: 主体类型
  3210. operator_id:
  3211. type: string
  3212. description: 归属运营商 ID
  3213. title: 运营商 ID
  3214. partner_id:
  3215. type: string
  3216. description: 归属合伙人 ID(可选)
  3217. title: 合伙人 ID
  3218. mount_request_id:
  3219. type: string
  3220. description: 挂载申请 ID(与 parent_node_id 二选一;有值=认领已有的挂载事实)
  3221. title: mount request id
  3222. parent_node_id:
  3223. type: string
  3224. description: 所挂区域父节点 ID(与 mount_request_id 二选一;有值=由本接口完成平台挂树并回填挂载事实)
  3225. title: 父节点 ID
  3226. id_code:
  3227. type: string
  3228. description: 识别号(可选)
  3229. title: id code
  3230. contact_name:
  3231. type: string
  3232. description: 联系人(可选)
  3233. title: contact name
  3234. contact_mobile:
  3235. type: string
  3236. description: 联系电话(可选)
  3237. title: contact mobile
  3238. tech_contact_name:
  3239. type: string
  3240. description: 技术联系人姓名(可选)
  3241. title: tech contact name
  3242. tech_contact_mobile:
  3243. type: string
  3244. description: 技术联系人电话(可选)
  3245. title: tech contact mobile
  3246. finance_contact_name:
  3247. type: string
  3248. description: 财务联系人姓名(可选)
  3249. title: finance contact name
  3250. finance_contact_mobile:
  3251. type: string
  3252. description: 财务联系人电话(可选)
  3253. title: finance contact mobile
  3254. remark:
  3255. type: string
  3256. description: 客户备注(可选,≤512 字)
  3257. title: 备注
  3258. address:
  3259. type: string
  3260. description: 地址(可选)
  3261. title: address
  3262. ops_team_ids:
  3263. type: array
  3264. description: 所挂运维团队 ID(**组形态仅兼容调用方;缺支/空数组/>1 支一律拒绝,且须在操作人负责范围内)
  3265. items:
  3266. type: string
  3267. description: 运维团队 ID
  3268. title: ops_team_ids元素
  3269. title: ops team ids
  3270. primary_username:
  3271. type: string
  3272. description: 客户主账号登录名(可选;留空=按主体号自动派生)。本接口自行调平台 iam-user/user/create@v1 建号
  3273. title: primary username
  3274. primary_mobile:
  3275. type: string
  3276. description: 客户主账号手机号(可选)
  3277. title: primary mobile
  3278. license:
  3279. type: object
  3280. description: 登记材料(营业执照影像,/;`` )。选填(, 强制登记)。影像本体由浏览器持自身账号票直传平台
  3281. `unified-oss`(本服务不收字节流、不开上传接口),建档只回报落库用的对象键+原始文件名。`object_key` 必须落在
  3282. `klt/customer/license/` 前缀下
  3283. properties:
  3284. object_key:
  3285. type: string
  3286. description: 平台 unified-oss 逻辑键(1–512 字符,须以 klt/customer/license/ 开头;不得是
  3287. URL/签名链接)
  3288. file_name:
  3289. type: string
  3290. description: 原始文件名(1–128 字符,不含路径分隔符;仅供页面展示)
  3291. required:
  3292. - object_key
  3293. - file_name
  3294. title: 登记材料
  3295. required:
  3296. - customer_name
  3297. - subject_type
  3298. - operator_id
  3299. title: 新建客户请求数据
  3300. required:
  3301. - data
  3302. x-error-codes: [60056, 60064, 60108, 60117]
  3303. responses:
  3304. '200':
  3305. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3306. content:
  3307. application/json:
  3308. schema:
  3309. $ref: '#/components/schemas/ApiResponseCustomerCreate'
  3310. /customer/get_list@v1:
  3311. post:
  3312. summary: 客户列表
  3313. description: 按可见范围返回客户列表,支持筛选与分页。
  3314. operationId: customer_get_list
  3315. tags:
  3316. - 客户管理
  3317. x-require-auth: true
  3318. x-resource-type:
  3319. $ref: '#/components/x-resource-types/customer/code'
  3320. x-action:
  3321. $ref: '#/components/x-actions/list/code'
  3322. x-version: v1
  3323. x-permission-visibility: catalog
  3324. # 注意:声明本身不改变本轮可见范围:handler 现按 customer_scope_pred 收窄
  3325. x-enumeration-kind: list
  3326. requestBody:
  3327. required: true
  3328. description: JSON 请求体,业务字段置于 data
  3329. content:
  3330. application/json:
  3331. schema:
  3332. type: object
  3333. description: 统一信封请求体,业务字段放在 data 内
  3334. properties:
  3335. data:
  3336. type: object
  3337. description: 列表筛选参数
  3338. properties:
  3339. page:
  3340. type: integer
  3341. description: 页码(0 基索引,默认 0)
  3342. minimum: 0
  3343. default: 0
  3344. title: 页码
  3345. page_size:
  3346. type: integer
  3347. description: 每页条数(默认 20,上限 200)
  3348. minimum: 1
  3349. maximum: 200
  3350. default: 20
  3351. title: 每页条数
  3352. keyword:
  3353. type: string
  3354. description: 关键字筛选(可选)
  3355. title: 关键字
  3356. region_node_id:
  3357. type: string
  3358. description: 区域筛选(可选)
  3359. title: 区域节点 ID
  3360. operator_id:
  3361. type: string
  3362. description: 运营商筛选(可选)
  3363. title: 运营商 ID
  3364. partner_id:
  3365. type: string
  3366. description: 合伙人筛选(可选)
  3367. title: 合伙人 ID
  3368. status:
  3369. type: string
  3370. description: 状态筛选(可选)
  3371. title: 状态
  3372. title: 客户列表请求数据
  3373. required:
  3374. - data
  3375. x-error-codes: [60056, 60064, 60108, 60117]
  3376. responses:
  3377. '200':
  3378. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3379. content:
  3380. application/json:
  3381. schema:
  3382. $ref: '#/components/schemas/ApiResponseCustomerGetList'
  3383. /customer/get@v1:
  3384. post:
  3385. summary: 客户详情
  3386. description: |-
  3387. 按客户 ID 查询档案详情。 返回主体资料(含经办联系人、联系电话、地址与脱敏识别号)、当期团队、区域挂载、分账号数量,
  3388. 以及登记材料摘要 `license`(对象键、文件名、是否待补等)。
  3389. operationId: customer_get
  3390. tags:
  3391. - 客户管理
  3392. x-require-auth: true
  3393. x-resource-type:
  3394. $ref: '#/components/x-resource-types/customer/code'
  3395. x-action:
  3396. $ref: '#/components/x-actions/view/code'
  3397. x-version: v1
  3398. x-permission-visibility: catalog
  3399. requestBody:
  3400. required: true
  3401. description: JSON 请求体,业务字段置于 data
  3402. content:
  3403. application/json:
  3404. schema:
  3405. type: object
  3406. description: 统一信封请求体,业务字段放在 data 内
  3407. properties:
  3408. data:
  3409. type: object
  3410. description: 客户详情请求参数
  3411. properties:
  3412. customer_id:
  3413. type: string
  3414. description: 客户 ID
  3415. title: 客户 ID
  3416. required:
  3417. - customer_id
  3418. title: 客户详情请求数据
  3419. required:
  3420. - data
  3421. x-error-codes: [60005, 60056, 60064, 60117]
  3422. responses:
  3423. '200':
  3424. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3425. content:
  3426. application/json:
  3427. schema:
  3428. $ref: '#/components/schemas/ApiResponseCustomerGet'
  3429. /customer/update@v1:
  3430. post:
  3431. summary: 编辑客户
  3432. description: >-
  3433. 编辑客户资料。拒收改写 customer_id/region_node_id/operator_id/partner_id;改识别号时 change_basis 选填(留空按 NULL 留痕,
  3434. 因缺依据拒写)。 `row_version` 必填:缺省 ⇒ `60004`;与库内不符 ⇒ `KLT-S407`/`60001`, 不带版本静默覆盖。 登记材料换图或随主体变更撤销时,旧对象即时删除(平台
  3435. `unified-oss/object/delete@v1`,K ; 生命周期回收只兜「到期」,不替代即时删除)。删除为 best-effort:主表此刻已指向新对象, 删除失败不回退整笔,只告警并由运维补删。
  3436. `license_object_delete{status,reason,deleted?,failed_codes?,error?}`: `not_applicable`(未动影像/键未变)/`deleted`/`partial`/`failed`。注意:对象键不上响应体。
  3437. operationId: customer_update
  3438. tags:
  3439. - 客户管理
  3440. x-require-auth: true
  3441. x-resource-type:
  3442. $ref: '#/components/x-resource-types/customer/code'
  3443. x-action:
  3444. $ref: '#/components/x-actions/update/code'
  3445. x-version: v1
  3446. x-permission-visibility: catalog
  3447. requestBody:
  3448. required: true
  3449. description: JSON 请求体,业务字段置于 data
  3450. content:
  3451. application/json:
  3452. schema:
  3453. type: object
  3454. description: 统一信封请求体,业务字段放在 data 内
  3455. properties:
  3456. data:
  3457. type: object
  3458. description: 编辑客户请求参数
  3459. properties:
  3460. customer_id:
  3461. type: string
  3462. description: 客户 ID
  3463. title: 客户 ID
  3464. customer_name:
  3465. type: string
  3466. description: 客户名称
  3467. title: 客户名称
  3468. subject_type:
  3469. type: string
  3470. description: 主体类型
  3471. title: 主体类型
  3472. id_code:
  3473. type: string
  3474. description: 识别号
  3475. title: id code
  3476. change_basis:
  3477. type: string
  3478. description: 改识别号时的变更依据
  3479. title: 变更依据
  3480. contact_name:
  3481. type: string
  3482. description: 联系人
  3483. title: contact name
  3484. contact_mobile:
  3485. type: string
  3486. description: 联系电话
  3487. title: contact mobile
  3488. tech_contact_name:
  3489. type: string
  3490. description: 技术联系人姓名(给了才改)
  3491. title: tech contact name
  3492. tech_contact_mobile:
  3493. type: string
  3494. description: 技术联系人电话(给了才改)
  3495. title: tech contact mobile
  3496. finance_contact_name:
  3497. type: string
  3498. description: 财务联系人姓名(给了才改)
  3499. title: finance contact name
  3500. finance_contact_mobile:
  3501. type: string
  3502. description: 财务联系人电话(给了才改)
  3503. title: finance contact mobile
  3504. remark:
  3505. type: string
  3506. description: 客户备注(给了才改;空串=清空;≤512 字)
  3507. title: 备注
  3508. address:
  3509. type: string
  3510. description: 地址
  3511. title: address
  3512. ops_team_ids:
  3513. type: array
  3514. description: 改派运维团队(整体替换当前归属;**拒绝,>1 支⇒拒绝;不提交=不改动)
  3515. items:
  3516. type: string
  3517. description: 运维团队 ID
  3518. title: ops_team_ids元素
  3519. title: ops team ids
  3520. row_version:
  3521. type: integer
  3522. description: 乐观锁版本(必填;缺省=60004,不符=KLT-S407/60001)
  3523. title: 乐观锁版本
  3524. license:
  3525. type: object
  3526. description: 登记材料(营业执照影像)整对替换( 补传/替换,写入口只在本分区)。选填(,
  3527. 强制登记)。不提交=本次不动影像(不清空);唯一例外:本次把 `subject_type`
  3528. 改为非企业(`individual`/`sole_proprietor`)且库内有影像 ⇒ 影像随本笔同批撤销(两列置
  3529. `NULL`+`license_file_name` 变更留痕,见 );企业→企业不带 `license`
  3530. 一律不动影像;库内无影像且本次也不提交时照常保存其余字段。`object_key` 须落在 `klt/customer/license/` 下
  3531. properties:
  3532. object_key:
  3533. type: string
  3534. description: 平台 unified-oss 逻辑键(1–512 字符,须以 klt/customer/license/ 开头)
  3535. file_name:
  3536. type: string
  3537. description: 原始文件名(1–128 字符,不含路径分隔符)
  3538. required:
  3539. - object_key
  3540. - file_name
  3541. title: 登记材料
  3542. required:
  3543. - customer_id
  3544. - row_version
  3545. title: 编辑客户请求数据
  3546. required:
  3547. - data
  3548. x-error-codes: [60001, 60004, 60056, 60064, 60108, 60117]
  3549. responses:
  3550. '200':
  3551. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3552. content:
  3553. application/json:
  3554. schema:
  3555. $ref: '#/components/schemas/ApiResponseCustomerUpdate'
  3556. /customer/delete_precheck@v1:
  3557. post:
  3558. summary: 客户删除前置检查
  3559. description: 返回 can_delete 与 reasons,供删除确认弹窗使用。
  3560. operationId: customer_delete_precheck
  3561. tags:
  3562. - 客户管理
  3563. x-require-auth: true
  3564. x-resource-type:
  3565. $ref: '#/components/x-resource-types/customer/code'
  3566. x-action:
  3567. $ref: '#/components/x-actions/view/code'
  3568. x-version: v1
  3569. x-permission-visibility: catalog
  3570. requestBody:
  3571. required: true
  3572. description: JSON 请求体,业务字段置于 data
  3573. content:
  3574. application/json:
  3575. schema:
  3576. type: object
  3577. description: 统一信封请求体,业务字段放在 data 内
  3578. properties:
  3579. data:
  3580. type: object
  3581. description: 客户删除前置检查请求参数
  3582. properties:
  3583. customer_id:
  3584. type: string
  3585. description: 客户 ID
  3586. title: 客户 ID
  3587. required:
  3588. - customer_id
  3589. title: 客户删除前置检查请求数据
  3590. required:
  3591. - data
  3592. x-error-codes: [60056, 60064, 60108, 60117]
  3593. responses:
  3594. '200':
  3595. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3596. content:
  3597. application/json:
  3598. schema:
  3599. $ref: '#/components/schemas/ApiResponseCustomerDeletePrecheck'
  3600. /customer/delete@v1:
  3601. post:
  3602. summary: 删除客户
  3603. description: |
  3604. 删除客户。须先调 `/customer/delete_precheck@v1` 取得回执中的
  3605. `precheck_version`,再原样带回本口(阻塞快照版本,防「检查后依赖发生变化」);
  3606. 缺省/空串/与当前快照不符 ⇒ `60004`。
  3607. operationId: customer_delete
  3608. tags:
  3609. - 客户管理
  3610. x-require-auth: true
  3611. x-resource-type:
  3612. $ref: '#/components/x-resource-types/customer/code'
  3613. x-action:
  3614. $ref: '#/components/x-actions/delete/code'
  3615. x-version: v1
  3616. x-permission-visibility: catalog
  3617. requestBody:
  3618. required: true
  3619. description: JSON 请求体,业务字段置于 data
  3620. content:
  3621. application/json:
  3622. schema:
  3623. type: object
  3624. description: 统一信封请求体,业务字段放在 data 内
  3625. properties:
  3626. data:
  3627. type: object
  3628. description: 删除客户请求参数
  3629. properties:
  3630. customer_id:
  3631. type: string
  3632. description: 客户 ID
  3633. title: 客户 ID
  3634. precheck_version:
  3635. type: string
  3636. description: |
  3637. 删除前置检查快照版本(必填;取自 `/customer/delete_precheck@v1`
  3638. 回执 `precheck_version`,⛔ 自造/过期值)
  3639. title: precheck version
  3640. required:
  3641. - customer_id
  3642. - precheck_version
  3643. title: 删除客户请求数据
  3644. required:
  3645. - data
  3646. x-error-codes: [60004, 60056, 60064, 60108, 60117]
  3647. responses:
  3648. '200':
  3649. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3650. content:
  3651. application/json:
  3652. schema:
  3653. $ref: '#/components/schemas/ApiResponseCustomerDelete'
  3654. /customer/history@v1:
  3655. post:
  3656. summary: 客户变更历史
  3657. description: 查询客户档案变更流水。
  3658. operationId: customer_history
  3659. tags:
  3660. - 客户管理
  3661. x-require-auth: true
  3662. x-resource-type:
  3663. $ref: '#/components/x-resource-types/customer/code'
  3664. x-action:
  3665. $ref: '#/components/x-actions/view/code'
  3666. x-version: v1
  3667. x-permission-visibility: catalog
  3668. requestBody:
  3669. required: true
  3670. description: JSON 请求体,业务字段置于 data
  3671. content:
  3672. application/json:
  3673. schema:
  3674. type: object
  3675. description: 统一信封请求体,业务字段放在 data 内
  3676. properties:
  3677. data:
  3678. type: object
  3679. description: 客户变更历史请求参数
  3680. properties:
  3681. customer_id:
  3682. type: string
  3683. description: 客户 ID
  3684. title: 客户 ID
  3685. page:
  3686. type: integer
  3687. description: 页码(0 基索引,默认 0)
  3688. minimum: 0
  3689. default: 0
  3690. title: 页码
  3691. page_size:
  3692. type: integer
  3693. description: 每页条数(默认 20,上限 200)
  3694. minimum: 1
  3695. maximum: 200
  3696. default: 20
  3697. title: 每页条数
  3698. keyword:
  3699. type: string
  3700. description: 关键字筛选(可选)
  3701. title: 关键字
  3702. required:
  3703. - customer_id
  3704. title: 客户变更历史请求数据
  3705. required:
  3706. - data
  3707. x-error-codes: [60056, 60064, 60108, 60117]
  3708. responses:
  3709. '200':
  3710. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3711. content:
  3712. application/json:
  3713. schema:
  3714. $ref: '#/components/schemas/ApiResponseCustomerHistory'
  3715. /customer/mount_candidates@v1:
  3716. post:
  3717. summary: 改挂候选客户
  3718. description: 返回操作人可见范围内可作为改挂目标的候选客户列表。注意: 由 GET 改 POST(R-5)。
  3719. operationId: customer_mount_candidates
  3720. tags:
  3721. - 客户管理
  3722. x-require-auth: true
  3723. x-resource-type:
  3724. $ref: '#/components/x-resource-types/customer/code'
  3725. x-action:
  3726. $ref: '#/components/x-actions/view/code'
  3727. x-version: v1
  3728. x-permission-visibility: catalog
  3729. x-enumeration-kind: list
  3730. requestBody:
  3731. required: true
  3732. description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界)
  3733. content:
  3734. application/json:
  3735. schema:
  3736. type: object
  3737. properties:
  3738. data:
  3739. type: object
  3740. description: 改挂候选客户的请求字段,置于统一信封 data 内。
  3741. additionalProperties: false
  3742. properties: {}
  3743. title: 改挂候选客户请求数据
  3744. required:
  3745. - data
  3746. x-error-codes: [60056, 60064, 60108, 60117]
  3747. responses:
  3748. '200':
  3749. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3750. content:
  3751. application/json:
  3752. schema:
  3753. $ref: '#/components/schemas/ApiResponseCustomerMountCandidates'
  3754. /customer/influence@v1:
  3755. post:
  3756. summary: 改挂影响面
  3757. description: 改挂前必做前置:未办完工单数、当前责任人与团队、当期是否已出账等。
  3758. operationId: customer_influence
  3759. tags:
  3760. - 客户管理
  3761. x-require-auth: true
  3762. x-resource-type:
  3763. $ref: '#/components/x-resource-types/customer/code'
  3764. x-action:
  3765. $ref: '#/components/x-actions/view/code'
  3766. x-version: v1
  3767. x-permission-visibility: catalog
  3768. requestBody:
  3769. required: true
  3770. description: JSON 请求体,业务字段置于 data
  3771. content:
  3772. application/json:
  3773. schema:
  3774. type: object
  3775. description: 统一信封请求体,业务字段放在 data 内
  3776. properties:
  3777. data:
  3778. type: object
  3779. description: 改挂影响面请求参数
  3780. properties:
  3781. customer_id:
  3782. type: string
  3783. description: 客户 ID
  3784. title: 客户 ID
  3785. required:
  3786. - customer_id
  3787. title: 改挂影响面请求数据
  3788. required:
  3789. - data
  3790. x-error-codes: [60056, 60064, 60108, 60117]
  3791. responses:
  3792. '200':
  3793. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3794. content:
  3795. application/json:
  3796. schema:
  3797. $ref: '#/components/schemas/ApiResponseCustomerInfluence'
  3798. /customer/move_region@v1:
  3799. post:
  3800. summary: 客户改挂区域
  3801. description: 复合事务改挂区域;新区域省份须等于归属运营商档案省份。
  3802. operationId: customer_move_region
  3803. tags:
  3804. - 客户管理
  3805. x-require-auth: true
  3806. x-resource-type:
  3807. $ref: '#/components/x-resource-types/customer/code'
  3808. x-action:
  3809. $ref: '#/components/x-actions/update/code'
  3810. x-version: v1
  3811. x-permission-visibility: catalog
  3812. requestBody:
  3813. required: true
  3814. description: JSON 请求体,业务字段置于 data
  3815. content:
  3816. application/json:
  3817. schema:
  3818. type: object
  3819. description: 统一信封请求体,业务字段放在 data 内
  3820. properties:
  3821. data:
  3822. type: object
  3823. description: 客户改挂区域请求参数
  3824. properties:
  3825. customer_id:
  3826. type: string
  3827. description: 客户 ID
  3828. title: 客户 ID
  3829. new_region_node_id:
  3830. type: string
  3831. description: 新挂载区域节点 ID
  3832. title: new region node id
  3833. ops_team_ids:
  3834. type: array
  3835. description: 随改挂重绑的运维团队(**;不提交=不改动)
  3836. items:
  3837. type: string
  3838. description: 运维团队 ID
  3839. title: ops_team_ids元素
  3840. title: ops team ids
  3841. required:
  3842. - customer_id
  3843. - new_region_node_id
  3844. title: 客户改挂区域请求数据
  3845. required:
  3846. - data
  3847. x-error-codes: [60056, 60064, 60108, 60117]
  3848. responses:
  3849. '200':
  3850. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3851. content:
  3852. application/json:
  3853. schema:
  3854. $ref: '#/components/schemas/ApiResponseCustomerMoveRegion'
  3855. /customer/attribution/update@v1:
  3856. post:
  3857. summary: 更新客户归属
  3858. description: 改归属运营商/合伙人;改运营商时档案省份须等于客户所挂区域省份。
  3859. operationId: customer_attribution_update
  3860. tags:
  3861. - 客户管理
  3862. x-require-auth: true
  3863. x-resource-type:
  3864. $ref: '#/components/x-resource-types/customer_attribution/code'
  3865. x-action:
  3866. $ref: '#/components/x-actions/update/code'
  3867. x-version: v1
  3868. x-permission-visibility: catalog
  3869. requestBody:
  3870. required: true
  3871. description: JSON 请求体,业务字段置于 data
  3872. content:
  3873. application/json:
  3874. schema:
  3875. type: object
  3876. description: 统一信封请求体,业务字段放在 data 内
  3877. properties:
  3878. data:
  3879. type: object
  3880. description: 更新客户归属请求参数
  3881. properties:
  3882. customer_id:
  3883. type: string
  3884. description: 客户 ID
  3885. title: 客户 ID
  3886. operator_id:
  3887. type: string
  3888. description: 新归属运营商 ID(可选)
  3889. title: 运营商 ID
  3890. partner_id:
  3891. type: string
  3892. description: 新归属合伙人 ID(可选,可清空)
  3893. title: 合伙人 ID
  3894. required:
  3895. - customer_id
  3896. title: 更新客户归属请求数据
  3897. required:
  3898. - data
  3899. x-error-codes: [60056, 60064, 60108, 60117]
  3900. responses:
  3901. '200':
  3902. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3903. content:
  3904. application/json:
  3905. schema:
  3906. $ref: '#/components/schemas/ApiResponseCustomerAttributionUpdate'
  3907. /import_batch/template_download@v1:
  3908. get:
  3909. summary: 下载导入模板
  3910. description: 返回现行 11 列 xlsx 模板说明(format/columns/max_rows)。
  3911. operationId: import_batch_template_download
  3912. tags:
  3913. - 批量导入
  3914. x-require-auth: true
  3915. x-resource-type:
  3916. $ref: '#/components/x-resource-types/import_batch/code'
  3917. x-action:
  3918. $ref: '#/components/x-actions/export/code'
  3919. x-version: v1
  3920. x-permission-visibility: catalog
  3921. x-error-codes: [60111, 60112, 60113, 60114]
  3922. responses:
  3923. '200':
  3924. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3925. content:
  3926. application/json:
  3927. schema:
  3928. $ref: '#/components/schemas/ApiResponseImportBatchTemplateDownload'
  3929. post:
  3930. summary: 下载导入模板(POST 兼容)
  3931. description: 与 GET 同体;兼注册以免调用方误用 POST 时网关判未注册路由。
  3932. operationId: import_batch_template_download_post
  3933. tags:
  3934. - 批量导入
  3935. x-require-auth: true
  3936. x-resource-type:
  3937. $ref: '#/components/x-resource-types/import_batch/code'
  3938. x-action:
  3939. $ref: '#/components/x-actions/export/code'
  3940. x-version: v1
  3941. x-permission-visibility: catalog
  3942. x-error-codes: [60111, 60112, 60113, 60114]
  3943. responses:
  3944. '200':
  3945. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3946. content:
  3947. application/json:
  3948. schema:
  3949. $ref: '#/components/schemas/ApiResponseImportBatchTemplateDownloadPost'
  3950. /customer/import/confirm@v1:
  3951. post:
  3952. summary: 确认导入(逐行建档)
  3953. description: |-
  3954. 对校验通过行串行调用建档事务;推进批次 done/failed_pending。
  3955. 权限=`customer.create`(与手工建档同权;设计名 `bos.customer.import` 本期与 create 对齐,
  3956. 避免新 action 未授角色时网关 11001)。
  3957. operationId: customer_import_confirm
  3958. tags:
  3959. - 批量导入
  3960. x-require-auth: true
  3961. x-resource-type:
  3962. $ref: '#/components/x-resource-types/customer/code'
  3963. x-action:
  3964. $ref: '#/components/x-actions/create/code'
  3965. x-version: v1
  3966. x-permission-visibility: catalog
  3967. requestBody:
  3968. required: true
  3969. content:
  3970. application/json:
  3971. schema:
  3972. type: object
  3973. properties:
  3974. data:
  3975. type: object
  3976. properties:
  3977. batch_no:
  3978. type: string
  3979. title: 批次号
  3980. description: 批次号。
  3981. batch_id:
  3982. type: string
  3983. title: 批次 ID
  3984. description: 批次 ID。
  3985. row_nos:
  3986. type: array
  3987. items:
  3988. type: integer
  3989. title: row_nos元素
  3990. title: row nos
  3991. description: 字段 row_nos。
  3992. description: 确认导入(逐行建档)请求参数
  3993. title: 确认导入(逐行建档)请求数据
  3994. responses:
  3995. '200':
  3996. description: 成功时 code=10000;失败时查看 code/message/error_code。
  3997. content:
  3998. application/json:
  3999. schema:
  4000. $ref: '#/components/schemas/ApiResponseCustomerImportConfirm'
  4001. /import_batch/submit@v1:
  4002. post:
  4003. summary: 提交客户批量导入
  4004. description: 提交导入行对象列表,单批上限 500 行。列含客户名称、识别号、主体类型、联系人、电话、地址、区域、运营商、合伙人、运维团队、主账号等。
  4005. operationId: import_batch_submit
  4006. tags:
  4007. - 批量导入
  4008. x-require-auth: true
  4009. x-resource-type:
  4010. $ref: '#/components/x-resource-types/import_batch/code'
  4011. x-action:
  4012. $ref: '#/components/x-actions/create/code'
  4013. x-version: v1
  4014. x-permission-visibility: catalog
  4015. requestBody:
  4016. required: true
  4017. description: JSON 请求体,业务字段置于 data
  4018. content:
  4019. application/json:
  4020. schema:
  4021. type: object
  4022. description: 统一信封请求体,业务字段放在 data 内
  4023. properties:
  4024. data:
  4025. type: object
  4026. description: 提交客户批量导入请求参数
  4027. properties:
  4028. rows:
  4029. type: array
  4030. description: 导入行对象列表(≤500)
  4031. maxItems: 500
  4032. items:
  4033. type: object
  4034. description: 单行导入字段(14 列)
  4035. properties:
  4036. row_no:
  4037. type: integer
  4038. description: 行编号
  4039. customer_name:
  4040. type: string
  4041. description: 客户名称
  4042. id_code:
  4043. type: string
  4044. description: 识别号
  4045. subject_type:
  4046. type: string
  4047. description: 主体类型
  4048. contact_name:
  4049. type: string
  4050. description: 联系人
  4051. contact_mobile:
  4052. type: string
  4053. description: 联系电话
  4054. address:
  4055. type: string
  4056. description: 地址
  4057. region_name:
  4058. type: string
  4059. description: 所挂区域
  4060. operator_name:
  4061. type: string
  4062. description: 运营商
  4063. partner_name:
  4064. type: string
  4065. description: 合伙人
  4066. ops_team_names:
  4067. type: array
  4068. description: 所挂运维团队名称(**一格只填一支名称,不得用「;」分隔多支;留空或多支=该行校验失败)
  4069. items:
  4070. type: string
  4071. description: 运维团队名称
  4072. primary_username:
  4073. type: string
  4074. description: 主账号登录名
  4075. primary_mobile:
  4076. type: string
  4077. description: 主账号手机号
  4078. title: 行集
  4079. required:
  4080. - rows
  4081. title: 提交客户批量导入请求数据
  4082. required:
  4083. - data
  4084. x-error-codes: [60111, 60112, 60113, 60114]
  4085. responses:
  4086. '200':
  4087. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4088. content:
  4089. application/json:
  4090. schema:
  4091. $ref: '#/components/schemas/ApiResponseImportBatchSubmit'
  4092. /import_batch/get_list@v1:
  4093. post:
  4094. summary: 导入批次列表
  4095. description: 查询本人可见范围内的导入批次。
  4096. operationId: import_batch_get_list
  4097. tags:
  4098. - 批量导入
  4099. x-require-auth: true
  4100. x-resource-type:
  4101. $ref: '#/components/x-resource-types/import_batch/code'
  4102. x-action:
  4103. $ref: '#/components/x-actions/list/code'
  4104. x-version: v1
  4105. x-permission-visibility: catalog
  4106. requestBody:
  4107. required: true
  4108. description: JSON 请求体,业务字段置于 data
  4109. content:
  4110. application/json:
  4111. schema:
  4112. type: object
  4113. description: 统一信封请求体,业务字段放在 data 内
  4114. properties:
  4115. data:
  4116. type: object
  4117. description: 列表筛选参数
  4118. properties:
  4119. page:
  4120. type: integer
  4121. description: 页码(0 基索引,默认 0)
  4122. minimum: 0
  4123. default: 0
  4124. title: 页码
  4125. page_size:
  4126. type: integer
  4127. description: 每页条数(默认 20,上限 200)
  4128. minimum: 1
  4129. maximum: 200
  4130. default: 20
  4131. title: 每页条数
  4132. keyword:
  4133. type: string
  4134. description: 关键字筛选(可选)
  4135. title: 关键字
  4136. title: 导入批次列表请求数据
  4137. required:
  4138. - data
  4139. x-error-codes: [60111, 60112, 60113, 60114]
  4140. responses:
  4141. '200':
  4142. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4143. content:
  4144. application/json:
  4145. schema:
  4146. $ref: '#/components/schemas/ApiResponseImportBatchGetList'
  4147. /import_batch/get@v1:
  4148. post:
  4149. summary: 导入批次详情
  4150. description: 按批次 ID/编号查询详情与行状态。
  4151. operationId: import_batch_get
  4152. tags:
  4153. - 批量导入
  4154. x-require-auth: true
  4155. x-resource-type:
  4156. $ref: '#/components/x-resource-types/import_batch/code'
  4157. x-action:
  4158. $ref: '#/components/x-actions/view/code'
  4159. x-version: v1
  4160. x-permission-visibility: catalog
  4161. requestBody:
  4162. required: true
  4163. description: JSON 请求体,业务字段置于 data
  4164. content:
  4165. application/json:
  4166. schema:
  4167. type: object
  4168. description: 统一信封请求体,业务字段放在 data 内
  4169. properties:
  4170. data:
  4171. type: object
  4172. description: 导入批次详情请求参数
  4173. properties:
  4174. batch_id:
  4175. type: string
  4176. description: 批次 ID(与 batch_no 二选一)
  4177. title: 批次 ID
  4178. batch_no:
  4179. type: string
  4180. description: 批次编号(与 batch_id 二选一)
  4181. title: 批次号
  4182. title: 导入批次详情请求数据
  4183. required:
  4184. - data
  4185. x-error-codes: [60111, 60112, 60113, 60114]
  4186. responses:
  4187. '200':
  4188. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4189. content:
  4190. application/json:
  4191. schema:
  4192. $ref: '#/components/schemas/ApiResponseImportBatchGet'
  4193. /import_batch/resume@v1:
  4194. post:
  4195. summary: 失败行续传
  4196. description: 针对失败行提交续传数据,行号对应原 row_no。
  4197. operationId: import_batch_resume
  4198. tags:
  4199. - 批量导入
  4200. x-require-auth: true
  4201. x-resource-type:
  4202. $ref: '#/components/x-resource-types/import_batch/code'
  4203. x-action:
  4204. $ref: '#/components/x-actions/update/code'
  4205. x-version: v1
  4206. x-permission-visibility: catalog
  4207. requestBody:
  4208. required: true
  4209. description: JSON 请求体,业务字段置于 data
  4210. content:
  4211. application/json:
  4212. schema:
  4213. type: object
  4214. description: 统一信封请求体,业务字段放在 data 内
  4215. properties:
  4216. data:
  4217. type: object
  4218. description: 失败行续传请求参数
  4219. properties:
  4220. batch_id:
  4221. type: string
  4222. description: 批次 ID
  4223. title: 批次 ID
  4224. rows:
  4225. type: array
  4226. description: 续传行列表(含原 row_no)
  4227. items:
  4228. type: object
  4229. title: 行集元素
  4230. title: 行集
  4231. required:
  4232. - batch_id
  4233. - rows
  4234. title: 失败行续传请求数据
  4235. required:
  4236. - data
  4237. x-error-codes: [60111, 60112, 60113, 60114]
  4238. responses:
  4239. '200':
  4240. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4241. content:
  4242. application/json:
  4243. schema:
  4244. $ref: '#/components/schemas/ApiResponseImportBatchResume'
  4245. /import_batch/export_codes@v1:
  4246. post:
  4247. summary: 按批次导出激活码
  4248. description: |-
  4249. 按导入批次导出未设密账号的激活码明文。
  4250. 口径与 `/account/export_codes@v1` 相同(分片、翻页、审计与出参信封一致),另须指定批次;
  4251. `user_ids` 仍须按调用方可见范围收窄且不可为空。成功时 `data` 同为 ActivationCodeExportData。
  4252. operationId: import_batch_export_codes
  4253. tags:
  4254. - 批量导入
  4255. x-require-auth: true
  4256. x-resource-type:
  4257. $ref: '#/components/x-resource-types/import_batch/code'
  4258. x-action:
  4259. $ref: '#/components/x-actions/export/code'
  4260. x-version: v1
  4261. x-permission-visibility: catalog
  4262. requestBody:
  4263. required: true
  4264. description: JSON 请求体,业务字段置于 data
  4265. content:
  4266. application/json:
  4267. schema:
  4268. type: object
  4269. description: 统一信封请求体,业务字段放在 data 内
  4270. properties:
  4271. data:
  4272. type: object
  4273. description: 按批次导出激活码请求参数
  4274. properties:
  4275. batch_id:
  4276. type: string
  4277. description: 批次 ID
  4278. title: 批次 ID
  4279. user_ids:
  4280. type: array
  4281. description: 按本人可见范围收窄后的用户 ID 列表(不可传空列表:平台侧空值=项目内全量导出)
  4282. minItems: 1
  4283. items:
  4284. type: string
  4285. description: 用户 ID
  4286. title: 用户 ID 列表元素
  4287. title: 用户 ID 列表
  4288. validity:
  4289. type: string
  4290. description: 导出口径(平台取值域):valid=仍有效(只读,缺省);expired=已过期(写);all=全部(写)。不接受 active
  4291. default: valid
  4292. enum:
  4293. - valid
  4294. - expired
  4295. - all
  4296. title: 有效性口径
  4297. required:
  4298. - batch_id
  4299. - user_ids
  4300. title: 按批次导出激活码请求数据
  4301. required:
  4302. - data
  4303. x-error-codes: [60004, 60005, 60058, 60108, 60111, 60112, 60113, 60114]
  4304. responses:
  4305. '200':
  4306. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4307. content:
  4308. application/json:
  4309. schema:
  4310. $ref: '#/components/schemas/ApiResponseImportBatchExportCodes'
  4311. /import_batch/export_customers@v1:
  4312. post:
  4313. summary: 按批次导出客户
  4314. description: 按导入批次导出客户 15 列结果。
  4315. operationId: import_batch_export_customers
  4316. tags:
  4317. - 批量导入
  4318. x-require-auth: true
  4319. x-resource-type:
  4320. $ref: '#/components/x-resource-types/import_batch/code'
  4321. x-action:
  4322. $ref: '#/components/x-actions/export/code'
  4323. x-version: v1
  4324. x-permission-visibility: catalog
  4325. requestBody:
  4326. required: true
  4327. description: JSON 请求体,业务字段置于 data
  4328. content:
  4329. application/json:
  4330. schema:
  4331. type: object
  4332. description: 统一信封请求体,业务字段放在 data 内
  4333. properties:
  4334. data:
  4335. type: object
  4336. description: 按批次导出客户请求参数
  4337. properties:
  4338. batch_id:
  4339. type: string
  4340. description: 批次 ID
  4341. title: 批次 ID
  4342. required:
  4343. - batch_id
  4344. title: 按批次导出客户请求数据
  4345. required:
  4346. - data
  4347. x-error-codes: [60111, 60112, 60113, 60114]
  4348. responses:
  4349. '200':
  4350. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4351. content:
  4352. application/json:
  4353. schema:
  4354. $ref: '#/components/schemas/ApiResponseImportBatchExportCustomers'
  4355. /sub_account/get_list@v1:
  4356. post:
  4357. summary: 分账号列表
  4358. description: 查询客户下属分账号列表。
  4359. operationId: sub_account_get_list
  4360. tags:
  4361. - 账号管理
  4362. x-require-auth: true
  4363. x-resource-type:
  4364. $ref: '#/components/x-resource-types/sub_account/code'
  4365. x-action:
  4366. $ref: '#/components/x-actions/list/code'
  4367. x-version: v1
  4368. x-permission-visibility: catalog
  4369. # (sub_account.rs:50 get_list → :57 customer_scope_pred),客户维度受授权上界约束
  4370. # ⇒ 按 list 声明真源列举。同 L-2:本轮仅打通声明,运维分支仍走本地口径。
  4371. x-enumeration-kind: list
  4372. requestBody:
  4373. required: true
  4374. description: JSON 请求体,业务字段置于 data
  4375. content:
  4376. application/json:
  4377. schema:
  4378. type: object
  4379. description: 统一信封请求体,业务字段放在 data 内
  4380. properties:
  4381. data:
  4382. type: object
  4383. description: 分账号列表请求参数
  4384. properties:
  4385. customer_id:
  4386. type: string
  4387. description: 客户 ID
  4388. title: 客户 ID
  4389. page:
  4390. type: integer
  4391. description: 页码(0 基索引,默认 0)
  4392. minimum: 0
  4393. default: 0
  4394. title: 页码
  4395. page_size:
  4396. type: integer
  4397. description: 每页条数(默认 20,上限 200)
  4398. minimum: 1
  4399. maximum: 200
  4400. default: 20
  4401. title: 每页条数
  4402. keyword:
  4403. type: string
  4404. description: 关键字筛选(可选)
  4405. title: 关键字
  4406. required:
  4407. - customer_id
  4408. title: 分账号列表请求数据
  4409. required:
  4410. - data
  4411. x-error-codes: []
  4412. responses:
  4413. '200':
  4414. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4415. content:
  4416. application/json:
  4417. schema:
  4418. $ref: '#/components/schemas/ApiResponseSubAccountGetList'
  4419. /sub_account/update@v1:
  4420. post:
  4421. summary: 更新分账号
  4422. description: 运营可改 display_name 与 network_account_name;客户主账号只许改 display_name。
  4423. operationId: sub_account_update
  4424. tags:
  4425. - 账号管理
  4426. x-require-auth: true
  4427. x-resource-type:
  4428. $ref: '#/components/x-resource-types/sub_account/code'
  4429. x-action:
  4430. $ref: '#/components/x-actions/update/code'
  4431. x-version: v1
  4432. x-permission-visibility: catalog
  4433. requestBody:
  4434. required: true
  4435. description: JSON 请求体,业务字段置于 data
  4436. content:
  4437. application/json:
  4438. schema:
  4439. type: object
  4440. description: 统一信封请求体,业务字段放在 data 内
  4441. properties:
  4442. data:
  4443. type: object
  4444. description: 更新分账号请求参数
  4445. properties:
  4446. sub_account_id:
  4447. type: string
  4448. description: 分账号 ID
  4449. title: sub account id
  4450. display_name:
  4451. type: string
  4452. description: 显示名称/用途说明
  4453. title: 显示名
  4454. network_account_name:
  4455. type: string
  4456. description: 网络侧账号名(运营可改)
  4457. title: network account name
  4458. required:
  4459. - sub_account_id
  4460. title: 更新分账号请求数据
  4461. required:
  4462. - data
  4463. x-error-codes: []
  4464. responses:
  4465. '200':
  4466. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4467. content:
  4468. application/json:
  4469. schema:
  4470. $ref: '#/components/schemas/ApiResponseSubAccountUpdate'
  4471. /delivery/list@v1:
  4472. post:
  4473. summary: 交付现状(在册资源一览)
  4474. description: '客户详情「交付现状」页签与订阅详情「当前资源」区块共用。数据源锁定台账 subscription_ip_assignment(released_at IS NULL
  4475. 的行=当前在册), 不用“最新一单”(并单后一单只含部分账号、service_open 又是增量交付);实测参数(内网 IP/实测上下行/实测出口)只取该账号“最近一次成功开通回填”(ticket_backfill.exec_conclusion=success)并随行下发
  4476. measured_at(列头日期)。三态:在用/已到期待回收(台账未释放且订阅 end_date 已过)/已回收(默认只显示前两态,勾选 include_released 才含第三态)。合同出口与实测出口两列并排、不一致时
  4477. exit_mismatch=true(两值都返回, 互相覆盖)。输出不含 port_start/port_end( 端口本轮不启用、无“端口段”列)。可见范围复用 customer_scope_pred,未另立判据。'
  4478. operationId: delivery_list
  4479. tags:
  4480. - 交付现状
  4481. x-require-auth: true
  4482. x-resource-type:
  4483. $ref: '#/components/x-resource-types/delivery/code'
  4484. x-action:
  4485. $ref: '#/components/x-actions/list/code'
  4486. x-version: v1
  4487. x-permission-visibility: catalog
  4488. requestBody:
  4489. required: false
  4490. description:
  4491. 分页与筛选(page/page_size/customer_id/subscription_id/sub_account_id/keyword/state/include_released),业务字段置于
  4492. data
  4493. content:
  4494. application/json:
  4495. schema:
  4496. type: object
  4497. x-error-codes: [60004, 60053]
  4498. responses:
  4499. '200':
  4500. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4501. content:
  4502. application/json:
  4503. schema:
  4504. $ref: '#/components/schemas/ApiResponseDeliveryList'
  4505. /delivery/export@v1:
  4506. post:
  4507. summary: 交付现状导出
  4508. description: '/ 第 7 条:入参与 /delivery/list@v1 逐字同构(同一份 DTO、同一段谓词),导出不另立判据;CSV(UTF-8 带 BOM)首行为 `#`
  4509. 说明行(导出时刻+筛选条件逐项回显+文件行数/同一谓词命中总数+范围裁剪声明);行数上限 20000,超限 KLT-R20903(detail.row_count/detail.limit)且不产文件、不写审计、不落
  4510. OSS;产出成功写 object_type=delivery_export 留痕,留痕失败 KLT-S405。角色 admin/opsMain/opsSub/teamLead。'
  4511. operationId: delivery_export
  4512. tags:
  4513. - 交付现状
  4514. x-require-auth: true
  4515. x-resource-type:
  4516. $ref: '#/components/x-resource-types/delivery/code'
  4517. x-action:
  4518. $ref: '#/components/x-actions/export/code'
  4519. x-version: v1
  4520. x-permission-visibility: catalog
  4521. requestBody:
  4522. required: false
  4523. description: 与 /delivery/list@v1 同构的筛选条件(page/page_size 不参与导出)
  4524. content:
  4525. application/json:
  4526. schema:
  4527. type: object
  4528. x-error-codes: [60903, 60905]
  4529. responses:
  4530. '200':
  4531. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4532. content:
  4533. application/json:
  4534. schema:
  4535. $ref: '#/components/schemas/ApiResponseDeliveryExport'
  4536. /line_exit/get_list@v1:
  4537. post:
  4538. summary: 线路出口目录列表
  4539. description: 套餐配置统一维护的线路出口(去空白+小写去重)。合同条目等页面只从这里选择;任何登录角色可读。每条带 ref_count/ref_summary(被合同条目、存量
  4540. IP 备案、派生档、订阅引用的合计与构成;IP 备案表自 。 工单回填不读本目录、也不与订阅核定集合比对( 。
  4541. operationId: line_exit_get_list
  4542. tags:
  4543. - 套餐档位
  4544. x-require-auth: true
  4545. x-resource-type:
  4546. $ref: '#/components/x-resource-types/catalog/code'
  4547. x-action:
  4548. $ref: '#/components/x-actions/list/code'
  4549. x-version: v1
  4550. x-permission-visibility: catalog
  4551. responses:
  4552. '200':
  4553. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4554. content:
  4555. application/json:
  4556. schema:
  4557. $ref: '#/components/schemas/ApiResponseLineExitGetList'
  4558. /line_exit/save@v1:
  4559. post:
  4560. summary: 线路出口目录整段全量替换
  4561. description: |-
  4562. 总运营/运营主账号可写;数组顺序即展示顺序。被合同条目、存量 IP 备案(该表自 名引用数)。
  4563. `items` 缺省/null=不改目录;`[]`=清空;非空=整段全量替换。 不引入第二确认键。
  4564. operationId: line_exit_save
  4565. tags:
  4566. - 套餐档位
  4567. x-require-auth: true
  4568. x-resource-type:
  4569. $ref: '#/components/x-resource-types/catalog/code'
  4570. x-action:
  4571. $ref: '#/components/x-actions/update/code'
  4572. x-version: v1
  4573. x-permission-visibility: catalog
  4574. requestBody:
  4575. required: true
  4576. description: JSON 请求体,业务字段置于 data
  4577. content:
  4578. application/json:
  4579. schema:
  4580. type: object
  4581. description: 统一信封请求体,业务字段放在 data 内
  4582. properties:
  4583. data:
  4584. type: object
  4585. description: 线路出口目录整段全量替换请求参数
  4586. properties:
  4587. items:
  4588. type: array
  4589. description: 线路出口整段;缺省/null=不改;[]=清空;非空=全量替换(上限 200 条)
  4590. maxItems: 200
  4591. items:
  4592. type: object
  4593. description: 单个出口
  4594. properties:
  4595. exit_name:
  4596. type: string
  4597. description: 国家/地区名称原文(1~64 字;去空白+小写后不可重复)
  4598. required:
  4599. - exit_name
  4600. title: 列表项
  4601. title: 线路出口目录整段全量替换请求数据
  4602. required:
  4603. - data
  4604. x-error-codes: []
  4605. responses:
  4606. '200':
  4607. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4608. content:
  4609. application/json:
  4610. schema:
  4611. $ref: '#/components/schemas/ApiResponseLineExitSave'
  4612. /ip_bandwidth_tier/get_list@v1:
  4613. post:
  4614. summary: 带宽档位目录列表
  4615. description: 套餐配置「线路出口」tab 内统一维护的带宽档位( :档位不再写死 5/10/30 兆)。 03 带宽与权益」点一条即带出上/下行同值),另兼存量 IP
  4616. 备案的历史引用; 与工单回填的 5/10/30 封闭三值互不约束。任何登录角色可读。每条带 ref_count/ref_summary(被存量 IP 备案引用的条数;该表自 。
  4617. operationId: ip_bandwidth_tier_get_list
  4618. tags:
  4619. - 套餐档位
  4620. x-require-auth: true
  4621. x-resource-type:
  4622. $ref: '#/components/x-resource-types/catalog/code'
  4623. x-action:
  4624. $ref: '#/components/x-actions/list/code'
  4625. x-version: v1
  4626. x-permission-visibility: catalog
  4627. x-error-codes: []
  4628. responses:
  4629. '200':
  4630. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4631. content:
  4632. application/json:
  4633. schema:
  4634. $ref: '#/components/schemas/ApiResponseIpBandwidthTierGetList'
  4635. /ip_bandwidth_tier/save@v1:
  4636. post:
  4637. summary: 带宽档位目录整段全量替换
  4638. description: |-
  4639. 总运营/运营主账号可写;数组顺序即展示顺序(也是套餐编辑器里预设胶囊的顺序);同一兆数只允许一条,「不承诺带宽」(bandwidth_tier_mbps 缺省或 null)全表唯一。被存量 IP 备案引用的档位不可删除(整单拒绝并点名引用条数)。 本清单是套餐带宽权益的快捷预设, 反向约束套餐上手填的兆数。 读写不对称(既定契约):`get_list` 回 `tier_key`/`bandwidth_committed`/`sort_no`(系统派生);本接口 `items[]` 只收 `tier_name`+`bandwidth_tier_mbps`。 把读侧 JSON 原样写回(会因未声明字段/系统带出字段被拒)。
  4640. `items` 缺省/null=不改目录;`[]`=清空;非空=整段全量替换。 不引入第二确认键。
  4641. operationId: ip_bandwidth_tier_save
  4642. tags:
  4643. - 套餐档位
  4644. x-require-auth: true
  4645. x-resource-type:
  4646. $ref: '#/components/x-resource-types/catalog/code'
  4647. x-action:
  4648. $ref: '#/components/x-actions/update/code'
  4649. x-version: v1
  4650. x-permission-visibility: catalog
  4651. requestBody:
  4652. required: true
  4653. description: JSON 请求体,业务字段置于 data
  4654. content:
  4655. application/json:
  4656. schema:
  4657. type: object
  4658. description: 统一信封请求体,业务字段放在 data 内
  4659. properties:
  4660. data:
  4661. type: object
  4662. description: 带宽档位目录整段全量替换请求参数
  4663. properties:
  4664. items:
  4665. type: array
  4666. description: 带宽档位整段;缺省/null=不改;[]=清空;非空=全量替换(上限 50 条)
  4667. maxItems: 50
  4668. items:
  4669. type: object
  4670. description: 单个档位
  4671. properties:
  4672. tier_name:
  4673. type: string
  4674. description: 展示名称(1~64 字,如「10 兆」「不承诺带宽」)
  4675. bandwidth_tier_mbps:
  4676. type: integer
  4677. nullable: true
  4678. description: 带宽兆数(1~10000);缺省或 null=「不承诺带宽」
  4679. required:
  4680. - tier_name
  4681. title: 列表项
  4682. title: 带宽档位目录整段全量替换请求数据
  4683. required:
  4684. - data
  4685. x-error-codes: []
  4686. responses:
  4687. '200':
  4688. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4689. content:
  4690. application/json:
  4691. schema:
  4692. $ref: '#/components/schemas/ApiResponseIpBandwidthTierSave'
  4693. /portal/plan_board@v1:
  4694. post:
  4695. summary: 客户侧「我的套餐」看板
  4696. description: |-
  4697. 客户门户「我的套餐」读口。主体号一律由会话派生:载荷出现 customer_id/sub_account_id 硬拒;出现 status/scope/region_id ⇒ 11103。view=board(与 view=list 同义)一次返回「当前套餐」「往期套餐」两表;view=detail 尚未接线 ⇒ 60008。
  4698. operationId: portal_plan_board
  4699. tags:
  4700. - 客户门户
  4701. x-require-auth: true
  4702. x-resource-type:
  4703. $ref: '#/components/x-resource-types/portal/code'
  4704. x-action:
  4705. $ref: '#/components/x-actions/plan_board/code'
  4706. x-version: v1
  4707. x-permission-visibility: catalog
  4708. requestBody:
  4709. required: true
  4710. description: JSON 请求体,业务字段置于 data
  4711. content:
  4712. application/json:
  4713. schema:
  4714. type: object
  4715. description: 统一信封请求体,业务字段放在 data 内
  4716. properties:
  4717. data:
  4718. type: object
  4719. description: 请求参数(白名单只有 view;主体与状态类键一律拒收)
  4720. properties:
  4721. view:
  4722. type: string
  4723. enum:
  4724. - board
  4725. - list
  4726. - detail
  4727. description: board(同义 list)=两表;detail=详情三段( ⇒ 60008)
  4728. title: 视图
  4729. title: 客户侧「我的套餐」看板请求数据
  4730. required:
  4731. - data
  4732. # 「x-error-codes 含有非整数」⇒ 整条路由 validation_status=abnormal/callable=false,
  4733. # 网关不导流(实测 50000 未找到匹配路由)。字符串别名(KLT-P301→60058、
  4734. x-error-codes: [11103, 60004, 60005, 60008, 60058]
  4735. responses:
  4736. '200':
  4737. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4738. content:
  4739. application/json:
  4740. schema:
  4741. $ref: '#/components/schemas/ApiResponsePortalPlanBoard'
  4742. /catalog/create@v1:
  4743. post:
  4744. summary: 新建套餐档位
  4745. description: 新建固定/自定义档位。拒收 sub_mode、first_referred_at。自定义档必填 customer_id。Ops
  4746. 角色只能建自定义档;created_by=鉴权账号、created_team_id=建档团队快照。
  4747. operationId: catalog_create
  4748. tags:
  4749. - 套餐档位
  4750. x-require-auth: true
  4751. x-resource-type:
  4752. $ref: '#/components/x-resource-types/catalog/code'
  4753. x-action:
  4754. $ref: '#/components/x-actions/create/code'
  4755. x-version: v1
  4756. x-permission-visibility: catalog
  4757. requestBody:
  4758. required: true
  4759. description: JSON 请求体,业务字段置于 data
  4760. content:
  4761. application/json:
  4762. schema:
  4763. type: object
  4764. description: 统一信封请求体,业务字段放在 data 内
  4765. properties:
  4766. data:
  4767. type: object
  4768. description: 新建套餐档位请求参数
  4769. properties:
  4770. plan_kind:
  4771. type: string
  4772. description: 档位类型:fixed=固定;custom=自定义
  4773. enum:
  4774. - fixed
  4775. - custom
  4776. title: plan kind
  4777. plan_name:
  4778. type: string
  4779. description: 档位名称
  4780. title: 档位名称
  4781. plan_desc:
  4782. type: string
  4783. description: 套餐说明(报价单权益口径,可空;去首尾空白后 ≤512 字符,超长报 11103)。引用冻结后仍可改(与名称、随附成本项同档)
  4784. title: plan desc
  4785. plan_family:
  4786. type: string
  4787. description: 交付形态:link=跨境链路(份数恒 1);addon=叠加服务(份数≥1,不设带宽列)
  4788. enum:
  4789. - link
  4790. - addon
  4791. title: plan family
  4792. annual_price_cents:
  4793. type: integer
  4794. description: 年价(分)
  4795. title: 年价(分)
  4796. monthly_settle_cents:
  4797. type: integer
  4798. description: 月结算标准(分,可选,1~上限);可录入
  4799. title: 月结算(分)
  4800. sub_account_quota:
  4801. type: integer
  4802. description: 分账号额度(非负,上限 9999):link 档必须 > 0;addon 档必须为 0。可缺省——link=1、addon=0
  4803. title: sub account quota
  4804. bandwidth_committed:
  4805. type: boolean
  4806. description: 是否承诺带宽:仅 link 档可传(缺省 true);addon 档一律不传
  4807. title: bandwidth committed
  4808. bandwidth_up_mbps:
  4809. type: integer
  4810. description: 上行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填。不再有单值
  4811. total_bandwidth_mbps( D8 关闭=
  4812. title: bandwidth up mbps
  4813. bandwidth_down_mbps:
  4814. type: integer
  4815. description: 下行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填;与上行同值时界面并显「上下行
  4816. N 兆」,不等显「下行 X 兆 / 上行 Y 兆」
  4817. title: bandwidth down mbps
  4818. customer_id:
  4819. type: string
  4820. description: 自定义档所属客户 ID(custom 必填)
  4821. title: 客户 ID
  4822. required:
  4823. - plan_kind
  4824. - plan_name
  4825. - plan_family
  4826. - annual_price_cents
  4827. title: 新建套餐档位请求数据
  4828. required:
  4829. - data
  4830. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  4831. responses:
  4832. '200':
  4833. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4834. content:
  4835. application/json:
  4836. schema:
  4837. $ref: '#/components/schemas/ApiResponseCatalogCreate'
  4838. /catalog/update@v1:
  4839. post:
  4840. summary: 编辑套餐档位
  4841. description: 编辑档位;plan_kind/plan_family 建后不可改(K204);被订阅引用冻结后多数字段只读。
  4842. operationId: catalog_update
  4843. tags:
  4844. - 套餐档位
  4845. x-require-auth: true
  4846. x-resource-type:
  4847. $ref: '#/components/x-resource-types/catalog/code'
  4848. x-action:
  4849. $ref: '#/components/x-actions/update/code'
  4850. x-version: v1
  4851. x-permission-visibility: catalog
  4852. requestBody:
  4853. required: true
  4854. description: JSON 请求体,业务字段置于 data
  4855. content:
  4856. application/json:
  4857. schema:
  4858. type: object
  4859. description: 统一信封请求体,业务字段放在 data 内
  4860. properties:
  4861. data:
  4862. type: object
  4863. description: 编辑套餐档位请求参数
  4864. properties:
  4865. plan_id:
  4866. type: string
  4867. description: 档位 ID
  4868. title: 档位 ID
  4869. plan_name:
  4870. type: string
  4871. description: 档位名称
  4872. title: 档位名称
  4873. plan_desc:
  4874. type: string
  4875. nullable: true
  4876. description: 套餐说明(可空;缺键=不动;null/空串=清空成库内 null;≤512 字符)。引用冻结后仍可改
  4877. title: plan desc
  4878. annual_price_cents:
  4879. type: integer
  4880. description: 年价(分)
  4881. title: 年价(分)
  4882. monthly_settle_cents:
  4883. type: integer
  4884. description: 月结算标准(分,可选,1~上限);可录入
  4885. title: 月结算(分)
  4886. sub_account_quota:
  4887. type: integer
  4888. description: 分账号额度(非负,上限 9999):link 档必须 > 0;addon 档必须为 0
  4889. title: sub account quota
  4890. bandwidth_committed:
  4891. type: boolean
  4892. description: 是否承诺带宽:true=承诺(缺省);false=该档「不承诺带宽」,上下行两字段一律不传
  4893. title: bandwidth committed
  4894. bandwidth_up_mbps:
  4895. type: integer
  4896. description: 上行带宽(Mbps,整数 1~1000);bandwidth_committed=true
  4897. 时必填,关闭「是否承诺带宽」时必不传(档位被订阅引用后随整单只读,K204)
  4898. title: bandwidth up mbps
  4899. bandwidth_down_mbps:
  4900. type: integer
  4901. description: 下行带宽(Mbps,整数 1~1000);必填规则同上,两值不折算为单值
  4902. title: bandwidth down mbps
  4903. row_version:
  4904. type: integer
  4905. description: 乐观锁版本(若启用)
  4906. title: 乐观锁版本
  4907. required:
  4908. - plan_id
  4909. title: 编辑套餐档位请求数据
  4910. required:
  4911. - data
  4912. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  4913. responses:
  4914. '200':
  4915. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4916. content:
  4917. application/json:
  4918. schema:
  4919. $ref: '#/components/schemas/ApiResponseCatalogUpdate'
  4920. /catalog/get_list@v1:
  4921. post:
  4922. summary: 套餐档位列表
  4923. description: 按 plan_kind/plan_family/created_by/created_team_id 等条件筛选档位列表。每行回
  4924. plan_family、use_purpose、created_by/created_team_id 及读侧名称
  4925. created_by_name/created_team_name;data.facets 回建档团队/建档人下拉项(服务端在 base 谓词 ∧ plan_kind=custom
  4926. 上聚合, 用当前页行凑)。
  4927. operationId: catalog_get_list
  4928. tags:
  4929. - 套餐档位
  4930. x-require-auth: true
  4931. x-resource-type:
  4932. $ref: '#/components/x-resource-types/catalog/code'
  4933. x-action:
  4934. $ref: '#/components/x-actions/list/code'
  4935. x-version: v1
  4936. x-permission-visibility: catalog
  4937. requestBody:
  4938. required: true
  4939. description: JSON 请求体,业务字段置于 data
  4940. content:
  4941. application/json:
  4942. schema:
  4943. type: object
  4944. description: 统一信封请求体,业务字段放在 data 内
  4945. properties:
  4946. data:
  4947. type: object
  4948. description: 列表筛选参数
  4949. properties:
  4950. page:
  4951. type: integer
  4952. description: 页码(0 基索引,默认 0)
  4953. minimum: 0
  4954. default: 0
  4955. title: 页码
  4956. page_size:
  4957. type: integer
  4958. description: 每页条数(默认 20,上限 200)
  4959. minimum: 1
  4960. maximum: 200
  4961. default: 20
  4962. title: 每页条数
  4963. keyword:
  4964. type: string
  4965. description: 关键字筛选(可选)
  4966. title: 关键字
  4967. plan_kind:
  4968. type: string
  4969. description: 档位类型筛选:fixed/custom
  4970. title: plan kind
  4971. plan_family:
  4972. type: string
  4973. description: 交付形态筛选:link/addon(仅自定义档可筛,固定档带此参报错)
  4974. enum:
  4975. - link
  4976. - addon
  4977. title: plan family
  4978. customer_id:
  4979. type: string
  4980. description: 自定义档客户筛选
  4981. title: 客户 ID
  4982. created_by:
  4983. type: string
  4984. description: 建档人筛选(R-14 台账收敛;=catalog_plan.created_by 账号 ID)
  4985. title: created by
  4986. created_team_id:
  4987. type: string
  4988. description: 建档团队筛选(R-14 台账收敛;=建档时快照的 catalog_plan.created_team_id)
  4989. title: created team id
  4990. title: 套餐档位列表请求数据
  4991. required:
  4992. - data
  4993. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  4994. responses:
  4995. '200':
  4996. description: 成功时 code=10000;失败时查看 code/message/error_code。
  4997. content:
  4998. application/json:
  4999. schema:
  5000. $ref: '#/components/schemas/ApiResponseCatalogGetList'
  5001. /catalog/get@v1:
  5002. post:
  5003. summary: 套餐档位详情
  5004. description: 按档位 ID 查询详情。
  5005. operationId: catalog_get
  5006. tags:
  5007. - 套餐档位
  5008. x-require-auth: true
  5009. x-resource-type:
  5010. $ref: '#/components/x-resource-types/catalog/code'
  5011. x-action:
  5012. $ref: '#/components/x-actions/view/code'
  5013. x-version: v1
  5014. x-permission-visibility: catalog
  5015. requestBody:
  5016. required: true
  5017. description: JSON 请求体,业务字段置于 data
  5018. content:
  5019. application/json:
  5020. schema:
  5021. type: object
  5022. description: 统一信封请求体,业务字段放在 data 内
  5023. properties:
  5024. data:
  5025. type: object
  5026. description: 套餐档位详情请求参数
  5027. properties:
  5028. plan_id:
  5029. type: string
  5030. description: 档位 ID
  5031. title: 档位 ID
  5032. required:
  5033. - plan_id
  5034. title: 套餐档位详情请求数据
  5035. required:
  5036. - data
  5037. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  5038. responses:
  5039. '200':
  5040. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5041. content:
  5042. application/json:
  5043. schema:
  5044. $ref: '#/components/schemas/ApiResponseCatalogGet'
  5045. /catalog/delete@v1:
  5046. post:
  5047. summary: 套餐档位条件删除
  5048. description: 按档位 ID 条件删除:引用份数+两栏阻塞清单(subscriptions/items),在用⇒KLT-K205;固定档仅 Admin。
  5049. operationId: catalog_delete
  5050. tags:
  5051. - 套餐档位
  5052. x-require-auth: true
  5053. x-resource-type:
  5054. $ref: '#/components/x-resource-types/catalog/code'
  5055. x-action:
  5056. $ref: '#/components/x-actions/delete/code'
  5057. x-version: v1
  5058. x-permission-visibility: catalog
  5059. requestBody:
  5060. required: true
  5061. description: JSON 请求体,业务字段置于 data
  5062. content:
  5063. application/json:
  5064. schema:
  5065. type: object
  5066. description: 统一信封请求体,业务字段放在 data 内
  5067. properties:
  5068. data:
  5069. type: object
  5070. description: 套餐档位条件删除请求参数
  5071. properties:
  5072. plan_id:
  5073. type: string
  5074. description: 档位 ID
  5075. title: 档位 ID
  5076. required:
  5077. - plan_id
  5078. title: 套餐档位条件删除请求数据
  5079. required:
  5080. - data
  5081. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  5082. responses:
  5083. '200':
  5084. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5085. content:
  5086. application/json:
  5087. schema:
  5088. $ref: '#/components/schemas/ApiResponseCatalogDelete'
  5089. /catalog/customer_options@v1:
  5090. post:
  5091. summary: 归属客户下拉
  5092. description: 只列操作人可见客户(自定义档归属客户下拉,);硬上限 500 行⇒truncated。
  5093. operationId: catalog_customer_options
  5094. tags:
  5095. - 套餐档位
  5096. x-require-auth: true
  5097. x-resource-type:
  5098. $ref: '#/components/x-resource-types/catalog/code'
  5099. x-action:
  5100. $ref: '#/components/x-actions/list/code'
  5101. x-version: v1
  5102. x-permission-visibility: catalog
  5103. requestBody:
  5104. required: true
  5105. description: JSON 请求体,业务字段置于 data
  5106. content:
  5107. application/json:
  5108. schema:
  5109. type: object
  5110. description: 统一信封请求体,业务字段放在 data 内
  5111. properties:
  5112. data:
  5113. type: object
  5114. description: 列表筛选参数
  5115. properties:
  5116. keyword:
  5117. type: string
  5118. description: 客户名称关键字(可选)
  5119. title: 关键字
  5120. title: 归属客户下拉请求数据
  5121. required:
  5122. - data
  5123. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  5124. responses:
  5125. '200':
  5126. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5127. content:
  5128. application/json:
  5129. schema:
  5130. $ref: '#/components/schemas/ApiResponseCatalogCustomerOptions'
  5131. /plan_cost_item/get_list@v1:
  5132. post:
  5133. summary: 档位随附成本项列表
  5134. description: 按档位读取随附成本项(;以 cost_item_id 强引用全局 cost_item,名称/类别/计费口径读时 JOIN
  5135. 全局现名,全局改名套餐侧跟随);frozen 仅供前端提示。
  5136. operationId: plan_cost_item_get_list
  5137. tags:
  5138. - 套餐档位
  5139. x-require-auth: true
  5140. x-resource-type:
  5141. $ref: '#/components/x-resource-types/plan_cost_item/code'
  5142. x-action:
  5143. $ref: '#/components/x-actions/list/code'
  5144. x-version: v1
  5145. x-permission-visibility: catalog
  5146. requestBody:
  5147. required: true
  5148. description: JSON 请求体,业务字段置于 data
  5149. content:
  5150. application/json:
  5151. schema:
  5152. type: object
  5153. description: 统一信封请求体,业务字段放在 data 内
  5154. properties:
  5155. data:
  5156. type: object
  5157. description: 档位随附成本项列表请求参数
  5158. properties:
  5159. plan_id:
  5160. type: string
  5161. description: 档位 ID
  5162. title: 档位 ID
  5163. required:
  5164. - plan_id
  5165. title: 档位随附成本项列表请求数据
  5166. required:
  5167. - data
  5168. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  5169. responses:
  5170. '200':
  5171. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5172. content:
  5173. application/json:
  5174. schema:
  5175. $ref: '#/components/schemas/ApiResponsePlanCostItemGetList'
  5176. /plan_cost_item/save@v1:
  5177. post:
  5178. summary: 档位随附成本项整段全量替换
  5179. description: |-
  5180. 一次提交该档位全部成本项(先按 plan_id 删净再逐条插,;以 cost_item_id 强引用全局 cost_item,名称/类别/计费口径由服务端快照全局现值,前端只能从全局清单按 id 选择);同档位 cost_item_id 重复⇒KLT-K206;引用的 cost_item_id 不存在⇒60005。
  5181. `items` 缺省/null=不改;`[]`=清空;非空=整段全量替换。 不引入第二确认键。
  5182. operationId: plan_cost_item_save
  5183. tags:
  5184. - 套餐档位
  5185. x-require-auth: true
  5186. x-resource-type:
  5187. $ref: '#/components/x-resource-types/plan_cost_item/code'
  5188. x-action:
  5189. $ref: '#/components/x-actions/update/code'
  5190. x-version: v1
  5191. x-permission-visibility: catalog
  5192. requestBody:
  5193. required: true
  5194. description: JSON 请求体,业务字段置于 data
  5195. content:
  5196. application/json:
  5197. schema:
  5198. type: object
  5199. description: 统一信封请求体,业务字段放在 data 内
  5200. properties:
  5201. data:
  5202. type: object
  5203. description: 档位随附成本项整段全量替换请求参数
  5204. properties:
  5205. plan_id:
  5206. type: string
  5207. description: 档位 ID
  5208. title: 档位 ID
  5209. items:
  5210. type: array
  5211. description: 成本项整段;缺省/null=不改;[]=清空;非空=全量替换(上限 50 条)
  5212. maxItems: 50
  5213. items:
  5214. type: object
  5215. description: 成本项条目(cost_item_id 为强引用,必填;item_name/category/billing_unit
  5216. 由服务端快照全局现值覆盖,传值仅作长度兜底)
  5217. properties:
  5218. cost_item_id:
  5219. type: string
  5220. description: 全局成本项 ID(必填,强引用;须在全局 cost_item 清单中存在)
  5221. item_name:
  5222. type: string
  5223. description: 成本项名称(可选,服务端以全局现名快照覆盖;传值仅校验长度≤128)
  5224. amount_cents:
  5225. type: integer
  5226. description: 金额(分,≥0)
  5227. minimum: 0
  5228. billing_unit:
  5229. type: string
  5230. description: 计费单位(可选,服务端以全局现值覆盖)
  5231. enum:
  5232. - per_customer
  5233. - per_account
  5234. - per_copy
  5235. category:
  5236. type: string
  5237. description: 成本项分类(可选,服务端以全局现值覆盖)
  5238. enum:
  5239. - intl_resource
  5240. - device_purchase
  5241. - project_fee
  5242. remark:
  5243. type: string
  5244. description: 备注(可选,上限 512 字)
  5245. sort_no:
  5246. type: integer
  5247. description: 排序号(≥0)
  5248. minimum: 0
  5249. required:
  5250. - cost_item_id
  5251. - amount_cents
  5252. title: 列表项
  5253. required:
  5254. - plan_id
  5255. title: 档位随附成本项整段全量替换请求数据
  5256. required:
  5257. - data
  5258. x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227]
  5259. responses:
  5260. '200':
  5261. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5262. content:
  5263. application/json:
  5264. schema:
  5265. $ref: '#/components/schemas/ApiResponsePlanCostItemSave'
  5266. /contract/create@v1:
  5267. post:
  5268. summary: 新建合同
  5269. description: 客户段+合同段+服务构成条目一次提交( 不再受理 IP 条目:`ip_entries`/`has_fixed_ip` 视为未知键 ⇒ 11103;境外 IP
  5270. 由套餐档位所含 IP × 订阅份数表达)。客户未命中时用 data.customer_inline 随合同建档(先建档、后签合同,两个事务),成功时
  5271. data.inline_customer 回显客户号/主账号/激活码发放态/影像待补(激活码明文不在应答内,走客户列表「导出激活码」)。拒收
  5272. source(服务端定);created_by/created_by_name/created_by_org/created_by_mobile(录入经办人:机构/姓名/联系方式)由服务端从鉴权上下文写入、不取入参;agent_*
  5273. 是运营商交接单上的经办人(姓名/电话/交接日期必填、机构选填)。
  5274. operationId: contract_create
  5275. tags:
  5276. - 合同
  5277. x-require-auth: true
  5278. x-resource-type:
  5279. $ref: '#/components/x-resource-types/contract/code'
  5280. x-action:
  5281. $ref: '#/components/x-actions/create/code'
  5282. x-version: v1
  5283. x-permission-visibility: catalog
  5284. requestBody:
  5285. required: true
  5286. description: JSON 请求体,业务字段置于 data
  5287. content:
  5288. application/json:
  5289. schema:
  5290. type: object
  5291. description: 统一信封请求体,业务字段放在 data 内
  5292. properties:
  5293. data:
  5294. type: object
  5295. description: 请求参数(`customer_id` 与 `customer_inline` 至少给一个且不可同时给)
  5296. properties:
  5297. customer_id:
  5298. type: string
  5299. description: 签约客户 ID。与 customer_inline 只可二选一:命中已有客户填本项;未命中改用内联建档段
  5300. title: 客户 ID
  5301. customer_inline:
  5302. type: object
  5303. description: >-
  5304. 客户未命中时的内联建档段(需求 C;关闭 C)。 本段先按 `/customer/create@v1` 的同一套规则建档(两个事务:建档 → 合同,不合并),
  5305. 再签本合同;建档含客户主账号(未设初始口令 ⇒ 待激活、发激活码,明文不在本响应内下发)。 注意:企业营业执照影像选填(,与页面建档同口径), 留空不影响建档,建档后到客户档案「登记材料」格补传/替换。主体类型非企业时不收
  5306. license。
  5307. properties:
  5308. customer_name:
  5309. type: string
  5310. description: 客户名称(必填;允许重名,查重靠识别号)
  5311. subject_type:
  5312. type: string
  5313. description: 主体类型(必填):enterprise/individual/sole_proprietor
  5314. enum:
  5315. - enterprise
  5316. - individual
  5317. - sole_proprietor
  5318. id_code:
  5319. type: string
  5320. description: 客户识别号(必填):既是安全存储载体,也是合同事务失败后重试的幂等键(不得省略)
  5321. contact_name:
  5322. type: string
  5323. description: 客户经办联系人(与联系电话、地址同属 C 第 1 步字段)
  5324. contact_mobile:
  5325. type: string
  5326. description: 联系电话
  5327. tech_contact_name:
  5328. type: string
  5329. description: 技术联系人姓名(选填)
  5330. tech_contact_mobile:
  5331. type: string
  5332. description: 技术联系人电话(选填)
  5333. finance_contact_name:
  5334. type: string
  5335. description: 财务联系人姓名(选填)
  5336. finance_contact_mobile:
  5337. type: string
  5338. description: 财务联系人电话(选填)
  5339. remark:
  5340. type: string
  5341. description: 客户备注(选填,≤512 字)
  5342. partner_id:
  5343. type: string
  5344. description: 归属合伙人(选填;反查所得,落 customer.partner_id)
  5345. address:
  5346. type: string
  5347. description: 客户地址
  5348. parent_node_id:
  5349. type: string
  5350. description: 挂载区域(必填;区域树节点 ID,与 /customer/create@v1 的 parent_node_id 同义)
  5351. operator_id:
  5352. type: string
  5353. description: 归属运营商(必填;弹窗下拉,候选=所挂区域省份下可见的运营商档案)
  5354. ops_team_ids:
  5355. type: array
  5356. description: 运维团队(必填且恰好 1 支,;不得为空数组/不得传多支)
  5357. items:
  5358. type: string
  5359. description: 团队 ID
  5360. license:
  5361. type: object
  5362. description: 营业执照影像(选填;非企。两键成对
  5363. properties:
  5364. object_key:
  5365. type: string
  5366. description: 平台对象存储对象键(浏览器直传后回报,须在客户影像前缀下)
  5367. file_name:
  5368. type: string
  5369. description: 原始文件名(仅展示)
  5370. required:
  5371. - object_key
  5372. - file_name
  5373. primary_username:
  5374. type: string
  5375. description: 客户主账号登录名(选填;留空按主体号派生,4~32 位字母数字与 . _ -)
  5376. primary_mobile:
  5377. type: string
  5378. description: 主账号绑定手机号(选填,11 位)
  5379. required:
  5380. - customer_name
  5381. - subject_type
  5382. - id_code
  5383. - parent_node_id
  5384. - operator_id
  5385. - ops_team_ids
  5386. title: customer inline
  5387. contract_no:
  5388. type: string
  5389. description: 合同编号(空则服务端发号)
  5390. title: 合同编号
  5391. external_no:
  5392. type: string
  5393. description: 外部合同号(可选)
  5394. title: external no
  5395. contract_type:
  5396. type: string
  5397. description: >-
  5398. 合同类型:new(新建,缺省)/renew(续签)/expand(扩容补充协议)/change(变更协议)。 :renew 必须同时给 renew_from_contract_id;expand
  5399. 的服务构成必须整批为增量叠加服务; 带 renew_from_contract_id 的合同类型只能是 renew。
  5400. enum:
  5401. - new
  5402. - renew
  5403. - expand
  5404. - change
  5405. title: contract type
  5406. sign_date:
  5407. type: string
  5408. description: 签署日期(YYYY-MM-DD;选填,缺省按 agent_handover_on 兜底)
  5409. format: date
  5410. title: sign date
  5411. contract_amount_cents:
  5412. type: integer
  5413. description: 合同金额(分,可选)
  5414. title: contract amount cents
  5415. service_months:
  5416. type: integer
  5417. description: >-
  5418. 服务期(月,1~600,必填):替代原 pay_cycle;结束日=生效日+服务期−1 天 (该月无对应日先取月末),页面锁定为只读推算值。
  5419. minimum: 1
  5420. maximum: 600
  5421. title: service months
  5422. start_date:
  5423. type: string
  5424. description: 合同开始日期(YYYY-MM-DD)
  5425. format: date
  5426. title: 开始日
  5427. end_date:
  5428. type: string
  5429. description: >-
  5430. 合同结束日期(YYYY-MM-DD,可省略):省略时服务端按「生效日+服务期(月)−1 天」 推算(该月无对应日先取月末);显式给出则按显式值落库。
  5431. format: date
  5432. title: 结束日
  5433. agent_name:
  5434. type: string
  5435. description: 运营商经办人姓名(交接单三段之二,必填;不是录入账号 created_by)
  5436. title: agent name
  5437. agent_mobile:
  5438. type: string
  5439. description: 运营商经办人联系方式(交接单三段之三,必填)
  5440. title: agent mobile
  5441. agent_handover_on:
  5442. type: string
  5443. description: 经办交接日期(必填;与姓名/联系电话构成运营商经办人三件套,只用于回溯交接来源)
  5444. format: date
  5445. title: agent handover on
  5446. agent_org:
  5447. type: string
  5448. description: 运营商经办人机构(交接单三段之一,选填)
  5449. title: agent org
  5450. attachment_url:
  5451. type: string
  5452. maxLength: 512
  5453. description: >-
  5454. 合同附件(单值,可选):外部 http(s) 链接,或浏览器直传平台对象存储 (seoh-unified-oss 两段式)成功后回报的对象键,前缀必须为 klt/contract/attachment/。空串=清空。对象键不得当作可直接打开的链接,
  5455. 详情读口另下发 attachment_view_url(短时效现签)。
  5456. title: attachment url
  5457. service_items:
  5458. type: array
  5459. description: 服务构成条目列表
  5460. items:
  5461. type: object
  5462. description: 服务条目
  5463. properties:
  5464. plan_id:
  5465. type: string
  5466. description: 档位 ID(必填; 起条目只能引用目录档位)
  5467. quantity:
  5468. type: integer
  5469. description: 份数:link 档恒 1;addon 档≥1
  5470. item_family:
  5471. type: string
  5472. description: 交付形态(只读确认位,可缺省):只能与所引档位的 plan_family 相同,不同即 KLT-L216
  5473. enum:
  5474. - link
  5475. - addon
  5476. item_mode:
  5477. type: string
  5478. description: >-
  5479. 条目模式:new=常规条目(缺省);increment=增量叠加服务,只能引用本客户 既有 link 订阅(只传 ref_subscription_id,
  5480. 再填 serves_item_id/ serves_item_index),档位必须是 addon。读口按同一编码原样回传。
  5481. enum:
  5482. - new
  5483. - increment
  5484. serves_item_index:
  5485. type: integer
  5486. minimum: 0
  5487. description: >-
  5488. 从属宿主:普通叠加服务叠加于同一请求 service_items 的哪一条, 0 基下标(新建父条目尚无 item_id 时用)。父条目已存在时也可改传
  5489. serves_item_id; 二者同时给即 11103。仅 item_mode=new 且档位为 addon 时必填其一。
  5490. serves_item_id:
  5491. type: string
  5492. description: >-
  5493. 从属宿主的条目 ID(编辑合同、父条目已存在时用);与 serves_item_index 二选一。 增量条目(increment) 不得填本键。
  5494. ref_subscription_id:
  5495. type: string
  5496. description: >-
  5497. 增量合同引用的原订阅号:仅 item_mode=increment 时必填(且不得填 serves_*); 非增量条目带本键即 KLT-L216。订阅须属本客户、为
  5498. link 档、状态 ∈ active/pending。 生成的 service_open 单以增量合同 external_no 作为 carrier_order_no。
  5499. line_exits:
  5500. type: array
  5501. maxItems: 1
  5502. description: >-
  5503. 线路出口(单选:长度必须为 1)。新建/修改条目出现 2 个以上 由服务端回 KLT-L222;存量多出口条目不迁移(编辑合同须原样回传)。
  5504. items:
  5505. type: string
  5506. description: 出口标识
  5507. succession:
  5508. type: object
  5509. description: >-
  5510. 契约内逐条替换(升降配,):本条目的新订阅顶替哪份原订阅。 仅在新建合同受理,编辑合同出现即 KLT-L222。只接受三键(价格/状态/ row_version
  5511. 等只读派生列出现即点名)。候选须同客户、status ∈ active/pending、 同 line_exit_key、双方均 plan_family=link、未被替换过(KLT-M226);
  5512. 同一 replaces_subscription_id 在本请求内至多一次;link 条目 quantity 须为 1。 替换与合同写入同一条
  5513. dml_batch(任一条失败=整批回滚),应答回 data.replacements[]。
  5514. properties:
  5515. replaces_subscription_id:
  5516. type: string
  5517. description: 被替换的原订阅号(必填)
  5518. start_date:
  5519. type: string
  5520. format: date
  5521. description: 新订阅起日,缺省=max(业务当天, 合同生效日);须 ≤ 合同止期。结束日恒取合同止期
  5522. term:
  5523. type: string
  5524. description: 订阅方式(yearly/quarterly/monthly);缺省按档位与账期派生
  5525. required:
  5526. - replaces_subscription_id
  5527. title: service items
  5528. required:
  5529. - contract_amount_cents
  5530. - service_months
  5531. - start_date
  5532. - end_date
  5533. - agent_name
  5534. - agent_mobile
  5535. - agent_handover_on
  5536. title: 新建合同请求数据
  5537. required:
  5538. - data
  5539. x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
  5540. responses:
  5541. '200':
  5542. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5543. content:
  5544. application/json:
  5545. schema:
  5546. $ref: '#/components/schemas/ApiResponseContractCreate'
  5547. /contract/update@v1:
  5548. post:
  5549. summary: 编辑合同
  5550. description: 编号与签约客户不可改;条目按 item_id 三向对比增删改。可改范围=bos-invariant::contract_edit_scope
  5551. 的两条轴(billing:金额/服务期(月)/期间/服务构成;archive:合同类型/签署日期/外部单号/交接日期),两轴独立判定、source=operator_sync
  5552. 全只读(KLT-L220)、已开通两轴全冻(KLT-L219)、录后 72 小时内两轴全开、未生效只放 billing、未到期只放 archive;经办人(created_by
  5553. 与录入经办人机构/姓名/联系方式)建后恒只读(KLT-L221);agent_* 为运营商交接单上的经办人,受各自轴约束。 :`ip_entries`/`has_fixed_ip`
  5554. (视为未知键 ⇒ 11103,境外 IP 由套餐档位 × 订阅份数表达)。保存形态=只提交变了的字段(键缺席=保持现值);审计 INSERT 与业务语句同批提交。
  5555. operationId: contract_update
  5556. tags:
  5557. - 合同
  5558. x-require-auth: true
  5559. x-resource-type:
  5560. $ref: '#/components/x-resource-types/contract/code'
  5561. x-action:
  5562. $ref: '#/components/x-actions/update/code'
  5563. x-version: v1
  5564. x-permission-visibility: catalog
  5565. requestBody:
  5566. required: true
  5567. description: JSON 请求体,业务字段置于 data
  5568. content:
  5569. application/json:
  5570. schema:
  5571. type: object
  5572. description: 统一信封请求体,业务字段放在 data 内
  5573. properties:
  5574. data:
  5575. type: object
  5576. description: 编辑合同请求参数
  5577. properties:
  5578. contract_id:
  5579. type: string
  5580. description: 合同 ID
  5581. title: 合同 ID
  5582. row_version:
  5583. type: integer
  5584. description: 乐观锁版本
  5585. title: 乐观锁版本
  5586. external_no:
  5587. type: string
  5588. description: 外部合同号
  5589. title: external no
  5590. contract_type:
  5591. type: string
  5592. description: 合同类型(new/renew/expand/change);受 archive 轴约束
  5593. enum:
  5594. - new
  5595. - renew
  5596. - expand
  5597. - change
  5598. title: contract type
  5599. sign_date:
  5600. type: string
  5601. description: 签署日期(受 archive 轴约束)
  5602. format: date
  5603. title: sign date
  5604. contract_amount_cents:
  5605. type: integer
  5606. description: 合同金额(分)
  5607. title: contract amount cents
  5608. service_months:
  5609. type: integer
  5610. description: 服务期(月,1~600);受 billing 轴约束,结束日按「生效日+服务期−1 天」重算
  5611. minimum: 1
  5612. maximum: 600
  5613. title: service months
  5614. start_date:
  5615. type: string
  5616. description: 开始日期
  5617. format: date
  5618. title: 开始日
  5619. end_date:
  5620. type: string
  5621. description: 结束日期
  5622. format: date
  5623. title: 结束日
  5624. agent_name:
  5625. type: string
  5626. description: 运营商经办人姓名(交接单口径,不是录入账号 created_by);受 billing/archive 轴约束,冻结时提交改动值
  5627. ⇒ KLT-L219/L220
  5628. title: agent name
  5629. agent_mobile:
  5630. type: string
  5631. description: 运营商经办人联系方式(交接单三段之三;archive 轴)
  5632. title: agent mobile
  5633. agent_handover_on:
  5634. type: string
  5635. description: 交接日期(archive 轴)
  5636. title: agent handover on
  5637. agent_org:
  5638. type: string
  5639. description: 运营商经办人机构(交接单三段之一;选填,archive 轴)
  5640. title: agent org
  5641. attachment_url:
  5642. type: string
  5643. maxLength: 512
  5644. description: >-
  5645. 合同附件(单值,archive 轴):外部 http(s) 链接,或前缀为 klt/contract/attachment/ 的对象键;空串=清空附件。
  5646. title: attachment url
  5647. service_items:
  5648. type: array
  5649. description: >-
  5650. 服务构成条目(含 item_id 的增删改)。条目形态只含 plan_id/quantity/item_family/ line_exits/item_mode/serves_item_id/serves_item_index/ref_subscription_id(item_family
  5651. 由档位带入, 自造);年价/账号数/带宽等旧字段已删列, 出现即视为未知键。/普通叠加服务用 serves_item_id(或 0 基 serves_item_index)
  5652. 声明从属,服务端按父子关系回树;增量条目用 item_mode=increment + ref_subscription_id 引用既有链路订阅( 再挂 serves_*)。订阅/工单/台账列表不扩散,仍平铺。
  5653. items:
  5654. type: object
  5655. properties:
  5656. item_id:
  5657. type: string
  5658. description: 既有条目主键(三向对比:带=UPDATE/不带=INSERT/库有载荷无=DELETE)
  5659. plan_id:
  5660. type: string
  5661. description: 档位 ID
  5662. quantity:
  5663. type: integer
  5664. description: 份数:link 档恒 1;addon 档≥1
  5665. item_family:
  5666. type: string
  5667. description: 交付形态(只读确认位,可缺省):与档位 plan_family 不同即 KLT-L216
  5668. enum:
  5669. - link
  5670. - addon
  5671. item_mode:
  5672. type: string
  5673. description: >-
  5674. 条目模式:new=常规;increment=增量叠加服务(档位必须为 addon,且只引用 ref_subscription_id, 挂 serves_*)。读口按同一编码回传。
  5675. enum:
  5676. - new
  5677. - increment
  5678. serves_item_index:
  5679. type: integer
  5680. minimum: 0
  5681. description: 父条目在本载荷 service_items 的 0 基下标(普通叠加服务、父条目为本次新建时用)
  5682. serves_item_id:
  5683. type: string
  5684. description: >-
  5685. 父条目 ID(普通叠加服务、父条目已存在时用);与 serves_item_index 二选一, 同时给即 11103;增量条目 不得填本键
  5686. ref_subscription_id:
  5687. type: string
  5688. description: >-
  5689. 增量合同引用的原订阅号:item_mode=increment 时必填,须属本客户、为 link 档、 状态 ∈ active/pending;非增量条目带本键即
  5690. KLT-L216。
  5691. line_exits:
  5692. type: array
  5693. maxItems: 1
  5694. description: 线路出口(单选,长度 1)
  5695. items:
  5696. type: string
  5697. title: service items
  5698. required:
  5699. - contract_id
  5700. - row_version
  5701. title: 编辑合同请求数据
  5702. required:
  5703. - data
  5704. x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211, 60228, 60229, 60230]
  5705. responses:
  5706. '200':
  5707. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5708. content:
  5709. application/json:
  5710. schema:
  5711. $ref: '#/components/schemas/ApiResponseContractUpdate'
  5712. /contract/get_list@v1:
  5713. post:
  5714. summary: 合同列表
  5715. description: >-
  5716. 按客户/状态等筛选合同列表。每行随 `attachment_kind`(none/link/object/other)说明附件形态; `attachment_view_url` 在列表口恒
  5717. null(签名只在详情读口现签,不按行 N 次调平台)。
  5718. operationId: contract_get_list
  5719. tags:
  5720. - 合同
  5721. x-require-auth: true
  5722. x-resource-type:
  5723. $ref: '#/components/x-resource-types/contract/code'
  5724. x-action:
  5725. $ref: '#/components/x-actions/list/code'
  5726. x-version: v1
  5727. x-permission-visibility: catalog
  5728. requestBody:
  5729. required: true
  5730. description: JSON 请求体,业务字段置于 data
  5731. content:
  5732. application/json:
  5733. schema:
  5734. type: object
  5735. description: 统一信封请求体,业务字段放在 data 内
  5736. properties:
  5737. data:
  5738. type: object
  5739. description: 列表筛选参数
  5740. properties:
  5741. page:
  5742. type: integer
  5743. description: 页码(0 基索引,默认 0)
  5744. minimum: 0
  5745. default: 0
  5746. title: 页码
  5747. page_size:
  5748. type: integer
  5749. description: 每页条数(默认 20,上限 200)
  5750. minimum: 1
  5751. maximum: 200
  5752. default: 20
  5753. title: 每页条数
  5754. keyword:
  5755. type: string
  5756. description: 关键字筛选(编号/客户名/外部单号/经办人等)
  5757. title: 关键字
  5758. customer_id:
  5759. type: string
  5760. description: 客户 ID 筛选
  5761. title: 客户 ID
  5762. status:
  5763. type: string
  5764. description: 生命周期态(effective/not_effective/expired 或中文)
  5765. title: 状态
  5766. source:
  5767. type: string
  5768. description: 来源(manual/import/operator_sync 或中文标签)
  5769. title: 来源
  5770. line_exit:
  5771. type: string
  5772. description: 线路出口名称(命中服务构成条目 line_exits)
  5773. title: line exit
  5774. expiring_within_days:
  5775. type: integer
  5776. description: 快到期天数(止期 ∈ [today, today+N];已到期不算)
  5777. minimum: 0
  5778. title: expiring within days
  5779. opened:
  5780. type: boolean
  5781. description: 是否已开通筛选(三态:true/false/缺省不筛)
  5782. title: opened
  5783. title: 合同列表请求数据
  5784. required:
  5785. - data
  5786. x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
  5787. responses:
  5788. '200':
  5789. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5790. content:
  5791. application/json:
  5792. schema:
  5793. $ref: '#/components/schemas/ApiResponseContractGetList'
  5794. /contract/change_log@v1:
  5795. post:
  5796. summary: 合同修改记录
  5797. description: 本合同在 bos_audit_log 的 contract.* 流水(时间倒序+(occurred_at,id) 游标,不用
  5798. OFFSET)。先过合同可见性(与详情同一条谓词,越权=11104),再按 resource_type='contract' AND resource_id=$contract_id
  5799. 取行——不复用 audit/get_list@v1(其对 TeamLead/Ops 按本团队成员过滤,会把可见合同的历史滤空)。行内含 detail.fields(字段级
  5800. {old,new})、items_diff(条目的三向增删改);`ip_diff` 仅 之前的存量行才有(固定 IP 条目)。
  5801. operationId: contract_change_log
  5802. tags:
  5803. - 合同
  5804. x-require-auth: true
  5805. x-resource-type:
  5806. $ref: '#/components/x-resource-types/contract/code'
  5807. x-action:
  5808. $ref: '#/components/x-actions/list/code'
  5809. x-version: v1
  5810. x-permission-visibility: catalog
  5811. requestBody:
  5812. required: true
  5813. description: JSON 请求体,业务字段置于 data
  5814. content:
  5815. application/json:
  5816. schema:
  5817. type: object
  5818. description: 统一信封请求体,业务字段放在 data 内
  5819. properties:
  5820. data:
  5821. type: object
  5822. description: 合同修改记录请求参数
  5823. properties:
  5824. contract_id:
  5825. type: string
  5826. description: 合同 ID
  5827. title: 合同 ID
  5828. page_size:
  5829. type: integer
  5830. description: 每页条数(默认 20,夹在 1~50)
  5831. minimum: 1
  5832. maximum: 50
  5833. default: 20
  5834. title: 每页条数
  5835. cursor:
  5836. type: string
  5837. description: 游标,形态 occurred_at|id(与审计页同形态);由上一页响应的 next_cursor 原样带回
  5838. title: 游标
  5839. required:
  5840. - contract_id
  5841. title: 合同修改记录请求数据
  5842. required:
  5843. - data
  5844. x-error-codes: [60053, 60201, 60207]
  5845. responses:
  5846. '200':
  5847. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5848. content:
  5849. application/json:
  5850. schema:
  5851. $ref: '#/components/schemas/ApiResponseContractChangeLog'
  5852. /contract/get@v1:
  5853. post:
  5854. summary: 合同详情
  5855. description: >-
  5856. 按合同 ID 查询详情(含服务条目与 IP 条件)。出参含 edit_scope(billing/archive 两轴 editable+reason,判据=bos-invariant::contract_edit_scope)、created_by/created_by_name/created_by_org/created_by_mobile(录入经办人=录入账号的机构/姓名/联系方式,录入时由账号自动带入、建后只读;联系方式已按需求
  5857. 掩码)。 附件(单值):`attachment_url` 原值照回(外部链接或 klt/contract/attachment/ 下的对象键), `attachment_kind` 说明形态,`attachment_view_url`/`attachment_view_url_expires_at`
  5858. 为读口现签的短时效下载地址(`link` 形态=原链接);对象键不得当作可直接打开的链接。 服务条目行额外带 `item_mode`(new/increment)/`serves_item_id`/`ref_subscription_id`,
  5859. 前端据此把增量叠加服务以父子缩进树呈现;订阅/工单/台账仍为平铺列表,只标注「叠加于 SUB-xxx」。
  5860. operationId: contract_get
  5861. tags:
  5862. - 合同
  5863. x-require-auth: true
  5864. x-resource-type:
  5865. $ref: '#/components/x-resource-types/contract/code'
  5866. x-action:
  5867. $ref: '#/components/x-actions/view/code'
  5868. x-version: v1
  5869. x-permission-visibility: catalog
  5870. requestBody:
  5871. required: true
  5872. description: JSON 请求体,业务字段置于 data
  5873. content:
  5874. application/json:
  5875. schema:
  5876. type: object
  5877. description: 统一信封请求体,业务字段放在 data 内
  5878. properties:
  5879. data:
  5880. type: object
  5881. description: 合同详情请求参数
  5882. properties:
  5883. contract_id:
  5884. type: string
  5885. description: 合同 ID
  5886. title: 合同 ID
  5887. required:
  5888. - contract_id
  5889. title: 合同详情请求数据
  5890. required:
  5891. - data
  5892. x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
  5893. responses:
  5894. '200':
  5895. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5896. content:
  5897. application/json:
  5898. schema:
  5899. $ref: '#/components/schemas/ApiResponseContractGet'
  5900. /contract/customer_lookup@v1:
  5901. post:
  5902. summary: 合同客户身份解析
  5903. description: 第 1 步:query_type=credit_code 主体号精确点查/identity 归一化精确点查/keyword
  5904. 客户名称模糊联想;未命中=matched:false 成功响应(不报错),越权读单客户=11104。
  5905. operationId: contract_customer_lookup
  5906. tags:
  5907. - 合同
  5908. x-require-auth: true
  5909. x-resource-type:
  5910. $ref: '#/components/x-resource-types/contract/code'
  5911. x-action:
  5912. $ref: '#/components/x-actions/list/code'
  5913. x-version: v1
  5914. x-permission-visibility: catalog
  5915. requestBody:
  5916. required: true
  5917. description: JSON 请求体,业务字段置于 data
  5918. content:
  5919. application/json:
  5920. schema:
  5921. type: object
  5922. description: 统一信封请求体,业务字段放在 data 内
  5923. properties:
  5924. data:
  5925. type: object
  5926. description: 合同客户身份解析请求参数
  5927. properties:
  5928. query_type:
  5929. type: string
  5930. description: 查询通道
  5931. enum:
  5932. - credit_code
  5933. - identity
  5934. - keyword
  5935. title: query type
  5936. value:
  5937. type: string
  5938. description: 查询值(主体号/识别号/客户名称关键字)
  5939. title: value
  5940. required:
  5941. - query_type
  5942. - value
  5943. title: 合同客户身份解析请求数据
  5944. required:
  5945. - data
  5946. x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
  5947. responses:
  5948. '200':
  5949. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5950. content:
  5951. application/json:
  5952. schema:
  5953. $ref: '#/components/schemas/ApiResponseContractCustomerLookup'
  5954. /contract/delete@v1:
  5955. post:
  5956. summary: 合同条件删除
  5957. description: 两类阻塞分栏(subscriptions/tickets),有阻塞⇒KLT-L213;工单取数失败⇒KLT-S406(不得中途放行)。
  5958. operationId: contract_delete
  5959. tags:
  5960. - 合同
  5961. x-require-auth: true
  5962. x-resource-type:
  5963. $ref: '#/components/x-resource-types/contract/code'
  5964. x-action:
  5965. $ref: '#/components/x-actions/delete/code'
  5966. x-version: v1
  5967. x-permission-visibility: catalog
  5968. requestBody:
  5969. required: true
  5970. description: JSON 请求体,业务字段置于 data
  5971. content:
  5972. application/json:
  5973. schema:
  5974. type: object
  5975. description: 统一信封请求体,业务字段放在 data 内
  5976. properties:
  5977. data:
  5978. type: object
  5979. description: 合同条件删除请求参数
  5980. properties:
  5981. contract_id:
  5982. type: string
  5983. description: 合同 ID
  5984. title: 合同 ID
  5985. required:
  5986. - contract_id
  5987. title: 合同条件删除请求数据
  5988. required:
  5989. - data
  5990. x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211]
  5991. responses:
  5992. '200':
  5993. description: 成功时 code=10000;失败时查看 code/message/error_code。
  5994. content:
  5995. application/json:
  5996. schema:
  5997. $ref: '#/components/schemas/ApiResponseContractDelete'
  5998. /contract/attachment_discard@v1:
  5999. post:
  6000. summary: 回收无人引用的上传附件(孤儿对象)
  6001. description: >-
  6002. 还原 孤儿附件回收:浏览器直传是「先上传、后落库」,用户换文件/移除/ 取消编辑/保存被拦时会在桶里留下无引用对象。平台 unified-oss 明确「不做后台遍历删对象、 不按业务字段回收」,只有即时删除一条通道(object/delete@v1),故回收由本服务在引用面判定后发起。
  6003. 三条安全线:object_key 必须是本服务前缀下无路径穿越的对象键;查库确认没有任何合同仍指向它; 角色限 Admin/OpsMain(与合同写口同一道闸)。referenced=true
  6004. 与「对象已不在」都不算失败(幂等)。
  6005. operationId: contract_attachment_discard
  6006. tags:
  6007. - 合同
  6008. x-require-auth: true
  6009. x-resource-type:
  6010. $ref: '#/components/x-resource-types/contract_attachment/code'
  6011. x-action:
  6012. $ref: '#/components/x-actions/delete/code'
  6013. x-version: v1
  6014. x-permission-visibility: catalog
  6015. requestBody:
  6016. required: true
  6017. description: JSON 请求体,业务字段置于 data
  6018. content:
  6019. application/json:
  6020. schema:
  6021. type: object
  6022. description: 统一信封请求体,业务字段放在 data 内
  6023. properties:
  6024. data:
  6025. type: object
  6026. description: 回收无人引用的上传附件(孤儿对象)请求参数
  6027. properties:
  6028. object_key:
  6029. type: string
  6030. description: 直传回报的对象键(klt/contract/attachment/ 前缀下)
  6031. title: 对象键
  6032. required:
  6033. - object_key
  6034. title: 回收无人引用的上传附件(孤儿对象)请求数据
  6035. required:
  6036. - data
  6037. x-error-codes: [60001, 60004, 60006, 60058, 60201]
  6038. responses:
  6039. '200':
  6040. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6041. content:
  6042. application/json:
  6043. schema:
  6044. $ref: '#/components/schemas/ApiResponseContractAttachmentDiscard'
  6045. /subscription/create@v1:
  6046. post:
  6047. summary: 新建订阅
  6048. description: 拒收 line_exits、sub_mode、order_no、新建时的 end_date、opened_at。 响应 data 附
  6049. delivery_ticket=交付侧建单结论(工单册):kind=open/service_open/
  6050. merged(并入既有未完成开户工单,工单册)/failed/skipped,另有 ticket_id、ticket_no、
  6051. items=本次落地服务清单项数、note=面向运营的说明。工单侧失败不回滚订阅(订阅仍已保存), 此时 failed=true,运营须按 note 人工补发工单。
  6052. operationId: subscription_create
  6053. tags:
  6054. - 订阅
  6055. x-require-auth: true
  6056. x-resource-type:
  6057. $ref: '#/components/x-resource-types/subscription/code'
  6058. x-action:
  6059. $ref: '#/components/x-actions/create/code'
  6060. x-version: v1
  6061. x-permission-visibility: catalog
  6062. requestBody:
  6063. required: true
  6064. description: JSON 请求体,业务字段置于 data
  6065. content:
  6066. application/json:
  6067. schema:
  6068. type: object
  6069. description: 统一信封请求体,业务字段放在 data 内
  6070. properties:
  6071. data:
  6072. type: object
  6073. description: 新建订阅请求参数
  6074. properties:
  6075. customer_id:
  6076. type: string
  6077. description: 客户 ID
  6078. title: 客户 ID
  6079. plan_id:
  6080. type: string
  6081. description: 档位 ID
  6082. title: 档位 ID
  6083. contract_id:
  6084. type: string
  6085. description: 合同 ID
  6086. title: 合同 ID
  6087. contract_item_id:
  6088. type: string
  6089. description: 合同服务条目 ID(可空=该合同内一条匹配条目都没有,服务端按档位反查)
  6090. title: contract item id
  6091. start_date:
  6092. type: string
  6093. description: 订阅开始日期
  6094. format: date
  6095. title: 开始日
  6096. annual_price_cents:
  6097. type: integer
  6098. description: 不得传的只读派生列:按档位与账期折算落库(传值即 KLT-S20004 拒收)
  6099. title: 年价(分)
  6100. monthly_settle_cents:
  6101. type: integer
  6102. description: 不得传的只读派生列:由 `monthly_settle_of` 按年价折算落库(传值即 KLT-S20004 拒收)
  6103. title: 月结算(分)
  6104. plan_family:
  6105. type: string
  6106. description: 交付形态(只读确认位,可缺省):只能与所选档位的 plan_family 相同,不同即 11103
  6107. enum:
  6108. - link
  6109. - addon
  6110. title: plan family
  6111. term:
  6112. type: string
  6113. description: 账期(三态:yearly/quarterly/monthly)
  6114. enum:
  6115. - yearly
  6116. - quarterly
  6117. - monthly
  6118. title: term
  6119. trial_months:
  6120. type: integer
  6121. description: 试用月数(默认 0,≥0)
  6122. minimum: 0
  6123. title: trial months
  6124. discount_monthly_cents:
  6125. type: integer
  6126. description: 每月优惠金额(分,默认 0,≥0)
  6127. minimum: 0
  6128. title: discount monthly cents
  6129. required:
  6130. - customer_id
  6131. - plan_id
  6132. - contract_id
  6133. - start_date
  6134. title: 新建订阅请求数据
  6135. required:
  6136. - data
  6137. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6138. responses:
  6139. '200':
  6140. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6141. content:
  6142. application/json:
  6143. schema:
  6144. $ref: '#/components/schemas/ApiResponseSubscriptionCreate'
  6145. /subscription/change@v1:
  6146. post:
  6147. summary: 订阅升降配
  6148. description: >-
  6149. 升降配须填 replaces_subscription_id 与 contract_id(新合同,不得沿用原合同;缺省时回退原合同并在回执说明中提示)。 `contract_item_id`
  6150. 给出时按其取条目并校验档位匹配,缺省时按新档位在合同内反查。 `customer_id` 仅做一致性校验(与原订阅客户不同即 60201/KLT-M221)。 年价、月结算标准、end_date、线路出口、用途分类为只读派生列,传即
  6151. 11103。 本口保留为「单订阅快捷通道」:常规路径是在合同新建页逐条带 service_items[].succession 一次提交(见 /contract/create@v1);两条路径共用同一份计划层与
  6152. 截原谓词(已被替换过 ⇒ KLT-M226)。工单类型按交付态:已交付且客户在用 ⇒ 一张 updown (新档交付+原档回收,清单带原值/新值);未交付 ⇒ open/service_open。
  6153. operationId: subscription_change
  6154. tags:
  6155. - 订阅
  6156. x-require-auth: true
  6157. x-resource-type:
  6158. $ref: '#/components/x-resource-types/subscription/code'
  6159. x-action:
  6160. $ref: '#/components/x-actions/update/code'
  6161. x-version: v1
  6162. x-permission-visibility: catalog
  6163. requestBody:
  6164. required: true
  6165. description: JSON 请求体,业务字段置于 data
  6166. content:
  6167. application/json:
  6168. schema:
  6169. type: object
  6170. description: 统一信封请求体,业务字段放在 data 内
  6171. properties:
  6172. data:
  6173. type: object
  6174. description: 订阅升降配请求参数
  6175. properties:
  6176. replaces_subscription_id:
  6177. type: string
  6178. description: 被替换的原订阅 ID
  6179. title: replaces subscription id
  6180. customer_id:
  6181. type: string
  6182. description: 客户 ID
  6183. title: 客户 ID
  6184. plan_id:
  6185. type: string
  6186. description: 新档位 ID
  6187. title: 档位 ID
  6188. contract_id:
  6189. type: string
  6190. description: 新合同 ID(不得沿用原合同)
  6191. title: 合同 ID
  6192. contract_item_id:
  6193. type: string
  6194. description: 新合同服务条目 ID
  6195. title: contract item id
  6196. start_date:
  6197. type: string
  6198. description: 新订阅开始日期
  6199. format: date
  6200. title: 开始日
  6201. annual_price_cents:
  6202. type: integer
  6203. description: 只读派生列(服务端按档位与时长折算);传即 11103
  6204. readOnly: true
  6205. title: 年价(分)
  6206. monthly_settle_cents:
  6207. type: integer
  6208. description: 只读派生列(服务端按档位折算);传即 11103
  6209. readOnly: true
  6210. title: 月结算(分)
  6211. plan_family:
  6212. type: string
  6213. description: 只读派生列(随新档位);传不同值即 11103
  6214. readOnly: true
  6215. enum:
  6216. - link
  6217. - addon
  6218. title: plan family
  6219. term:
  6220. type: string
  6221. description: 账期(三态:yearly/quarterly/monthly;缺省沿用原订阅或按年)
  6222. enum:
  6223. - yearly
  6224. - quarterly
  6225. - monthly
  6226. title: term
  6227. trial_months:
  6228. type: integer
  6229. description: 试用月数(默认 0,≥0)
  6230. minimum: 0
  6231. title: trial months
  6232. discount_monthly_cents:
  6233. type: integer
  6234. description: 每月优惠金额(分,默认 0,≥0)
  6235. minimum: 0
  6236. title: discount monthly cents
  6237. row_version:
  6238. type: integer
  6239. description: 乐观锁版本号(可选,缺省不校验)
  6240. title: 乐观锁版本
  6241. required:
  6242. - replaces_subscription_id
  6243. - plan_id
  6244. - contract_id
  6245. title: 订阅升降配请求数据
  6246. required:
  6247. - data
  6248. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6249. responses:
  6250. '200':
  6251. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6252. content:
  6253. application/json:
  6254. schema:
  6255. $ref: '#/components/schemas/ApiResponseSubscriptionChange'
  6256. /subscription/replacement_candidates@v1:
  6257. post:
  6258. summary: 替换候选探测(只读)
  6259. description: >-
  6260. 合同新建页逐条判定「是否已有可替换的原订阅」(契约内逐条替换=升降配,)。 交付形态唯一取档位 `plan_family`,按「同客户 × 同出口 × 双方均 link」 过滤(status
  6261. ∈ active/pending、排除 addon 档、排除已被指过的 replaces_subscription_id), 与 /contract/create@v1 的保存期校验是同一份函数(succession::candidate_filter),前端不得自造候选范围。
  6262. index 与 service_items 的 0 基下标对齐;档位或出口判定不出 ⇒ KLT-L222 点名 probes[i]。
  6263. operationId: subscription_replacement_candidates
  6264. tags:
  6265. - 订阅
  6266. x-require-auth: true
  6267. x-resource-type:
  6268. $ref: '#/components/x-resource-types/subscription/code'
  6269. x-action:
  6270. $ref: '#/components/x-actions/list/code'
  6271. x-version: v1
  6272. x-permission-visibility: catalog
  6273. requestBody:
  6274. required: true
  6275. description: JSON 请求体,业务字段置于 data
  6276. content:
  6277. application/json:
  6278. schema:
  6279. type: object
  6280. description: 统一信封请求体,业务字段放在 data 内
  6281. properties:
  6282. data:
  6283. type: object
  6284. description: 替换候选探测(只读)请求参数
  6285. properties:
  6286. customer_id:
  6287. type: string
  6288. description: 签约客户 ID(候选范围限本客户)
  6289. title: 客户 ID
  6290. probes:
  6291. type: array
  6292. description: 探测项(至少 1 项,每项对应一个服务构成条目)
  6293. items:
  6294. type: object
  6295. properties:
  6296. index:
  6297. type: integer
  6298. description: 0 基条目下标(缺省=数组位置)
  6299. plan_id:
  6300. type: string
  6301. description: 档位 ID(交付形态由档位带出)
  6302. line_exits:
  6303. type: array
  6304. maxItems: 1
  6305. description: 线路出口(须恰 1 个;缺省时回落档位上的出口集合)
  6306. items:
  6307. type: string
  6308. required:
  6309. - line_exits
  6310. title: probes
  6311. required:
  6312. - customer_id
  6313. - probes
  6314. title: 替换候选探测(只读)请求数据
  6315. required:
  6316. - data
  6317. x-error-codes: [60001, 60201, 60221, 60231]
  6318. responses:
  6319. '200':
  6320. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6321. content:
  6322. application/json:
  6323. schema:
  6324. $ref: '#/components/schemas/ApiResponseSubscriptionReplacementCandidates'
  6325. /subscription/stack@v1:
  6326. post:
  6327. summary: 订阅叠加(已停用 · 请改走 create)
  6328. description: 起拒写。权威「叠加」=新建并存订阅,请走
  6329. `/subscription/create@v1`(客户在用时自动生成服务开通工单)。本口保留路由与入参形态,一律返回参数错误并点名 create。
  6330. operationId: subscription_stack
  6331. tags:
  6332. - 订阅
  6333. x-require-auth: true
  6334. x-resource-type:
  6335. $ref: '#/components/x-resource-types/subscription/code'
  6336. x-action:
  6337. $ref: '#/components/x-actions/create/code'
  6338. x-version: v1
  6339. x-permission-visibility: catalog
  6340. requestBody:
  6341. required: true
  6342. description: JSON 请求体,业务字段置于 data
  6343. content:
  6344. application/json:
  6345. schema:
  6346. type: object
  6347. description: 统一信封请求体,业务字段放在 data 内
  6348. properties:
  6349. data:
  6350. type: object
  6351. description: 订阅叠加(已停用 · 请改走 create)请求参数
  6352. properties:
  6353. subscription_id:
  6354. type: string
  6355. description: 订阅 ID(更新场景)
  6356. title: 订阅 ID
  6357. customer_id:
  6358. type: string
  6359. description: 客户 ID(叠加新建时)
  6360. title: 客户 ID
  6361. plan_id:
  6362. type: string
  6363. description: 档位 ID(叠加新建时)
  6364. title: 档位 ID
  6365. contract_id:
  6366. type: string
  6367. description: 合同 ID
  6368. title: 合同 ID
  6369. contract_item_id:
  6370. type: string
  6371. description: 合同服务条目 ID
  6372. title: contract item id
  6373. annual_price_cents:
  6374. type: integer
  6375. description: 年价(分,可改)
  6376. title: 年价(分)
  6377. monthly_settle_cents:
  6378. type: integer
  6379. description: 月结算金额(分,可改)
  6380. title: 月结算(分)
  6381. end_date:
  6382. type: string
  6383. description: 结束日期(可改)
  6384. format: date
  6385. title: 结束日
  6386. start_date:
  6387. type: string
  6388. description: 开始日期(叠加新建时)
  6389. format: date
  6390. title: 开始日
  6391. row_version:
  6392. type: integer
  6393. description: 乐观锁版本号(可选,缺省不校验)
  6394. title: 乐观锁版本
  6395. title: 订阅叠加(已停用 · 请改走 create)请求数据
  6396. required:
  6397. - data
  6398. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6399. responses:
  6400. '200':
  6401. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6402. content:
  6403. application/json:
  6404. schema:
  6405. $ref: '#/components/schemas/ApiResponseSubscriptionStack'
  6406. /subscription/get_list@v1:
  6407. post:
  6408. summary: 订阅列表
  6409. description: >-
  6410. 按客户等维度筛选订阅列表。叠加服务订阅行带 `parent_subscription_id`(所属链路订阅号), 列表面板保持平铺并标注「叠加于 SUB-xxx」,不把子订阅折叠进父行(不扩散)。
  6411. operationId: subscription_get_list
  6412. tags:
  6413. - 订阅
  6414. x-require-auth: true
  6415. x-resource-type:
  6416. $ref: '#/components/x-resource-types/subscription/code'
  6417. x-action:
  6418. $ref: '#/components/x-actions/list/code'
  6419. x-version: v1
  6420. x-permission-visibility: catalog
  6421. # (subscription.rs:680 get_list → :687 customer_scope_pred),订阅在平台侧登记为
  6422. # klt.subscription 树叶 ⇒ 其可见集应由授权上界决定,故按 list 声明真源列举。
  6423. # 注意:同 L-2:本轮只打通「声明+上界落到 AuthContext」,运维分支仍走本地口径,
  6424. # 且注入 id 与我方 subscription_id 对齐的前提=订阅已登记为资源树叶(待平台确认)。
  6425. x-enumeration-kind: list
  6426. requestBody:
  6427. required: true
  6428. description: JSON 请求体,业务字段置于 data
  6429. content:
  6430. application/json:
  6431. schema:
  6432. type: object
  6433. description: 统一信封请求体,业务字段放在 data 内
  6434. properties:
  6435. data:
  6436. type: object
  6437. description: 列表筛选参数(BUG-26Ccustomer_id 必填;全量列表走 list_all)
  6438. required:
  6439. - customer_id
  6440. properties:
  6441. customer_id:
  6442. type: string
  6443. description: 客户 ID(必填)
  6444. title: 客户 ID
  6445. page:
  6446. type: integer
  6447. description: 页码(0 基索引,默认 0)
  6448. minimum: 0
  6449. default: 0
  6450. title: 页码
  6451. page_size:
  6452. type: integer
  6453. description: 每页条数(默认 20,上限 200)
  6454. minimum: 1
  6455. maximum: 200
  6456. default: 20
  6457. title: 每页条数
  6458. keyword:
  6459. type: string
  6460. description: 关键字(套餐名/订阅号/订单号/客户名/合同号)
  6461. title: 关键字
  6462. status:
  6463. type: string
  6464. description: 状态筛选(pending/active/expired/cancelled/replaced/early_stopped)
  6465. title: 状态
  6466. plan_kind:
  6467. type: string
  6468. description: 套餐类型(fixed/custom)
  6469. enum:
  6470. - fixed
  6471. - custom
  6472. title: plan kind
  6473. line_exit:
  6474. type: string
  6475. description: 线路出口名称(命中 line_exits 快照)
  6476. title: line exit
  6477. expiring_within_days:
  6478. type: integer
  6479. description: 快到期天数(止期 ∈ [today, today+N];已到期不算)
  6480. minimum: 0
  6481. title: expiring within days
  6482. contract_id:
  6483. type: string
  6484. description: 合同 ID 筛选
  6485. title: 合同 ID
  6486. region_ids:
  6487. type: array
  6488. description: 区域 ID 集合(经客户挂载区域展开)
  6489. items:
  6490. type: string
  6491. description: 区域 ID
  6492. title: region_ids元素
  6493. title: region ids
  6494. title: 订阅列表请求数据
  6495. required:
  6496. - data
  6497. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6498. responses:
  6499. '200':
  6500. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6501. content:
  6502. application/json:
  6503. schema:
  6504. $ref: '#/components/schemas/ApiResponseSubscriptionGetList'
  6505. /subscription/get@v1:
  6506. post:
  6507. summary: 订阅详情
  6508. description: 按订阅 ID 查询详情。
  6509. operationId: subscription_get
  6510. tags:
  6511. - 订阅
  6512. x-require-auth: true
  6513. x-resource-type:
  6514. $ref: '#/components/x-resource-types/subscription/code'
  6515. x-action:
  6516. $ref: '#/components/x-actions/view/code'
  6517. x-version: v1
  6518. x-permission-visibility: catalog
  6519. requestBody:
  6520. required: true
  6521. description: JSON 请求体,业务字段置于 data
  6522. content:
  6523. application/json:
  6524. schema:
  6525. type: object
  6526. description: 统一信封请求体,业务字段放在 data 内
  6527. properties:
  6528. data:
  6529. type: object
  6530. description: 订阅详情请求参数
  6531. properties:
  6532. subscription_id:
  6533. type: string
  6534. description: 订阅 ID
  6535. title: 订阅 ID
  6536. required:
  6537. - subscription_id
  6538. title: 订阅详情请求数据
  6539. required:
  6540. - data
  6541. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6542. responses:
  6543. '200':
  6544. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6545. content:
  6546. application/json:
  6547. schema:
  6548. $ref: '#/components/schemas/ApiResponseSubscriptionGet'
  6549. /subscription/plan_options@v1:
  6550. post:
  6551. summary: 订阅档位候选
  6552. description: 第 3 步:本客户自定义档(含合同条目派生档)+全部固定档,不含他客户自定义档;行内带只读 sub_mode 与
  6553. available/unavailable_reason。
  6554. operationId: subscription_plan_options
  6555. tags:
  6556. - 订阅
  6557. x-require-auth: true
  6558. x-resource-type:
  6559. $ref: '#/components/x-resource-types/subscription/code'
  6560. x-action:
  6561. $ref: '#/components/x-actions/list/code'
  6562. x-version: v1
  6563. x-permission-visibility: catalog
  6564. requestBody:
  6565. required: true
  6566. description: JSON 请求体,业务字段置于 data
  6567. content:
  6568. application/json:
  6569. schema:
  6570. type: object
  6571. description: 统一信封请求体,业务字段放在 data 内
  6572. properties:
  6573. data:
  6574. type: object
  6575. description: 订阅档位候选请求参数
  6576. properties:
  6577. customer_id:
  6578. type: string
  6579. description: 客户 ID(必填)
  6580. title: 客户 ID
  6581. keyword:
  6582. type: string
  6583. description: 套餐名称关键字(仅本口有)
  6584. title: 关键字
  6585. required:
  6586. - customer_id
  6587. title: 订阅档位候选请求数据
  6588. required:
  6589. - data
  6590. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6591. responses:
  6592. '200':
  6593. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6594. content:
  6595. application/json:
  6596. schema:
  6597. $ref: '#/components/schemas/ApiResponseSubscriptionPlanOptions'
  6598. /subscription/contract_options@v1:
  6599. post:
  6600. summary: 未开通合同与服务条目候选
  6601. description: 第 2 步:只出「未开通」合同及其尚未被订阅引用的条目;开通态取数失败⇒KLT-S406;无可选合同⇒KLT-M222。
  6602. operationId: subscription_contract_options
  6603. tags:
  6604. - 订阅
  6605. x-require-auth: true
  6606. x-resource-type:
  6607. $ref: '#/components/x-resource-types/subscription/code'
  6608. x-action:
  6609. $ref: '#/components/x-actions/list/code'
  6610. x-version: v1
  6611. x-permission-visibility: catalog
  6612. requestBody:
  6613. required: true
  6614. description: JSON 请求体,业务字段置于 data
  6615. content:
  6616. application/json:
  6617. schema:
  6618. type: object
  6619. description: 统一信封请求体,业务字段放在 data 内
  6620. properties:
  6621. data:
  6622. type: object
  6623. description: 未开通合同与服务条目候选请求参数
  6624. properties:
  6625. customer_id:
  6626. type: string
  6627. description: 客户 ID(必填)
  6628. title: 客户 ID
  6629. keyword:
  6630. type: string
  6631. description: 合同名称关键字(仅本口有)
  6632. title: 关键字
  6633. required:
  6634. - customer_id
  6635. title: 未开通合同与服务条目候选请求数据
  6636. required:
  6637. - data
  6638. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6639. responses:
  6640. '200':
  6641. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6642. content:
  6643. application/json:
  6644. schema:
  6645. $ref: '#/components/schemas/ApiResponseSubscriptionContractOptions'
  6646. /subscription/update@v1:
  6647. post:
  6648. summary: 订阅修改(白名单)
  6649. description: 可改字段只有 trial_months/discount_monthly_cents;row_version
  6650. 必填,落空⇒KLT-S407;换套餐/换合同⇒KLT-M229。
  6651. operationId: subscription_update
  6652. tags:
  6653. - 订阅
  6654. x-require-auth: true
  6655. x-resource-type:
  6656. $ref: '#/components/x-resource-types/subscription/code'
  6657. x-action:
  6658. $ref: '#/components/x-actions/update/code'
  6659. x-version: v1
  6660. x-permission-visibility: catalog
  6661. requestBody:
  6662. required: true
  6663. description: JSON 请求体,业务字段置于 data
  6664. content:
  6665. application/json:
  6666. schema:
  6667. type: object
  6668. description: 统一信封请求体,业务字段放在 data 内
  6669. properties:
  6670. data:
  6671. type: object
  6672. description: 订阅修改(白名单)请求参数
  6673. properties:
  6674. subscription_id:
  6675. type: string
  6676. description: 订阅 ID
  6677. title: 订阅 ID
  6678. row_version:
  6679. type: integer
  6680. description: 乐观锁版本号(必填,落空⇒KLT-S407)
  6681. title: 乐观锁版本
  6682. trial_months:
  6683. type: integer
  6684. description: 试用月数(白名单可改)
  6685. minimum: 0
  6686. title: trial months
  6687. discount_monthly_cents:
  6688. type: integer
  6689. description: 每月优惠金额(分,白名单可改)
  6690. minimum: 0
  6691. title: discount monthly cents
  6692. required:
  6693. - subscription_id
  6694. - row_version
  6695. title: 订阅修改(白名单)请求数据
  6696. required:
  6697. - data
  6698. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6699. responses:
  6700. '200':
  6701. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6702. content:
  6703. application/json:
  6704. schema:
  6705. $ref: '#/components/schemas/ApiResponseSubscriptionUpdate'
  6706. /subscription/delete_check@v1:
  6707. post:
  6708. summary: 订阅删除前阻塞检查
  6709. description: 两栏阻塞分列(账单明细⇒KLT-M227、升降配链原订阅⇒KLT-M230);账单只读口未接线⇒billing_state=unconfigured。
  6710. operationId: subscription_delete_check
  6711. tags:
  6712. - 订阅
  6713. x-require-auth: true
  6714. x-resource-type:
  6715. $ref: '#/components/x-resource-types/subscription/code'
  6716. x-action:
  6717. $ref: '#/components/x-actions/view/code'
  6718. x-version: v1
  6719. x-permission-visibility: catalog
  6720. requestBody:
  6721. required: true
  6722. description: JSON 请求体,业务字段置于 data
  6723. content:
  6724. application/json:
  6725. schema:
  6726. type: object
  6727. description: 统一信封请求体,业务字段放在 data 内
  6728. properties:
  6729. data:
  6730. type: object
  6731. description: 订阅删除前阻塞检查请求参数
  6732. properties:
  6733. subscription_id:
  6734. type: string
  6735. description: 订阅 ID
  6736. title: 订阅 ID
  6737. required:
  6738. - subscription_id
  6739. title: 订阅删除前阻塞检查请求数据
  6740. required:
  6741. - data
  6742. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6743. responses:
  6744. '200':
  6745. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6746. content:
  6747. application/json:
  6748. schema:
  6749. $ref: '#/components/schemas/ApiResponseSubscriptionDeleteCheck'
  6750. /subscription/delete@v1:
  6751. post:
  6752. summary: 删除订阅并回退额度
  6753. description: 删除前复算阻塞;终态⇒11103;同事务回退 customer.quota_cents,档位 first_referred_at 打点不回滚。
  6754. operationId: subscription_delete
  6755. tags:
  6756. - 订阅
  6757. x-require-auth: true
  6758. x-resource-type:
  6759. $ref: '#/components/x-resource-types/subscription/code'
  6760. x-action:
  6761. $ref: '#/components/x-actions/delete/code'
  6762. x-version: v1
  6763. x-permission-visibility: catalog
  6764. requestBody:
  6765. required: true
  6766. description: JSON 请求体,业务字段置于 data
  6767. content:
  6768. application/json:
  6769. schema:
  6770. type: object
  6771. description: 统一信封请求体,业务字段放在 data 内
  6772. properties:
  6773. data:
  6774. type: object
  6775. description: 删除订阅并回退额度请求参数
  6776. properties:
  6777. subscription_id:
  6778. type: string
  6779. description: 订阅 ID
  6780. title: 订阅 ID
  6781. required:
  6782. - subscription_id
  6783. title: 删除订阅并回退额度请求数据
  6784. required:
  6785. - data
  6786. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6787. responses:
  6788. '200':
  6789. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6790. content:
  6791. application/json:
  6792. schema:
  6793. $ref: '#/components/schemas/ApiResponseSubscriptionDelete'
  6794. /subscription/list_all@v1:
  6795. post:
  6796. summary: 全部订阅(跨客户)
  6797. description: >-
  6798. 跨客户订阅列表,customer_id 可选;region_ids 经客户挂载区域展开。 keyword 命中套餐名/订阅号/订单号/客户名/合同号;page 0 基,page_size
  6799. 上限 200。
  6800. operationId: subscription_list_all
  6801. tags:
  6802. - 订阅
  6803. x-require-auth: true
  6804. x-resource-type:
  6805. $ref: '#/components/x-resource-types/subscription/code'
  6806. x-action:
  6807. $ref: '#/components/x-actions/list/code'
  6808. x-version: v1
  6809. x-permission-visibility: catalog
  6810. requestBody:
  6811. required: true
  6812. description: JSON 请求体,业务字段置于 data
  6813. content:
  6814. application/json:
  6815. schema:
  6816. type: object
  6817. description: 统一信封请求体,业务字段放在 data 内
  6818. properties:
  6819. data:
  6820. type: object
  6821. description: 列表筛选参数
  6822. properties:
  6823. page:
  6824. type: integer
  6825. description: 页码(0 基索引,默认 0)
  6826. minimum: 0
  6827. default: 0
  6828. title: 页码
  6829. page_size:
  6830. type: integer
  6831. description: 每页条数(默认 20,上限 200)
  6832. minimum: 1
  6833. maximum: 200
  6834. default: 20
  6835. title: 每页条数
  6836. keyword:
  6837. type: string
  6838. description: 关键字(套餐名/订阅号/订单号/客户名/合同号)
  6839. title: 关键字
  6840. customer_id:
  6841. type: string
  6842. description: 客户 ID 筛选(跨客户列表下可选)
  6843. title: 客户 ID
  6844. contract_id:
  6845. type: string
  6846. description: 合同 ID 筛选
  6847. title: 合同 ID
  6848. status:
  6849. type: string
  6850. description: 状态筛选(pending/active/expired/cancelled/replaced/early_stopped)
  6851. title: 状态
  6852. plan_kind:
  6853. type: string
  6854. description: 套餐类型(fixed/custom)
  6855. enum:
  6856. - fixed
  6857. - custom
  6858. title: plan kind
  6859. line_exit:
  6860. type: string
  6861. description: 线路出口名称(命中 line_exits 快照)
  6862. title: line exit
  6863. expiring_within_days:
  6864. type: integer
  6865. description: 快到期天数(止期 ∈ [today, today+N];已到期不算)
  6866. minimum: 0
  6867. title: expiring within days
  6868. region_ids:
  6869. type: array
  6870. description: 区域 ID 集合(经客户挂载区域展开)
  6871. items:
  6872. type: string
  6873. description: 区域 ID
  6874. title: region_ids元素
  6875. title: region ids
  6876. title: 全部订阅(跨客户)请求数据
  6877. required:
  6878. - data
  6879. x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222]
  6880. responses:
  6881. '200':
  6882. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6883. content:
  6884. application/json:
  6885. schema:
  6886. $ref: '#/components/schemas/ApiResponseSubscriptionListAll'
  6887. /cost_item/save@v1:
  6888. post:
  6889. summary: 保存成本项定义
  6890. description: 仅 admin。增改成本项定义。拒收金额、客户、运营商、省份、cycle、is_system。
  6891. operationId: cost_item_save
  6892. tags:
  6893. - 成本与分成
  6894. x-require-auth: true
  6895. x-resource-type:
  6896. $ref: '#/components/x-resource-types/cost_item/code'
  6897. x-action:
  6898. $ref: '#/components/x-actions/manage/code'
  6899. x-version: v1
  6900. x-permission-visibility: catalog
  6901. requestBody:
  6902. required: true
  6903. description: JSON 请求体,业务字段置于 data
  6904. content:
  6905. application/json:
  6906. schema:
  6907. type: object
  6908. description: 统一信封请求体,业务字段放在 data 内
  6909. properties:
  6910. data:
  6911. type: object
  6912. description: 保存成本项定义请求参数
  6913. properties:
  6914. cost_item_id:
  6915. type: string
  6916. description: 成本项 ID(更新时必填)
  6917. title: cost item id
  6918. category:
  6919. type: string
  6920. description: 类别:intl_resource/device_purchase/project_fee
  6921. enum:
  6922. - intl_resource
  6923. - device_purchase
  6924. - project_fee
  6925. title: category
  6926. item_name:
  6927. type: string
  6928. description: 成本项名称
  6929. title: item name
  6930. billing_unit:
  6931. type: string
  6932. description: 计费单位:per_customer/per_account/per_copy
  6933. enum:
  6934. - per_customer
  6935. - per_account
  6936. - per_copy
  6937. title: billing unit
  6938. is_amortized:
  6939. type: boolean
  6940. description: 是否摊销
  6941. title: is amortized
  6942. amortization_months:
  6943. type: integer
  6944. description: 摊销月数(勾选摊销时可空=每月摊销不结束)
  6945. title: amortization months
  6946. deduct_from_base:
  6947. type: boolean
  6948. description: 是否从基数扣除
  6949. title: deduct from base
  6950. remark:
  6951. type: string
  6952. description: 备注
  6953. title: 备注
  6954. row_version:
  6955. type: integer
  6956. description: 乐观锁版本(更新时)
  6957. title: 乐观锁版本
  6958. required:
  6959. - category
  6960. - item_name
  6961. - billing_unit
  6962. - is_amortized
  6963. - deduct_from_base
  6964. title: 保存成本项定义请求数据
  6965. required:
  6966. - data
  6967. x-error-codes: [60001]
  6968. responses:
  6969. '200':
  6970. description: 成功时 code=10000;失败时查看 code/message/error_code。
  6971. content:
  6972. application/json:
  6973. schema:
  6974. $ref: '#/components/schemas/ApiResponseCostItemSave'
  6975. /cost_item/delete@v1:
  6976. post:
  6977. summary: 删除成本项定义
  6978. description: 仅 admin。顺序固定「引用检查 → 真删」;按 plan_cost_item.cost_item_id 强引用反查, 命中 ⇒ KLT-E002 并在
  6979. data.referring_plan_count 回引用档位数(文案含「先在档位上解除引用」出路);改名不影响引用数。 无引用才真删:同一批清理该成本项名下全部
  6980. cost_amount 行(级联行数只进审计摘要、不进响应体)。
  6981. operationId: cost_item_delete
  6982. tags:
  6983. - 成本与分成
  6984. x-require-auth: true
  6985. x-resource-type:
  6986. $ref: '#/components/x-resource-types/cost_item/code'
  6987. x-action:
  6988. $ref: '#/components/x-actions/delete/code'
  6989. x-version: v1
  6990. x-permission-visibility: catalog
  6991. requestBody:
  6992. required: true
  6993. description: JSON 请求体,业务字段置于 data
  6994. content:
  6995. application/json:
  6996. schema:
  6997. type: object
  6998. description: 统一信封请求体,业务字段放在 data 内
  6999. properties:
  7000. data:
  7001. type: object
  7002. description: 删除成本项定义请求参数
  7003. properties:
  7004. cost_item_id:
  7005. type: string
  7006. description: 成本项 ID(待删除的定义主键)
  7007. title: cost item id
  7008. required:
  7009. - cost_item_id
  7010. title: 删除成本项定义请求数据
  7011. required:
  7012. - data
  7013. x-error-codes: [60005, 60302]
  7014. responses:
  7015. '200':
  7016. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7017. content:
  7018. application/json:
  7019. schema:
  7020. $ref: '#/components/schemas/ApiResponseCostItemDelete'
  7021. /cost_item/get_list@v1:
  7022. post:
  7023. summary: 成本项列表
  7024. description: 全局成本项目录;可选类别/名称关键字;无客户过滤。
  7025. operationId: cost_item_get_list
  7026. tags:
  7027. - 成本与分成
  7028. x-require-auth: true
  7029. x-resource-type:
  7030. $ref: '#/components/x-resource-types/cost_item/code'
  7031. x-action:
  7032. $ref: '#/components/x-actions/list/code'
  7033. x-version: v1
  7034. x-permission-visibility: catalog
  7035. requestBody:
  7036. required: true
  7037. description: JSON 请求体,业务字段置于 data
  7038. content:
  7039. application/json:
  7040. schema:
  7041. type: object
  7042. description: 统一信封请求体,业务字段放在 data 内
  7043. properties:
  7044. data:
  7045. type: object
  7046. description: 列表筛选参数
  7047. properties:
  7048. page:
  7049. type: integer
  7050. description: 页码(0 基索引,默认 0)
  7051. minimum: 0
  7052. default: 0
  7053. title: 页码
  7054. page_size:
  7055. type: integer
  7056. description: 每页条数(默认 20,上限 200)
  7057. minimum: 1
  7058. maximum: 200
  7059. default: 20
  7060. title: 每页条数
  7061. keyword:
  7062. type: string
  7063. description: 关键字筛选(可选)
  7064. title: 关键字
  7065. item_name:
  7066. type: string
  7067. description: 按成本项名称模糊检索(BUG-26F;与 keyword 同口径 LIKE)
  7068. title: item name
  7069. category:
  7070. type: string
  7071. description: 类别筛选
  7072. title: category
  7073. title: 成本项列表请求数据
  7074. required:
  7075. - data
  7076. x-error-codes: [60001]
  7077. responses:
  7078. '200':
  7079. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7080. content:
  7081. application/json:
  7082. schema:
  7083. $ref: '#/components/schemas/ApiResponseCostItemGetList'
  7084. /cost_amount/save@v1:
  7085. post:
  7086. summary: 保存成本金额
  7087. description: 按「省份×运营商×成本项」只写差异金额;留空项表示删除该差异。
  7088. operationId: cost_amount_save
  7089. tags:
  7090. - 成本与分成
  7091. x-require-auth: true
  7092. x-resource-type:
  7093. $ref: '#/components/x-resource-types/cost_amount/code'
  7094. x-action:
  7095. $ref: '#/components/x-actions/manage/code'
  7096. x-version: v1
  7097. x-permission-visibility: catalog
  7098. requestBody:
  7099. required: true
  7100. description: JSON 请求体,业务字段置于 data
  7101. content:
  7102. application/json:
  7103. schema:
  7104. type: object
  7105. description: 统一信封请求体,业务字段放在 data 内
  7106. properties:
  7107. data:
  7108. type: object
  7109. description: 保存成本金额请求参数
  7110. properties:
  7111. province_node_id:
  7112. type: string
  7113. description: 省份节点 ID
  7114. title: province node id
  7115. operator_id:
  7116. type: string
  7117. description: 运营商 ID
  7118. title: 运营商 ID
  7119. items:
  7120. type: array
  7121. description: 变更项列表;留空金额表示删除该差异行
  7122. items:
  7123. type: object
  7124. properties:
  7125. cost_item_id:
  7126. type: string
  7127. description: 成本项 ID
  7128. amount_cents:
  7129. type: integer
  7130. description: 金额(分);空/省略表示删除
  7131. row_version:
  7132. type: integer
  7133. description: 乐观锁版本
  7134. required:
  7135. - cost_item_id
  7136. title: 列表项
  7137. required:
  7138. - province_node_id
  7139. - operator_id
  7140. - items
  7141. title: 保存成本金额请求数据
  7142. required:
  7143. - data
  7144. x-error-codes: [60001]
  7145. responses:
  7146. '200':
  7147. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7148. content:
  7149. application/json:
  7150. schema:
  7151. $ref: '#/components/schemas/ApiResponseCostAmountSave'
  7152. /cost_amount/get_list@v1:
  7153. post:
  7154. summary: 成本金额一览
  7155. description: 透视表;admin 全量,区域运营按可见省/运营商收窄。
  7156. operationId: cost_amount_get_list
  7157. tags:
  7158. - 成本与分成
  7159. x-require-auth: true
  7160. x-resource-type:
  7161. $ref: '#/components/x-resource-types/cost_amount/code'
  7162. x-action:
  7163. $ref: '#/components/x-actions/list/code'
  7164. x-version: v1
  7165. x-permission-visibility: catalog
  7166. requestBody:
  7167. required: true
  7168. description: JSON 请求体,业务字段置于 data
  7169. content:
  7170. application/json:
  7171. schema:
  7172. type: object
  7173. description: 统一信封请求体,业务字段放在 data 内
  7174. properties:
  7175. data:
  7176. type: object
  7177. description: 列表筛选参数
  7178. properties:
  7179. province_node_id:
  7180. type: string
  7181. description: 省份筛选
  7182. title: province node id
  7183. operator_id:
  7184. type: string
  7185. description: 运营商筛选
  7186. title: 运营商 ID
  7187. page:
  7188. type: integer
  7189. description: 页码(0 基索引,默认 0)
  7190. minimum: 0
  7191. default: 0
  7192. title: 页码
  7193. page_size:
  7194. type: integer
  7195. description: 每页条数(默认 20,上限 200)
  7196. minimum: 1
  7197. maximum: 200
  7198. default: 20
  7199. title: 每页条数
  7200. keyword:
  7201. type: string
  7202. description: 关键字筛选(可选)
  7203. title: 关键字
  7204. title: 成本金额一览请求数据
  7205. required:
  7206. - data
  7207. x-error-codes: [60001]
  7208. responses:
  7209. '200':
  7210. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7211. content:
  7212. application/json:
  7213. schema:
  7214. $ref: '#/components/schemas/ApiResponseCostAmountGetList'
  7215. /share_rule/save@v1:
  7216. post:
  7217. summary: 保存分成规则
  7218. description: |-
  7219. 改分成=改分成方档案上的 settle_mode/settle_value 两列。
  7220. holder_type∈{operator,ops_team,partner}。rules 实际只表达一对取值(多条须一致)。
  7221. 两列一起传 null=取消分成(未配、计 0); 用 0/负数表达删除。
  7222. 顶层仅接受 holder_type/holder_id/rules/row_version,其余键(含误放顶层的 share_mode/__probe)⇒ 60004(BUG-3D-43)。
  7223. row_version 必填:与三档案 update 共用同一条乐观锁链;缺省 ⇒ 60004;不符 ⇒ KLT-S407/60001;
  7224. 同值 ⇒ changed=0、不空转版本(BUG-3D-44/A)。
  7225. get 回显的只读派生键(rule_id/rule_level/status/holder_name/customer_id/customer_name/remark
  7226. 及误放行内的 row_version)允许原样回填:同值忽略/异值拒绝(BUG-3D-45);⛔ 静默受理异值。
  7227. operationId: share_rule_save
  7228. tags:
  7229. - 成本与分成
  7230. x-require-auth: true
  7231. x-resource-type:
  7232. $ref: '#/components/x-resource-types/share_rule/code'
  7233. x-action:
  7234. $ref: '#/components/x-actions/manage/code'
  7235. x-version: v1
  7236. x-permission-visibility: catalog
  7237. requestBody:
  7238. required: true
  7239. description: JSON 请求体,业务字段置于 data
  7240. content:
  7241. application/json:
  7242. schema:
  7243. type: object
  7244. description: 统一信封请求体,业务字段放在 data 内
  7245. properties:
  7246. data:
  7247. type: object
  7248. description: 保存分成规则请求参数
  7249. properties:
  7250. holder_type:
  7251. type: string
  7252. description: 持有方类型(档案表)
  7253. enum:
  7254. - operator
  7255. - ops_team
  7256. - partner
  7257. title: holder type
  7258. holder_id:
  7259. type: string
  7260. description: 持有方 ID
  7261. title: holder id
  7262. rules:
  7263. type: array
  7264. description: |-
  7265. 规则行列表(档案只有一对 settle_mode/settle_value;请写入 rules[0])。
  7266. 可将 /share_rule/get@v1 的 rules[0] 原样回填:只读写 share_mode/share_value,
  7267. 其余回显键同值忽略/异值拒绝(BUG-3D-45)。
  7268. items:
  7269. type: object
  7270. properties:
  7271. rule_id:
  7272. type: string
  7273. description: |-
  7274. 视图键(get=`{holder_type}:{holder_id}`)。同值忽略;异值 ⇒ 60004(BUG-3D-45)。
  7275. readOnly: true
  7276. customer_id:
  7277. type: string
  7278. nullable: true
  7279. description: |-
  7280. get 恒 null。空/缺席/null=同值忽略;非空 ⇒ 60004(逐客户层已取消)。
  7281. readOnly: true
  7282. customer_name:
  7283. type: string
  7284. nullable: true
  7285. description: |-
  7286. get 恒 null(columns_pending)。空/null=同值忽略;非空 ⇒ 60004。
  7287. readOnly: true
  7288. rule_level:
  7289. type: string
  7290. description: |-
  7291. get 恒 default。同值忽略;其它 ⇒ 60004(分层已取消;BUG-3D-45)。
  7292. readOnly: true
  7293. remark:
  7294. type: string
  7295. nullable: true
  7296. description: |-
  7297. get 恒 null。空/null=同值忽略;非空 ⇒ 60004(档案无此列)。
  7298. readOnly: true
  7299. status:
  7300. type: string
  7301. nullable: true
  7302. description: |-
  7303. get 回显(仅 partner 有真值,其余 null)。同值忽略;异值 ⇒ 60004。
  7304. readOnly: true
  7305. holder_name:
  7306. type: string
  7307. description: 档案名回显。同值忽略;异值 ⇒ 60004。
  7308. readOnly: true
  7309. holder_type:
  7310. type: string
  7311. description: 与顶层一致时可回填;异值 ⇒ 60004。
  7312. readOnly: true
  7313. holder_id:
  7314. type: string
  7315. description: 与顶层一致时可回填;异值 ⇒ 60004。
  7316. readOnly: true
  7317. row_version:
  7318. type: integer
  7319. description: |-
  7320. ⛔ 乐观锁真源在 data 顶层。行内出现时须与顶层同值(同值忽略);
  7321. 异值 ⇒ 60004 并提示须置于 data 顶层。
  7322. readOnly: true
  7323. minimum: 1
  7324. share_mode:
  7325. type: string
  7326. description: |-
  7327. 档案 settle_mode:仅 ratio/amount/per_account。
  7328. ratio_total/fixed_amount/percent 等别名已停用 ⇒ 60004(须写在 rules[0],顶层出现亦 60004)。
  7329. enum:
  7330. - ratio
  7331. - amount
  7332. - per_account
  7333. share_value:
  7334. type: number
  7335. description: |-
  7336. 与 share_mode 成对:ratio 为 (0,1] 小数(界面百分数在录入侧换算);
  7337. amount/per_account 为 >0(元)。两列皆 null=清空分成。列上界 NUMERIC(12,4)。
  7338. title: rules
  7339. row_version:
  7340. type: integer
  7341. description: |-
  7342. 档案乐观锁版本(必填)。取 /share_rule/get@v1 或列表回执的 rule.row_version;
  7343. 与 operator/ops_team/partner update 同链。缺省=60004;不符=KLT-S407/60001。
  7344. 须置于 data 顶层;误写在 rules[] 内且与顶层同值时可忽略(BUG-3D-45),异值仍 60004。
  7345. title: 乐观锁版本
  7346. minimum: 1
  7347. additionalProperties: false
  7348. required:
  7349. - holder_type
  7350. - holder_id
  7351. - rules
  7352. - row_version
  7353. title: 保存分成规则请求数据
  7354. required:
  7355. - data
  7356. x-error-codes: [60001, 60004, 60058]
  7357. responses:
  7358. '200':
  7359. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7360. content:
  7361. application/json:
  7362. schema:
  7363. $ref: '#/components/schemas/ApiResponseShareRuleSave'
  7364. /share_rule/get_list@v1:
  7365. post:
  7366. summary: 分成规则列表
  7367. description: 按持有方等条件列出分成规则。
  7368. operationId: share_rule_get_list
  7369. tags:
  7370. - 成本与分成
  7371. x-require-auth: true
  7372. x-resource-type:
  7373. $ref: '#/components/x-resource-types/share_rule/code'
  7374. x-action:
  7375. $ref: '#/components/x-actions/list/code'
  7376. x-version: v1
  7377. x-permission-visibility: catalog
  7378. requestBody:
  7379. required: true
  7380. description: JSON 请求体,业务字段置于 data
  7381. content:
  7382. application/json:
  7383. schema:
  7384. type: object
  7385. description: 统一信封请求体,业务字段放在 data 内
  7386. properties:
  7387. data:
  7388. type: object
  7389. description: 列表筛选参数
  7390. properties:
  7391. holder_type:
  7392. type: string
  7393. description: 持有方类型
  7394. title: holder type
  7395. holder_id:
  7396. type: string
  7397. description: 持有方 ID
  7398. title: holder id
  7399. page:
  7400. type: integer
  7401. description: 页码(0 基索引,默认 0)
  7402. minimum: 0
  7403. default: 0
  7404. title: 页码
  7405. page_size:
  7406. type: integer
  7407. description: 每页条数(默认 20,上限 200)
  7408. minimum: 1
  7409. maximum: 200
  7410. default: 20
  7411. title: 每页条数
  7412. keyword:
  7413. type: string
  7414. description: 关键字筛选(可选)
  7415. title: 关键字
  7416. title: 分成规则列表请求数据
  7417. required:
  7418. - data
  7419. x-error-codes: []
  7420. responses:
  7421. '200':
  7422. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7423. content:
  7424. application/json:
  7425. schema:
  7426. $ref: '#/components/schemas/ApiResponseShareRuleGetList'
  7427. /share_rule/get@v1:
  7428. post:
  7429. summary: 分成规则详情
  7430. description: 按持有方一次返回四卡摘要与规则表。
  7431. operationId: share_rule_get
  7432. tags:
  7433. - 成本与分成
  7434. x-require-auth: true
  7435. x-resource-type:
  7436. $ref: '#/components/x-resource-types/share_rule/code'
  7437. x-action:
  7438. $ref: '#/components/x-actions/view/code'
  7439. x-version: v1
  7440. x-permission-visibility: catalog
  7441. requestBody:
  7442. required: true
  7443. description: JSON 请求体,业务字段置于 data
  7444. content:
  7445. application/json:
  7446. schema:
  7447. type: object
  7448. description: 统一信封请求体,业务字段放在 data 内
  7449. properties:
  7450. data:
  7451. type: object
  7452. description: 分成规则详情请求参数
  7453. properties:
  7454. holder_type:
  7455. type: string
  7456. description: 持有方类型:operator/ops_team
  7457. title: holder type
  7458. holder_id:
  7459. type: string
  7460. description: 持有方 ID
  7461. title: holder id
  7462. required:
  7463. - holder_type
  7464. - holder_id
  7465. title: 分成规则详情请求数据
  7466. required:
  7467. - data
  7468. x-error-codes: []
  7469. responses:
  7470. '200':
  7471. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7472. content:
  7473. application/json:
  7474. schema:
  7475. $ref: '#/components/schemas/ApiResponseShareRuleGet'
  7476. /share_rule/delete@v1:
  7477. post:
  7478. summary: 删除分成规则
  7479. description: 按 rule_id 删除单条分成规则(亦可在 save 内以 0/负值删除)。
  7480. operationId: share_rule_delete
  7481. tags:
  7482. - 成本与分成
  7483. x-require-auth: true
  7484. x-resource-type:
  7485. $ref: '#/components/x-resource-types/share_rule/code'
  7486. x-action:
  7487. $ref: '#/components/x-actions/delete/code'
  7488. x-version: v1
  7489. x-permission-visibility: catalog
  7490. requestBody:
  7491. required: true
  7492. description: JSON 请求体,业务字段置于 data
  7493. content:
  7494. application/json:
  7495. schema:
  7496. type: object
  7497. description: 统一信封请求体,业务字段放在 data 内
  7498. properties:
  7499. data:
  7500. type: object
  7501. description: 删除分成规则请求参数
  7502. properties:
  7503. rule_id:
  7504. type: string
  7505. description: 规则 ID
  7506. title: rule id
  7507. required:
  7508. - rule_id
  7509. title: 删除分成规则请求数据
  7510. required:
  7511. - data
  7512. x-error-codes: []
  7513. responses:
  7514. '200':
  7515. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7516. content:
  7517. application/json:
  7518. schema:
  7519. $ref: '#/components/schemas/ApiResponseShareRuleDelete'
  7520. /opsview/home@v1:
  7521. get:
  7522. summary: 运维只读首页
  7523. description: 运维侧只读首页,返回工单/逾期等概览数据。
  7524. operationId: opsview_home
  7525. tags:
  7526. - 运维视图
  7527. x-require-auth: true
  7528. x-resource-type:
  7529. $ref: '#/components/x-resource-types/opsview/code'
  7530. x-action:
  7531. $ref: '#/components/x-actions/view/code'
  7532. x-version: v1
  7533. x-permission-visibility: catalog
  7534. x-error-codes: []
  7535. responses:
  7536. '200':
  7537. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7538. content:
  7539. application/json:
  7540. schema:
  7541. $ref: '#/components/schemas/ApiResponseOpsviewHome'
  7542. /jobs/get_list@v1:
  7543. get:
  7544. summary: 定时作业清单
  7545. description: 返回 13 行清单(注册位 11 +标注行 2)及运行态:启用态、可操作性位、最近执行、五格计数、累计轮次、KPI 五卡与待补跑轮次。运行态取数失败时仍返回 13
  7546. 行,runtime_available=false。
  7547. operationId: jobs_get_list
  7548. tags:
  7549. - 定时作业
  7550. x-require-auth: true
  7551. x-resource-type:
  7552. $ref: '#/components/x-resource-types/jobs/code'
  7553. x-action:
  7554. $ref: '#/components/x-actions/list/code'
  7555. x-version: v1
  7556. x-permission-visibility: catalog
  7557. x-error-codes: []
  7558. responses:
  7559. '200':
  7560. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7561. content:
  7562. application/json:
  7563. schema:
  7564. $ref: '#/components/schemas/ApiResponseJobsGetList'
  7565. /jobs/toggle@v1:
  7566. post:
  7567. summary: 启停定时作业
  7568. description: 仅 admin。按作业 key 启停。
  7569. operationId: jobs_toggle
  7570. tags:
  7571. - 定时作业
  7572. x-require-auth: true
  7573. x-resource-type:
  7574. $ref: '#/components/x-resource-types/jobs/code'
  7575. x-action:
  7576. $ref: '#/components/x-actions/manage/code'
  7577. x-version: v1
  7578. x-permission-visibility: catalog
  7579. requestBody:
  7580. required: true
  7581. description: JSON 请求体,业务字段置于 data
  7582. content:
  7583. application/json:
  7584. schema:
  7585. type: object
  7586. description: 统一信封请求体,业务字段放在 data 内
  7587. properties:
  7588. data:
  7589. type: object
  7590. description: 启停定时作业请求参数
  7591. properties:
  7592. key:
  7593. type: string
  7594. description: 作业键
  7595. title: key
  7596. enabled:
  7597. type: boolean
  7598. description: 是否启用
  7599. title: enabled
  7600. required:
  7601. - key
  7602. - enabled
  7603. title: 启停定时作业请求数据
  7604. required:
  7605. - data
  7606. x-error-codes: []
  7607. responses:
  7608. '200':
  7609. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7610. content:
  7611. application/json:
  7612. schema:
  7613. $ref: '#/components/schemas/ApiResponseJobsToggle'
  7614. /jobs/runs@v1:
  7615. post:
  7616. summary: 作业执行记录
  7617. description: 查询执行记录,支持任务、关键字(执行编号/任务/结果说明,不检索对象级明细)、触发方式、执行结果与日期区间筛选;分页 page 0 基、page_size 默认
  7618. 50。标注行返回空流水并标记 annotation=true。
  7619. operationId: jobs_runs
  7620. tags:
  7621. - 定时作业
  7622. x-require-auth: true
  7623. x-resource-type:
  7624. $ref: '#/components/x-resource-types/jobs/code'
  7625. x-action:
  7626. $ref: '#/components/x-actions/view/code'
  7627. x-version: v1
  7628. x-permission-visibility: catalog
  7629. requestBody:
  7630. required: true
  7631. description: JSON 请求体,业务字段置于 data
  7632. content:
  7633. application/json:
  7634. schema:
  7635. type: object
  7636. description: 统一信封请求体,业务字段放在 data 内
  7637. properties:
  7638. data:
  7639. type: object
  7640. description: 作业执行记录请求参数
  7641. properties:
  7642. key:
  7643. type: string
  7644. description: 作业键(可省略=全部任务)
  7645. title: key
  7646. job_key:
  7647. type: string
  7648. description: 作业键(契约字段名,可省略)
  7649. title: 作业键
  7650. keyword:
  7651. type: string
  7652. description: 关键字(执行编号/任务/结果说明;不检索对象级明细)
  7653. title: 关键字
  7654. trigger:
  7655. type: string
  7656. description: 触发方式
  7657. enum:
  7658. - 定时
  7659. - 事件
  7660. - 人工
  7661. title: trigger
  7662. result:
  7663. type: string
  7664. description: 执行结果
  7665. enum:
  7666. - 成功
  7667. - 部分成功
  7668. - 失败
  7669. - 异常
  7670. title: result
  7671. date_from:
  7672. type: string
  7673. description: 开始日期(YYYY-MM-DD,Asia/Shanghai 日界)
  7674. pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
  7675. title: date from
  7676. date_to:
  7677. type: string
  7678. description: 结束日期(YYYY-MM-DD,含当日)
  7679. pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
  7680. title: date to
  7681. page:
  7682. type: integer
  7683. description: 页码(0 基,默认 0)
  7684. minimum: 0
  7685. default: 0
  7686. title: 页码
  7687. page_size:
  7688. type: integer
  7689. description: 每页条数(默认 50,上限 200)
  7690. minimum: 1
  7691. maximum: 200
  7692. default: 50
  7693. title: 每页条数
  7694. title: 作业执行记录请求数据
  7695. required:
  7696. - data
  7697. x-error-codes: []
  7698. responses:
  7699. '200':
  7700. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7701. content:
  7702. application/json:
  7703. schema:
  7704. $ref: '#/components/schemas/ApiResponseJobsRuns'
  7705. /jobs/run_once@v1:
  7706. post:
  7707. summary: 补跑作业一次
  7708. description: 触发一次指定作业。prod 环境仅总运营可补跑。可选
  7709. key:SUB-EFF/SNAPSHOT-FREEZE/DELEG-SYNC/STOP-GEN/OVERDUE/AUTO-CLOSE/RECON/ORPHAN-CLEAN/REGION-WARM/ONEDIR-CHECK/OSS-ORPHAN-CLEAN/CONTRACT-RENEW。执行轮次落
  7710. bos_job_run,返回本轮五格计数与对象级明细。`AUTO-CLOSE`=「客户 7 天未确认则系统自动关闭」:扫停在 completed
  7711. 的故障/售后客户自报单,完成日早于「业务日 − 7 天」的逐张置 settled(动作键 confirm_close、主体
  7712. AUTO-CLOSE);运维代建/系统生成单不进本作业(标记完成即结束)。`STOP-GEN`/`AUTO-CLOSE`/`CONTRACT-RENEW` 可选传
  7713. biz_date(YYYY-MM-DD,缺省=今天)补跑历史某日。
  7714. operationId: jobs_run_once
  7715. tags:
  7716. - 定时作业
  7717. x-require-auth: true
  7718. x-resource-type:
  7719. $ref: '#/components/x-resource-types/jobs/code'
  7720. x-action:
  7721. $ref: '#/components/x-actions/manage/code'
  7722. x-version: v1
  7723. x-permission-visibility: catalog
  7724. requestBody:
  7725. required: true
  7726. description: JSON 请求体,业务字段置于 data
  7727. content:
  7728. application/json:
  7729. schema:
  7730. type: object
  7731. description: 统一信封请求体,业务字段放在 data 内
  7732. properties:
  7733. data:
  7734. type: object
  7735. description: 补跑作业一次请求参数
  7736. properties:
  7737. key:
  7738. type: string
  7739. description: 作业键
  7740. enum:
  7741. - SUB-EFF
  7742. - SNAPSHOT-FREEZE
  7743. - DELEG-SYNC
  7744. - STOP-GEN
  7745. - OVERDUE
  7746. - AUTO-CLOSE
  7747. - RECON
  7748. - ORPHAN-CLEAN
  7749. - REGION-WARM
  7750. - ONEDIR-CHECK
  7751. - OSS-ORPHAN-CLEAN
  7752. - CONTRACT-RENEW
  7753. title: key
  7754. period:
  7755. type: string
  7756. description: 仅 RECON 用;指定已结束自然月(YYYY-MM)回填,前端传 1 基以外的月份格式即 11103
  7757. pattern: '^[0-9]{4}-[0-9]{2}$'
  7758. title: 账期
  7759. biz_date:
  7760. type: string
  7761. description: 仅 STOP-GEN/AUTO-CLOSE/CONTRACT-RENEW
  7762. 用;业务日(YYYY-MM-DD),缺省=当天。STOP-GEN 按「订阅结束日早于该业务日」扫描;CONTRACT-RENEW 按「合同结束日在
  7763. [业务日, 业务日+提前天数] 窗口内」扫描;幂等键含业务日
  7764. pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$'
  7765. title: 业务日
  7766. required:
  7767. - key
  7768. title: 补跑作业一次请求数据
  7769. required:
  7770. - data
  7771. x-error-codes: []
  7772. responses:
  7773. '200':
  7774. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7775. content:
  7776. application/json:
  7777. schema:
  7778. $ref: '#/components/schemas/ApiResponseJobsRunOnce'
  7779. /share_rule/param_summary@v1:
  7780. post:
  7781. summary: 分成参数摘要
  7782. description: |-
  7783. 批量取分成方的分成方式/数值与覆盖客户数(分成管理页徽标);最多 500 项。
  7784. holders 必填且非空(null/缺键/[] ⇒ 60004);按 holder_type|holder_id 去重;
  7785. holder_id 号段须匹配发号前缀(operator=OP-/partner=PT-/ops_team=OPS-),空串或前缀不符 ⇒ 11103;
  7786. 未知主体逐项返回 configured=false+item_error( 整批 11104);share_value=十进制字符串(与档案 settle_value 同型)。 无 `share-rule/holder-options`(连字符)口;分成方候选=`operator`/`partner`/`ops_team` 的 `get_list`。
  7787. operationId: share_rule_param_summary
  7788. tags:
  7789. - 成本与分成
  7790. x-require-auth: true
  7791. x-resource-type:
  7792. $ref: '#/components/x-resource-types/share_rule/code'
  7793. x-action:
  7794. $ref: '#/components/x-actions/list/code'
  7795. x-version: v1
  7796. x-permission-visibility: catalog
  7797. x-error-codes: [11103, 11104]
  7798. responses:
  7799. '200':
  7800. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7801. content:
  7802. application/json:
  7803. schema:
  7804. $ref: '#/components/schemas/ApiResponseShareRuleParamSummary'
  7805. /billing/config_get@v1:
  7806. get:
  7807. summary: 出账配置读
  7808. description: 默认对账日、成本生效口径、行版本与运营商对账账号列表(仅总运营)。
  7809. operationId: billing_config_get
  7810. tags:
  7811. - 计费与对账
  7812. x-require-auth: true
  7813. x-resource-type:
  7814. $ref: '#/components/x-resource-types/billing_config/code'
  7815. x-action:
  7816. $ref: '#/components/x-actions/view/code'
  7817. x-version: v1
  7818. x-permission-visibility: catalog
  7819. x-error-codes: []
  7820. responses:
  7821. '200':
  7822. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7823. content:
  7824. application/json:
  7825. schema:
  7826. $ref: '#/components/schemas/ApiResponseBillingConfigGet'
  7827. /billing/config_update@v1:
  7828. post:
  7829. summary: 出账配置写
  7830. description: 乐观锁 row_version;提交同值 ⇒ changed=0 不写审计;运营商对账日只读(写口在 operator/update)。
  7831. operationId: billing_config_update
  7832. tags:
  7833. - 计费与对账
  7834. x-require-auth: true
  7835. x-resource-type:
  7836. $ref: '#/components/x-resource-types/billing_config/code'
  7837. x-action:
  7838. $ref: '#/components/x-actions/update/code'
  7839. x-version: v1
  7840. x-permission-visibility: catalog
  7841. x-error-codes: [11103, 60001]
  7842. responses:
  7843. '200':
  7844. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7845. content:
  7846. application/json:
  7847. schema:
  7848. $ref: '#/components/schemas/ApiResponseBillingConfigUpdate'
  7849. /recon/periods@v1:
  7850. get:
  7851. summary: 对账期次下拉
  7852. description: 有数据的自然月(倒序),不并入 get_list。
  7853. operationId: recon_periods
  7854. tags:
  7855. - 计费与对账
  7856. x-require-auth: true
  7857. x-resource-type:
  7858. $ref: '#/components/x-resource-types/recon/code'
  7859. x-action:
  7860. $ref: '#/components/x-actions/list/code'
  7861. x-version: v1
  7862. x-permission-visibility: catalog
  7863. x-error-codes: []
  7864. responses:
  7865. '200':
  7866. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7867. content:
  7868. application/json:
  7869. schema:
  7870. $ref: '#/components/schemas/ApiResponseReconPeriods'
  7871. /recon/get_list@v1:
  7872. post:
  7873. summary: 对账批次清单
  7874. description: 三统计卡与期次出账进度随同一响应下发;出账状态为派生筛选(settled/abnormal/unsettled)。
  7875. operationId: recon_get_list
  7876. tags:
  7877. - 计费与对账
  7878. x-require-auth: true
  7879. x-resource-type:
  7880. $ref: '#/components/x-resource-types/recon/code'
  7881. x-action:
  7882. $ref: '#/components/x-actions/list/code'
  7883. x-version: v1
  7884. x-permission-visibility: catalog
  7885. x-error-codes: [11103]
  7886. responses:
  7887. '200':
  7888. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7889. content:
  7890. application/json:
  7891. schema:
  7892. $ref: '#/components/schemas/ApiResponseReconGetList'
  7893. /recon/detail@v1:
  7894. get:
  7895. summary: 对账批次详情
  7896. description: 批次头+活跃明细行+动作可用性布尔位(服务端算)。
  7897. operationId: recon_detail
  7898. tags:
  7899. - 计费与对账
  7900. x-require-auth: true
  7901. x-resource-type:
  7902. $ref: '#/components/x-resource-types/recon/code'
  7903. x-action:
  7904. $ref: '#/components/x-actions/view/code'
  7905. x-version: v1
  7906. x-permission-visibility: catalog
  7907. x-error-codes: [11103, 11104]
  7908. responses:
  7909. '200':
  7910. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7911. content:
  7912. application/json:
  7913. schema:
  7914. $ref: '#/components/schemas/ApiResponseReconDetail'
  7915. /recon/rerun@v1:
  7916. post:
  7917. summary: 人工补跑出账
  7918. description: 仅总运营。四道前置依次返回 KLT-H20502/60503/60504/60506;作废旧 failed 批并回填 replaced_by_batch_no。
  7919. operationId: recon_rerun
  7920. tags:
  7921. - 计费与对账
  7922. x-require-auth: true
  7923. x-resource-type:
  7924. $ref: '#/components/x-resource-types/recon/code'
  7925. x-action:
  7926. $ref: '#/components/x-actions/update/code'
  7927. x-version: v1
  7928. x-permission-visibility: catalog
  7929. x-error-codes: [11103, 60502, 60503, 60504, 60506, 60001]
  7930. responses:
  7931. '200':
  7932. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7933. content:
  7934. application/json:
  7935. schema:
  7936. $ref: '#/components/schemas/ApiResponseReconRerun'
  7937. /recon/export_list@v1:
  7938. post:
  7939. summary: 导出对账清单(B 表)
  7940. description: 按当前筛选结果导出批次清单一行一批次,末行合计;行集与 /recon/get_list 同源;未加筛选=导出全部批次;每次导出写操作日志(记筛选条件与导出批数)。
  7941. operationId: recon_export_list
  7942. tags:
  7943. - 计费与对账
  7944. x-require-auth: true
  7945. x-resource-type:
  7946. $ref: '#/components/x-resource-types/recon/code'
  7947. x-action:
  7948. $ref: '#/components/x-actions/export/code'
  7949. x-version: v1
  7950. x-permission-visibility: catalog
  7951. x-error-codes: [11103]
  7952. responses:
  7953. '200':
  7954. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7955. content:
  7956. application/json:
  7957. schema:
  7958. $ref: '#/components/schemas/ApiResponseReconExportList'
  7959. /recon/export_detail@v1:
  7960. post:
  7961. summary: 导出账单明细(A 表)
  7962. description: 导出本批交给分成方核对的账单明细,一行一条末行本批合计;本批未执行或无明细返回 KLT-H20505(不产文件不写审计)。
  7963. operationId: recon_export_detail
  7964. tags:
  7965. - 计费与对账
  7966. x-require-auth: true
  7967. x-resource-type:
  7968. $ref: '#/components/x-resource-types/recon/code'
  7969. x-action:
  7970. $ref: '#/components/x-actions/export/code'
  7971. x-version: v1
  7972. x-permission-visibility: catalog
  7973. x-error-codes: [11103, 11104, 60505]
  7974. responses:
  7975. '200':
  7976. description: 成功时 code=10000;失败时查看 code/message/error_code。
  7977. content:
  7978. application/json:
  7979. schema:
  7980. $ref: '#/components/schemas/ApiResponseReconExportDetail'
  7981. /view/partner_recon@v1:
  7982. get:
  7983. summary: 合伙人与运维团队本方对账合并页
  7984. description: V-。卡 1(分成方式与取值)+卡 2/3(批次数与明细条数)+表 1(本方对账清单)+表 2(本方账单明细)+卡
  7985. 4(分成合计双值)+月份选项一次返回;行集恒等于「分成方=本方」,入参只有 month/keyword/page/page_size,任何范围类入参 ⇒ 11103。快照未建立 ⇒
  7986. snapshot_state=not_ready(整页态,仍回 200 与空骨架);月份选项取数失败 ⇒ month_options="failed"。
  7987. operationId: view_partner_recon
  7988. tags:
  7989. - 合伙人与运营商只读视图
  7990. x-require-auth: true
  7991. x-resource-type:
  7992. $ref: '#/components/x-resource-types/view/code'
  7993. x-action:
  7994. $ref: '#/components/x-actions/partner_recon/code'
  7995. x-version: v1
  7996. x-permission-visibility: catalog
  7997. x-error-codes: [11103, 11104]
  7998. parameters:
  7999. - name: month
  8000. in: query
  8001. required: false
  8002. schema:
  8003. type: string
  8004. description: 自然月 YYYY-MM;省略=全部自然月
  8005. - name: keyword
  8006. in: query
  8007. required: false
  8008. schema:
  8009. type: string
  8010. description: 对账单号/明细号模糊匹配(不分大小写)
  8011. - name: page
  8012. in: query
  8013. required: false
  8014. schema:
  8015. type: integer
  8016. minimum: 0
  8017. default: 0
  8018. description: 页码(0 基索引)
  8019. - name: page_size
  8020. in: query
  8021. required: false
  8022. schema:
  8023. type: integer
  8024. minimum: 1
  8025. maximum: 200
  8026. default: 20
  8027. responses:
  8028. '200':
  8029. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8030. content:
  8031. application/json:
  8032. schema:
  8033. $ref: '#/components/schemas/ApiResponseViewPartnerRecon'
  8034. /bill/get_list@v1:
  8035. post:
  8036. summary: 账单明细清单
  8037. description: 只含进入 executed 批次的 active 行。
  8038. operationId: bill_get_list
  8039. tags:
  8040. - 计费与对账
  8041. x-require-auth: true
  8042. x-resource-type:
  8043. $ref: '#/components/x-resource-types/bill/code'
  8044. x-action:
  8045. $ref: '#/components/x-actions/list/code'
  8046. x-version: v1
  8047. x-permission-visibility: catalog
  8048. x-error-codes: [11103]
  8049. responses:
  8050. '200':
  8051. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8052. content:
  8053. application/json:
  8054. schema:
  8055. $ref: '#/components/schemas/ApiResponseBillGetList'
  8056. /bill/detail@v1:
  8057. get:
  8058. summary: 账单明细详情
  8059. description: 头+成本明细+在期分账号+同订阅其他分成方,七段同源一个接口。
  8060. operationId: bill_detail
  8061. tags:
  8062. - 计费与对账
  8063. x-require-auth: true
  8064. x-resource-type:
  8065. $ref: '#/components/x-resource-types/bill/code'
  8066. x-action:
  8067. $ref: '#/components/x-actions/view/code'
  8068. x-version: v1
  8069. x-permission-visibility: catalog
  8070. x-error-codes: [11103, 11104]
  8071. responses:
  8072. '200':
  8073. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8074. content:
  8075. application/json:
  8076. schema:
  8077. $ref: '#/components/schemas/ApiResponseBillDetail'
  8078. /correction/create@v1:
  8079. post:
  8080. summary: 登记出账更正
  8081. description: 表单仅两字段(关联账单+错误内容);KLT-H20501 识别不到归属、KLT-H20507 候选未出账。不接受入参
  8082. `scope`/`severity`/`region_node_id`(三者皆为系统推导值),出现即 11103 且 `data.fields[]` 逐键给出原因。
  8083. operationId: correction_create
  8084. tags:
  8085. - 计费与对账
  8086. x-require-auth: true
  8087. x-resource-type:
  8088. $ref: '#/components/x-resource-types/correction/code'
  8089. x-action:
  8090. $ref: '#/components/x-actions/create/code'
  8091. x-version: v1
  8092. x-permission-visibility: catalog
  8093. x-error-codes: [11103, 11104, 60501, 60507, 60056]
  8094. responses:
  8095. '200':
  8096. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8097. content:
  8098. application/json:
  8099. schema:
  8100. $ref: '#/components/schemas/ApiResponseCorrectionCreate'
  8101. /correction/get_list@v1:
  8102. post:
  8103. summary: 出账更正列表
  8104. description: 自然月筛选不预选;无编辑/删除/导出入口。
  8105. operationId: correction_get_list
  8106. tags:
  8107. - 计费与对账
  8108. x-require-auth: true
  8109. x-resource-type:
  8110. $ref: '#/components/x-resource-types/correction/code'
  8111. x-action:
  8112. $ref: '#/components/x-actions/list/code'
  8113. x-version: v1
  8114. x-permission-visibility: catalog
  8115. x-error-codes: [11103]
  8116. responses:
  8117. '200':
  8118. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8119. content:
  8120. application/json:
  8121. schema:
  8122. $ref: '#/components/schemas/ApiResponseCorrectionGetList'
  8123. /correction/detail@v1:
  8124. get:
  8125. summary: 出账更正详情
  8126. description: 命中/未命中两种展示同源;越权与查无同码(11104)。
  8127. operationId: correction_detail
  8128. tags:
  8129. - 计费与对账
  8130. x-require-auth: true
  8131. x-resource-type:
  8132. $ref: '#/components/x-resource-types/correction/code'
  8133. x-action:
  8134. $ref: '#/components/x-actions/view/code'
  8135. x-version: v1
  8136. x-permission-visibility: catalog
  8137. x-error-codes: [11103, 11104]
  8138. responses:
  8139. '200':
  8140. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8141. content:
  8142. application/json:
  8143. schema:
  8144. $ref: '#/components/schemas/ApiResponseCorrectionDetail'
  8145. /correction/draft_save@v1:
  8146. post:
  8147. summary: 保存更正草稿
  8148. description: 按「admin × 本机」至多一份;表单整体 ≤64KB;不接受 user_id。
  8149. operationId: correction_draft_save
  8150. tags:
  8151. - 计费与对账
  8152. x-require-auth: true
  8153. x-resource-type:
  8154. $ref: '#/components/x-resource-types/correction/code'
  8155. x-action:
  8156. $ref: '#/components/x-actions/update/code'
  8157. x-version: v1
  8158. x-permission-visibility: catalog
  8159. x-error-codes: [11103]
  8160. responses:
  8161. '200':
  8162. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8163. content:
  8164. application/json:
  8165. schema:
  8166. $ref: '#/components/schemas/ApiResponseCorrectionDraftSave'
  8167. /correction/draft_get@v1:
  8168. get:
  8169. summary: 读取更正草稿
  8170. description: 无草稿 ⇒ 成功+空对象(不报 404/不报业务码)。
  8171. operationId: correction_draft_get
  8172. tags:
  8173. - 计费与对账
  8174. x-require-auth: true
  8175. x-resource-type:
  8176. $ref: '#/components/x-resource-types/correction/code'
  8177. x-action:
  8178. $ref: '#/components/x-actions/view/code'
  8179. x-version: v1
  8180. x-permission-visibility: catalog
  8181. x-error-codes: []
  8182. responses:
  8183. '200':
  8184. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8185. content:
  8186. application/json:
  8187. schema:
  8188. $ref: '#/components/schemas/ApiResponseCorrectionDraftGet'
  8189. /ticket/list@v1:
  8190. post:
  8191. summary: 工单列表查询
  8192. description: 跨 6 类工单统一分页;行集=判权谓词+可见范围五档+数据权限;排序=是否已超期→优先级→提醒时限。出参每行带 row_version
  8193. 与可执行动作集合(服务端计算,前端不自拼)。主要失败:网关 11104(缺权限)。
  8194. operationId: ticket_list
  8195. tags:
  8196. - 工单与开停交付
  8197. x-require-auth: true
  8198. x-resource-type:
  8199. $ref: '#/components/x-resource-types/ticket/code'
  8200. x-action:
  8201. $ref: '#/components/x-actions/list/code'
  8202. x-version: v1
  8203. x-permission-visibility: catalog
  8204. requestBody:
  8205. required: true
  8206. description: JSON 请求体,业务字段置于 data
  8207. content:
  8208. application/json:
  8209. schema:
  8210. type: object
  8211. description: 统一信封请求体,业务字段放在 data 内
  8212. properties:
  8213. data:
  8214. type: object
  8215. description: 工单列表查询请求参数
  8216. properties:
  8217. ticket_types:
  8218. type: array
  8219. description: 工单类型(英文码):开户、服务开通、到期停机、服务停用、故障处理、售后处理;缺省=全部。兼容单数写法
  8220. `ticket_type`(传单字符串或逗号分隔串同样生效)
  8221. items:
  8222. type: string
  8223. title: ticket_types元素
  8224. title: 工单类型清单
  8225. statuses:
  8226. type: array
  8227. description: 工单状态(未分派/待处理/处理中/已满足闭环/待回执/已办结);缺省=全部。兼容单数写法
  8228. `status`(传单字符串或逗号分隔串同样生效)
  8229. items:
  8230. type: string
  8231. title: statuses元素
  8232. title: statuses
  8233. sources:
  8234. type: array
  8235. description: 来源:self/cust_svc/ops/system;缺省=全部。兼容单数写法
  8236. `source`(传单字符串或逗号分隔串同样生效)
  8237. items:
  8238. type: string
  8239. title: sources元素
  8240. title: sources
  8241. date_from:
  8242. type: string
  8243. description: 建单日期起(YYYY-MM-DD)
  8244. title: date from
  8245. date_to:
  8246. type: string
  8247. description: 建单日期止(YYYY-MM-DD)
  8248. title: date to
  8249. keyword:
  8250. type: string
  8251. description: 关键字:标题/客户名/工单号/关联单号/网络账号/工单
  8252. ID(雪花主键,纯数字关键字按整值精确命中——即审计日志「对象」列那串数字;不做前缀/模糊匹配,避免 1~4 位数字命中全表;不含报文原文)
  8253. title: 关键字
  8254. subscription_id:
  8255. type: string
  8256. description: 订单(订阅)过滤:只回本订单的工单(订单详情「关联工单」现查,P3-D6)。空串=不过滤
  8257. title: 订阅 ID
  8258. contract_id:
  8259. type: string
  8260. description: >-
  8261. 合同过滤:命中主订阅合同、并单成员订阅、续签来源合同(renew_from_contract_id) 与续签结果合同(renew_contract_id)。合同下既无订阅也无续签关联时回空集(不退化成不过滤)。空串=不过滤
  8262. title: 合同 ID
  8263. customer_id:
  8264. type: string
  8265. description: 客户过滤:只回本客户的工单。空串=不过滤
  8266. title: 客户 ID
  8267. assignee:
  8268. type: string
  8269. description: 责任人过滤:只接受 `me`(服务端按会话解析成当前登录账号,与可见性谓词逐段取交);供「我的待办」把可见行集收窄到本人名下。
  8270. 接受任意 user_id(按他人过滤不开放),其它取值回 11103。空串=不过滤
  8271. title: assignee
  8272. include_status_totals:
  8273. type: boolean
  8274. description: true=附带可见范围内各 status 张数(`data.status_totals`);不受本请求
  8275. statuses/类型/关键字/日期筛影响。台账 Tab 角标用,改前=逐状态 page_size=1 连打
  8276. title: include status totals
  8277. page:
  8278. type: integer
  8279. description: 页码,从 1 起(越界收敛,不报错)
  8280. title: 页码
  8281. page_size:
  8282. type: integer
  8283. description: 每页条数,1–100,缺省 10
  8284. title: 每页条数
  8285. title: 工单列表查询请求数据
  8286. required:
  8287. - data
  8288. x-error-codes: [11104]
  8289. responses:
  8290. '200':
  8291. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8292. content:
  8293. application/json:
  8294. schema:
  8295. $ref: '#/components/schemas/ApiResponseTicketList'
  8296. /ticket/detail@v1:
  8297. get:
  8298. summary: 工单详情查询
  8299. description: >-
  8300. 查询工单详情。 返回工单头、处理时间线,以及按类型展开的子域(回填、分账号、开停记录、竣工、报文、故障、材料)。
  8301. 另含只读块 `construction_guide`(套餐、带宽、席位、份数与境外 IP 权益等施工指引)。
  8302. operationId: ticket_detail
  8303. tags:
  8304. - 工单与开停交付
  8305. x-require-auth: true
  8306. x-resource-type:
  8307. $ref: '#/components/x-resource-types/ticket/code'
  8308. x-action:
  8309. $ref: '#/components/x-actions/detail/code'
  8310. x-version: v1
  8311. x-permission-visibility: catalog
  8312. parameters:
  8313. - name: ticket_id
  8314. in: query
  8315. required: false
  8316. description: 工单标识(内部主键)。注意:与 ticket_no 二者至少给一个,都给以本参数为准
  8317. schema:
  8318. type: string
  8319. - name: ticket_no
  8320. in: query
  8321. required: false
  8322. description: 业务工单号(形如 T-20261114-5968)。客户门户不暴露内部主键,列表只回 ticket_no,
  8323. 故详情口按本参数定位;反查在可见性谓词之内执行,查无与越权同回 60005 (与按主键查无同一口径,不说破「存在但你不能看」)
  8324. schema:
  8325. type: string
  8326. - name: read_event
  8327. in: query
  8328. required: false
  8329. description: 阅读推进开关:true 时才尝试待处理→处理中
  8330. schema:
  8331. type: string
  8332. x-error-codes: [11103, 60005]
  8333. responses:
  8334. '200':
  8335. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8336. content:
  8337. application/json:
  8338. schema:
  8339. $ref: '#/components/schemas/ApiResponseTicketDetail'
  8340. /ticket/pending_queue@v1:
  8341. post:
  8342. summary: 待分派队列查询
  8343. description: 运维主管/运维组负责人的分派工作台数据源;权限键与工单列表分列,不复用。行集=可见范围内未分派+待处理(注意:待处理入列理由待裁定,18册 )。
  8344. operationId: ticket_pending_queue
  8345. tags:
  8346. - 工单与开停交付
  8347. x-require-auth: true
  8348. x-resource-type:
  8349. $ref: '#/components/x-resource-types/ticket/code'
  8350. x-action:
  8351. $ref: '#/components/x-actions/pending_queue/code'
  8352. x-version: v1
  8353. x-permission-visibility: catalog
  8354. requestBody:
  8355. required: true
  8356. description: JSON 请求体,业务字段置于 data
  8357. content:
  8358. application/json:
  8359. schema:
  8360. type: object
  8361. description: 统一信封请求体,业务字段放在 data 内
  8362. properties:
  8363. data:
  8364. type: object
  8365. description: 待分派队列查询请求参数
  8366. properties:
  8367. ticket_types:
  8368. type: array
  8369. description: 工单类型;缺省=本人团队可受理全部类型(授权范围是上限)
  8370. items:
  8371. type: string
  8372. title: ticket_types元素
  8373. title: 工单类型清单
  8374. assign_team_id:
  8375. type: string
  8376. description: 目标运维团队;缺省=本人所辖团队;指定时必须是本人所辖团队
  8377. title: 承接团队 ID
  8378. keyword:
  8379. type: string
  8380. description: 关键字,含义同工单列表
  8381. title: 关键字
  8382. include_candidates:
  8383. type: boolean
  8384. description: false=只要 total/行卡片(徽标/总览/队列首屏),跳过候选人装配;缺省/true=待分派页点开指定成员时现算
  8385. candidates[]
  8386. title: include candidates
  8387. page:
  8388. type: integer
  8389. description: 页码,从 1 起(越界收敛,不报错)
  8390. title: 页码
  8391. page_size:
  8392. type: integer
  8393. description: 每页条数,1–100,缺省 10
  8394. title: 每页条数
  8395. title: 待分派队列查询请求数据
  8396. required:
  8397. - data
  8398. x-error-codes: [11104]
  8399. responses:
  8400. '200':
  8401. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8402. content:
  8403. application/json:
  8404. schema:
  8405. $ref: '#/components/schemas/ApiResponseTicketPendingQueue'
  8406. /ticket/todo_counts@v1:
  8407. get:
  8408. summary: 待办计数查询
  8409. description: 一次返回四个角标:未分派、超期、待回填、报文待处置。不做超期明细列表(超期明细走工单列表的已超期筛选)。
  8410. operationId: ticket_todo_counts
  8411. tags:
  8412. - 工单与开停交付
  8413. x-require-auth: true
  8414. x-resource-type:
  8415. $ref: '#/components/x-resource-types/ticket/code'
  8416. x-action:
  8417. $ref: '#/components/x-actions/todo_counts/code'
  8418. x-version: v1
  8419. x-permission-visibility: catalog
  8420. x-error-codes: [11104, 60201]
  8421. responses:
  8422. '200':
  8423. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8424. content:
  8425. application/json:
  8426. schema:
  8427. $ref: '#/components/schemas/ApiResponseTicketTodoCounts'
  8428. /ticket/trace@v1:
  8429. get:
  8430. summary: 跨主体追溯查询
  8431. description: 按工单号/报文单号/竣工号任一单值精确定位,返回工单+开停记录+报文+竣工回传+回执的关联链。不支持关键字模糊。主要失败:KLT-G20415(无法定位)。
  8432. operationId: ticket_trace
  8433. tags:
  8434. - 工单与开停交付
  8435. x-require-auth: true
  8436. x-resource-type:
  8437. $ref: '#/components/x-resource-types/ticket/code'
  8438. x-action:
  8439. $ref: '#/components/x-actions/trace/code'
  8440. x-version: v1
  8441. x-permission-visibility: catalog
  8442. parameters:
  8443. - name: ticket_no
  8444. in: query
  8445. required: false
  8446. description: 恪澜通工单号
  8447. schema:
  8448. type: string
  8449. - name: carrier_order_no
  8450. in: query
  8451. required: false
  8452. description: 运营商单号
  8453. schema:
  8454. type: string
  8455. - name: completion_no
  8456. in: query
  8457. required: false
  8458. description: 竣工单号
  8459. schema:
  8460. type: string
  8461. - name: ticket_id
  8462. in: query
  8463. required: false
  8464. description: 工单标识
  8465. schema:
  8466. type: string
  8467. x-error-codes: [11104]
  8468. responses:
  8469. '200':
  8470. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8471. content:
  8472. application/json:
  8473. schema:
  8474. $ref: '#/components/schemas/ApiResponseTicketTrace'
  8475. /message/pending@v1:
  8476. post:
  8477. summary: 报文待处置队列查询
  8478. description: 运维主管/运维组负责人的报文处置工作台数据源;不返回 raw_payload 正文(D7、),只回动作/单号/归属态+归属失败原因码等已脱敏列。
  8479. operationId: message_pending
  8480. tags:
  8481. - 报文人工处置
  8482. x-require-auth: true
  8483. x-resource-type:
  8484. $ref: '#/components/x-resource-types/message/code'
  8485. x-action:
  8486. $ref: '#/components/x-actions/pending/code'
  8487. x-version: v1
  8488. x-permission-visibility: catalog
  8489. requestBody:
  8490. required: true
  8491. description: JSON 请求体,业务字段置于 data
  8492. content:
  8493. application/json:
  8494. schema:
  8495. type: object
  8496. description: 统一信封请求体,业务字段放在 data 内
  8497. properties:
  8498. data:
  8499. type: object
  8500. description: 报文待处置队列查询请求参数
  8501. properties:
  8502. page:
  8503. type: integer
  8504. description: 页码,从 1 起(越界收敛,不报错)
  8505. title: 页码
  8506. page_size:
  8507. type: integer
  8508. description: 每页条数,1–100,缺省 10
  8509. title: 每页条数
  8510. title: 报文待处置队列查询请求数据
  8511. required:
  8512. - data
  8513. x-error-codes: [11104]
  8514. responses:
  8515. '200':
  8516. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8517. content:
  8518. application/json:
  8519. schema:
  8520. $ref: '#/components/schemas/ApiResponseMessagePending'
  8521. /ticket/create@v1:
  8522. post:
  8523. summary: 新建工单
  8524. description: "新建工单(六类共用入口)。 一次提交完成:在办唯一性校验 → 发号 → 建单、状态历史、建单动作、首条处理记录与初始材料。\n不得传入金额、资费、带宽购买、对账字段,也不得传入
  8525. `status`/`assign_*`(出现即 `11103`)。\n角色与类型闸门、主要失败码见各字段说明与 `x-error-codes`。"
  8526. operationId: ticket_create
  8527. tags:
  8528. - 工单与开停交付
  8529. x-require-auth: true
  8530. x-resource-type:
  8531. $ref: '#/components/x-resource-types/ticket/code'
  8532. x-action:
  8533. $ref: '#/components/x-actions/create/code'
  8534. x-version: v1
  8535. x-permission-visibility: catalog
  8536. requestBody:
  8537. required: true
  8538. description: JSON 请求体,业务字段置于 data
  8539. content:
  8540. application/json:
  8541. schema:
  8542. type: object
  8543. description: 统一信封请求体,业务字段放在 data 内
  8544. properties:
  8545. data:
  8546. type: object
  8547. description: 新建工单请求参数
  8548. properties:
  8549. ticket_type:
  8550. type: string
  8551. description: 工单类型(6 个英文码之一:开户、服务开通、到期停机、服务停用、故障处理、售后处理)
  8552. title: 工单类型
  8553. customer_id:
  8554. type: string
  8555. description: 客户标识
  8556. title: 客户 ID
  8557. title:
  8558. type: string
  8559. description: 工单标题
  8560. title: 标题
  8561. detail:
  8562. type: string
  8563. description: 工单详情(工单描述)
  8564. title: detail
  8565. subscription_id:
  8566. type: string
  8567. description: 关联订阅标识;服务开通类可不关联。`ticket_type=service_stop` 时必填,且该订阅必须属于
  8568. `customer_id` 那个客户、服务未到期
  8569. title: 订阅 ID
  8570. confirm:
  8571. type: boolean
  8572. description: 提交时二次确认。客户两档发起 `fault`/`after_sale` 必须 `true`;运营发起 `service_stop`
  8573. 必须 `true`(缺省或非 `true` 报 11103,/)
  8574. title: confirm
  8575. materials:
  8576. type: array
  8577. description: 初始材料(建单即随附),最多 5 个;超限报 11103
  8578. items:
  8579. type: object
  8580. properties:
  8581. oss_key:
  8582. type: string
  8583. description: OSS 对象键
  8584. file_name:
  8585. type: string
  8586. description: 原始文件名
  8587. size_bytes:
  8588. type: integer
  8589. description: 文件字节数
  8590. title: materials
  8591. required:
  8592. - ticket_type
  8593. - customer_id
  8594. - title
  8595. title: 新建工单请求数据
  8596. required:
  8597. - data
  8598. x-error-codes: [11103, 11104, 60001, 60108, 60804]
  8599. responses:
  8600. '200':
  8601. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8602. content:
  8603. application/json:
  8604. schema:
  8605. $ref: '#/components/schemas/ApiResponseTicketCreate'
  8606. /ticket/assign@v1:
  8607. post:
  8608. summary: 手动分派工单
  8609. description: 运维主管/组负责人在待分派队列指定处理人。目标处理人必须是在职人员∧本人团队∧持有该单类型;不改已完成/已办结单;不分给自己(自接单走创建即自assign
  8610. 路径)。主要失败:11104、KLT-G20401、KLT-G20416、KLT-G20417。
  8611. operationId: ticket_assign
  8612. tags:
  8613. - 工单与开停交付
  8614. x-require-auth: true
  8615. x-resource-type:
  8616. $ref: '#/components/x-resource-types/ticket/code'
  8617. x-action:
  8618. $ref: '#/components/x-actions/assign/code'
  8619. x-version: v1
  8620. x-permission-visibility: catalog
  8621. requestBody:
  8622. required: true
  8623. description: JSON 请求体,业务字段置于 data
  8624. content:
  8625. application/json:
  8626. schema:
  8627. type: object
  8628. description: 统一信封请求体,业务字段放在 data 内
  8629. properties:
  8630. data:
  8631. type: object
  8632. description: 手动分派工单请求参数
  8633. properties:
  8634. ticket_id:
  8635. type: string
  8636. description: 工单标识(字符串下发,服务侧转 bigint)
  8637. title: 工单 ID
  8638. assignee_user_id:
  8639. type: string
  8640. description: 目标责任人标识
  8641. title: 处理人用户 ID
  8642. required:
  8643. - ticket_id
  8644. - assignee_user_id
  8645. title: 手动分派工单请求数据
  8646. required:
  8647. - data
  8648. x-error-codes: [11103, 60401, 60402]
  8649. responses:
  8650. '200':
  8651. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8652. content:
  8653. application/json:
  8654. schema:
  8655. $ref: '#/components/schemas/ApiResponseTicketAssign'
  8656. /ticket/dispatch_auto@v1:
  8657. post:
  8658. summary: 自动分派(整批)
  8659. description:
  8660. 对目标团队队列内可见的未分派单逐单按负载量最少判定:唯一最少⇒分派到人(assign_type=auto);并列最少/目标团队零人持有该类型⇒不分派,该单留队列并在结果里给出原因。不接受队列筛选条件入参。
  8661. operationId: ticket_dispatch_auto
  8662. tags:
  8663. - 工单与开停交付
  8664. x-require-auth: true
  8665. x-resource-type:
  8666. $ref: '#/components/x-resource-types/ticket/code'
  8667. x-action:
  8668. $ref: '#/components/x-actions/dispatch_auto/code'
  8669. x-version: v1
  8670. x-permission-visibility: catalog
  8671. requestBody:
  8672. required: true
  8673. description: JSON 请求体,业务字段置于 data
  8674. content:
  8675. application/json:
  8676. schema:
  8677. type: object
  8678. description: 统一信封请求体,业务字段放在 data 内
  8679. properties:
  8680. data:
  8681. type: object
  8682. description: 自动分派(整批)请求参数
  8683. properties:
  8684. team_id:
  8685. type: string
  8686. description: 目标运维团队;缺省=本人所辖团队
  8687. title: 团队 ID
  8688. required:
  8689. - team_id
  8690. title: 自动分派(整批)请求数据
  8691. required:
  8692. - data
  8693. x-error-codes: [11103, 60402]
  8694. responses:
  8695. '200':
  8696. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8697. content:
  8698. application/json:
  8699. schema:
  8700. $ref: '#/components/schemas/ApiResponseTicketDispatchAuto'
  8701. /ticket/delivery_reissue@v1:
  8702. post:
  8703. summary: 按订阅补发交付工单
  8704. description: |-
  8705. 订阅已落库但无交付工单(或历史静默漏单)时,运营按 subscription_id 补发
  8706. open/service_open/updown。仍走 open_gen(含并单/重放保护);团队不承接类型时前置拒绝。
  8707. operationId: ticket_delivery_reissue
  8708. tags:
  8709. - 工单与开停交付
  8710. x-require-auth: true
  8711. x-resource-type:
  8712. $ref: '#/components/x-resource-types/ticket/code'
  8713. x-action:
  8714. $ref: '#/components/x-actions/create/code'
  8715. x-version: v1
  8716. x-permission-visibility: catalog
  8717. requestBody:
  8718. required: true
  8719. description: JSON 请求体,业务字段置于 data
  8720. content:
  8721. application/json:
  8722. schema:
  8723. type: object
  8724. properties:
  8725. data:
  8726. type: object
  8727. properties:
  8728. subscription_id:
  8729. type: string
  8730. description: 要补发交付工单的订阅标识
  8731. title: 订阅 ID
  8732. required:
  8733. - subscription_id
  8734. description: 按订阅补发交付工单请求参数
  8735. title: 按订阅补发交付工单请求数据
  8736. required:
  8737. - data
  8738. x-error-codes: [11103, 11104]
  8739. responses:
  8740. '200':
  8741. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8742. content:
  8743. application/json:
  8744. schema:
  8745. $ref: '#/components/schemas/ApiResponseTicketDeliveryReissue'
  8746. /ticket/delegate@v1:
  8747. post:
  8748. summary: 交接转派
  8749. description: 人员交接时把名下未闭环工单批量改派给承接人;不得改派已完成单。承接人必须在职∧同团队∧持有对应工单类型;出参逐单结果,未成功单保持未分派并给原因。
  8750. operationId: ticket_delegate
  8751. tags:
  8752. - 工单与开停交付
  8753. x-require-auth: true
  8754. x-resource-type:
  8755. $ref: '#/components/x-resource-types/ticket/code'
  8756. x-action:
  8757. $ref: '#/components/x-actions/delegate/code'
  8758. x-version: v1
  8759. x-permission-visibility: catalog
  8760. requestBody:
  8761. required: true
  8762. description: JSON 请求体,业务字段置于 data
  8763. content:
  8764. application/json:
  8765. schema:
  8766. type: object
  8767. description: 统一信封请求体,业务字段放在 data 内
  8768. properties:
  8769. data:
  8770. type: object
  8771. description: 交接转派请求参数
  8772. properties:
  8773. ticket_id:
  8774. type: string
  8775. description: 被转派的工单标识
  8776. title: 工单 ID
  8777. trustee_user_id:
  8778. type: string
  8779. description: 承接人标识
  8780. title: trustee user id
  8781. required:
  8782. - ticket_id
  8783. - trustee_user_id
  8784. title: 交接转派请求数据
  8785. required:
  8786. - data
  8787. x-error-codes: [60401, 60402, 60416]
  8788. responses:
  8789. '200':
  8790. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8791. content:
  8792. application/json:
  8793. schema:
  8794. $ref: '#/components/schemas/ApiResponseTicketDelegate'
  8795. /ticket/start@v1:
  8796. post:
  8797. summary: 进入处理中(阅读推进)
  8798. description: 落库入口是工单详情读事件,不是人工按钮。分支:待处理→处理中;处理中幂等成功;未分派不推进回成功;已完成/已办结报 KLT-G20401。
  8799. operationId: ticket_start
  8800. tags:
  8801. - 工单与开停交付
  8802. x-require-auth: true
  8803. x-resource-type:
  8804. $ref: '#/components/x-resource-types/ticket/code'
  8805. x-action:
  8806. $ref: '#/components/x-actions/start/code'
  8807. x-version: v1
  8808. x-permission-visibility: catalog
  8809. requestBody:
  8810. required: true
  8811. description: JSON 请求体,业务字段置于 data
  8812. content:
  8813. application/json:
  8814. schema:
  8815. type: object
  8816. description: 统一信封请求体,业务字段放在 data 内
  8817. properties:
  8818. data:
  8819. type: object
  8820. description: 进入处理中(阅读推进)请求参数
  8821. properties:
  8822. ticket_id:
  8823. type: string
  8824. description: 工单标识(字符串下发,服务侧转 bigint)
  8825. title: 工单 ID
  8826. required:
  8827. - ticket_id
  8828. title: 进入处理中(阅读推进)请求数据
  8829. required:
  8830. - data
  8831. x-error-codes: [60401]
  8832. responses:
  8833. '200':
  8834. description: 成功时 code=10000;失败时查看 code/message/error_code。
  8835. content:
  8836. application/json:
  8837. schema:
  8838. $ref: '#/components/schemas/ApiResponseTicketStart'
  8839. /ticket/backfill@v1:
  8840. post:
  8841. summary: 回填竣工信息
  8842. description: >-
  8843. 开户/到期停机/服务停用/变更协议(`updown`)共用,按类型分叉必填矩阵。 一次原子提交:回填头→明细→开停记录→分账号事实→客户状态+变更历史→订阅实际开通日→处理记录; `updown`
  8844. 另同批勾选清单(`check_item_ids`)写核对留痕。境外 IP 的 PIN/CPID 经 Keybox 加密入库, 出参不出现明文。`pin_bind_mode`:`shared`(默认,PIN
  8845. 挂 IP 行)/`per_account`(一账号一 PIN)。 可选 `evidence_material_ids`(`kind=backfill_evidence`)。正式提交成功后删除该单草稿。
  8846. :不再与合同/订阅交叉比对。主要失败:11103、KLT-G20404、KLT-G20417、11112。
  8847. operationId: ticket_backfill
  8848. tags:
  8849. - 工单与开停交付
  8850. x-require-auth: true
  8851. x-resource-type:
  8852. $ref: '#/components/x-resource-types/ticket/code'
  8853. x-action:
  8854. $ref: '#/components/x-actions/backfill/code'
  8855. x-version: v1
  8856. x-permission-visibility: catalog
  8857. requestBody:
  8858. required: true
  8859. description: JSON 请求体,业务字段置于 data
  8860. content:
  8861. application/json:
  8862. schema:
  8863. type: object
  8864. description: 统一信封请求体,业务字段放在 data 内
  8865. properties:
  8866. data:
  8867. type: object
  8868. description: 回填竣工信息请求参数
  8869. properties:
  8870. ticket_id:
  8871. type: string
  8872. description: 工单标识(字符串下发,服务侧转 bigint)
  8873. title: 工单 ID
  8874. exec_conclusion:
  8875. type: string
  8876. description: 执行结论:success/partial/fail;partial 存行不生效
  8877. title: exec conclusion
  8878. conclusion_note:
  8879. type: string
  8880. description: 结论说明;非成功时必填(KLT-G20404)
  8881. title: conclusion note
  8882. actual_opened_date:
  8883. type: string
  8884. description: 实际开通日(YYYY-MM-DD,开户类三件套之一)
  8885. title: actual opened date
  8886. stop_done_date:
  8887. type: string
  8888. description: 停机完成日(YYYY-MM-DD,停机类三件套之一)
  8889. title: stop done date
  8890. builder_user_id:
  8891. type: string
  8892. description: 施工人(可选)
  8893. title: builder user id
  8894. evidence_text:
  8895. type: string
  8896. description: 凭证说明
  8897. title: evidence text
  8898. pin_bind_mode:
  8899. type: string
  8900. description: PIN 绑定模式;缺省 shared
  8901. enum:
  8902. - shared
  8903. - per_account
  8904. title: pin bind mode
  8905. route_rows:
  8906. type: array
  8907. description: 组一+组二回填行(按分账号一行;条数比对基准=勾选开账号数)
  8908. items:
  8909. type: object
  8910. properties:
  8911. sub_account_id:
  8912. type: string
  8913. description: 分账号标识;未传⇒视为漏填
  8914. network_account_name:
  8915. type: string
  8916. description: 网络账号名
  8917. intranet_ip:
  8918. type: string
  8919. description: 内网 IP
  8920. subnet_mask:
  8921. type: string
  8922. description: 子网掩码
  8923. gateway:
  8924. type: string
  8925. description: 网关
  8926. vlan:
  8927. type: string
  8928. description: VLAN
  8929. vni:
  8930. type: string
  8931. description: VNI
  8932. src_endpoint:
  8933. type: string
  8934. description: 源端
  8935. dst_endpoint:
  8936. type: string
  8937. description: 目的端
  8938. egress_pop:
  8939. type: string
  8940. description: 出口 POP
  8941. down_mbps:
  8942. type: number
  8943. description: 下行带宽 Mbps(信息项,不参与计价)
  8944. up_mbps:
  8945. type: number
  8946. description: 上行带宽 Mbps(信息项)
  8947. open_this_time:
  8948. type: boolean
  8949. description: 「随本次开通」勾选位,缺省=已勾选
  8950. title: route rows
  8951. ip_rows:
  8952. type: array
  8953. description: >-
  8954. 组三境外 IP 回填行。每行带 `action`(allocate/release)。 `per_account` 模式下每绑定账号独立 PIN(经 `sub_account_ids`)。
  8955. items:
  8956. type: object
  8957. properties:
  8958. action:
  8959. type: string
  8960. description: 行动作:allocate(缺省)/release;其它值 11103
  8961. enum:
  8962. - allocate
  8963. - release
  8964. egress:
  8965. type: string
  8966. description: 出口
  8967. overseas_ip:
  8968. type: string
  8969. description: 境外 IP 地址
  8970. ip_type:
  8971. type: string
  8972. description: IP 类型(fixed_ip/nat_forward)
  8973. bandwidth_mbps:
  8974. type: integer
  8975. description: 带宽档位 Mbps(信息项)
  8976. pin:
  8977. type: string
  8978. description: PIN(明文入参,服务端经 Keybox 加密入库,不明文落库)
  8979. cpid:
  8980. type: string
  8981. description: CPID(同上)
  8982. sub_account_ids:
  8983. type: array
  8984. description: 绑定分账号(per_account 时每账号须有独立 PIN)
  8985. items:
  8986. type: string
  8987. title: ip rows
  8988. check_item_ids:
  8989. type: array
  8990. description: 变更协议(updown)同批勾选的服务项;其它类型忽略
  8991. items:
  8992. type: string
  8993. title: check_item_ids元素
  8994. title: check item ids
  8995. check_note:
  8996. type: string
  8997. description: 变更协议核对说明(可选)
  8998. title: check note
  8999. evidence_material_ids:
  9000. type: array
  9001. description: 已登记的回填凭证材料 ID(kind=backfill_evidence)
  9002. items:
  9003. type: string
  9004. title: evidence_material_ids元素
  9005. title: evidence material ids
  9006. ext:
  9007. type: object
  9008. description: 扩展表单(可选);无已发布模板时忽略
  9009. properties:
  9010. template_id:
  9011. type: string
  9012. template_version:
  9013. type: integer
  9014. values:
  9015. type: object
  9016. additionalProperties: true
  9017. title: ext
  9018. expected_version:
  9019. type: integer
  9020. description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
  9021. title: expected version
  9022. required:
  9023. - ticket_id
  9024. title: 回填竣工信息请求数据
  9025. required:
  9026. - data
  9027. x-error-codes: [11103, 60401, 60403, 60404, 60417]
  9028. responses:
  9029. '200':
  9030. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9031. content:
  9032. application/json:
  9033. schema:
  9034. $ref: '#/components/schemas/ApiResponseTicketBackfill'
  9035. /ticket/backfill_draft@v1:
  9036. post:
  9037. summary: 暂存施工回填草稿
  9038. description: >-
  9039. 服务端暂存回填表单(方案 A)。鉴权同正式回填; 不调 open_stop_apply、 不改工单状态、 不递增 attempt_count。PIN/CPID 仅密文入库;读详情 `backfill_draft`
  9040. 与本口应答均不回明文。 正式 `backfill@v1` 成功后删除该单草稿。乐观锁用草稿自有 `row_version`(与正式回填锁分离)。
  9041. operationId: ticket_backfill_draft
  9042. tags:
  9043. - 工单与开停交付
  9044. x-require-auth: true
  9045. x-resource-type:
  9046. $ref: '#/components/x-resource-types/ticket/code'
  9047. x-action:
  9048. $ref: '#/components/x-actions/backfill_draft/code'
  9049. x-version: v1
  9050. x-permission-visibility: catalog
  9051. requestBody:
  9052. required: true
  9053. description: JSON 请求体,业务字段置于 data
  9054. content:
  9055. application/json:
  9056. schema:
  9057. type: object
  9058. description: 统一信封请求体,业务字段放在 data 内
  9059. properties:
  9060. data:
  9061. type: object
  9062. description: 请求参数(字段子集同 backfill,可缺省;中间态允许)
  9063. properties:
  9064. ticket_id:
  9065. type: string
  9066. description: 工单标识
  9067. title: 工单 ID
  9068. exec_conclusion:
  9069. type: string
  9070. title: exec conclusion
  9071. description: 字段 exec_conclusion。
  9072. conclusion_note:
  9073. type: string
  9074. title: conclusion note
  9075. description: 字段 conclusion_note。
  9076. actual_opened_date:
  9077. type: string
  9078. title: actual opened date
  9079. description: 字段 actual_opened_date。
  9080. stop_done_date:
  9081. type: string
  9082. title: stop done date
  9083. description: 字段 stop_done_date。
  9084. evidence_text:
  9085. type: string
  9086. title: evidence text
  9087. description: 字段 evidence_text。
  9088. pin_bind_mode:
  9089. type: string
  9090. enum:
  9091. - shared
  9092. - per_account
  9093. title: pin bind mode
  9094. description: 字段 pin_bind_mode。
  9095. route_rows:
  9096. type: array
  9097. items:
  9098. type: object
  9099. additionalProperties: true
  9100. title: route_rows元素
  9101. title: route rows
  9102. description: 字段 route_rows。
  9103. ip_rows:
  9104. type: array
  9105. items:
  9106. type: object
  9107. additionalProperties: true
  9108. title: ip_rows元素
  9109. title: ip rows
  9110. description: 字段 ip_rows。
  9111. check_item_ids:
  9112. type: array
  9113. items:
  9114. type: string
  9115. title: check_item_ids元素
  9116. title: check item ids
  9117. description: 字段 check_item_ids。
  9118. check_note:
  9119. type: string
  9120. title: check note
  9121. description: 字段 check_note。
  9122. evidence_material_ids:
  9123. type: array
  9124. items:
  9125. type: string
  9126. title: evidence_material_ids元素
  9127. title: evidence material ids
  9128. description: 字段 evidence_material_ids。
  9129. ext:
  9130. type: object
  9131. additionalProperties: true
  9132. title: ext
  9133. description: 字段 ext。
  9134. expected_version:
  9135. type: integer
  9136. description: 草稿 row_version;缺省=不做并发校验
  9137. title: expected version
  9138. required:
  9139. - ticket_id
  9140. title: 暂存施工回填草稿请求数据
  9141. required:
  9142. - data
  9143. x-error-codes: [11103, 60401, 60417]
  9144. responses:
  9145. '200':
  9146. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9147. content:
  9148. application/json:
  9149. schema:
  9150. $ref: '#/components/schemas/ApiResponseTicketBackfillDraft'
  9151. /ticket/check_done@v1:
  9152. post:
  9153. summary: 服务项完成直接闭环
  9154. description: >-
  9155. 服务开通/故障处理/售后处理勾选服务项并直接闭环;不关联客户/订阅、不回填、不生成回传。 :`updown`(变更协议) 经本口——须走 `backfill@v1` 的「核对并回填」合并提交
  9156. (`check_item_ids`+回填同事务),单独核对会与回填双入口死锁。主要失败:KLT-G20404、KLT-G20417。
  9157. operationId: ticket_check_done
  9158. tags:
  9159. - 工单与开停交付
  9160. x-require-auth: true
  9161. x-resource-type:
  9162. $ref: '#/components/x-resource-types/ticket/code'
  9163. x-action:
  9164. $ref: '#/components/x-actions/check_done/code'
  9165. x-version: v1
  9166. x-permission-visibility: catalog
  9167. requestBody:
  9168. required: true
  9169. description: JSON 请求体,业务字段置于 data
  9170. content:
  9171. application/json:
  9172. schema:
  9173. type: object
  9174. description: 统一信封请求体,业务字段放在 data 内
  9175. properties:
  9176. data:
  9177. type: object
  9178. description: 服务项完成直接闭环请求参数
  9179. properties:
  9180. ticket_id:
  9181. type: string
  9182. description: 工单标识(字符串下发,服务侧转 bigint)
  9183. title: 工单 ID
  9184. item_ids:
  9185. type: array
  9186. description: 本次勾选完成的服务项标识;不由服务端推导
  9187. items:
  9188. type: string
  9189. title: item_ids元素
  9190. title: item ids
  9191. note:
  9192. type: string
  9193. description: 说明(故障/售后必填;服务开通可不填)
  9194. title: 备注
  9195. expected_version:
  9196. type: integer
  9197. description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
  9198. title: expected version
  9199. required:
  9200. - ticket_id
  9201. title: 服务项完成直接闭环请求数据
  9202. required:
  9203. - data
  9204. x-error-codes: [60401, 60404, 60417]
  9205. responses:
  9206. '200':
  9207. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9208. content:
  9209. application/json:
  9210. schema:
  9211. $ref: '#/components/schemas/ApiResponseTicketCheckDone'
  9212. /ticket/mark_done@v1:
  9213. post:
  9214. summary: 标记已处理(仅服务开通)
  9215. description: 不走手选工单类型:只有未关联客户/订阅的服务开通工单可走通路 5。必填:未关联原因+说明+处理人(缺项报
  9216. KLT-G20404)。前置:服务开通∧客户为空∧订阅为空⇒已办结。注意: ault`/`after_sale`(其余类型报 11103),推到 completed
  9217. 后若该单是运维代建/系统生成(submitter_type != 'customer')⇒ 同批直达 settled 并补一条 confirm_close 处理记录,出参
  9218. `status='settled'`、`auto_settled=true`、`settled_at`;客户自报的故障/售后行为不变(停在 completed 等
  9219. `/ticket/confirm_close@v1`,客户 7 天未确认改由作业 `AUTO-CLOSE` 自动关闭)。
  9220. operationId: ticket_mark_done
  9221. tags:
  9222. - 工单与开停交付
  9223. x-require-auth: true
  9224. x-resource-type:
  9225. $ref: '#/components/x-resource-types/ticket/code'
  9226. x-action:
  9227. $ref: '#/components/x-actions/mark_done/code'
  9228. x-version: v1
  9229. x-permission-visibility: catalog
  9230. requestBody:
  9231. required: true
  9232. description: JSON 请求体,业务字段置于 data
  9233. content:
  9234. application/json:
  9235. schema:
  9236. type: object
  9237. description: 统一信封请求体,业务字段放在 data 内
  9238. properties:
  9239. data:
  9240. type: object
  9241. description: 标记已处理(仅服务开通)请求参数
  9242. properties:
  9243. ticket_id:
  9244. type: string
  9245. description: 工单标识(字符串下发,服务侧转 bigint)
  9246. title: 工单 ID
  9247. note:
  9248. type: string
  9249. description: 说明(必填,含未关联原因)
  9250. title: 备注
  9251. expected_version:
  9252. type: integer
  9253. description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
  9254. title: expected version
  9255. required:
  9256. - ticket_id
  9257. - note
  9258. title: 标记已处理(仅服务开通)请求数据
  9259. required:
  9260. - data
  9261. x-error-codes: [11103, 60401, 60417]
  9262. responses:
  9263. '200':
  9264. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9265. content:
  9266. application/json:
  9267. schema:
  9268. $ref: '#/components/schemas/ApiResponseTicketMarkDone'
  9269. /ticket/close@v1:
  9270. post:
  9271. summary: 关闭工单
  9272. description: 仅未分派/待处理可关闭。不得把处理中的单直接关闭(必须先撤回)。主要失败:KLT-G20401、KLT-G20417。
  9273. operationId: ticket_close
  9274. tags:
  9275. - 工单与开停交付
  9276. x-require-auth: true
  9277. x-resource-type:
  9278. $ref: '#/components/x-resource-types/ticket/code'
  9279. x-action:
  9280. $ref: '#/components/x-actions/close/code'
  9281. x-version: v1
  9282. x-permission-visibility: catalog
  9283. requestBody:
  9284. required: true
  9285. description: JSON 请求体,业务字段置于 data
  9286. content:
  9287. application/json:
  9288. schema:
  9289. type: object
  9290. description: 统一信封请求体,业务字段放在 data 内
  9291. properties:
  9292. data:
  9293. type: object
  9294. description: 关闭工单请求参数
  9295. properties:
  9296. ticket_id:
  9297. type: string
  9298. description: 工单标识(字符串下发,服务侧转 bigint)
  9299. title: 工单 ID
  9300. reason:
  9301. type: string
  9302. description: 关闭原因(必填)
  9303. title: reason
  9304. expected_version:
  9305. type: integer
  9306. description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
  9307. title: expected version
  9308. required:
  9309. - ticket_id
  9310. - reason
  9311. title: 关闭工单请求数据
  9312. required:
  9313. - data
  9314. x-error-codes: [60401, 60409, 60413, 60417]
  9315. responses:
  9316. '200':
  9317. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9318. content:
  9319. application/json:
  9320. schema:
  9321. $ref: '#/components/schemas/ApiResponseTicketClose'
  9322. /ticket/withdraw@v1:
  9323. post:
  9324. summary: 撤回工单
  9325. description: 撤回后状态回未分派、清空 assign_*、责任人写处理记录。不撤回已完成/已办结单。主要失败:KLT-G20401。
  9326. operationId: ticket_withdraw
  9327. tags:
  9328. - 工单与开停交付
  9329. x-require-auth: true
  9330. x-resource-type:
  9331. $ref: '#/components/x-resource-types/ticket/code'
  9332. x-action:
  9333. $ref: '#/components/x-actions/withdraw/code'
  9334. x-version: v1
  9335. x-permission-visibility: catalog
  9336. requestBody:
  9337. required: true
  9338. description: JSON 请求体,业务字段置于 data
  9339. content:
  9340. application/json:
  9341. schema:
  9342. type: object
  9343. description: 统一信封请求体,业务字段放在 data 内
  9344. properties:
  9345. data:
  9346. type: object
  9347. description: 撤回工单请求参数
  9348. properties:
  9349. ticket_id:
  9350. type: string
  9351. description: 工单标识(字符串下发,服务侧转 bigint)
  9352. title: 工单 ID
  9353. reason:
  9354. type: string
  9355. description: 撤回原因(必填)
  9356. title: reason
  9357. required:
  9358. - ticket_id
  9359. - reason
  9360. title: 撤回工单请求数据
  9361. required:
  9362. - data
  9363. x-error-codes: [60401, 60409, 60414]
  9364. responses:
  9365. '200':
  9366. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9367. content:
  9368. application/json:
  9369. schema:
  9370. $ref: '#/components/schemas/ApiResponseTicketWithdraw'
  9371. /ticket/confirm_close@v1:
  9372. post:
  9373. summary: 确认闭环
  9374. description: 闭环方式=回执类且已回传未回执时的人工兜底:待回执→已办结。不得在闭环方式=完成后即闭环下调用(KLT-G20415)。
  9375. operationId: ticket_confirm_close
  9376. tags:
  9377. - 工单与开停交付
  9378. x-require-auth: true
  9379. x-resource-type:
  9380. $ref: '#/components/x-resource-types/ticket/code'
  9381. x-action:
  9382. $ref: '#/components/x-actions/confirm_close/code'
  9383. x-version: v1
  9384. x-permission-visibility: catalog
  9385. requestBody:
  9386. required: true
  9387. description: JSON 请求体,业务字段置于 data
  9388. content:
  9389. application/json:
  9390. schema:
  9391. type: object
  9392. description: 统一信封请求体,业务字段放在 data 内
  9393. properties:
  9394. data:
  9395. type: object
  9396. description: 确认闭环请求参数
  9397. properties:
  9398. ticket_id:
  9399. type: string
  9400. description: 工单标识(字符串下发,服务侧转 bigint)
  9401. title: 工单 ID
  9402. expected_version:
  9403. type: integer
  9404. description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
  9405. title: expected version
  9406. required:
  9407. - ticket_id
  9408. title: 确认闭环请求数据
  9409. required:
  9410. - data
  9411. x-error-codes: [60401, 60414, 60417]
  9412. responses:
  9413. '200':
  9414. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9415. content:
  9416. application/json:
  9417. schema:
  9418. $ref: '#/components/schemas/ApiResponseTicketConfirmClose'
  9419. /ticket/defer@v1:
  9420. post:
  9421. summary: 临时延期(延后提醒)
  9422. description:
  9423. 两条分支:开停记录提醒(执行结论待处理)与在办未回填提醒(服务开通且未回填)。延期目标日由服务端固定为「今天+超期提醒天数」,不得入参传天数。注意:设计正文的「天数非法
  9424. 11103」在本实现不存在(无天数入参)。主要失败:KLT-G20415。
  9425. operationId: ticket_defer
  9426. tags:
  9427. - 工单与开停交付
  9428. x-require-auth: true
  9429. x-resource-type:
  9430. $ref: '#/components/x-resource-types/ticket/code'
  9431. x-action:
  9432. $ref: '#/components/x-actions/defer/code'
  9433. x-version: v1
  9434. x-permission-visibility: catalog
  9435. requestBody:
  9436. required: true
  9437. description: JSON 请求体,业务字段置于 data
  9438. content:
  9439. application/json:
  9440. schema:
  9441. type: object
  9442. description: 统一信封请求体,业务字段放在 data 内
  9443. properties:
  9444. data:
  9445. type: object
  9446. description: 临时延期(延后提醒)请求参数
  9447. properties:
  9448. ticket_id:
  9449. type: string
  9450. description: 工单标识(字符串下发,服务侧转 bigint)
  9451. title: 工单 ID
  9452. defer_scope:
  9453. type: string
  9454. description: 延期对象:open_stop(开停记录提醒)/ticket(在办未回填提醒)
  9455. title: defer scope
  9456. required:
  9457. - ticket_id
  9458. title: 临时延期(延后提醒)请求数据
  9459. required:
  9460. - data
  9461. x-error-codes: [11103, 60401, 60415]
  9462. responses:
  9463. '200':
  9464. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9465. content:
  9466. application/json:
  9467. schema:
  9468. $ref: '#/components/schemas/ApiResponseTicketDefer'
  9469. /ticket/urge@v1:
  9470. post:
  9471. summary: 站内催办(向「卡在别人手里」的对家发催办信)
  9472. description: |-
  9473. 向当前等待确认的对家发送站内催办信。 仅当工单停在 `completed`、等待对家确认时可调用;消息写入站内提醒箱(`kind=ticket_urge`)。
  9474. operationId: ticket_urge
  9475. tags:
  9476. - 工单与开停交付
  9477. x-require-auth: true
  9478. x-resource-type:
  9479. $ref: '#/components/x-resource-types/ticket/code'
  9480. x-action:
  9481. $ref: '#/components/x-actions/urge/code'
  9482. x-version: v1
  9483. x-permission-visibility: catalog
  9484. requestBody:
  9485. required: true
  9486. description: JSON 请求体,业务字段置于 data
  9487. content:
  9488. application/json:
  9489. schema:
  9490. type: object
  9491. description: 统一信封请求体,业务字段放在 data 内
  9492. properties:
  9493. data:
  9494. type: object
  9495. description: 站内催办(向「卡在别人手里」的对家发催办信)请求参数
  9496. properties:
  9497. ticket_id:
  9498. type: string
  9499. description: 工单标识(字符串下发,服务侧转 bigint)
  9500. title: 工单 ID
  9501. required:
  9502. - ticket_id
  9503. title: 站内催办(向「卡在别人手里」的对家发催办信)请求数据
  9504. required:
  9505. - data
  9506. x-error-codes: [11103, 11104, 60424]
  9507. responses:
  9508. '200':
  9509. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9510. content:
  9511. application/json:
  9512. schema:
  9513. $ref: '#/components/schemas/ApiResponseTicketUrge'
  9514. /ticket/revert@v1:
  9515. post:
  9516. summary: 退回重办
  9517. description:
  9518. 把「已完成待确认(completed)/竣工驳回(rejected)」退回「处理中(processing)」,判权=总运营(全平台)或该单承接团队的主账号(仅本团队, 。
  9519. 已办结(settled)与已关闭(terminated)不可退回——终态只读,改历史走人工数据变更+审计。只重开工单,不回滚服务开通状态、实际开通日与已生成的竣工记录。主要失败:KLT-G20409、KLT-G20417、KLT-G20418、11104(非总运营且非本团队主)。
  9520. operationId: ticket_revert
  9521. tags:
  9522. - 工单与开停交付
  9523. x-require-auth: true
  9524. x-resource-type:
  9525. $ref: '#/components/x-resource-types/ticket/code'
  9526. x-action:
  9527. $ref: '#/components/x-actions/revert/code'
  9528. x-version: v1
  9529. x-permission-visibility: catalog
  9530. requestBody:
  9531. required: true
  9532. description: JSON 请求体,业务字段置于 data
  9533. content:
  9534. application/json:
  9535. schema:
  9536. type: object
  9537. description: 统一信封请求体,业务字段放在 data 内
  9538. properties:
  9539. data:
  9540. type: object
  9541. description: 退回重办请求参数
  9542. properties:
  9543. ticket_id:
  9544. type: string
  9545. description: 工单标识(字符串下发,服务侧转 bigint)
  9546. title: 工单 ID
  9547. reason:
  9548. type: string
  9549. description: 退回原因(必填,写入审计)
  9550. title: reason
  9551. expected_version:
  9552. type: integer
  9553. description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验
  9554. title: expected version
  9555. required:
  9556. - ticket_id
  9557. - reason
  9558. title: 退回重办请求数据
  9559. required:
  9560. - data
  9561. x-error-codes: [60409, 60417, 60418]
  9562. responses:
  9563. '200':
  9564. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9565. content:
  9566. application/json:
  9567. schema:
  9568. $ref: '#/components/schemas/ApiResponseTicketRevert'
  9569. /completion/generate@v1:
  9570. post:
  9571. summary: 生成竣工回传文件
  9572. description:
  9573. 生成出参=文件元信息+可下载凭证;不同步返回文件字节流。回填未通过闸门(结论=成功∧明细齐∧比对通过)时不生成(KLT-G20401)。重复生成⇒作废旧版本、留最新并写处理记录。
  9574. operationId: completion_generate
  9575. tags:
  9576. - 竣工与回执
  9577. x-require-auth: true
  9578. x-resource-type:
  9579. $ref: '#/components/x-resource-types/completion/code'
  9580. x-action:
  9581. $ref: '#/components/x-actions/generate/code'
  9582. x-version: v1
  9583. x-permission-visibility: catalog
  9584. requestBody:
  9585. required: true
  9586. description: JSON 请求体,业务字段置于 data
  9587. content:
  9588. application/json:
  9589. schema:
  9590. type: object
  9591. description: 统一信封请求体,业务字段放在 data 内
  9592. properties:
  9593. data:
  9594. type: object
  9595. description: 生成竣工回传文件请求参数
  9596. properties:
  9597. ticket_id:
  9598. type: string
  9599. description: 工单标识(字符串下发,服务侧转 bigint)
  9600. title: 工单 ID
  9601. required:
  9602. - ticket_id
  9603. title: 生成竣工回传文件请求数据
  9604. required:
  9605. - data
  9606. x-error-codes: [60401, 60404, 60410, 60417]
  9607. responses:
  9608. '200':
  9609. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9610. content:
  9611. application/json:
  9612. schema:
  9613. $ref: '#/components/schemas/ApiResponseCompletionGenerate'
  9614. /completion/receipt@v1:
  9615. post:
  9616. summary: 录入运营商回执
  9617. description:
  9618. 先判定完成日:回填三件套齐全⇒取回填日期值;缺失⇒不取回执录入当日(KLT-G20418),须先补录。录入⇒待回执→已办结+AUTO-CLOSE;同事务写完成日与闭环方式来源=回执。主要失败:KLT-G20418、KLT-G20417。注意:该单已被
  9619. `completion/reject@v1` 登记驳回时本接口默认拒绝(KLT-G20423 互斥);唯一出口=总运营提交
  9620. `override_state_conflict=true`( 纠正窗口,以回执为准;非 admin 提交该参数同样落 KLT-G20423)。
  9621. operationId: completion_receipt
  9622. tags:
  9623. - 竣工与回执
  9624. x-require-auth: true
  9625. x-resource-type:
  9626. $ref: '#/components/x-resource-types/completion/code'
  9627. x-action:
  9628. $ref: '#/components/x-actions/receipt/code'
  9629. x-version: v1
  9630. x-permission-visibility: catalog
  9631. requestBody:
  9632. required: true
  9633. description: JSON 请求体,业务字段置于 data
  9634. content:
  9635. application/json:
  9636. schema:
  9637. type: object
  9638. description: 统一信封请求体,业务字段放在 data 内
  9639. properties:
  9640. data:
  9641. type: object
  9642. description: 录入运营商回执请求参数
  9643. properties:
  9644. ticket_id:
  9645. type: string
  9646. description: 工单标识(字符串下发,服务侧转 bigint)
  9647. title: 工单 ID
  9648. completion_no:
  9649. type: string
  9650. description: 竣工单号;缺省取该单当前有效回传版本
  9651. title: completion no
  9652. external_order_no:
  9653. type: string
  9654. description: 运营商单号
  9655. title: external order no
  9656. receipt_remark:
  9657. type: string
  9658. description: 回执说明
  9659. title: receipt remark
  9660. expect_version:
  9661. type: integer
  9662. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  9663. title: 期望版本
  9664. override_state_conflict:
  9665. type: boolean
  9666. description: 纠正窗口:仅
  9667. admin、仅当该单处于竣工驳回态有效;以回执为准闭环,审计记「驳回态冲突纠正」并引用被推翻的驳回序号,不改写原驳回行。非驳回态提交本参数不产生任何效果。
  9668. title: override state conflict
  9669. required:
  9670. - ticket_id
  9671. title: 录入运营商回执请求数据
  9672. required:
  9673. - data
  9674. x-error-codes: [60401, 60410, 60411, 60417, 60423]
  9675. responses:
  9676. '200':
  9677. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9678. content:
  9679. application/json:
  9680. schema:
  9681. $ref: '#/components/schemas/ApiResponseCompletionReceipt'
  9682. /completion/reject@v1:
  9683. post:
  9684. summary: 登记竣工驳回
  9685. description: 待回执→竣工驳回( 方案 (d));理由必填(枚举 1~3 个,归一化后首位=主原因;`其他` 不得与其它项混选)+补充说明 5~500
  9686. 字;只可驳回该单当前最新一次回传,且工单须停在待回执态;不从已办结驳回( 同闸,落 KLT-G20423)。同事务写 ticket_completion_reject + 处理记录
  9687. `completion_reject` +
  9688. 审计;不接受调用方传入驳回时刻(一律服务端时间)、不新发驳回号段(对外引用=ticket_id+reject_seq)。主要失败:KLT-G20421、KLT-G20422、KLT-G20423、KLT-G20417。
  9689. operationId: completion_reject
  9690. tags:
  9691. - 竣工与回执
  9692. x-require-auth: true
  9693. x-resource-type:
  9694. $ref: '#/components/x-resource-types/completion/code'
  9695. x-action:
  9696. $ref: '#/components/x-actions/reject/code'
  9697. x-version: v1
  9698. x-permission-visibility: catalog
  9699. requestBody:
  9700. required: true
  9701. description: JSON 请求体,业务字段置于 data
  9702. content:
  9703. application/json:
  9704. schema:
  9705. type: object
  9706. description: 统一信封请求体,业务字段放在 data 内
  9707. properties:
  9708. data:
  9709. type: object
  9710. description: 登记竣工驳回请求参数
  9711. properties:
  9712. ticket_id:
  9713. type: string
  9714. description: 工单标识(字符串下发,服务侧转 bigint)
  9715. title: 工单 ID
  9716. reason_codes:
  9717. type: array
  9718. description: 驳回原因码,1~3 个;「其他」不得与其它项混选;服务端按枚举定义序归一化后落库
  9719. items:
  9720. type: string
  9721. enum:
  9722. - doc_mismatch
  9723. - resource_unavailable
  9724. - duplicate
  9725. - out_of_scope
  9726. - doc_missing
  9727. - site_not_ready
  9728. - other
  9729. title: reason_codes元素
  9730. minItems: 1
  9731. maxItems: 3
  9732. title: reason codes
  9733. reason_text:
  9734. type: string
  9735. description: 补充说明,5~500 字(按字符计)
  9736. title: reason text
  9737. completion_no:
  9738. type: string
  9739. description: 期望驳回的竣工单号;与当前最新一次回传不一致 ⇒ KLT-G20421(兜住拿旧快照点按钮)
  9740. title: completion no
  9741. external_reject_no:
  9742. type: string
  9743. description: 运营商内部编号;不在门户/合伙人回显
  9744. title: external reject no
  9745. expect_version:
  9746. type: integer
  9747. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  9748. title: 期望版本
  9749. required:
  9750. - ticket_id
  9751. - reason_codes
  9752. - reason_text
  9753. title: 登记竣工驳回请求数据
  9754. required:
  9755. - data
  9756. x-error-codes: [60401, 60410, 60421, 60422, 60423, 60417]
  9757. responses:
  9758. '200':
  9759. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9760. content:
  9761. application/json:
  9762. schema:
  9763. $ref: '#/components/schemas/ApiResponseCompletionReject'
  9764. /message/attach@v1:
  9765. post:
  9766. summary: 挂接并生效
  9767. description:
  9768. 人工侧只有「挂接并生效」一个动作(,):一次原子提交⇒报文置已生效+工单侧生效链(与人工回填同一个函数)+回填头改写为报文内容+明细清空+处理记录【运营商反馈】前缀。不得人工指定生效日期(取报文实际日期)。报文动作与工单类型不符报
  9769. KLT-G20407(提示语逐字照抄)。主要失败:KLT-G20401、KLT-G20407、KLT-G20419、KLT-G20417。
  9770. operationId: message_attach
  9771. tags:
  9772. - 报文人工处置
  9773. x-require-auth: true
  9774. x-resource-type:
  9775. $ref: '#/components/x-resource-types/message/code'
  9776. x-action:
  9777. $ref: '#/components/x-actions/attach/code'
  9778. x-version: v1
  9779. x-permission-visibility: catalog
  9780. requestBody:
  9781. required: true
  9782. description: JSON 请求体,业务字段置于 data
  9783. content:
  9784. application/json:
  9785. schema:
  9786. type: object
  9787. description: 统一信封请求体,业务字段放在 data 内
  9788. properties:
  9789. data:
  9790. type: object
  9791. description: 挂接并生效请求参数
  9792. properties:
  9793. message_id:
  9794. type: string
  9795. description: 报文标识
  9796. title: 消息 ID
  9797. ticket_id:
  9798. type: string
  9799. description: 拟挂接的工单标识
  9800. title: 工单 ID
  9801. expect_version:
  9802. type: integer
  9803. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  9804. title: 期望版本
  9805. required:
  9806. - message_id
  9807. - ticket_id
  9808. title: 挂接并生效请求数据
  9809. required:
  9810. - data
  9811. x-error-codes: [11104, 60401, 60407, 60419]
  9812. responses:
  9813. '200':
  9814. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9815. content:
  9816. application/json:
  9817. schema:
  9818. $ref: '#/components/schemas/ApiResponseMessageAttach'
  9819. /message/void@v1:
  9820. post:
  9821. summary: 作废报文
  9822. description: 置已作废+原因必填(缺原因报 11103)。不删除 raw_payload(:作废后仍可读)。主要失败:KLT-G20419。
  9823. operationId: message_void
  9824. tags:
  9825. - 报文人工处置
  9826. x-require-auth: true
  9827. x-resource-type:
  9828. $ref: '#/components/x-resource-types/message/code'
  9829. x-action:
  9830. $ref: '#/components/x-actions/void/code'
  9831. x-version: v1
  9832. x-permission-visibility: catalog
  9833. requestBody:
  9834. required: true
  9835. description: JSON 请求体,业务字段置于 data
  9836. content:
  9837. application/json:
  9838. schema:
  9839. type: object
  9840. description: 统一信封请求体,业务字段放在 data 内
  9841. properties:
  9842. data:
  9843. type: object
  9844. description: 作废报文请求参数
  9845. properties:
  9846. message_id:
  9847. type: string
  9848. description: 报文标识
  9849. title: 消息 ID
  9850. void_reason:
  9851. type: string
  9852. description: 作废原因(必填)
  9853. title: void reason
  9854. expect_version:
  9855. type: integer
  9856. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  9857. title: 期望版本
  9858. required:
  9859. - message_id
  9860. - void_reason
  9861. title: 作废报文请求数据
  9862. required:
  9863. - data
  9864. x-error-codes: [60412, 60419]
  9865. responses:
  9866. '200':
  9867. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9868. content:
  9869. application/json:
  9870. schema:
  9871. $ref: '#/components/schemas/ApiResponseMessageVoid'
  9872. /message/confirm_conflict@v1:
  9873. post:
  9874. summary: 冲突确认
  9875. description: 处置方式二选一:维持当前值(仅记录不生效)/采用外部值(触发与挂接相同的生效逻辑)。主要失败:KLT-G20419。
  9876. operationId: message_confirm_conflict
  9877. tags:
  9878. - 报文人工处置
  9879. x-require-auth: true
  9880. x-resource-type:
  9881. $ref: '#/components/x-resource-types/message/code'
  9882. x-action:
  9883. $ref: '#/components/x-actions/confirm_conflict/code'
  9884. x-version: v1
  9885. x-permission-visibility: catalog
  9886. requestBody:
  9887. required: true
  9888. description: JSON 请求体,业务字段置于 data
  9889. content:
  9890. application/json:
  9891. schema:
  9892. type: object
  9893. description: 统一信封请求体,业务字段放在 data 内
  9894. properties:
  9895. data:
  9896. type: object
  9897. description: 冲突确认请求参数
  9898. properties:
  9899. message_id:
  9900. type: string
  9901. description: 报文标识
  9902. title: 消息 ID
  9903. disposition:
  9904. type: string
  9905. description: 处置方式:as_is(维持当前值)/apply_external(采用外部值并生效);缺省 as_is
  9906. title: disposition
  9907. note:
  9908. type: string
  9909. description: 处置说明
  9910. title: 备注
  9911. expect_version:
  9912. type: integer
  9913. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  9914. title: 期望版本
  9915. required:
  9916. - message_id
  9917. title: 冲突确认请求数据
  9918. required:
  9919. - data
  9920. x-error-codes: [60401, 60419]
  9921. responses:
  9922. '200':
  9923. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9924. content:
  9925. application/json:
  9926. schema:
  9927. $ref: '#/components/schemas/ApiResponseMessageConfirmConflict'
  9928. /message/rematch@v1:
  9929. post:
  9930. summary: 改挂归属工单
  9931. description: 改挂到另一张工单+写改挂审计;不触发生效(:生效仍走挂接口)。主要失败:KLT-G20407、KLT-G20419。
  9932. operationId: message_rematch
  9933. tags:
  9934. - 报文人工处置
  9935. x-require-auth: true
  9936. x-resource-type:
  9937. $ref: '#/components/x-resource-types/message/code'
  9938. x-action:
  9939. $ref: '#/components/x-actions/rematch/code'
  9940. x-version: v1
  9941. x-permission-visibility: catalog
  9942. requestBody:
  9943. required: true
  9944. description: JSON 请求体,业务字段置于 data
  9945. content:
  9946. application/json:
  9947. schema:
  9948. type: object
  9949. description: 统一信封请求体,业务字段放在 data 内
  9950. properties:
  9951. data:
  9952. type: object
  9953. description: 改挂归属工单请求参数
  9954. properties:
  9955. message_id:
  9956. type: string
  9957. description: 报文标识
  9958. title: 消息 ID
  9959. ticket_id:
  9960. type: string
  9961. description: 改挂目标工单标识
  9962. title: 工单 ID
  9963. expect_version:
  9964. type: integer
  9965. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  9966. title: 期望版本
  9967. required:
  9968. - message_id
  9969. - ticket_id
  9970. title: 改挂归属工单请求数据
  9971. required:
  9972. - data
  9973. x-error-codes: [60407, 60419]
  9974. responses:
  9975. '200':
  9976. description: 成功时 code=10000;失败时查看 code/message/error_code。
  9977. content:
  9978. application/json:
  9979. schema:
  9980. $ref: '#/components/schemas/ApiResponseMessageRematch'
  9981. /ticket/material_grant@v1:
  9982. post:
  9983. summary: 材料上传/下载凭证
  9984. description: 上传两段(申请凭证 → 直传 → material_attach 登记);下载一段(传 material_id 或 oss_key,服务端现签并直接回
  9985. download_url)。一次一凭证、短时效、绑定对象键;不出批量凭证、不开通用上传口。purpose=upload 需 file_name,purpose=download 需
  9986. material_id 或 oss_key。终态(settled/terminated)只拦上传,
  9987. 拦下载——竣工材料事后仍可导出。不接受对象键上的任意路径。主要失败:11103、60056、KLT-G20401、KLT-G20420。
  9988. operationId: ticket_material_grant
  9989. tags:
  9990. - 工单与开停交付
  9991. x-require-auth: true
  9992. x-resource-type:
  9993. $ref: '#/components/x-resource-types/ticket/code'
  9994. x-action:
  9995. $ref: '#/components/x-actions/material_grant/code'
  9996. x-version: v1
  9997. x-permission-visibility: catalog
  9998. requestBody:
  9999. required: true
  10000. description: JSON 请求体,业务字段置于 data
  10001. content:
  10002. application/json:
  10003. schema:
  10004. type: object
  10005. description: 统一信封请求体,业务字段放在 data 内
  10006. properties:
  10007. data:
  10008. type: object
  10009. description: 材料上传/下载凭证请求参数
  10010. properties:
  10011. ticket_id:
  10012. type: string
  10013. description: 工单标识(字符串下发,服务侧转 bigint)
  10014. title: 工单 ID
  10015. kind:
  10016. type: string
  10017. description:
  10018. 材料类别:backfill_evidence(回填凭证)/handover(开通准备资料)/completion_pdf(竣工回传)/construct_material(补充过程材料)/submit_evidence(客户提交材料)。前两类中的回填凭证与竣工回传由服务端在业务事务内登记,不经
  10019. material_attach
  10020. title: 类型
  10021. file_name:
  10022. type: string
  10023. description: 原始文件名(purpose=upload 时必填)
  10024. title: 文件名
  10025. purpose:
  10026. type: string
  10027. description: 用途:upload(上传,缺省)/download(下载)
  10028. title: purpose
  10029. material_id:
  10030. type: string
  10031. description: 材料主键(purpose=download 二选一,首选)。detail@v1 不下发对象键,列表页下载只能靠它
  10032. title: material id
  10033. oss_key:
  10034. type: string
  10035. description: OSS 对象键(purpose=download 二选一,仅限刚由 material_attach 换回的同一次交互)
  10036. title: 对象键
  10037. required:
  10038. - ticket_id
  10039. - kind
  10040. title: 材料上传/下载凭证请求数据
  10041. required:
  10042. - data
  10043. x-error-codes: [11103, 11104, 60401, 60804]
  10044. responses:
  10045. '200':
  10046. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10047. content:
  10048. application/json:
  10049. schema:
  10050. $ref: '#/components/schemas/ApiResponseTicketMaterialGrant'
  10051. /ticket/material_attach@v1:
  10052. post:
  10053. summary: 登记材料元信息
  10054. description: 登记文件名+大小+上传人+时间+可下载凭证。不把上传动作记进 ticket_process_log(D2)。数量上限:工单材料 5 份、故障处理材料 5
  10055. 份(超限报 KLT-G20420)。主要失败:KLT-G20420、60056。
  10056. operationId: ticket_material_attach
  10057. tags:
  10058. - 工单与开停交付
  10059. x-require-auth: true
  10060. x-resource-type:
  10061. $ref: '#/components/x-resource-types/ticket/code'
  10062. x-action:
  10063. $ref: '#/components/x-actions/material_attach/code'
  10064. x-version: v1
  10065. x-permission-visibility: catalog
  10066. requestBody:
  10067. required: true
  10068. description: JSON 请求体,业务字段置于 data
  10069. content:
  10070. application/json:
  10071. schema:
  10072. type: object
  10073. description: 统一信封请求体,业务字段放在 data 内
  10074. properties:
  10075. data:
  10076. type: object
  10077. description: 登记材料元信息请求参数
  10078. properties:
  10079. ticket_id:
  10080. type: string
  10081. description: 工单标识(字符串下发,服务侧转 bigint)
  10082. title: 工单 ID
  10083. kind:
  10084. type: string
  10085. description: 材料类别前缀:attachment/opening/alteration/return/other
  10086. title: 类型
  10087. oss_key:
  10088. type: string
  10089. description: OSS 对象键
  10090. title: 对象键
  10091. file_name:
  10092. type: string
  10093. description: 原始文件名
  10094. title: 文件名
  10095. size_bytes:
  10096. type: integer
  10097. description: 文件字节数
  10098. title: size bytes
  10099. required:
  10100. - ticket_id
  10101. - kind
  10102. - oss_key
  10103. title: 登记材料元信息请求数据
  10104. required:
  10105. - data
  10106. x-error-codes: [11103, 11104, 60401]
  10107. responses:
  10108. '200':
  10109. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10110. content:
  10111. application/json:
  10112. schema:
  10113. $ref: '#/components/schemas/ApiResponseTicketMaterialAttach'
  10114. /ticket/config_get@v1:
  10115. get:
  10116. summary: 域配置查询(闭环方式)
  10117. description: 出参=闭环方式当前值+版本+更新人/更新时间+生效说明;不暴露超期天数等系统参数。
  10118. operationId: ticket_config_get
  10119. tags:
  10120. - 工单与开停交付
  10121. x-require-auth: true
  10122. x-resource-type:
  10123. $ref: '#/components/x-resource-types/ticket/code'
  10124. x-action:
  10125. $ref: '#/components/x-actions/config_get/code'
  10126. x-version: v1
  10127. x-permission-visibility: catalog
  10128. x-error-codes: [11104]
  10129. responses:
  10130. '200':
  10131. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10132. content:
  10133. application/json:
  10134. schema:
  10135. $ref: '#/components/schemas/ApiResponseTicketConfigGet'
  10136. /ticket/config_update@v1:
  10137. post:
  10138. summary: 域配置修改(闭环方式)
  10139. description: 仅 admin;一次原子提交⇒配置更新+历史追加+审计;不改既有工单的闭环方式。主要失败:KLT-G20417。
  10140. operationId: ticket_config_update
  10141. tags:
  10142. - 工单与开停交付
  10143. x-require-auth: true
  10144. x-resource-type:
  10145. $ref: '#/components/x-resource-types/ticket/code'
  10146. x-action:
  10147. $ref: '#/components/x-actions/config_update/code'
  10148. x-version: v1
  10149. x-permission-visibility: catalog
  10150. requestBody:
  10151. required: true
  10152. description: JSON 请求体,业务字段置于 data
  10153. content:
  10154. application/json:
  10155. schema:
  10156. type: object
  10157. description: 统一信封请求体,业务字段放在 data 内
  10158. properties:
  10159. data:
  10160. type: object
  10161. description: 域配置修改(闭环方式)请求参数
  10162. properties:
  10163. closure_mode:
  10164. type: string
  10165. description: 闭环方式:receipt(回执闭环)/on_complete(完成后即闭环)
  10166. title: closure mode
  10167. expect_version:
  10168. type: integer
  10169. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  10170. title: 期望版本
  10171. reason:
  10172. type: string
  10173. description: 变更原因
  10174. title: reason
  10175. required:
  10176. - closure_mode
  10177. title: 域配置修改(闭环方式)请求数据
  10178. required:
  10179. - data
  10180. x-error-codes: [11103, 11104, 60001]
  10181. responses:
  10182. '200':
  10183. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10184. content:
  10185. application/json:
  10186. schema:
  10187. $ref: '#/components/schemas/ApiResponseTicketConfigUpdate'
  10188. /ticket/form_template_get@v1:
  10189. get:
  10190. summary: 施工回填扩展模板查询
  10191. description: 运营侧可读;可选 ticket_type。回当前 published、draft(若有)、版本列表。权限档对齐 config_get。
  10192. operationId: ticket_form_template_get
  10193. tags:
  10194. - 工单与开停交付
  10195. x-require-auth: true
  10196. x-resource-type:
  10197. $ref: '#/components/x-resource-types/ticket/code'
  10198. x-action:
  10199. $ref: '#/components/x-actions/config_get/code'
  10200. x-version: v1
  10201. x-permission-visibility: catalog
  10202. parameters:
  10203. - name: ticket_type
  10204. in: query
  10205. required: false
  10206. schema:
  10207. type: string
  10208. description: open/updown/expiry_stop/service_stop;缺省=四类全量
  10209. x-error-codes: [11103, 11104]
  10210. responses:
  10211. '200':
  10212. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10213. content:
  10214. application/json:
  10215. schema:
  10216. $ref: '#/components/schemas/ApiResponseTicketFormTemplateGet'
  10217. /ticket/form_template_save@v1:
  10218. post:
  10219. summary: 施工回填扩展模板保存草稿
  10220. description: 仅 admin;每类型至多一个 draft;schema 非法 ⇒ KLT-G20425;并发 ⇒ KLT-S407。权限档对齐 config_update。
  10221. operationId: ticket_form_template_save
  10222. tags:
  10223. - 工单与开停交付
  10224. x-require-auth: true
  10225. x-resource-type:
  10226. $ref: '#/components/x-resource-types/ticket/code'
  10227. x-action:
  10228. $ref: '#/components/x-actions/config_update/code'
  10229. x-version: v1
  10230. x-permission-visibility: catalog
  10231. requestBody:
  10232. required: true
  10233. description: JSON 请求体,业务字段置于 data
  10234. content:
  10235. application/json:
  10236. schema:
  10237. type: object
  10238. properties:
  10239. data:
  10240. type: object
  10241. properties:
  10242. ticket_type:
  10243. type: string
  10244. title: 工单类型
  10245. description: 工单类型。
  10246. schema:
  10247. type: object
  10248. title: schema
  10249. description: 字段 schema。
  10250. expect_version:
  10251. type: integer
  10252. title: 期望版本
  10253. description: 字段 expect_version。
  10254. template_id:
  10255. type: string
  10256. title: template id
  10257. description: 字段 template_id。
  10258. required:
  10259. - ticket_type
  10260. - schema
  10261. description: 施工回填扩展模板保存草稿请求参数
  10262. title: 施工回填扩展模板保存草稿请求数据
  10263. required:
  10264. - data
  10265. x-error-codes: [11103, 11104, 60001, 60425]
  10266. responses:
  10267. '200':
  10268. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10269. content:
  10270. application/json:
  10271. schema:
  10272. $ref: '#/components/schemas/ApiResponseTicketFormTemplateSave'
  10273. /ticket/form_template_publish@v1:
  10274. post:
  10275. summary: 施工回填扩展模板发布
  10276. description: 仅 admin;旧 published→retired;新增/改 required 须 ack_required_change;失败
  10277. KLT-G20425/KLT-S407。权限档对齐 config_update。
  10278. operationId: ticket_form_template_publish
  10279. tags:
  10280. - 工单与开停交付
  10281. x-require-auth: true
  10282. x-resource-type:
  10283. $ref: '#/components/x-resource-types/ticket/code'
  10284. x-action:
  10285. $ref: '#/components/x-actions/config_update/code'
  10286. x-version: v1
  10287. x-permission-visibility: catalog
  10288. requestBody:
  10289. required: true
  10290. description: JSON 请求体,业务字段置于 data
  10291. content:
  10292. application/json:
  10293. schema:
  10294. type: object
  10295. properties:
  10296. data:
  10297. type: object
  10298. properties:
  10299. ticket_type:
  10300. type: string
  10301. title: 工单类型
  10302. description: 工单类型。
  10303. template_id:
  10304. type: string
  10305. title: template id
  10306. description: 字段 template_id。
  10307. expect_version:
  10308. type: integer
  10309. title: 期望版本
  10310. description: 字段 expect_version。
  10311. ack_required_change:
  10312. type: boolean
  10313. title: ack required change
  10314. description: 字段 ack_required_change。
  10315. required:
  10316. - ticket_type
  10317. description: 施工回填扩展模板发布请求参数
  10318. title: 施工回填扩展模板发布请求数据
  10319. required:
  10320. - data
  10321. x-error-codes: [11103, 11104, 60001, 60425]
  10322. responses:
  10323. '200':
  10324. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10325. content:
  10326. application/json:
  10327. schema:
  10328. $ref: '#/components/schemas/ApiResponseTicketFormTemplatePublish'
  10329. /contract/renewal_config@v1:
  10330. get:
  10331. summary: 合同续签提醒配置查询(GET)
  10332. description: 与 POST 同义;补齐 GET 路由声明,供网关与直连读取。
  10333. operationId: contract_renewal_config_get
  10334. tags:
  10335. - 合同
  10336. x-require-auth: true
  10337. x-resource-type:
  10338. $ref: '#/components/x-resource-types/contract/code'
  10339. x-action:
  10340. $ref: '#/components/x-actions/renewal_config/code'
  10341. x-version: v1
  10342. x-permission-visibility: catalog
  10343. x-error-codes: [11104]
  10344. responses:
  10345. '200':
  10346. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10347. content:
  10348. application/json:
  10349. schema:
  10350. $ref: '#/components/schemas/ApiResponseContractRenewalConfigGet'
  10351. post:
  10352. summary: 合同续签提醒配置查询
  10353. description: |-
  10354. 续签提前天数(1..180,默认 7)与续签工单生成方式(manual 人工/auto 自动);运营侧三类身份可读。
  10355. 网关对 klt-bos 一律 POST(与其它合同口同形);响应含 notice_days/generate_mode/row_version。
  10356. operationId: contract_renewal_config
  10357. tags:
  10358. - 合同
  10359. x-require-auth: true
  10360. x-resource-type:
  10361. $ref: '#/components/x-resource-types/contract/code'
  10362. x-action:
  10363. $ref: '#/components/x-actions/renewal_config/code'
  10364. x-version: v1
  10365. x-permission-visibility: catalog
  10366. x-error-codes: [11104]
  10367. requestBody:
  10368. required: true
  10369. description: JSON 请求体,业务字段置于 data(本口无必填业务字段,传空对象即可)
  10370. content:
  10371. application/json:
  10372. schema:
  10373. type: object
  10374. properties:
  10375. data:
  10376. type: object
  10377. description: 合同续签提醒配置查询请求参数
  10378. title: 合同续签提醒配置查询请求数据
  10379. required:
  10380. - data
  10381. responses:
  10382. '200':
  10383. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10384. content:
  10385. application/json:
  10386. schema:
  10387. $ref: '#/components/schemas/ApiResponseContractRenewalConfig'
  10388. /contract/renewal_config_update@v1:
  10389. post:
  10390. summary: 合同续签提醒配置修改
  10391. description: 仅 admin;改提前天数与生成方式,写审计、即刻生效。同值不写库;并发版本不符回 KLT-S407。
  10392. operationId: contract_renewal_config_update
  10393. tags:
  10394. - 合同
  10395. x-require-auth: true
  10396. x-resource-type:
  10397. $ref: '#/components/x-resource-types/contract/code'
  10398. x-action:
  10399. $ref: '#/components/x-actions/renewal_config_update/code'
  10400. x-version: v1
  10401. x-permission-visibility: catalog
  10402. requestBody:
  10403. required: true
  10404. description: JSON 请求体,业务字段置于 data
  10405. content:
  10406. application/json:
  10407. schema:
  10408. type: object
  10409. properties:
  10410. data:
  10411. type: object
  10412. properties:
  10413. notice_days:
  10414. type: integer
  10415. description: 提前提醒天数(1..180,默认 7)
  10416. title: notice days
  10417. generate_mode:
  10418. type: string
  10419. description: 生成方式:manual(人工,先发站内提醒)/auto(自动生成续签工单)
  10420. enum:
  10421. - manual
  10422. - auto
  10423. title: generate mode
  10424. expect_version:
  10425. type: integer
  10426. description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验
  10427. title: 期望版本
  10428. reason:
  10429. type: string
  10430. description: 变更原因
  10431. title: reason
  10432. required:
  10433. - notice_days
  10434. - generate_mode
  10435. description: 合同续签提醒配置修改请求参数
  10436. title: 合同续签提醒配置修改请求数据
  10437. required:
  10438. - data
  10439. x-error-codes: [11103, 11104, 60001]
  10440. responses:
  10441. '200':
  10442. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10443. content:
  10444. application/json:
  10445. schema:
  10446. $ref: '#/components/schemas/ApiResponseContractRenewalConfigUpdate'
  10447. /inbox/list@v1:
  10448. post:
  10449. summary: 本人站内提醒箱
  10450. description: 未读优先、按时间倒序分页;仅回当前账号本人的消息(来源不可越权)。
  10451. operationId: inbox_list
  10452. tags:
  10453. - 站内提醒箱
  10454. x-require-auth: true
  10455. x-resource-type:
  10456. $ref: '#/components/x-resource-types/inbox/code'
  10457. x-action:
  10458. $ref: '#/components/x-actions/list/code'
  10459. x-version: v1
  10460. x-permission-visibility: catalog
  10461. requestBody:
  10462. required: false
  10463. description: JSON 请求体,业务字段置于 data
  10464. content:
  10465. application/json:
  10466. schema:
  10467. type: object
  10468. properties:
  10469. data:
  10470. type: object
  10471. properties:
  10472. unread_only:
  10473. type: boolean
  10474. description: 只看未读
  10475. title: unread only
  10476. page:
  10477. type: integer
  10478. description: 页码(1 起)
  10479. title: 页码
  10480. page_size:
  10481. type: integer
  10482. description: 每页条数(1..100)
  10483. title: 每页条数
  10484. description: 本人站内提醒箱请求参数
  10485. title: 本人站内提醒箱请求数据
  10486. x-error-codes: [11104]
  10487. responses:
  10488. '200':
  10489. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10490. content:
  10491. application/json:
  10492. schema:
  10493. $ref: '#/components/schemas/ApiResponseInboxList'
  10494. /inbox/read@v1:
  10495. post:
  10496. summary: 标记站内提醒已读
  10497. description: 只能标记本人消息;已读时间只写首次。
  10498. operationId: inbox_read
  10499. tags:
  10500. - 站内提醒箱
  10501. x-require-auth: true
  10502. x-resource-type:
  10503. $ref: '#/components/x-resource-types/inbox/code'
  10504. x-action:
  10505. $ref: '#/components/x-actions/read/code'
  10506. x-version: v1
  10507. x-permission-visibility: catalog
  10508. requestBody:
  10509. required: true
  10510. description: JSON 请求体,业务字段置于 data
  10511. content:
  10512. application/json:
  10513. schema:
  10514. type: object
  10515. properties:
  10516. data:
  10517. type: object
  10518. properties:
  10519. message_id:
  10520. type: string
  10521. description: 消息 ID(数字串)
  10522. title: 消息 ID
  10523. required:
  10524. - message_id
  10525. description: 标记站内提醒已读请求参数
  10526. title: 标记站内提醒已读请求数据
  10527. required:
  10528. - data
  10529. x-error-codes: [11103, 11104, 60401]
  10530. responses:
  10531. '200':
  10532. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10533. content:
  10534. application/json:
  10535. schema:
  10536. $ref: '#/components/schemas/ApiResponseInboxRead'
  10537. /inbox/renewal_candidates@v1:
  10538. post:
  10539. summary: 续签工单可指派人员
  10540. description: 提醒所属客户当期运维团队内、可接 renewal 类型且负责范围覆盖该客户的成员。
  10541. operationId: inbox_renewal_candidates
  10542. tags:
  10543. - 站内提醒箱
  10544. x-require-auth: true
  10545. x-resource-type:
  10546. $ref: '#/components/x-resource-types/inbox/code'
  10547. x-action:
  10548. $ref: '#/components/x-actions/renewal_candidates/code'
  10549. x-version: v1
  10550. x-permission-visibility: catalog
  10551. requestBody:
  10552. required: true
  10553. description: JSON 请求体,业务字段置于 data
  10554. content:
  10555. application/json:
  10556. schema:
  10557. type: object
  10558. properties:
  10559. data:
  10560. type: object
  10561. properties:
  10562. message_id:
  10563. type: string
  10564. description: 消息 ID(数字串)
  10565. title: 消息 ID
  10566. required:
  10567. - message_id
  10568. description: 续签工单可指派人员请求参数
  10569. title: 续签工单可指派人员请求数据
  10570. required:
  10571. - data
  10572. x-error-codes: [11103, 11104, 60401]
  10573. responses:
  10574. '200':
  10575. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10576. content:
  10577. application/json:
  10578. schema:
  10579. $ref: '#/components/schemas/ApiResponseInboxRenewalCandidates'
  10580. /inbox/renewal_ticket@v1:
  10581. post:
  10582. summary: 读信人生成续签工单并指派
  10583. description: 从站内续签提醒一键生成 renewal 工单并分派;同一合同只出一张(已有则复用并改派),生成后同合同提醒全部置为已处理。
  10584. operationId: inbox_renewal_ticket
  10585. tags:
  10586. - 站内提醒箱
  10587. x-require-auth: true
  10588. x-resource-type:
  10589. $ref: '#/components/x-resource-types/inbox/code'
  10590. x-action:
  10591. $ref: '#/components/x-actions/renewal_ticket/code'
  10592. x-version: v1
  10593. x-permission-visibility: catalog
  10594. requestBody:
  10595. required: true
  10596. description: JSON 请求体,业务字段置于 data
  10597. content:
  10598. application/json:
  10599. schema:
  10600. type: object
  10601. properties:
  10602. data:
  10603. type: object
  10604. properties:
  10605. message_id:
  10606. type: string
  10607. description: 提醒消息 ID(数字串)
  10608. title: 消息 ID
  10609. assignee_user_id:
  10610. type: string
  10611. description: 承接续签工单的运营人员账号 ID(须在客户当期团队、可接 renewal、负责范围覆盖客户)
  10612. title: 处理人用户 ID
  10613. required:
  10614. - message_id
  10615. - assignee_user_id
  10616. description: 读信人生成续签工单并指派请求参数
  10617. title: 读信人生成续签工单并指派请求数据
  10618. required:
  10619. - data
  10620. x-error-codes: [11103, 11104, 60001, 60401]
  10621. responses:
  10622. '200':
  10623. description: 成功时 code=10000;失败时查看 code/message/error_code。
  10624. content:
  10625. application/json:
  10626. schema:
  10627. $ref: '#/components/schemas/ApiResponseInboxRenewalTicket'
  10628. components:
  10629. x-resource-types:
  10630. health:
  10631. code: 'bos.health'
  10632. ping:
  10633. code: 'bos.ping'
  10634. auth:
  10635. code: 'bos.auth'
  10636. region:
  10637. code: 'bos.region'
  10638. account:
  10639. code: 'bos.account'
  10640. ent_team:
  10641. code: 'bos.ent_team'
  10642. ops_team:
  10643. code: 'bos.ops_team'
  10644. audit:
  10645. code: 'bos.audit'
  10646. activation:
  10647. code: 'bos.activation'
  10648. operator:
  10649. code: 'bos.operator'
  10650. operator_recon_account:
  10651. code: 'bos.operator.recon_account'
  10652. partner:
  10653. code: 'bos.partner'
  10654. partner_scope:
  10655. code: 'bos.partner.scope'
  10656. ent_team_scope:
  10657. code: 'bos.ent_team.scope'
  10658. ops_team_scope:
  10659. code: 'bos.ops_team.scope'
  10660. ops_member_scope:
  10661. code: 'bos.ops_member.scope'
  10662. ops_team_dispatch_mode:
  10663. code: 'bos.ops_team.dispatch_mode'
  10664. ops_team_coverage:
  10665. code: 'bos.ops_team.coverage'
  10666. customer:
  10667. code: 'bos.customer'
  10668. customer_attribution:
  10669. code: 'bos.customer.attribution'
  10670. import_batch:
  10671. code: 'bos.import_batch'
  10672. sub_account:
  10673. code: 'bos.sub_account'
  10674. delivery:
  10675. code: 'bos.delivery'
  10676. catalog:
  10677. code: 'bos.catalog'
  10678. plan_cost_item:
  10679. code: 'bos.plan_cost_item'
  10680. contract:
  10681. code: 'bos.contract'
  10682. contract_attachment:
  10683. code: 'bos.contract_attachment'
  10684. subscription:
  10685. code: 'bos.subscription'
  10686. cost_item:
  10687. code: 'bos.cost_item'
  10688. cost_amount:
  10689. code: 'bos.cost_amount'
  10690. share_rule:
  10691. code: 'bos.share_rule'
  10692. opsview:
  10693. code: 'bos.opsview'
  10694. jobs:
  10695. code: 'bos.jobs'
  10696. billing_config:
  10697. code: 'bos.billing_config'
  10698. recon:
  10699. code: 'bos.recon'
  10700. bill:
  10701. code: 'bos.bill'
  10702. correction:
  10703. code: 'bos.correction'
  10704. ticket:
  10705. code: 'bos.ticket'
  10706. completion:
  10707. code: 'bos.completion'
  10708. message:
  10709. code: 'bos.message'
  10710. inbox:
  10711. code: 'bos.inbox'
  10712. view:
  10713. code: 'bos.view'
  10714. portal:
  10715. code: 'bos.portal'
  10716. x-actions:
  10717. view:
  10718. code: 'view'
  10719. create:
  10720. code: 'create'
  10721. update:
  10722. code: 'update'
  10723. delete:
  10724. code: 'delete'
  10725. list:
  10726. code: 'list'
  10727. manage:
  10728. code: 'manage'
  10729. export:
  10730. code: 'export'
  10731. import:
  10732. code: 'import'
  10733. detail:
  10734. code: 'detail'
  10735. pending_queue:
  10736. code: 'pending_queue'
  10737. todo_counts:
  10738. code: 'todo_counts'
  10739. trace:
  10740. code: 'trace'
  10741. pending:
  10742. code: 'pending'
  10743. assign:
  10744. code: 'assign'
  10745. dispatch_auto:
  10746. code: 'dispatch_auto'
  10747. delegate:
  10748. code: 'delegate'
  10749. start:
  10750. code: 'start'
  10751. backfill:
  10752. code: 'backfill'
  10753. backfill_draft:
  10754. code: 'backfill_draft'
  10755. check_done:
  10756. code: 'check_done'
  10757. mark_done:
  10758. code: 'mark_done'
  10759. close:
  10760. code: 'close'
  10761. withdraw:
  10762. code: 'withdraw'
  10763. confirm_close:
  10764. code: 'confirm_close'
  10765. defer:
  10766. code: 'defer'
  10767. revert:
  10768. code: 'revert'
  10769. generate:
  10770. code: 'generate'
  10771. receipt:
  10772. code: 'receipt'
  10773. reject:
  10774. code: 'reject'
  10775. attach:
  10776. code: 'attach'
  10777. void:
  10778. code: 'void'
  10779. confirm_conflict:
  10780. code: 'confirm_conflict'
  10781. rematch:
  10782. code: 'rematch'
  10783. urge:
  10784. code: 'urge'
  10785. material_grant:
  10786. code: 'material_grant'
  10787. material_attach:
  10788. code: 'material_attach'
  10789. config_get:
  10790. code: 'config_get'
  10791. config_update:
  10792. code: 'config_update'
  10793. form_template_get:
  10794. code: 'form_template_get'
  10795. form_template_save:
  10796. code: 'form_template_save'
  10797. form_template_publish:
  10798. code: 'form_template_publish'
  10799. renewal_config:
  10800. code: 'renewal_config'
  10801. renewal_config_update:
  10802. code: 'renewal_config_update'
  10803. read:
  10804. code: 'read'
  10805. renewal_candidates:
  10806. code: 'renewal_candidates'
  10807. renewal_ticket:
  10808. code: 'renewal_ticket'
  10809. delivery_reissue:
  10810. code: 'delivery_reissue'
  10811. partner_recon:
  10812. code: 'partner_recon'
  10813. plan_board:
  10814. code: 'plan_board'
  10815. schemas:
  10816. PortalPlanBoardRow:
  10817. type: object
  10818. description: |-
  10819. 客户门户套餐看板一行:档位名、合同编号/总额、冻结方式、线路出口、起止日与状态。不含金额账目列、工单与操作位。
  10820. properties:
  10821. subscription_id:
  10822. type: string
  10823. description: 订阅 ID(详情入口预留)
  10824. title: 订阅 ID
  10825. plan_name:
  10826. type: string
  10827. description: 档位名(订阅快照)
  10828. title: 档位名称
  10829. contract_id:
  10830. type: string
  10831. nullable: true
  10832. title: 合同 ID
  10833. description: 合同 ID。
  10834. contract_no:
  10835. type: string
  10836. nullable: true
  10837. description: 合同编号;合同缺失时前端显示「—」
  10838. title: 合同编号
  10839. contract_amount_cents:
  10840. type: integer
  10841. nullable: true
  10842. description: 合同总额(分);缺失时前端显示「—」
  10843. title: contract amount cents
  10844. sub_mode:
  10845. type: string
  10846. nullable: true
  10847. description: 冻结方式原码(upgrade/stackable/customized)
  10848. title: sub mode
  10849. line_exits:
  10850. type: array
  10851. nullable: true
  10852. description: 随合同冻结的线路出口集合;空集时前端显示「—」
  10853. items:
  10854. type: string
  10855. title: line_exits元素
  10856. title: line exits
  10857. start_date:
  10858. type: string
  10859. nullable: true
  10860. description: 列 6 起
  10861. title: 开始日
  10862. end_date:
  10863. type: string
  10864. nullable: true
  10865. description: 列 6 止
  10866. title: 结束日
  10867. status:
  10868. type: object
  10869. description: 列 7=读侧三态结论
  10870. properties:
  10871. key:
  10872. type: string
  10873. enum:
  10874. - active
  10875. - pending
  10876. - expired
  10877. - cancelled
  10878. - replaced
  10879. label:
  10880. type: string
  10881. title: 状态
  10882. required:
  10883. - subscription_id
  10884. - plan_name
  10885. - status
  10886. title: PortalPlanBoardRow
  10887. ApiEnvelope:
  10888. type: object
  10889. title: 统一响应信封
  10890. description: HTTP 状态码统一为 200;业务结果看 code/message/data。
  10891. required:
  10892. - code
  10893. - message
  10894. properties:
  10895. code:
  10896. type: integer
  10897. title: 业务码
  10898. description: 10000 表示成功。
  10899. example: 10000
  10900. message:
  10901. type: string
  10902. title: 响应消息
  10903. description: 成功或错误说明。
  10904. error_code:
  10905. type: string
  10906. title: 稳定错误码
  10907. description: 失败时的 KLT-*;成功时不下发。
  10908. nullable: true
  10909. data:
  10910. title: 业务数据
  10911. description: 成功时的业务载荷;具体形状由各接口 ApiResponse* 收窄。
  10912. nullable: true
  10913. PageQuery:
  10914. type: object
  10915. description: 分页查询(0 基)
  10916. properties:
  10917. page:
  10918. type: integer
  10919. description: 页码(0 基索引,默认 0)
  10920. minimum: 0
  10921. default: 0
  10922. title: 页码
  10923. page_size:
  10924. type: integer
  10925. description: 每页条数(默认 20,上限 200)
  10926. minimum: 1
  10927. maximum: 200
  10928. default: 20
  10929. title: 每页条数
  10930. keyword:
  10931. type: string
  10932. description: 关键字筛选(可选)
  10933. title: 关键字
  10934. title: PageQuery
  10935. PagedMeta:
  10936. type: object
  10937. description: 分页元数据(0 基)
  10938. properties:
  10939. total:
  10940. type: integer
  10941. description: 总条数
  10942. title: 总条数
  10943. page:
  10944. type: integer
  10945. description: 页码(0 基)
  10946. title: 页码
  10947. page_size:
  10948. type: integer
  10949. description: 每页条数
  10950. title: 每页条数
  10951. required:
  10952. - total
  10953. - page
  10954. - page_size
  10955. title: PagedMeta
  10956. AccountChangePasswordResult:
  10957. type: object
  10958. properties:
  10959. user_id:
  10960. type: string
  10961. title: 用户 ID
  10962. description: 用户 ID。
  10963. pwd_set_at_updated:
  10964. type: boolean
  10965. description: 本地 `bos_account_ext.pwd_set_at` 是否落库(平台已改成功时可能为 false,服务端会记日志)。
  10966. title: pwd set at updated
  10967. audit_written:
  10968. type: boolean
  10969. title: 是否已写审计
  10970. description: 是否已写审计。
  10971. required:
  10972. - user_id
  10973. - pwd_set_at_updated
  10974. - audit_written
  10975. description: AccountChangePasswordResult 业务数据
  10976. title: AccountChangePasswordResult
  10977. AccountListResult:
  10978. type: object
  10979. properties:
  10980. items:
  10981. type: array
  10982. items:
  10983. $ref: '#/components/schemas/AccountListRow'
  10984. title: 列表项
  10985. description: 列表项。
  10986. total:
  10987. type: integer
  10988. title: 总条数
  10989. description: 总条数。
  10990. page:
  10991. type: integer
  10992. nullable: true
  10993. title: 页码
  10994. description: 页码。
  10995. page_size:
  10996. type: integer
  10997. nullable: true
  10998. title: 每页条数
  10999. description: 每页条数。
  11000. required:
  11001. - items
  11002. - total
  11003. description: AccountListResult 业务数据
  11004. title: AccountListResult
  11005. AccountListRow:
  11006. type: object
  11007. properties:
  11008. user_id:
  11009. type: string
  11010. title: 用户 ID
  11011. description: 用户 ID。
  11012. display_name:
  11013. type: string
  11014. nullable: true
  11015. title: 显示名
  11016. description: 显示名。
  11017. username:
  11018. type: string
  11019. title: 登录名
  11020. description: 登录名。
  11021. mobile:
  11022. type: string
  11023. nullable: true
  11024. title: 手机号
  11025. description: 手机号。
  11026. role_code:
  11027. type: string
  11028. title: 角色码
  11029. description: 角色码。
  11030. subject_type:
  11031. type: string
  11032. description: 绑定主体类型:customer/ent_team/ops_team/partner/operator/sub_account/platform
  11033. title: 主体类型
  11034. subject_id:
  11035. type: string
  11036. title: 主体 ID
  11037. description: 主体 ID。
  11038. account_kind:
  11039. type: string
  11040. description: 账号标记:entry=入口账号,sub=分账号,primary=主账号(后端由 entry_only+role_code 派生)。
  11041. title: 账号标记
  11042. status:
  11043. type: string
  11044. description: 账号启停态(`bos_user_binding.status`):active/disabled。
  11045. title: 状态
  11046. activation_status:
  11047. type: string
  11048. nullable: true
  11049. description: 激活态(`bos_account_ext.status`):none/issuing/issued/activated,与 `status` 正交。
  11050. title: 激活态
  11051. delivered_at:
  11052. type: string
  11053. nullable: true
  11054. description: 激活码交付时间(`delivered_at`)。
  11055. title: 交付时间
  11056. activated_at:
  11057. type: string
  11058. nullable: true
  11059. description: 激活时间(`activated_at`)。
  11060. title: 激活时间
  11061. pwd_set_at:
  11062. type: string
  11063. nullable: true
  11064. description: 设密时间(`pwd_set_at`);`null`=尚未首次改密。
  11065. title: 设密时间
  11066. expire_date:
  11067. type: string
  11068. nullable: true
  11069. description: 激活码有效截止日(`expire_date`,DATE)。
  11070. title: 到期日
  11071. created_at:
  11072. type: string
  11073. nullable: true
  11074. title: 创建时间
  11075. description: 创建时间。
  11076. required:
  11077. - user_id
  11078. - display_name
  11079. - username
  11080. - mobile
  11081. - role_code
  11082. - subject_type
  11083. - subject_id
  11084. - account_kind
  11085. - status
  11086. - activation_status
  11087. - delivered_at
  11088. - activated_at
  11089. - pwd_set_at
  11090. - expire_date
  11091. - created_at
  11092. description: AccountListRow 业务数据
  11093. title: AccountListRow
  11094. AccountNotifyEmailResult:
  11095. type: object
  11096. properties:
  11097. user_id:
  11098. type: string
  11099. title: 用户 ID
  11100. description: 用户 ID。
  11101. has_email:
  11102. type: boolean
  11103. title: has email
  11104. description: 字段 has_email。
  11105. address_hint:
  11106. type: string
  11107. nullable: true
  11108. title: address hint
  11109. description: 字段 address_hint。
  11110. address_source:
  11111. type: string
  11112. title: address source
  11113. description: 字段 address_source。
  11114. audit_written:
  11115. type: boolean
  11116. title: 是否已写审计
  11117. description: 是否已写审计。
  11118. required:
  11119. - user_id
  11120. - has_email
  11121. - address_hint
  11122. - address_source
  11123. - audit_written
  11124. description: AccountNotifyEmailResult 业务数据
  11125. title: AccountNotifyEmailResult
  11126. AccountNotifyEmailSetResult:
  11127. $ref: '#/components/schemas/AccountNotifyEmailResult'
  11128. AccountNotifyPrefResult:
  11129. type: object
  11130. properties:
  11131. user_id:
  11132. type: string
  11133. title: 用户 ID
  11134. description: 用户 ID。
  11135. inapp:
  11136. $ref: '#/components/schemas/NotifyChannelPref'
  11137. mail:
  11138. type: string
  11139. description: "类型:NotifyChannelPref & { address_source: \"account\" | \"operator_profile\" |"
  11140. title: mail
  11141. sms:
  11142. $ref: '#/components/schemas/NotifyChannelPref'
  11143. items:
  11144. type: array
  11145. items:
  11146. type: string
  11147. description: '类型:{ channel: NotifyChannel } & NotifyChannelPref'
  11148. title: 列表项元素
  11149. title: 列表项
  11150. description: 列表项。
  11151. required:
  11152. - user_id
  11153. - inapp
  11154. - mail
  11155. - sms
  11156. - items
  11157. description: AccountNotifyPrefResult 业务数据
  11158. title: AccountNotifyPrefResult
  11159. AccountNotifyPrefSaveResult:
  11160. type: object
  11161. properties:
  11162. user_id:
  11163. type: string
  11164. title: 用户 ID
  11165. description: 用户 ID。
  11166. inapp_enabled:
  11167. type: string
  11168. description: 类型:true
  11169. title: inapp enabled
  11170. mail_enabled:
  11171. type: boolean
  11172. title: mail enabled
  11173. description: 字段 mail_enabled。
  11174. sms_enabled:
  11175. type: boolean
  11176. title: sms enabled
  11177. description: 字段 sms_enabled。
  11178. audit_written:
  11179. type: boolean
  11180. title: 是否已写审计
  11181. description: 是否已写审计。
  11182. required:
  11183. - user_id
  11184. - inapp_enabled
  11185. - mail_enabled
  11186. - sms_enabled
  11187. - audit_written
  11188. description: AccountNotifyPrefSaveResult 业务数据
  11189. title: AccountNotifyPrefSaveResult
  11190. AccountOut:
  11191. type: object
  11192. properties:
  11193. created:
  11194. type: boolean
  11195. title: 是否已创建
  11196. description: 是否已创建。
  11197. reason:
  11198. type: string
  11199. nullable: true
  11200. title: reason
  11201. description: 字段 reason。
  11202. user_id:
  11203. type: string
  11204. nullable: true
  11205. title: 用户 ID
  11206. description: 用户 ID。
  11207. username:
  11208. type: string
  11209. nullable: true
  11210. title: 登录名
  11211. description: 登录名。
  11212. role_code:
  11213. type: string
  11214. nullable: true
  11215. title: 角色码
  11216. description: 角色码。
  11217. platform_role_note:
  11218. type: string
  11219. nullable: true
  11220. description: 业务角色只落本地 `bos_user_binding.role_code`,平台侧 角色授予入参
  11221. title: platform role note
  11222. must_change_password:
  11223. type: boolean
  11224. nullable: true
  11225. title: 是否须改密
  11226. description: 是否须改密。
  11227. initial_password:
  11228. type: string
  11229. nullable: true
  11230. title: initial password
  11231. description: 字段 initial_password。
  11232. credential_note:
  11233. type: string
  11234. nullable: true
  11235. title: credential note
  11236. description: 字段 credential_note。
  11237. credential_viewable:
  11238. type: boolean
  11239. nullable: true
  11240. title: credential viewable
  11241. description: 字段 credential_viewable。
  11242. required:
  11243. - created
  11244. description: 平台建号回执 [实]
  11245. title: AccountOut
  11246. AccountProfileUpdateResult:
  11247. type: object
  11248. properties:
  11249. user_id:
  11250. type: string
  11251. title: 用户 ID
  11252. description: 用户 ID。
  11253. display_name:
  11254. type: string
  11255. nullable: true
  11256. description: 落库后的自填姓名;`null`=已清除自填(页面回落到档案派生名)。
  11257. title: 显示名
  11258. has_own_name:
  11259. type: boolean
  11260. title: has own name
  11261. description: 字段 has_own_name。
  11262. audit_written:
  11263. type: boolean
  11264. title: 是否已写审计
  11265. description: 是否已写审计。
  11266. required:
  11267. - user_id
  11268. - display_name
  11269. - has_own_name
  11270. - audit_written
  11271. description: AccountProfileUpdateResult 业务数据
  11272. title: AccountProfileUpdateResult
  11273. AccountProvisionResult:
  11274. type: object
  11275. properties:
  11276. user_id:
  11277. type: string
  11278. title: 用户 ID
  11279. description: 用户 ID。
  11280. status:
  11281. type: string
  11282. title: 状态
  11283. description: 状态。
  11284. activation_code:
  11285. type: string
  11286. nullable: true
  11287. description: 激活码仅开通当次返回(若走导出通道则可能为空)
  11288. title: activation code
  11289. plaintext_once:
  11290. type: string
  11291. nullable: true
  11292. title: 明文一次性
  11293. description: 明文一次性。
  11294. expire_date:
  11295. type: string
  11296. nullable: true
  11297. description: 有效截止日(`yyyy-MM-dd`);与 `code_expire_date` 同义双名。
  11298. title: 到期日
  11299. code_expire_date:
  11300. type: string
  11301. nullable: true
  11302. title: code expire date
  11303. description: 字段 code_expire_date。
  11304. required:
  11305. - user_id
  11306. - status
  11307. description: AccountProvisionResult 业务数据
  11308. title: AccountProvisionResult
  11309. AccountResetCodeResult:
  11310. type: object
  11311. properties:
  11312. user_id:
  11313. type: string
  11314. title: 用户 ID
  11315. description: 用户 ID。
  11316. status:
  11317. type: string
  11318. title: 状态
  11319. description: 状态。
  11320. plaintext_once:
  11321. type: string
  11322. nullable: true
  11323. title: 明文一次性
  11324. description: 明文一次性。
  11325. reissued:
  11326. type: boolean
  11327. nullable: true
  11328. title: 换新条数
  11329. description: 换新条数。
  11330. capability_pending:
  11331. type: boolean
  11332. nullable: true
  11333. title: capability pending
  11334. description: 字段 capability_pending。
  11335. reason:
  11336. type: string
  11337. nullable: true
  11338. title: reason
  11339. description: 字段 reason。
  11340. code_id:
  11341. oneOf:
  11342. - type: string
  11343. - type: number
  11344. nullable: true
  11345. description: 平台引导凭证标识(原样转发)。
  11346. title: code id
  11347. code_expire_date:
  11348. type: string
  11349. nullable: true
  11350. description: 本次交付码的有效截止日(取平台 `expires_at` 的日期部分,`yyyy-MM-dd`)。
  11351. title: code expire date
  11352. expire_date:
  11353. type: string
  11354. nullable: true
  11355. description: 与 `code_expire_date` 同义别名(部分回执路径用此键)。
  11356. title: 到期日
  11357. platform:
  11358. type: object
  11359. properties:
  11360. reissued:
  11361. type: number
  11362. nullable: true
  11363. kept:
  11364. type: number
  11365. nullable: true
  11366. validity:
  11367. type: string
  11368. nullable: true
  11369. nullable: true
  11370. description: 平台计数原样回显:`reissued`=作废并换新条数、`kept`=保留未消费原码条数。
  11371. title: platform
  11372. note:
  11373. type: string
  11374. nullable: true
  11375. description: 服务端对「回码」的口径说明(`reissued=false`=同一码重发, 说成已换新)。
  11376. title: 备注
  11377. audit_written:
  11378. type: boolean
  11379. nullable: true
  11380. title: 是否已写审计
  11381. description: 是否已写审计。
  11382. required:
  11383. - user_id
  11384. - status
  11385. description: AccountResetCodeResult 业务数据
  11386. title: AccountResetCodeResult
  11387. AccountStatusResult:
  11388. type: object
  11389. properties:
  11390. user_id:
  11391. type: string
  11392. title: 用户 ID
  11393. description: 用户 ID。
  11394. status:
  11395. type: string
  11396. title: 状态
  11397. description: 状态。
  11398. required:
  11399. - user_id
  11400. - status
  11401. description: AccountStatusResult 业务数据
  11402. title: AccountStatusResult
  11403. AccountUnbindResult:
  11404. type: object
  11405. description: 账号解绑结果
  11406. properties:
  11407. user_id:
  11408. type: string
  11409. description: 账号用户 ID
  11410. title: 用户 ID
  11411. unbound:
  11412. type: boolean
  11413. description: 是否已解绑
  11414. title: 是否已解绑
  11415. required:
  11416. - user_id
  11417. - unbound
  11418. title: AccountUnbindResult
  11419. ActivationPrecheckResult:
  11420. type: object
  11421. properties:
  11422. login_name:
  11423. type: string
  11424. title: login name
  11425. description: 字段 login_name。
  11426. user_id:
  11427. type: string
  11428. title: 用户 ID
  11429. description: 用户 ID。
  11430. activation_status:
  11431. type: string
  11432. nullable: true
  11433. title: 激活态
  11434. description: 激活态。
  11435. expire_date:
  11436. type: string
  11437. nullable: true
  11438. title: 到期日
  11439. description: 到期日。
  11440. can_activate:
  11441. type: boolean
  11442. title: can activate
  11443. description: 字段 can_activate。
  11444. required:
  11445. - login_name
  11446. - user_id
  11447. - activation_status
  11448. - expire_date
  11449. - can_activate
  11450. description: '`POST /activation/precheck@v1`'
  11451. title: ActivationPrecheckResult
  11452. ActivationVerifyResult:
  11453. type: object
  11454. properties:
  11455. user_id:
  11456. type: string
  11457. title: 用户 ID
  11458. description: 用户 ID。
  11459. password_set:
  11460. type: boolean
  11461. title: password set
  11462. description: 字段 password_set。
  11463. must_change_password:
  11464. type: boolean
  11465. nullable: true
  11466. title: 是否须改密
  11467. description: 是否须改密。
  11468. required:
  11469. - user_id
  11470. - password_set
  11471. description: ActivationVerifyResult 业务数据
  11472. title: ActivationVerifyResult
  11473. AssignCandidate:
  11474. type: object
  11475. properties:
  11476. user_id:
  11477. type: string
  11478. title: 用户 ID
  11479. description: 用户 ID。
  11480. username:
  11481. type: string
  11482. nullable: true
  11483. title: 登录名
  11484. description: 登录名。
  11485. display_name:
  11486. type: string
  11487. nullable: true
  11488. title: 显示名
  11489. description: 显示名。
  11490. pending_count:
  11491. type: integer
  11492. description: 该候选人手头未完成单量(自动分派按此最少先挑)
  11493. title: 待处理数
  11494. source:
  11495. type: string
  11496. enum:
  11497. - member
  11498. - ops_account
  11499. nullable: true
  11500. description: '* 候选来源:`ops_account`=运营主/子账号(不是运维团队成员, * 按「客户在其负责范围内」入池),缺省=运维团队成员。承接后的可用动作不同
  11501. * (运营账号没有成员档案),故页面必须标出来。'
  11502. title: 来源
  11503. required:
  11504. - user_id
  11505. - username
  11506. - display_name
  11507. - pending_count
  11508. description: 可分派候选人(`pending_queue` 行内 `candidates[]`, 前端再拼一份人名单)。
  11509. title: AssignCandidate
  11510. AssignResult:
  11511. type: object
  11512. properties:
  11513. ticket_id:
  11514. type: string
  11515. title: 工单 ID
  11516. description: 工单 ID。
  11517. assignee_user_id:
  11518. type: string
  11519. title: 处理人用户 ID
  11520. description: 处理人用户 ID。
  11521. assignee_snapshot_name:
  11522. type: string
  11523. title: assignee snapshot name
  11524. description: 字段 assignee_snapshot_name。
  11525. status:
  11526. $ref: '#/components/schemas/TicketStatus'
  11527. required:
  11528. - ticket_id
  11529. - assignee_user_id
  11530. - assignee_snapshot_name
  11531. - status
  11532. description: AssignResult 业务数据
  11533. title: AssignResult
  11534. AuditExportResult:
  11535. type: object
  11536. properties:
  11537. file_name:
  11538. type: string
  11539. title: 文件名
  11540. description: 文件名。
  11541. oss_key:
  11542. type: string
  11543. title: 对象键
  11544. description: 对象键。
  11545. row_count:
  11546. type: integer
  11547. title: row count
  11548. description: 字段 row_count。
  11549. limit:
  11550. type: number
  11551. title: limit
  11552. description: 字段 limit。
  11553. truncated:
  11554. type: boolean
  11555. title: 是否截断
  11556. description: 是否截断。
  11557. required:
  11558. - file_name
  11559. - oss_key
  11560. - row_count
  11561. - limit
  11562. - truncated
  11563. description: AuditExportResult 业务数据
  11564. title: AuditExportResult
  11565. AuditItem:
  11566. type: object
  11567. properties:
  11568. occurred_at:
  11569. type: string
  11570. nullable: true
  11571. title: occurred at
  11572. description: 字段 occurred_at。
  11573. actor:
  11574. type: object
  11575. properties:
  11576. user_id:
  11577. type: string
  11578. username:
  11579. type: string
  11580. nullable: true
  11581. required:
  11582. - user_id
  11583. - username
  11584. title: actor
  11585. description: 字段 actor。
  11586. action:
  11587. type: string
  11588. title: 动作
  11589. description: 动作。
  11590. object:
  11591. type: object
  11592. properties:
  11593. type:
  11594. type: string
  11595. id:
  11596. type: string
  11597. display:
  11598. type: string
  11599. nullable: true
  11600. required:
  11601. - type
  11602. - id
  11603. description: '`display`=契约的对象名快照( 写侧接通前恒缺省;页面按回落链取值, 拿当前名顶替)。'
  11604. title: object
  11605. before:
  11606. title: before
  11607. description: 字段 before。
  11608. after:
  11609. title: after
  11610. description: 字段 after。
  11611. detail:
  11612. nullable: true
  11613. description: '`detail_json`:部分写侧只写明细(结果条数/validity/范围账号数),前后值区全空时由页面以「明细」呈现。'
  11614. title: detail
  11615. cursor:
  11616. type: string
  11617. title: 游标
  11618. description: 游标。
  11619. required:
  11620. - occurred_at
  11621. - actor
  11622. - action
  11623. - object
  11624. - before
  11625. - after
  11626. - cursor
  11627. description: AuditItem 业务数据
  11628. title: AuditItem
  11629. AuthContext:
  11630. type: object
  11631. properties:
  11632. user_id:
  11633. type: string
  11634. title: 用户 ID
  11635. description: 用户 ID。
  11636. username:
  11637. type: string
  11638. title: 登录名
  11639. description: 登录名。
  11640. role_code:
  11641. $ref: '#/components/schemas/RoleCode'
  11642. subject_type:
  11643. $ref: '#/components/schemas/SubjectType'
  11644. subject_id:
  11645. type: string
  11646. nullable: true
  11647. title: 主体 ID
  11648. description: 主体 ID。
  11649. entry_only:
  11650. type: boolean
  11651. description: '平台对账等仅入口账号标记'
  11652. title: 是否入口账号
  11653. scope_mode:
  11654. type: string
  11655. nullable: true
  11656. description: '可见形态:all/regions/teams/customers/self(与 scope.kind 同源,后端应收敛为 scope)'
  11657. title: 可见形态
  11658. display_name:
  11659. type: string
  11660. nullable: true
  11661. title: 显示名
  11662. description: 显示名。
  11663. display_name_source:
  11664. type: string
  11665. nullable: true
  11666. description: '姓名来源:account=本人自填(个人资料页);archive=主体档案派生。'
  11667. title: 显示名来源
  11668. subject_name:
  11669. type: string
  11670. nullable: true
  11671. description: 主体名称:区域名 / 团队名 / 客户名 / 合伙人名 / 运营商名
  11672. title: 主体名称
  11673. customer_id:
  11674. type: string
  11675. nullable: true
  11676. description: '* 本位客户主体号 (下发):客户主账号=自身主体号; * 客户分账号=所属客户(`sub_account.customer_id`);其余主体 `null`。
  11677. * 分账号的 `subject_id` 是分账号自身编号, 拿它当客户号去调客户读口。'
  11678. title: 客户 ID
  11679. mobile_hint:
  11680. type: string
  11681. nullable: true
  11682. description: 绑定手机号摘要(已掩码, 全量);`null`=未绑定。
  11683. title: 手机号摘要
  11684. scope:
  11685. $ref: '#/components/schemas/ScopeView'
  11686. acct_status:
  11687. type: string
  11688. enum:
  11689. - normal
  11690. - unactivated
  11691. - expired
  11692. - disabled
  11693. description: 账号状态:normal 正常 / unactivated 未激活 / expired 已过期 / disabled 已停用
  11694. title: 账号状态
  11695. pwd_set_at:
  11696. type: string
  11697. nullable: true
  11698. description: 设密时间;`null`=尚未设密。
  11699. title: 设密时间
  11700. activated_at:
  11701. type: string
  11702. nullable: true
  11703. description: 开通时间(激活码被消费的时间)。
  11704. title: 激活时间
  11705. expire_date:
  11706. type: string
  11707. nullable: true
  11708. description: 激活码有效截止日。
  11709. title: 到期日
  11710. must_change_password:
  11711. type: boolean
  11712. title: 是否须改密
  11713. description: 是否须改密。
  11714. permissions:
  11715. type: array
  11716. items:
  11717. type: string
  11718. title: 权限列表元素
  11719. title: 权限列表
  11720. description: 权限列表。
  11721. required:
  11722. - user_id
  11723. - username
  11724. - role_code
  11725. - subject_type
  11726. - subject_id
  11727. - entry_only
  11728. - scope_mode
  11729. - display_name
  11730. - subject_name
  11731. - mobile_hint
  11732. - scope
  11733. - acct_status
  11734. - must_change_password
  11735. - permissions
  11736. description: AuthContext 业务数据
  11737. title: AuthContext
  11738. Backfill:
  11739. type: object
  11740. properties:
  11741. backfill_id:
  11742. type: string
  11743. nullable: true
  11744. title: backfill id
  11745. description: 字段 backfill_id。
  11746. exec_conclusion:
  11747. type: string
  11748. nullable: true
  11749. title: exec conclusion
  11750. description: 字段 exec_conclusion。
  11751. conclusion_note:
  11752. type: string
  11753. nullable: true
  11754. title: conclusion note
  11755. description: 字段 conclusion_note。
  11756. actual_opened_date:
  11757. type: string
  11758. nullable: true
  11759. title: actual opened date
  11760. description: 字段 actual_opened_date。
  11761. stop_done_date:
  11762. type: string
  11763. nullable: true
  11764. title: stop done date
  11765. description: 字段 stop_done_date。
  11766. builder_user_id:
  11767. type: string
  11768. nullable: true
  11769. title: builder user id
  11770. description: 字段 builder_user_id。
  11771. evidence_text:
  11772. type: string
  11773. nullable: true
  11774. title: evidence text
  11775. description: 字段 evidence_text。
  11776. source:
  11777. type: string
  11778. nullable: true
  11779. title: 来源
  11780. description: 来源。
  11781. ip_rule_version:
  11782. type: string
  11783. nullable: true
  11784. title: ip rule version
  11785. description: 字段 ip_rule_version。
  11786. attempt_count:
  11787. type: string
  11788. nullable: true
  11789. title: attempt count
  11790. description: 字段 attempt_count。
  11791. detail_empty_flag:
  11792. type: string
  11793. nullable: true
  11794. title: detail empty flag
  11795. description: 字段 detail_empty_flag。
  11796. row_version:
  11797. type: string
  11798. title: 乐观锁版本
  11799. description: 乐观锁版本。
  11800. created_at:
  11801. type: string
  11802. nullable: true
  11803. title: 创建时间
  11804. description: 创建时间。
  11805. routes:
  11806. type: array
  11807. items:
  11808. $ref: '#/components/schemas/RouteRow'
  11809. title: routes
  11810. description: 字段 routes。
  11811. ips:
  11812. type: array
  11813. items:
  11814. $ref: '#/components/schemas/IpRow'
  11815. title: ips
  11816. description: 字段 ips。
  11817. ext:
  11818. $ref: '#/components/schemas/FormExtPayload'
  11819. pin_bind_mode:
  11820. type: string
  11821. nullable: true
  11822. description: PIN 绑定模式:shared/per_account。
  11823. title: pin bind mode
  11824. required:
  11825. - exec_conclusion
  11826. - conclusion_note
  11827. - actual_opened_date
  11828. - stop_done_date
  11829. - builder_user_id
  11830. - evidence_text
  11831. - source
  11832. - ip_rule_version
  11833. - attempt_count
  11834. - detail_empty_flag
  11835. - row_version
  11836. - created_at
  11837. - routes
  11838. - ips
  11839. description: Backfill 业务数据
  11840. title: Backfill
  11841. BackfillDraft:
  11842. type: object
  11843. properties:
  11844. ticket_id:
  11845. type: string
  11846. nullable: true
  11847. title: 工单 ID
  11848. description: 工单 ID。
  11849. exec_conclusion:
  11850. type: string
  11851. nullable: true
  11852. title: exec conclusion
  11853. description: 字段 exec_conclusion。
  11854. conclusion_note:
  11855. type: string
  11856. nullable: true
  11857. title: conclusion note
  11858. description: 字段 conclusion_note。
  11859. actual_opened_date:
  11860. type: string
  11861. nullable: true
  11862. title: actual opened date
  11863. description: 字段 actual_opened_date。
  11864. stop_done_date:
  11865. type: string
  11866. nullable: true
  11867. title: stop done date
  11868. description: 字段 stop_done_date。
  11869. evidence_text:
  11870. type: string
  11871. nullable: true
  11872. title: evidence text
  11873. description: 字段 evidence_text。
  11874. pin_bind_mode:
  11875. type: string
  11876. nullable: true
  11877. title: pin bind mode
  11878. description: 字段 pin_bind_mode。
  11879. route_rows:
  11880. type: array
  11881. items:
  11882. $ref: '#/components/schemas/BackfillInRoute'
  11883. nullable: true
  11884. title: route rows
  11885. description: 字段 route_rows。
  11886. ip_rows:
  11887. type: array
  11888. items:
  11889. type: string
  11890. description: '类型:Partial<BackfillInIp> & { pin_registered?: string; cpid_registered?: string
  11891. }'
  11892. title: ip_rows元素
  11893. nullable: true
  11894. title: ip rows
  11895. description: 字段 ip_rows。
  11896. ext_values:
  11897. type: object
  11898. additionalProperties: {}
  11899. nullable: true
  11900. title: ext values
  11901. description: 字段 ext_values。
  11902. ext_template_id:
  11903. type: string
  11904. nullable: true
  11905. title: ext template id
  11906. description: 字段 ext_template_id。
  11907. ext_template_version:
  11908. oneOf:
  11909. - type: string
  11910. - type: number
  11911. nullable: true
  11912. title: ext template version
  11913. description: 字段 ext_template_version。
  11914. evidence_material_ids:
  11915. type: array
  11916. items:
  11917. type: string
  11918. title: evidence_material_ids元素
  11919. nullable: true
  11920. title: evidence material ids
  11921. description: 字段 evidence_material_ids。
  11922. check_item_ids:
  11923. type: array
  11924. items:
  11925. type: string
  11926. title: check_item_ids元素
  11927. nullable: true
  11928. title: check item ids
  11929. description: 字段 check_item_ids。
  11930. check_note:
  11931. type: string
  11932. nullable: true
  11933. title: check note
  11934. description: 字段 check_note。
  11935. row_version:
  11936. oneOf:
  11937. - type: string
  11938. - type: number
  11939. nullable: true
  11940. title: 乐观锁版本
  11941. description: 乐观锁版本。
  11942. updated_at:
  11943. type: string
  11944. nullable: true
  11945. title: 更新时间
  11946. description: 更新时间。
  11947. description: BackfillDraft 业务数据
  11948. title: BackfillDraft
  11949. BackfillInRoute:
  11950. type: object
  11951. properties:
  11952. sub_account_id:
  11953. type: string
  11954. nullable: true
  11955. title: sub account id
  11956. description: 字段 sub_account_id。
  11957. network_account_name:
  11958. type: string
  11959. nullable: true
  11960. title: network account name
  11961. description: 字段 network_account_name。
  11962. intranet_ip:
  11963. type: string
  11964. nullable: true
  11965. title: intranet ip
  11966. description: 字段 intranet_ip。
  11967. subnet_mask:
  11968. type: string
  11969. nullable: true
  11970. title: subnet mask
  11971. description: 字段 subnet_mask。
  11972. gateway:
  11973. type: string
  11974. nullable: true
  11975. title: gateway
  11976. description: 字段 gateway。
  11977. vlan:
  11978. type: string
  11979. nullable: true
  11980. title: vlan
  11981. description: 字段 vlan。
  11982. tunnel_encap:
  11983. type: string
  11984. nullable: true
  11985. title: tunnel encap
  11986. description: 字段 tunnel_encap。
  11987. vni:
  11988. type: string
  11989. nullable: true
  11990. title: vni
  11991. description: 字段 vni。
  11992. src_endpoint:
  11993. type: string
  11994. nullable: true
  11995. title: src endpoint
  11996. description: 字段 src_endpoint。
  11997. dst_endpoint:
  11998. type: string
  11999. nullable: true
  12000. title: dst endpoint
  12001. description: 字段 dst_endpoint。
  12002. egress_pop:
  12003. type: string
  12004. nullable: true
  12005. title: egress pop
  12006. description: 字段 egress_pop。
  12007. down_mbps:
  12008. type: integer
  12009. nullable: true
  12010. title: down mbps
  12011. description: 字段 down_mbps。
  12012. up_mbps:
  12013. type: integer
  12014. nullable: true
  12015. title: up mbps
  12016. description: 字段 up_mbps。
  12017. proxy_host:
  12018. type: string
  12019. nullable: true
  12020. title: proxy host
  12021. description: 字段 proxy_host。
  12022. proxy_port:
  12023. type: number
  12024. nullable: true
  12025. title: proxy port
  12026. description: 字段 proxy_port。
  12027. pin:
  12028. type: string
  12029. nullable: true
  12030. title: pin
  12031. description: 字段 pin。
  12032. cpid:
  12033. type: string
  12034. nullable: true
  12035. title: cpid
  12036. description: 字段 cpid。
  12037. require_cpid:
  12038. type: boolean
  12039. nullable: true
  12040. title: require cpid
  12041. description: 字段 require_cpid。
  12042. share_credential_of:
  12043. type: string
  12044. nullable: true
  12045. title: share credential of
  12046. description: 字段 share_credential_of。
  12047. open_this_time:
  12048. type: boolean
  12049. title: open this time
  12050. description: 字段 open_this_time。
  12051. required:
  12052. - open_this_time
  12053. description: BackfillInRoute 业务数据
  12054. title: BackfillInRoute
  12055. BackfillResult:
  12056. type: object
  12057. properties:
  12058. ticket_id:
  12059. type: string
  12060. title: 工单 ID
  12061. description: 工单 ID。
  12062. backfill_id:
  12063. type: string
  12064. title: backfill id
  12065. description: 字段 backfill_id。
  12066. exec_conclusion:
  12067. type: string
  12068. title: exec conclusion
  12069. description: 字段 exec_conclusion。
  12070. route_rows:
  12071. type: number
  12072. title: route rows
  12073. description: 字段 route_rows。
  12074. ip_rows:
  12075. type: number
  12076. title: ip rows
  12077. description: 字段 ip_rows。
  12078. ip_rule_version:
  12079. type: string
  12080. title: ip rule version
  12081. description: 字段 ip_rule_version。
  12082. open_stop_id:
  12083. type: string
  12084. nullable: true
  12085. title: open stop id
  12086. description: 字段 open_stop_id。
  12087. effective_account_count:
  12088. type: integer
  12089. title: effective account count
  12090. description: 字段 effective_account_count。
  12091. apply_facts:
  12092. title: apply facts
  12093. description: 字段 apply_facts。
  12094. status:
  12095. $ref: '#/components/schemas/TicketStatus'
  12096. status_advanced:
  12097. type: boolean
  12098. title: status advanced
  12099. description: 字段 status_advanced。
  12100. missing_groups:
  12101. type: array
  12102. items:
  12103. type: string
  12104. title: missing_groups元素
  12105. description: 仍缺的分组名:非空 ⇒ 已保存但未达闭环口径(页面点名, 报"保存失败")
  12106. title: missing groups
  12107. audit_written:
  12108. type: boolean
  12109. title: 是否已写审计
  12110. description: 是否已写审计。
  12111. required:
  12112. - ticket_id
  12113. - backfill_id
  12114. - exec_conclusion
  12115. - route_rows
  12116. - ip_rows
  12117. - ip_rule_version
  12118. - open_stop_id
  12119. - effective_account_count
  12120. - apply_facts
  12121. - status
  12122. - status_advanced
  12123. - missing_groups
  12124. - audit_written
  12125. description: BackfillResult 业务数据
  12126. title: BackfillResult
  12127. BillDetailResult:
  12128. type: object
  12129. properties:
  12130. bill_detail_id:
  12131. type: string
  12132. title: bill detail id
  12133. description: 字段 bill_detail_id。
  12134. batch_no:
  12135. type: string
  12136. title: 批次号
  12137. description: 批次号。
  12138. holder_type:
  12139. $ref: '#/components/schemas/HolderType'
  12140. holder_id:
  12141. type: string
  12142. title: holder id
  12143. description: 字段 holder_id。
  12144. holder_name:
  12145. type: string
  12146. title: holder name
  12147. description: 字段 holder_name。
  12148. period:
  12149. type: string
  12150. title: 账期
  12151. description: 字段 period。
  12152. customer_name:
  12153. type: string
  12154. title: 客户名称
  12155. description: 客户名称。
  12156. subscription_label:
  12157. type: string
  12158. title: subscription label
  12159. description: 字段 subscription_label。
  12160. pre_align_cents:
  12161. type: integer
  12162. description: ① 尾月对齐前/后两值必须同屏
  12163. title: pre align cents
  12164. receivable_cents:
  12165. type: integer
  12166. title: receivable cents
  12167. description: 字段 receivable_cents。
  12168. settle_std_cents:
  12169. type: integer
  12170. nullable: true
  12171. description: 计费标准单价(分);应收=单价 × 份数 × 天数/月天数
  12172. title: settle std cents
  12173. quantity:
  12174. type: number
  12175. nullable: true
  12176. description: 订阅份数(link 恒 1;addon ≥1);显式返回, 用 null 冒充「一份」
  12177. title: quantity
  12178. receivable_calc:
  12179. type: string
  12180. nullable: true
  12181. description: 应收公式说明串(便于复核)
  12182. title: receivable calc
  12183. bill_from:
  12184. type: string
  12185. description: ② 计费区间与天数、是否不满月
  12186. title: bill from
  12187. bill_to:
  12188. type: string
  12189. title: bill to
  12190. description: 字段 bill_to。
  12191. billing_days:
  12192. type: number
  12193. title: billing days
  12194. description: 字段 billing_days。
  12195. month_days:
  12196. type: number
  12197. nullable: true
  12198. title: month days
  12199. description: 字段 month_days。
  12200. partial_month:
  12201. type: boolean
  12202. title: partial month
  12203. description: 字段 partial_month。
  12204. costs:
  12205. type: array
  12206. items:
  12207. type: object
  12208. properties:
  12209. item_name:
  12210. type: string
  12211. item_id:
  12212. type: string
  12213. nullable: true
  12214. price_cents:
  12215. type: number
  12216. nullable: true
  12217. cost_cents:
  12218. type: number
  12219. nullable: true
  12220. amount_cents:
  12221. type: number
  12222. nullable: true
  12223. multiplier:
  12224. type: number
  12225. nullable: true
  12226. fold:
  12227. type: number
  12228. nullable: true
  12229. configured:
  12230. type: boolean
  12231. deduct_from_base:
  12232. type: boolean
  12233. nullable: true
  12234. required:
  12235. - item_name
  12236. - configured
  12237. description: '* ③ 成本快照逐条(应扣口径,封顶前)。 * `cost_cents`=应扣;`price_cents`=单价;顶层 `cost_deduct_cents`=实扣合计。'
  12238. title: costs
  12239. cost_should_deduct_cents:
  12240. type: integer
  12241. nullable: true
  12242. description: 应扣合计(面板条目求和,封顶前)
  12243. title: cost should deduct cents
  12244. cost_deduct_cents:
  12245. type: integer
  12246. nullable: true
  12247. description: 实扣(落库;恒等式 receivable − share_base)
  12248. title: cost deduct cents
  12249. share_base_cents:
  12250. type: integer
  12251. description: ④ 分成基数;floor 到 0 ⇒ base_floor_protected=true(界面显式标下限保护)
  12252. title: share base cents
  12253. base_floor_protected:
  12254. type: boolean
  12255. title: base floor protected
  12256. description: 字段 base_floor_protected。
  12257. share_mode:
  12258. type: string
  12259. description: ⑤ 当时冻结在明细行上的分成方式与取值( 读档案现值,)
  12260. title: share mode
  12261. share_value:
  12262. type: number
  12263. title: share value
  12264. description: 字段 share_value。
  12265. share_amount_cents:
  12266. type: integer
  12267. description: ⑥ 本方分成金额+恒 0 标注+所属对账单号
  12268. title: share amount cents
  12269. zero_note:
  12270. $ref: '#/components/schemas/ZeroNote'
  12271. other_parties:
  12272. type: array
  12273. items:
  12274. type: object
  12275. properties:
  12276. holder_type:
  12277. $ref: '#/components/schemas/HolderType'
  12278. holder_id:
  12279. type: string
  12280. holder_name:
  12281. type: string
  12282. share_amount_cents:
  12283. type: number
  12284. batch_no:
  12285. type: string
  12286. nullable: true
  12287. required:
  12288. - holder_type
  12289. - holder_id
  12290. - holder_name
  12291. - share_amount_cents
  12292. - batch_no
  12293. nullable: true
  12294. description: 其他分成方面板:三类只读身份的响应体不出现该字段( 值为空) ⇒ null;holder_id 供对账单号链进批次
  12295. title: other parties
  12296. account_days:
  12297. type: array
  12298. items:
  12299. type: object
  12300. properties:
  12301. sub_account_label:
  12302. type: string
  12303. in_period_days:
  12304. type: number
  12305. required:
  12306. - sub_account_label
  12307. - in_period_days
  12308. nullable: true
  12309. description: ⑦ 逐账号在期天数;KLT-S406 ⇒ null 且 account_days_failed=true( 回落「无开停记录」)
  12310. title: account days
  12311. account_days_failed:
  12312. type: boolean
  12313. title: account days failed
  12314. description: 字段 account_days_failed。
  12315. required:
  12316. - bill_detail_id
  12317. - batch_no
  12318. - holder_type
  12319. - holder_id
  12320. - holder_name
  12321. - period
  12322. - customer_name
  12323. - subscription_label
  12324. - pre_align_cents
  12325. - receivable_cents
  12326. - bill_from
  12327. - bill_to
  12328. - billing_days
  12329. - partial_month
  12330. - costs
  12331. - share_base_cents
  12332. - base_floor_protected
  12333. - share_mode
  12334. - share_value
  12335. - share_amount_cents
  12336. - zero_note
  12337. - other_parties
  12338. - account_days
  12339. - account_days_failed
  12340. description: BillDetailResult 业务数据
  12341. title: BillDetailResult
  12342. BillLineRow:
  12343. type: object
  12344. properties:
  12345. bill_detail_id:
  12346. type: string
  12347. title: bill detail id
  12348. description: 字段 bill_detail_id。
  12349. holder_type:
  12350. $ref: '#/components/schemas/HolderType'
  12351. holder_id:
  12352. type: string
  12353. title: holder id
  12354. description: 字段 holder_id。
  12355. holder_name:
  12356. type: string
  12357. title: holder name
  12358. description: 字段 holder_name。
  12359. period:
  12360. type: string
  12361. title: 账期
  12362. description: 字段 period。
  12363. customer_name:
  12364. type: string
  12365. title: 客户名称
  12366. description: 客户名称。
  12367. subscription_label:
  12368. type: string
  12369. title: subscription label
  12370. description: 字段 subscription_label。
  12371. billing_days:
  12372. type: number
  12373. title: billing days
  12374. description: 字段 billing_days。
  12375. share_base_cents:
  12376. type: integer
  12377. title: share base cents
  12378. description: 字段 share_base_cents。
  12379. share_amount_cents:
  12380. type: integer
  12381. title: share amount cents
  12382. description: 字段 share_amount_cents。
  12383. batch_no:
  12384. type: string
  12385. description: 所属批次对账单号(恒有值,可点进 14.2; 不是出账状态)
  12386. title: 批次号
  12387. required:
  12388. - bill_detail_id
  12389. - holder_type
  12390. - holder_id
  12391. - holder_name
  12392. - period
  12393. - customer_name
  12394. - subscription_label
  12395. - billing_days
  12396. - share_base_cents
  12397. - share_amount_cents
  12398. - batch_no
  12399. description: BillLineRow 业务数据
  12400. title: BillLineRow
  12401. BillingConfigResult:
  12402. type: object
  12403. properties:
  12404. default_recon_day:
  12405. type: number
  12406. title: default recon day
  12407. description: 字段 default_recon_day。
  12408. effective_mode:
  12409. $ref: '#/components/schemas/EffectiveMode'
  12410. row_version:
  12411. type: integer
  12412. title: 乐观锁版本
  12413. description: 乐观锁版本。
  12414. operators:
  12415. type: array
  12416. items:
  12417. type: object
  12418. properties:
  12419. operator_id:
  12420. type: string
  12421. name:
  12422. type: string
  12423. region_label:
  12424. type: string
  12425. nullable: true
  12426. recon_day:
  12427. type: number
  12428. nullable: true
  12429. pay_cycle:
  12430. type: string
  12431. nullable: true
  12432. brand:
  12433. type: string
  12434. nullable: true
  12435. region_node_id:
  12436. type: string
  12437. nullable: true
  12438. required:
  12439. - operator_id
  12440. - name
  12441. - region_label
  12442. - recon_day
  12443. - pay_cycle
  12444. title: 运营商数
  12445. description: 运营商数。
  12446. required:
  12447. - default_recon_day
  12448. - effective_mode
  12449. - row_version
  12450. - operators
  12451. description: BillingConfigResult 业务数据
  12452. title: BillingConfigResult
  12453. BillingConfigUpdateResult:
  12454. type: object
  12455. properties:
  12456. changed:
  12457. type: number
  12458. title: 是否已变更
  12459. description: 是否已变更。
  12460. row_version:
  12461. type: integer
  12462. title: 乐观锁版本
  12463. description: 乐观锁版本。
  12464. default_recon_day:
  12465. type: number
  12466. title: default recon day
  12467. description: 字段 default_recon_day。
  12468. effective_mode:
  12469. $ref: '#/components/schemas/EffectiveMode'
  12470. required:
  12471. - changed
  12472. - row_version
  12473. - default_recon_day
  12474. - effective_mode
  12475. description: BillingConfigUpdateResult 业务数据
  12476. title: BillingConfigUpdateResult
  12477. BlockerItem:
  12478. type: object
  12479. properties:
  12480. key:
  12481. type: string
  12482. title: key
  12483. description: 字段 key。
  12484. count:
  12485. type: number
  12486. nullable: true
  12487. title: count
  12488. description: 字段 count。
  12489. message:
  12490. type: string
  12491. title: 说明
  12492. description: 说明。
  12493. design_code:
  12494. type: string
  12495. nullable: true
  12496. description: 设计口径编号(部分域下发)
  12497. title: design code
  12498. required:
  12499. - key
  12500. - count
  12501. - message
  12502. description: 阻塞项 [实]
  12503. title: BlockerItem
  12504. CatalogCreateResult:
  12505. type: object
  12506. properties:
  12507. plan_id:
  12508. type: string
  12509. title: 档位 ID
  12510. description: 档位 ID。
  12511. required:
  12512. - plan_id
  12513. description: CatalogCreateResult 业务数据
  12514. title: CatalogCreateResult
  12515. CatalogDeleteResult:
  12516. type: object
  12517. properties:
  12518. deleted:
  12519. type: boolean
  12520. title: 是否已删除
  12521. description: 是否已删除。
  12522. frozen:
  12523. type: boolean
  12524. nullable: true
  12525. title: frozen
  12526. description: 字段 frozen。
  12527. referred_count:
  12528. type: integer
  12529. nullable: true
  12530. title: referred count
  12531. description: 字段 referred_count。
  12532. blocks:
  12533. type: object
  12534. properties:
  12535. subscriptions:
  12536. type: array
  12537. items: {}
  12538. nullable: true
  12539. items:
  12540. type: array
  12541. items: {}
  12542. nullable: true
  12543. nullable: true
  12544. title: blocks
  12545. description: 字段 blocks。
  12546. suggest:
  12547. type: string
  12548. nullable: true
  12549. title: suggest
  12550. description: 字段 suggest。
  12551. required:
  12552. - deleted
  12553. description: CatalogDeleteResult 业务数据
  12554. title: CatalogDeleteResult
  12555. CatalogFacetItem:
  12556. type: object
  12557. properties:
  12558. value:
  12559. type: string
  12560. title: value
  12561. description: 字段 value。
  12562. label:
  12563. type: string
  12564. title: 标签
  12565. description: 标签。
  12566. count:
  12567. type: number
  12568. title: count
  12569. description: 字段 count。
  12570. required:
  12571. - value
  12572. - label
  12573. - count
  12574. description: facets 单项:`value` 是落库键(账号 ID/团队 ID),`label` 是读侧名称,`count` 是该键下档位数。
  12575. title: CatalogFacetItem
  12576. CatalogGetResult:
  12577. type: object
  12578. properties:
  12579. plan_id:
  12580. type: string
  12581. title: 档位 ID
  12582. description: 档位 ID。
  12583. plan_name:
  12584. type: string
  12585. title: 档位名称
  12586. description: 档位名称。
  12587. plan_kind:
  12588. type: string
  12589. title: plan kind
  12590. description: 字段 plan_kind。
  12591. plan_family:
  12592. type: string
  12593. nullable: true
  12594. title: plan family
  12595. description: 字段 plan_family。
  12596. annual_price_cents:
  12597. type: integer
  12598. title: 年价(分)
  12599. description: 年价(分)。
  12600. sub_account_quota:
  12601. type: number
  12602. nullable: true
  12603. title: sub account quota
  12604. description: 字段 sub_account_quota。
  12605. bandwidth_committed:
  12606. type: boolean
  12607. nullable: true
  12608. title: bandwidth committed
  12609. description: 字段 bandwidth_committed。
  12610. bandwidth_up_mbps:
  12611. type: integer
  12612. nullable: true
  12613. title: bandwidth up mbps
  12614. description: 字段 bandwidth_up_mbps。
  12615. bandwidth_down_mbps:
  12616. type: integer
  12617. nullable: true
  12618. title: bandwidth down mbps
  12619. description: 字段 bandwidth_down_mbps。
  12620. customer_id:
  12621. type: string
  12622. nullable: true
  12623. title: 客户 ID
  12624. description: 客户 ID。
  12625. customer_name:
  12626. type: string
  12627. nullable: true
  12628. title: 客户名称
  12629. description: 客户名称。
  12630. status:
  12631. type: string
  12632. title: 状态
  12633. description: 状态。
  12634. created_at:
  12635. type: string
  12636. title: 创建时间
  12637. description: 创建时间。
  12638. row_version:
  12639. type: string
  12640. title: 乐观锁版本
  12641. description: 乐观锁版本。
  12642. plan_cost_cents:
  12643. type: integer
  12644. nullable: true
  12645. title: plan cost cents
  12646. description: 字段 plan_cost_cents。
  12647. plan_cost_state:
  12648. $ref: '#/components/schemas/ValueState'
  12649. plan_cost_note:
  12650. type: string
  12651. nullable: true
  12652. title: plan cost note
  12653. description: 字段 plan_cost_note。
  12654. frozen:
  12655. type: boolean
  12656. nullable: true
  12657. title: frozen
  12658. description: 字段 frozen。
  12659. referred_count:
  12660. type: integer
  12661. nullable: true
  12662. title: referred count
  12663. description: 字段 referred_count。
  12664. locked_fields:
  12665. type: array
  12666. items:
  12667. type: string
  12668. title: locked_fields元素
  12669. nullable: true
  12670. title: locked fields
  12671. description: 字段 locked_fields。
  12672. editable_fields:
  12673. type: array
  12674. items:
  12675. type: string
  12676. title: editable_fields元素
  12677. nullable: true
  12678. title: editable fields
  12679. description: 字段 editable_fields。
  12680. created_by:
  12681. type: string
  12682. nullable: true
  12683. title: created by
  12684. description: 字段 created_by。
  12685. created_by_name:
  12686. type: string
  12687. nullable: true
  12688. title: created by name
  12689. description: 字段 created_by_name。
  12690. created_team_id:
  12691. type: string
  12692. nullable: true
  12693. title: created team id
  12694. description: 字段 created_team_id。
  12695. created_team_name:
  12696. type: string
  12697. nullable: true
  12698. title: created team name
  12699. description: 字段 created_team_name。
  12700. source_label:
  12701. type: string
  12702. nullable: true
  12703. title: source label
  12704. description: 字段 source_label。
  12705. line_exits:
  12706. type: array
  12707. items:
  12708. type: string
  12709. title: line_exits元素
  12710. nullable: true
  12711. title: line exits
  12712. description: 字段 line_exits。
  12713. monthly_settle_cents:
  12714. type: integer
  12715. nullable: true
  12716. title: 月结算(分)
  12717. description: 月结算(分)。
  12718. plan_desc:
  12719. type: string
  12720. nullable: true
  12721. title: plan desc
  12722. description: 字段 plan_desc。
  12723. sort_no:
  12724. type: number
  12725. nullable: true
  12726. title: sort no
  12727. description: 字段 sort_no。
  12728. cost_items:
  12729. type: array
  12730. items:
  12731. $ref: '#/components/schemas/PlanCostItemRow'
  12732. nullable: true
  12733. title: cost items
  12734. description: 字段 cost_items。
  12735. required:
  12736. - plan_id
  12737. - plan_name
  12738. - plan_kind
  12739. - plan_family
  12740. - annual_price_cents
  12741. - sub_account_quota
  12742. - bandwidth_committed
  12743. - bandwidth_up_mbps
  12744. - bandwidth_down_mbps
  12745. - customer_id
  12746. - status
  12747. - created_at
  12748. - row_version
  12749. description: CatalogGetResult 业务数据
  12750. title: CatalogGetResult
  12751. CatalogListResult:
  12752. type: object
  12753. properties:
  12754. items:
  12755. type: array
  12756. items:
  12757. $ref: '#/components/schemas/CatalogPlanRow'
  12758. title: 列表项
  12759. description: 列表项。
  12760. fixed:
  12761. type: array
  12762. items:
  12763. $ref: '#/components/schemas/CatalogPlanRow'
  12764. nullable: true
  12765. description: 同一次请求按 plan_kind 分组返回, 两次请求
  12766. title: fixed
  12767. custom:
  12768. type: array
  12769. items:
  12770. $ref: '#/components/schemas/CatalogPlanRow'
  12771. nullable: true
  12772. title: custom
  12773. description: 字段 custom。
  12774. total:
  12775. type: integer
  12776. nullable: true
  12777. title: 总条数
  12778. description: 总条数。
  12779. page:
  12780. type: integer
  12781. nullable: true
  12782. title: 页码
  12783. description: 页码。
  12784. page_size:
  12785. type: integer
  12786. nullable: true
  12787. title: 每页条数
  12788. description: 每页条数。
  12789. facets:
  12790. type: object
  12791. properties:
  12792. created_team:
  12793. type: array
  12794. items:
  12795. $ref: '#/components/schemas/CatalogFacetItem'
  12796. created_by:
  12797. type: array
  12798. items:
  12799. $ref: '#/components/schemas/CatalogFacetItem'
  12800. required:
  12801. - created_team
  12802. - created_by
  12803. nullable: true
  12804. description: '* R-14 台账筛选下拉项:服务端在「base 谓词 ∧ plan_kind=custom」上聚合, * 用当前页行凑(翻页就会少选项,筛选后也凑不出已选项)。'
  12805. title: facets
  12806. kind_totals:
  12807. type: object
  12808. properties:
  12809. fixed:
  12810. type: number
  12811. nullable: true
  12812. custom:
  12813. type: number
  12814. nullable: true
  12815. nullable: true
  12816. description: tab 角标:关键字+可见域下的分档计数( 被当前 plan_kind/建档人收窄)。
  12817. title: kind totals
  12818. required:
  12819. - items
  12820. description: CatalogListResult 业务数据
  12821. title: CatalogListResult
  12822. CatalogPlanRow:
  12823. type: object
  12824. properties:
  12825. plan_id:
  12826. type: string
  12827. title: 档位 ID
  12828. description: 档位 ID。
  12829. plan_name:
  12830. type: string
  12831. title: 档位名称
  12832. description: 档位名称。
  12833. plan_kind:
  12834. type: string
  12835. title: plan kind
  12836. description: 字段 plan_kind。
  12837. plan_family:
  12838. type: string
  12839. nullable: true
  12840. title: plan family
  12841. description: 字段 plan_family。
  12842. annual_price_cents:
  12843. type: integer
  12844. title: 年价(分)
  12845. description: 年价(分)。
  12846. sub_account_quota:
  12847. type: number
  12848. nullable: true
  12849. title: sub account quota
  12850. description: 字段 sub_account_quota。
  12851. bandwidth_committed:
  12852. type: boolean
  12853. nullable: true
  12854. title: bandwidth committed
  12855. description: 字段 bandwidth_committed。
  12856. bandwidth_up_mbps:
  12857. type: integer
  12858. nullable: true
  12859. title: bandwidth up mbps
  12860. description: 字段 bandwidth_up_mbps。
  12861. bandwidth_down_mbps:
  12862. type: integer
  12863. nullable: true
  12864. title: bandwidth down mbps
  12865. description: 字段 bandwidth_down_mbps。
  12866. customer_id:
  12867. type: string
  12868. nullable: true
  12869. title: 客户 ID
  12870. description: 客户 ID。
  12871. customer_name:
  12872. type: string
  12873. nullable: true
  12874. title: 客户名称
  12875. description: 客户名称。
  12876. status:
  12877. type: string
  12878. title: 状态
  12879. description: 状态。
  12880. created_at:
  12881. type: string
  12882. title: 创建时间
  12883. description: 创建时间。
  12884. row_version:
  12885. type: string
  12886. title: 乐观锁版本
  12887. description: 乐观锁版本。
  12888. plan_cost_cents:
  12889. type: integer
  12890. nullable: true
  12891. description: 月成本=年订阅价 ÷ 12 向下取整(三态:null ⇒ 配齐但值为空=未配置)
  12892. title: plan cost cents
  12893. plan_cost_state:
  12894. $ref: '#/components/schemas/ValueState'
  12895. plan_cost_note:
  12896. type: string
  12897. nullable: true
  12898. description: 月成本列备注:`failed` 时为取数失败原因;其余态为口径说明
  12899. title: plan cost note
  12900. frozen:
  12901. type: boolean
  12902. nullable: true
  12903. description: 被引用后价格类字段冻结(年价/额度/带宽/归属客户等;提示文案与 locked_fields 同源)
  12904. title: frozen
  12905. referred_count:
  12906. type: integer
  12907. nullable: true
  12908. title: referred count
  12909. description: 字段 referred_count。
  12910. locked_fields:
  12911. type: array
  12912. items:
  12913. type: string
  12914. title: locked_fields元素
  12915. nullable: true
  12916. description: 服务端锁定字段键名清单(与弹窗置灰/提示同源,D-PKG-14)
  12917. title: locked fields
  12918. editable_fields:
  12919. type: array
  12920. items:
  12921. type: string
  12922. title: editable_fields元素
  12923. nullable: true
  12924. title: editable fields
  12925. description: 字段 editable_fields。
  12926. created_by:
  12927. type: string
  12928. nullable: true
  12929. description: 建档归属:账号 ID+快照团队 ID,以及读侧联查出的两个名称。
  12930. title: created by
  12931. created_by_name:
  12932. type: string
  12933. nullable: true
  12934. title: created by name
  12935. description: 字段 created_by_name。
  12936. created_team_id:
  12937. type: string
  12938. nullable: true
  12939. title: created team id
  12940. description: 字段 created_team_id。
  12941. created_team_name:
  12942. type: string
  12943. nullable: true
  12944. title: created team name
  12945. description: 字段 created_team_name。
  12946. source_label:
  12947. type: string
  12948. nullable: true
  12949. title: source label
  12950. description: 字段 source_label。
  12951. line_exits:
  12952. type: array
  12953. items:
  12954. type: string
  12955. title: line_exits元素
  12956. nullable: true
  12957. title: line exits
  12958. description: 字段 line_exits。
  12959. monthly_settle_cents:
  12960. type: integer
  12961. nullable: true
  12962. title: 月结算(分)
  12963. description: 月结算(分)。
  12964. plan_desc:
  12965. type: string
  12966. nullable: true
  12967. title: plan desc
  12968. description: 字段 plan_desc。
  12969. sort_no:
  12970. type: number
  12971. nullable: true
  12972. title: sort no
  12973. description: 字段 sort_no。
  12974. required:
  12975. - plan_id
  12976. - plan_name
  12977. - plan_kind
  12978. - plan_family
  12979. - annual_price_cents
  12980. - sub_account_quota
  12981. - bandwidth_committed
  12982. - bandwidth_up_mbps
  12983. - bandwidth_down_mbps
  12984. - customer_id
  12985. - status
  12986. - created_at
  12987. - row_version
  12988. description: CatalogPlanRow 业务数据
  12989. title: CatalogPlanRow
  12990. CatalogUpdateResult:
  12991. type: object
  12992. properties:
  12993. plan_id:
  12994. type: string
  12995. title: 档位 ID
  12996. description: 档位 ID。
  12997. updated:
  12998. type: boolean
  12999. title: 是否已更新
  13000. description: 是否已更新。
  13001. required:
  13002. - plan_id
  13003. - updated
  13004. description: CatalogUpdateResult 业务数据
  13005. title: CatalogUpdateResult
  13006. CheckDoneResult:
  13007. type: object
  13008. properties:
  13009. ticket_id:
  13010. type: string
  13011. title: 工单 ID
  13012. description: 工单 ID。
  13013. all_done:
  13014. type: boolean
  13015. title: all done
  13016. description: 字段 all_done。
  13017. pending_rows:
  13018. type: number
  13019. title: pending rows
  13020. description: 字段 pending_rows。
  13021. missing_item_ids:
  13022. type: array
  13023. items:
  13024. type: string
  13025. title: missing_item_ids元素
  13026. title: missing item ids
  13027. description: 字段 missing_item_ids。
  13028. audit_written:
  13029. type: boolean
  13030. title: 是否已写审计
  13031. description: 是否已写审计。
  13032. required:
  13033. - ticket_id
  13034. - all_done
  13035. - pending_rows
  13036. - missing_item_ids
  13037. - audit_written
  13038. description: CheckDoneResult 业务数据
  13039. title: CheckDoneResult
  13040. ClosureConfig:
  13041. type: object
  13042. properties:
  13043. closure_mode:
  13044. type: string
  13045. title: closure mode
  13046. description: 字段 closure_mode。
  13047. closure_mode_name:
  13048. type: string
  13049. title: closure mode name
  13050. description: 字段 closure_mode_name。
  13051. row_version:
  13052. type: string
  13053. title: 乐观锁版本
  13054. description: 乐观锁版本。
  13055. updated_at:
  13056. type: string
  13057. nullable: true
  13058. title: 更新时间
  13059. description: 更新时间。
  13060. updated_by:
  13061. type: string
  13062. nullable: true
  13063. title: updated by
  13064. description: 字段 updated_by。
  13065. required:
  13066. - closure_mode
  13067. - closure_mode_name
  13068. - row_version
  13069. - updated_at
  13070. - updated_by
  13071. description: ClosureConfig 业务数据
  13072. title: ClosureConfig
  13073. ClosureConfigUpdateResult:
  13074. type: object
  13075. properties:
  13076. closure_mode:
  13077. type: string
  13078. title: closure mode
  13079. description: 字段 closure_mode。
  13080. changed:
  13081. type: boolean
  13082. title: 是否已变更
  13083. description: 是否已变更。
  13084. from:
  13085. type: string
  13086. nullable: true
  13087. description: 同档提交(changed=false)时服务端不回此键
  13088. title: from
  13089. row_version:
  13090. type: integer
  13091. title: 乐观锁版本
  13092. description: 乐观锁版本。
  13093. updated_by:
  13094. type: string
  13095. title: updated by
  13096. description: 字段 updated_by。
  13097. audit_written:
  13098. type: boolean
  13099. title: 是否已写审计
  13100. description: 是否已写审计。
  13101. next_step:
  13102. type: string
  13103. title: next step
  13104. description: 字段 next_step。
  13105. required:
  13106. - closure_mode
  13107. - changed
  13108. - row_version
  13109. - updated_by
  13110. - audit_written
  13111. - next_step
  13112. description: ClosureConfigUpdateResult 业务数据
  13113. title: ClosureConfigUpdateResult
  13114. Completion:
  13115. type: object
  13116. properties:
  13117. completion_id:
  13118. type: string
  13119. title: completion id
  13120. description: 字段 completion_id。
  13121. completion_no:
  13122. type: string
  13123. nullable: true
  13124. title: completion no
  13125. description: 字段 completion_no。
  13126. action:
  13127. type: string
  13128. nullable: true
  13129. title: 动作
  13130. description: 动作。
  13131. exec_conclusion:
  13132. type: string
  13133. nullable: true
  13134. title: exec conclusion
  13135. description: 字段 exec_conclusion。
  13136. mode:
  13137. type: string
  13138. nullable: true
  13139. title: mode
  13140. description: 字段 mode。
  13141. pushed_at:
  13142. type: string
  13143. nullable: true
  13144. title: pushed at
  13145. description: 字段 pushed_at。
  13146. pushed_by:
  13147. type: string
  13148. nullable: true
  13149. title: pushed by
  13150. description: 字段 pushed_by。
  13151. receipt_at:
  13152. type: string
  13153. nullable: true
  13154. title: receipt at
  13155. description: 字段 receipt_at。
  13156. receipt_valid:
  13157. type: string
  13158. nullable: true
  13159. description: 回执仍有效(`"1"`/`"0"`)=`receipt_at` 非空且晚于最近一次退回重办;退回后回执失效但 `receipt_at` 仍是历史值。
  13160. title: receipt valid
  13161. receipt_user_id:
  13162. type: string
  13163. nullable: true
  13164. title: receipt user id
  13165. description: 字段 receipt_user_id。
  13166. receipt_remark:
  13167. type: string
  13168. nullable: true
  13169. title: receipt remark
  13170. description: 字段 receipt_remark。
  13171. ip_rule_version:
  13172. type: string
  13173. nullable: true
  13174. title: ip rule version
  13175. description: 字段 ip_rule_version。
  13176. pdf_ready:
  13177. type: string
  13178. nullable: true
  13179. title: pdf ready
  13180. description: 字段 pdf_ready。
  13181. row_version:
  13182. type: string
  13183. title: 乐观锁版本
  13184. description: 乐观锁版本。
  13185. created_at:
  13186. type: string
  13187. nullable: true
  13188. title: 创建时间
  13189. description: 创建时间。
  13190. required:
  13191. - completion_id
  13192. - completion_no
  13193. - action
  13194. - exec_conclusion
  13195. - mode
  13196. - pushed_at
  13197. - pushed_by
  13198. - receipt_at
  13199. - receipt_valid
  13200. - receipt_user_id
  13201. - receipt_remark
  13202. - ip_rule_version
  13203. - pdf_ready
  13204. - row_version
  13205. - created_at
  13206. description: Completion 业务数据
  13207. title: Completion
  13208. CompletionGenerateResult:
  13209. type: object
  13210. properties:
  13211. ticket_id:
  13212. type: string
  13213. title: 工单 ID
  13214. description: 工单 ID。
  13215. ticket_status:
  13216. $ref: '#/components/schemas/TicketStatus'
  13217. completion_id:
  13218. type: string
  13219. title: completion id
  13220. description: 字段 completion_id。
  13221. completion_no:
  13222. type: string
  13223. title: completion no
  13224. description: 字段 completion_no。
  13225. action:
  13226. type: string
  13227. title: 动作
  13228. description: 动作。
  13229. exec_conclusion:
  13230. type: string
  13231. title: exec conclusion
  13232. description: 字段 exec_conclusion。
  13233. mode:
  13234. type: string
  13235. title: mode
  13236. description: 字段 mode。
  13237. pushed_at:
  13238. type: string
  13239. title: pushed at
  13240. description: 字段 pushed_at。
  13241. pushed_by:
  13242. type: string
  13243. title: pushed by
  13244. description: 字段 pushed_by。
  13245. pushed_by_name:
  13246. type: string
  13247. nullable: true
  13248. title: pushed by name
  13249. description: 字段 pushed_by_name。
  13250. ip_rule_version:
  13251. type: string
  13252. title: ip rule version
  13253. description: 字段 ip_rule_version。
  13254. pdf_oss_key:
  13255. type: string
  13256. nullable: true
  13257. title: pdf oss key
  13258. description: 字段 pdf_oss_key。
  13259. reissued:
  13260. type: boolean
  13261. title: 换新条数
  13262. description: 换新条数。
  13263. receipt_valid:
  13264. type: boolean
  13265. title: receipt valid
  13266. description: 字段 receipt_valid。
  13267. audit_written:
  13268. type: boolean
  13269. title: 是否已写审计
  13270. description: 是否已写审计。
  13271. next_step:
  13272. type: string
  13273. title: next step
  13274. description: 字段 next_step。
  13275. required:
  13276. - ticket_id
  13277. - ticket_status
  13278. - completion_id
  13279. - completion_no
  13280. - action
  13281. - exec_conclusion
  13282. - mode
  13283. - pushed_at
  13284. - pushed_by
  13285. - pushed_by_name
  13286. - ip_rule_version
  13287. - pdf_oss_key
  13288. - reissued
  13289. - receipt_valid
  13290. - audit_written
  13291. - next_step
  13292. description: CompletionGenerateResult 业务数据
  13293. title: CompletionGenerateResult
  13294. CompletionReceiptResult:
  13295. type: object
  13296. properties:
  13297. ticket_id:
  13298. type: string
  13299. title: 工单 ID
  13300. description: 工单 ID。
  13301. ticket_status:
  13302. $ref: '#/components/schemas/TicketStatus'
  13303. completion_no:
  13304. type: string
  13305. nullable: true
  13306. title: completion no
  13307. description: 字段 completion_no。
  13308. receipt_at:
  13309. type: string
  13310. title: receipt at
  13311. description: 字段 receipt_at。
  13312. receipt_user_id:
  13313. type: string
  13314. title: receipt user id
  13315. description: 字段 receipt_user_id。
  13316. receipt_user_name:
  13317. type: string
  13318. nullable: true
  13319. title: receipt user name
  13320. description: 字段 receipt_user_name。
  13321. settled_at:
  13322. type: string
  13323. title: 办结时间
  13324. description: 办结时间。
  13325. completed_at:
  13326. type: string
  13327. title: 完成时间
  13328. description: 完成时间。
  13329. audit_written:
  13330. type: boolean
  13331. title: 是否已写审计
  13332. description: 是否已写审计。
  13333. next_step:
  13334. type: string
  13335. title: next step
  13336. description: 字段 next_step。
  13337. required:
  13338. - ticket_id
  13339. - ticket_status
  13340. - completion_no
  13341. - receipt_at
  13342. - receipt_user_id
  13343. - receipt_user_name
  13344. - settled_at
  13345. - completed_at
  13346. - audit_written
  13347. - next_step
  13348. description: CompletionReceiptResult 业务数据
  13349. title: CompletionReceiptResult
  13350. CompletionReject:
  13351. type: object
  13352. properties:
  13353. reject_seq:
  13354. type: string
  13355. title: reject seq
  13356. description: 字段 reject_seq。
  13357. channel:
  13358. type: string
  13359. title: channel
  13360. description: 字段 channel。
  13361. completion_no:
  13362. type: string
  13363. title: completion no
  13364. description: 字段 completion_no。
  13365. primary_code:
  13366. type: string
  13367. title: primary code
  13368. description: 字段 primary_code。
  13369. reason_codes:
  13370. type: string
  13371. title: reason codes
  13372. description: 字段 reason_codes。
  13373. reason_text:
  13374. type: string
  13375. title: reason text
  13376. description: 字段 reason_text。
  13377. pushed_at:
  13378. type: string
  13379. nullable: true
  13380. title: pushed at
  13381. description: 字段 pushed_at。
  13382. rejected_at:
  13383. type: string
  13384. nullable: true
  13385. title: rejected at
  13386. description: 字段 rejected_at。
  13387. required:
  13388. - reject_seq
  13389. - channel
  13390. - completion_no
  13391. - primary_code
  13392. - reason_codes
  13393. - reason_text
  13394. - pushed_at
  13395. - rejected_at
  13396. description: 竣工驳回记录(`ticket_completion_reject`,)。 出参里没有 `external_reject_no`: 把它列为门户/合伙人 回显字段,
  13397. 服务端直接把它排除在 SELECT 之外,前端 指望"拿到再隐藏"。
  13398. title: CompletionReject
  13399. CompletionRejectResult:
  13400. type: object
  13401. description: 竣工驳回结果
  13402. properties:
  13403. ticket_id:
  13404. type: string
  13405. description: 工单 ID
  13406. title: 工单 ID
  13407. ticket_no:
  13408. type: string
  13409. description: 工单号
  13410. nullable: true
  13411. title: 工单号
  13412. ticket_status:
  13413. type: string
  13414. description: 工单状态
  13415. title: ticket status
  13416. reject_seq:
  13417. type: string
  13418. description: 驳回序号
  13419. title: reject seq
  13420. completion_no:
  13421. type: string
  13422. description: 竣工单号
  13423. title: completion no
  13424. primary_code:
  13425. type: string
  13426. description: 主原因码
  13427. title: primary code
  13428. reason_codes:
  13429. type: array
  13430. items:
  13431. type: string
  13432. title: reason_codes元素
  13433. description: 驳回原因码列表
  13434. title: reason codes
  13435. completion_channel:
  13436. type: string
  13437. description: 竣工通道
  13438. nullable: true
  13439. title: completion channel
  13440. external_wait_seconds:
  13441. type: integer
  13442. description: 外部等待秒数
  13443. nullable: true
  13444. title: external wait seconds
  13445. row_version:
  13446. type: integer
  13447. description: 乐观锁版本
  13448. nullable: true
  13449. title: 乐观锁版本
  13450. pathway:
  13451. type: string
  13452. description: 通路标识
  13453. nullable: true
  13454. title: pathway
  13455. idempotent_replay:
  13456. type: boolean
  13457. description: 是否幂等重放
  13458. nullable: true
  13459. title: idempotent replay
  13460. message:
  13461. type: string
  13462. description: 结果说明
  13463. title: 说明
  13464. required:
  13465. - ticket_id
  13466. - ticket_status
  13467. - reject_seq
  13468. - completion_no
  13469. - primary_code
  13470. - reason_codes
  13471. - message
  13472. title: CompletionRejectResult
  13473. ConstructionGuide:
  13474. type: object
  13475. properties:
  13476. ticket_type:
  13477. type: string
  13478. nullable: true
  13479. title: 工单类型
  13480. description: 工单类型。
  13481. plan:
  13482. $ref: '#/components/schemas/ConstructionPlanSummary'
  13483. member_plans:
  13484. type: array
  13485. items:
  13486. $ref: '#/components/schemas/ConstructionPlanSummary'
  13487. nullable: true
  13488. title: member plans
  13489. description: 字段 member_plans。
  13490. defaults:
  13491. $ref: '#/components/schemas/ConstructionGuideDefaults'
  13492. prior_activation:
  13493. $ref: '#/components/schemas/PriorActivation'
  13494. plan_before:
  13495. $ref: '#/components/schemas/ConstructionPlanSummary'
  13496. plan_after:
  13497. $ref: '#/components/schemas/ConstructionPlanSummary'
  13498. pending_accounts:
  13499. type: array
  13500. items:
  13501. $ref: '#/components/schemas/OpenStopAccount'
  13502. nullable: true
  13503. description: 开通类待开通分账号预览。
  13504. title: pending accounts
  13505. bandwidth_missing:
  13506. type: boolean
  13507. nullable: true
  13508. title: bandwidth missing
  13509. description: 字段 bandwidth_missing。
  13510. subscription_missing:
  13511. type: boolean
  13512. nullable: true
  13513. title: subscription missing
  13514. description: 字段 subscription_missing。
  13515. subscription_fallback:
  13516. type: boolean
  13517. nullable: true
  13518. title: subscription fallback
  13519. description: 字段 subscription_fallback。
  13520. hint:
  13521. type: string
  13522. nullable: true
  13523. title: hint
  13524. description: 字段 hint。
  13525. description: ConstructionGuide 业务数据
  13526. title: ConstructionGuide
  13527. ConstructionGuideDefaults:
  13528. type: object
  13529. properties:
  13530. line_exits:
  13531. type: array
  13532. items:
  13533. type: string
  13534. title: line_exits元素
  13535. nullable: true
  13536. title: line exits
  13537. description: 字段 line_exits。
  13538. suggest_down_mbps:
  13539. type: integer
  13540. nullable: true
  13541. title: suggest down mbps
  13542. description: 字段 suggest_down_mbps。
  13543. suggest_up_mbps:
  13544. type: integer
  13545. nullable: true
  13546. title: suggest up mbps
  13547. description: 字段 suggest_up_mbps。
  13548. suggest_ip_bandwidth_mbps:
  13549. type: integer
  13550. nullable: true
  13551. title: suggest ip bandwidth mbps
  13552. description: 字段 suggest_ip_bandwidth_mbps。
  13553. suggest_seat_count:
  13554. type: integer
  13555. nullable: true
  13556. title: suggest seat count
  13557. description: 字段 suggest_seat_count。
  13558. description: ConstructionGuideDefaults 业务数据
  13559. title: ConstructionGuideDefaults
  13560. ConstructionPlanSummary:
  13561. type: object
  13562. properties:
  13563. subscription_id:
  13564. type: string
  13565. nullable: true
  13566. title: 订阅 ID
  13567. description: 订阅 ID。
  13568. plan_id:
  13569. type: string
  13570. nullable: true
  13571. title: 档位 ID
  13572. description: 档位 ID。
  13573. plan_name:
  13574. type: string
  13575. nullable: true
  13576. title: 档位名称
  13577. description: 档位名称。
  13578. plan_kind:
  13579. type: string
  13580. nullable: true
  13581. title: plan kind
  13582. description: 字段 plan_kind。
  13583. plan_family:
  13584. type: string
  13585. nullable: true
  13586. title: plan family
  13587. description: 字段 plan_family。
  13588. quantity:
  13589. type: number
  13590. nullable: true
  13591. title: quantity
  13592. description: 字段 quantity。
  13593. sub_account_quota:
  13594. type: number
  13595. nullable: true
  13596. title: sub account quota
  13597. description: 字段 sub_account_quota。
  13598. quota_slots:
  13599. type: number
  13600. nullable: true
  13601. title: quota slots
  13602. description: 字段 quota_slots。
  13603. bandwidth_up_mbps:
  13604. type: integer
  13605. nullable: true
  13606. title: bandwidth up mbps
  13607. description: 字段 bandwidth_up_mbps。
  13608. bandwidth_down_mbps:
  13609. type: integer
  13610. nullable: true
  13611. title: bandwidth down mbps
  13612. description: 字段 bandwidth_down_mbps。
  13613. bandwidth_committed:
  13614. type: boolean
  13615. nullable: true
  13616. title: bandwidth committed
  13617. description: 字段 bandwidth_committed。
  13618. bandwidth_missing:
  13619. type: boolean
  13620. nullable: true
  13621. description: 档位未配齐上下行。
  13622. title: bandwidth missing
  13623. bandwidth_from_prior:
  13624. type: boolean
  13625. nullable: true
  13626. description: 带宽取自历史开通通路,非档位承诺值。
  13627. title: bandwidth from prior
  13628. line_exits:
  13629. oneOf:
  13630. - type: string
  13631. - type: string
  13632. nullable: true
  13633. title: line exits
  13634. description: 字段 line_exits。
  13635. status:
  13636. type: string
  13637. nullable: true
  13638. title: 状态
  13639. description: 状态。
  13640. parent_subscription_id:
  13641. type: string
  13642. nullable: true
  13643. title: parent subscription id
  13644. description: 字段 parent_subscription_id。
  13645. replaces_subscription_id:
  13646. type: string
  13647. nullable: true
  13648. title: replaces subscription id
  13649. description: 字段 replaces_subscription_id。
  13650. summary:
  13651. type: string
  13652. nullable: true
  13653. title: summary
  13654. description: 字段 summary。
  13655. items:
  13656. type: array
  13657. items:
  13658. $ref: '#/components/schemas/ServiceItem'
  13659. nullable: true
  13660. title: 列表项
  13661. description: 列表项。
  13662. description: 套餐/订阅施工参考摘要。
  13663. title: ConstructionPlanSummary
  13664. ContractAttachmentDiscardResult:
  13665. type: object
  13666. properties:
  13667. discarded:
  13668. type: boolean
  13669. description: '`true`=本次真的删了;`false`=仍被合同引用或删除未成功(看 `object_delete`)。'
  13670. title: discarded
  13671. referenced:
  13672. type: boolean
  13673. description: '`true`=查库发现仍有合同指向它(并发保存刚提交也会落到这里)⇒ 未删除。'
  13674. title: referenced
  13675. object_delete:
  13676. $ref: '#/components/schemas/ContractObjectReclaim'
  13677. note:
  13678. type: string
  13679. nullable: true
  13680. title: 备注
  13681. description: 备注。
  13682. required:
  13683. - discarded
  13684. - referenced
  13685. description: ContractAttachmentDiscardResult 业务数据
  13686. title: ContractAttachmentDiscardResult
  13687. ContractChangeLogItem:
  13688. type: object
  13689. properties:
  13690. occurred_at:
  13691. type: string
  13692. nullable: true
  13693. title: occurred at
  13694. description: 字段 occurred_at。
  13695. action:
  13696. type: string
  13697. title: 动作
  13698. description: 动作。
  13699. action_label:
  13700. type: string
  13701. title: action label
  13702. description: 字段 action_label。
  13703. actor:
  13704. type: object
  13705. properties:
  13706. user_id:
  13707. type: string
  13708. nullable: true
  13709. name:
  13710. type: string
  13711. nullable: true
  13712. required:
  13713. - user_id
  13714. - name
  13715. title: actor
  13716. description: 字段 actor。
  13717. detail:
  13718. type: object
  13719. additionalProperties: {}
  13720. nullable: true
  13721. description: 审计 detail:`fields`(字段旧→新)/`items_diff`/`item_labels`/`ip_diff` …
  13722. title: detail
  13723. cursor:
  13724. type: string
  13725. nullable: true
  13726. description: '`occurred_at` 缺失时回 `null`(该条翻不动页)'
  13727. title: 游标
  13728. required:
  13729. - occurred_at
  13730. - action
  13731. - action_label
  13732. - actor
  13733. - detail
  13734. - cursor
  13735. description: ContractChangeLogItem 业务数据
  13736. title: ContractChangeLogItem
  13737. ContractDeleteResult:
  13738. type: object
  13739. properties:
  13740. deleted:
  13741. type: boolean
  13742. title: 是否已删除
  13743. description: 是否已删除。
  13744. blocks:
  13745. type: object
  13746. properties:
  13747. subscriptions:
  13748. type: array
  13749. items: {}
  13750. nullable: true
  13751. tickets:
  13752. type: array
  13753. items: {}
  13754. nullable: true
  13755. nullable: true
  13756. title: blocks
  13757. description: 字段 blocks。
  13758. ticket_state:
  13759. type: string
  13760. nullable: true
  13761. title: ticket state
  13762. description: 字段 ticket_state。
  13763. attachment_object_delete:
  13764. $ref: '#/components/schemas/ContractObjectReclaim'
  13765. required:
  13766. - deleted
  13767. description: ContractDeleteResult 业务数据
  13768. title: ContractDeleteResult
  13769. ContractEditAxis:
  13770. type: object
  13771. properties:
  13772. editable:
  13773. type: boolean
  13774. title: editable
  13775. description: 字段 editable。
  13776. reason:
  13777. type: string
  13778. nullable: true
  13779. description: '`opened`|`expired`|`synced_source`|`grace_expired`|`effective`'
  13780. title: reason
  13781. required:
  13782. - editable
  13783. - reason
  13784. description: 编辑口径的单轴结论(`reason` 是机器码,文案表在前端;`null`=该轴可改)。
  13785. title: ContractEditAxis
  13786. ContractEditScope:
  13787. type: object
  13788. properties:
  13789. state:
  13790. type: string
  13791. description: '`pending`|`effective_unopened`|`opened`|`expired`'
  13792. title: state
  13793. billing:
  13794. $ref: '#/components/schemas/ContractEditAxis'
  13795. archive:
  13796. $ref: '#/components/schemas/ContractEditAxis'
  13797. grace_until:
  13798. type: string
  13799. nullable: true
  13800. description: 录后更正期截止时刻(RFC3339);`null`=录入时刻缺失或不可解析
  13801. title: grace until
  13802. agent:
  13803. type: object
  13804. properties:
  13805. editable:
  13806. type: string
  13807. description: 类型:false
  13808. reason:
  13809. type: string
  13810. description: 类型:"filled_from_account"
  13811. note:
  13812. type: string
  13813. required:
  13814. - editable
  13815. - reason
  13816. - note
  13817. nullable: true
  13818. title: agent
  13819. description: 字段 agent。
  13820. required:
  13821. - state
  13822. - billing
  13823. - archive
  13824. - grace_until
  13825. description: ContractEditScope 业务数据
  13826. title: ContractEditScope
  13827. ContractListResult:
  13828. type: object
  13829. properties:
  13830. items:
  13831. type: array
  13832. items:
  13833. $ref: '#/components/schemas/ContractRow'
  13834. title: 列表项
  13835. description: 列表项。
  13836. stats:
  13837. type: object
  13838. properties:
  13839. total:
  13840. type: number
  13841. opened:
  13842. type: number
  13843. not_opened:
  13844. type: number
  13845. required:
  13846. - total
  13847. - opened
  13848. - not_opened
  13849. nullable: true
  13850. description: 统计卡与列表同谓词
  13851. title: stats
  13852. total:
  13853. type: integer
  13854. nullable: true
  13855. title: 总条数
  13856. description: 总条数。
  13857. page:
  13858. type: integer
  13859. nullable: true
  13860. title: 页码
  13861. description: 页码。
  13862. page_size:
  13863. type: integer
  13864. nullable: true
  13865. title: 每页条数
  13866. description: 每页条数。
  13867. required:
  13868. - items
  13869. description: ContractListResult 业务数据
  13870. title: ContractListResult
  13871. ContractLookupCustomer:
  13872. type: object
  13873. properties:
  13874. customer_id:
  13875. type: string
  13876. title: 客户 ID
  13877. description: 客户 ID。
  13878. customer_name:
  13879. type: string
  13880. title: 客户名称
  13881. description: 客户名称。
  13882. identity_no_masked:
  13883. type: string
  13884. nullable: true
  13885. title: identity no masked
  13886. description: 字段 identity_no_masked。
  13887. province_name:
  13888. type: string
  13889. nullable: true
  13890. title: province name
  13891. description: 字段 province_name。
  13892. required:
  13893. - customer_id
  13894. - customer_name
  13895. description: ContractLookupCustomer 业务数据
  13896. title: ContractLookupCustomer
  13897. ContractLookupResult:
  13898. type: object
  13899. properties:
  13900. matched:
  13901. type: boolean
  13902. title: 是否匹配
  13903. description: 是否匹配。
  13904. customers:
  13905. type: array
  13906. items:
  13907. $ref: '#/components/schemas/ContractLookupCustomer'
  13908. title: 客户数
  13909. description: 客户数。
  13910. required:
  13911. - matched
  13912. - customers
  13913. description: ContractLookupResult 业务数据
  13914. title: ContractLookupResult
  13915. ContractObjectReclaim:
  13916. type: object
  13917. properties:
  13918. status:
  13919. type: string
  13920. enum:
  13921. - deleted
  13922. - partial
  13923. - failed
  13924. title: 状态
  13925. description: 状态。
  13926. reason:
  13927. type: string
  13928. nullable: true
  13929. title: reason
  13930. description: 字段 reason。
  13931. deleted:
  13932. type: number
  13933. nullable: true
  13934. title: 是否已删除
  13935. description: 是否已删除。
  13936. failed_codes:
  13937. type: array
  13938. items:
  13939. type: number
  13940. title: failed_codes元素
  13941. nullable: true
  13942. title: failed codes
  13943. description: 字段 failed_codes。
  13944. error:
  13945. type: string
  13946. nullable: true
  13947. title: error
  13948. description: 字段 error。
  13949. required:
  13950. - status
  13951. description: 附件对象回收回执(写口即时回收 / 孤儿回。
  13952. `reason`:`attachment_replaced`(被替换/清空)/`contract_deleted`(合同删除)/
  13953. `unsaved_upload`(上传后没人引用)。`failed` 时需运维按合同档案补删。
  13954. title: ContractObjectReclaim
  13955. ContractRenewalConfig:
  13956. type: object
  13957. description: 合同续签提醒配置
  13958. properties:
  13959. notice_days:
  13960. type: integer
  13961. description: 提前提醒天数(1~180)
  13962. title: notice days
  13963. generate_mode:
  13964. type: string
  13965. description: 生成模式
  13966. title: generate mode
  13967. row_version:
  13968. type: integer
  13969. description: 乐观锁版本
  13970. title: 乐观锁版本
  13971. required:
  13972. - notice_days
  13973. - generate_mode
  13974. - row_version
  13975. title: ContractRenewalConfig
  13976. ContractRenewalConfigUpdateResult:
  13977. type: object
  13978. description: 合同续签提醒配置更新结果
  13979. properties:
  13980. notice_days:
  13981. type: integer
  13982. description: 提前提醒天数
  13983. title: notice days
  13984. generate_mode:
  13985. type: string
  13986. description: 生成模式
  13987. title: generate mode
  13988. row_version:
  13989. type: integer
  13990. description: 新版本号
  13991. title: 乐观锁版本
  13992. updated:
  13993. type: boolean
  13994. description: 是否已更新
  13995. title: 是否已更新
  13996. required:
  13997. - notice_days
  13998. - generate_mode
  13999. - row_version
  14000. - updated
  14001. title: ContractRenewalConfigUpdateResult
  14002. ContractReplacementResult:
  14003. type: object
  14004. properties:
  14005. item_index:
  14006. type: number
  14007. description: 0 基条目下标(与请求 `service_items` 对齐)。
  14008. title: item index
  14009. mode:
  14010. type: string
  14011. enum:
  14012. - replaced
  14013. - renewed
  14014. nullable: true
  14015. description: '* `replaced`=截原替换(升降配);`renewed`=续签新开(到期续签/按新订阅开通, * 截原、 替换边、 `updown`)。'
  14016. title: mode
  14017. subscription_id:
  14018. type: string
  14019. title: 订阅 ID
  14020. description: 订阅 ID。
  14021. replaces_subscription_id:
  14022. type: string
  14023. nullable: true
  14024. description: 续签新开时为 `null`(旧订阅没被回收)。
  14025. title: replaces subscription id
  14026. ticket_type:
  14027. type: string
  14028. nullable: true
  14029. description: 实际生成的工单类型:已交付且客户在用 ⇒ `updown`;未交付 ⇒ `open`/`service_open`;未生成 ⇒ `null`。
  14030. title: 工单类型
  14031. ticket_no:
  14032. type: string
  14033. nullable: true
  14034. title: 工单号
  14035. description: 工单号。
  14036. note:
  14037. type: string
  14038. nullable: true
  14039. title: 备注
  14040. description: 备注。
  14041. audit_written:
  14042. type: boolean
  14043. nullable: true
  14044. title: 是否已写审计
  14045. description: 是否已写审计。
  14046. actual_opened_at:
  14047. type: string
  14048. nullable: true
  14049. description: '* 续签且服务内容未变 ⇒ 免派工,新订阅按续签开始日视为已交付(`actual_opened_at` 的落点)。 * 未免派工(或回填失败)时为 `null`。'
  14050. title: actual opened at
  14051. required:
  14052. - item_index
  14053. - subscription_id
  14054. - replaces_subscription_id
  14055. description: '`POST /contract/create@v1` 回执里的逐条替换结果。'
  14056. title: ContractReplacementResult
  14057. ContractRow:
  14058. type: object
  14059. properties:
  14060. contract_id:
  14061. type: string
  14062. title: 合同 ID
  14063. description: 合同 ID。
  14064. customer_id:
  14065. type: string
  14066. title: 客户 ID
  14067. description: 客户 ID。
  14068. customer_name:
  14069. type: string
  14070. nullable: true
  14071. title: 客户名称
  14072. description: 客户名称。
  14073. contract_no:
  14074. type: string
  14075. title: 合同编号
  14076. description: 合同编号。
  14077. external_no:
  14078. type: string
  14079. nullable: true
  14080. title: external no
  14081. description: 字段 external_no。
  14082. status:
  14083. type: string
  14084. title: 状态
  14085. description: 状态。
  14086. contract_amount_cents:
  14087. type: integer
  14088. title: contract amount cents
  14089. description: 字段 contract_amount_cents。
  14090. amount_cents:
  14091. type: integer
  14092. nullable: true
  14093. title: 金额(分)
  14094. description: 金额(分)。
  14095. discount_rate_pct:
  14096. type: number
  14097. nullable: true
  14098. description: 折扣率(百分数,默认 100);最终合同金额=套餐总×本列/100。
  14099. title: discount rate pct
  14100. contract_type:
  14101. type: string
  14102. nullable: true
  14103. description: 合同类型:`new`(新建)/`renew`(续签)/`expand`(扩容补充协议)/`change`(变更协议)。
  14104. title: contract type
  14105. sign_date:
  14106. type: string
  14107. nullable: true
  14108. description: 签署日期(`YYYY-MM-DD`;存量行按交接日期回填)。
  14109. title: sign date
  14110. service_months:
  14111. type: number
  14112. nullable: true
  14113. description: 服务期(月):结束日=生效日+服务期−1 天(替代原 `pay_cycle`)。
  14114. title: service months
  14115. start_date:
  14116. type: string
  14117. nullable: true
  14118. title: 开始日
  14119. description: 开始日。
  14120. end_date:
  14121. type: string
  14122. nullable: true
  14123. title: 结束日
  14124. description: 结束日。
  14125. agent_name:
  14126. type: string
  14127. nullable: true
  14128. title: agent name
  14129. description: 字段 agent_name。
  14130. agent_mobile:
  14131. type: string
  14132. nullable: true
  14133. title: agent mobile
  14134. description: 字段 agent_mobile。
  14135. agent_handover_on:
  14136. type: string
  14137. nullable: true
  14138. title: agent handover on
  14139. description: 字段 agent_handover_on。
  14140. agent_org:
  14141. type: string
  14142. nullable: true
  14143. title: agent org
  14144. description: 字段 agent_org。
  14145. attachment_url:
  14146. type: string
  14147. nullable: true
  14148. description: '* 合同附件(单值,):外部 `http(s)` 链接,或浏览器直传平台桶后回报的对象键 * (`klt/contract/attachment/…`)。
  14149. 直接把对象键当可打开的链接用。'
  14150. title: attachment url
  14151. attachment_kind:
  14152. type: string
  14153. enum:
  14154. - none
  14155. - link
  14156. - object
  14157. - other
  14158. nullable: true
  14159. description: 附件取值形态:`none`/`link`(外部链接)/`object`(对象键,需读口现签)/`other`(存量脏值)。
  14160. title: attachment kind
  14161. attachment_view_url:
  14162. type: string
  14163. nullable: true
  14164. description: 短时效下载地址:`link`=原链接;`object`=详情读口现签;列表口恒 `null`( 按行 N 次调平台)。
  14165. title: attachment view url
  14166. attachment_view_url_expires_at:
  14167. type: string
  14168. nullable: true
  14169. title: attachment view url expires at
  14170. description: 字段 attachment_view_url_expires_at。
  14171. service_items:
  14172. type: array
  14173. items:
  14174. $ref: '#/components/schemas/ContractServiceItem'
  14175. nullable: true
  14176. title: service items
  14177. description: 字段 service_items。
  14178. created_at:
  14179. type: string
  14180. description: 合同级 `ip_entries` 自 不再下发:固定 IP 条目已由「套餐档位 × 订阅份数」取代, *
  14181. 历史行只留在库里追溯;读到该键=对端仍是旧版本,页面不应再据此渲染 IP 表。
  14182. title: 创建时间
  14183. source:
  14184. type: string
  14185. nullable: true
  14186. description: 合同来源(`manual`/`import`/`operator_sync`)——编辑口径按它分叉
  14187. title: 来源
  14188. created_by:
  14189. type: string
  14190. nullable: true
  14191. description: 合同经办人=界面录入账号 ID(存量行 `null`=未记录)
  14192. title: created by
  14193. created_by_name:
  14194. type: string
  14195. nullable: true
  14196. title: created by name
  14197. description: 字段 created_by_name。
  14198. created_by_org:
  14199. type: string
  14200. nullable: true
  14201. description: 录入账号所属机构(运营/运维团队名;`hq` 账号回落「总运营」);`null`=未记录
  14202. title: created by org
  14203. created_by_mobile:
  14204. type: string
  14205. nullable: true
  14206. description: 录入账号绑定手机号(后端已按需求 掩码);`null`=未绑定
  14207. title: created by mobile
  14208. edit_scope:
  14209. $ref: '#/components/schemas/ContractEditScope'
  14210. row_version:
  14211. type: string
  14212. title: 乐观锁版本
  14213. description: 乐观锁版本。
  14214. opened:
  14215. type: boolean
  14216. nullable: true
  14217. title: opened
  14218. description: 字段 opened。
  14219. opened_state:
  14220. $ref: '#/components/schemas/ValueState'
  14221. source_label:
  14222. type: string
  14223. nullable: true
  14224. description: 合同来源标识
  14225. title: source label
  14226. customer_free_text:
  14227. type: string
  14228. nullable: true
  14229. description: 自由录入的客户资料(customer_lookup 未命中时)
  14230. title: customer free text
  14231. actual_opened_at:
  14232. type: string
  14233. nullable: true
  14234. description: 实际开通日:本册只读,唯一写入方=工单回填
  14235. title: actual opened at
  14236. required:
  14237. - contract_id
  14238. - customer_id
  14239. - contract_no
  14240. - external_no
  14241. - status
  14242. - contract_amount_cents
  14243. - start_date
  14244. - end_date
  14245. - agent_name
  14246. - agent_mobile
  14247. - agent_handover_on
  14248. - agent_org
  14249. - attachment_url
  14250. - created_at
  14251. - row_version
  14252. description: ContractRow 业务数据
  14253. title: ContractRow
  14254. ContractServiceItem:
  14255. type: object
  14256. properties:
  14257. item_id:
  14258. type: string
  14259. nullable: true
  14260. title: item id
  14261. description: 字段 item_id。
  14262. plan_id:
  14263. type: string
  14264. nullable: true
  14265. title: 档位 ID
  14266. description: 档位 ID。
  14267. quantity:
  14268. type: number
  14269. nullable: true
  14270. title: quantity
  14271. description: 字段 quantity。
  14272. item_family:
  14273. type: string
  14274. nullable: true
  14275. description: 交付形态回落值:读侧随条目下发,写侧由后端从档位带入( 前端造值)。
  14276. title: item family
  14277. line_exits:
  14278. type: array
  14279. items:
  14280. type: string
  14281. title: line_exits元素
  14282. nullable: true
  14283. description: 线路出口:单选(恰 1 个);新建/修改条目多值由后端回 `KLT-L222`。
  14284. title: line exits
  14285. succession:
  14286. $ref: '#/components/schemas/ContractSuccessionReq'
  14287. plan_name:
  14288. type: string
  14289. nullable: true
  14290. title: 档位名称
  14291. description: 档位名称。
  14292. sub_account_quota:
  14293. type: number
  14294. nullable: true
  14295. description: 所引目录档的分账号额度( 依赖目录列表接口才能显示账号数)。
  14296. title: sub account quota
  14297. remark:
  14298. type: string
  14299. nullable: true
  14300. title: 备注
  14301. description: 备注。
  14302. serves_item_id:
  14303. type: string
  14304. nullable: true
  14305. description: '* P1:叠加服务所服务的父条目主键;`link` 条目恒空。 * 新建合同里父条目也是本次新建时,父还没有主键 ⇒ 改用 `serves_item_index`(0
  14306. 基序号)。'
  14307. title: serves item id
  14308. serves_item_index:
  14309. type: number
  14310. nullable: true
  14311. description: 写侧:父条目在 `service_items` 里的 0 基序号( 与 `serves_item_id` 同现)。
  14312. title: serves item index
  14313. item_mode:
  14314. type: string
  14315. nullable: true
  14316. description: P1:条目形态 `new`/`increment`;读侧缺省按 `new` 渲染。
  14317. title: item mode
  14318. ref_subscription_id:
  14319. type: string
  14320. nullable: true
  14321. description: P1:增量条目引用的既有链路订阅(可跨合同; 与 `serves_item_id` 同现)。
  14322. title: ref subscription id
  14323. description: 合同服务构成条目(请求与应答同源)。
  14324. title: ContractServiceItem
  14325. ContractSuccessionReq:
  14326. type: object
  14327. properties:
  14328. replaces_subscription_id:
  14329. type: string
  14330. description: 被替换的原订阅(本客户、active/pending、同分类同出口、未被替换过)。
  14331. title: replaces subscription id
  14332. start_date:
  14333. type: string
  14334. nullable: true
  14335. description: 新订阅起日,缺省=max(业务当天, 合同生效日);结束日恒取合同止期。
  14336. title: 开始日
  14337. term:
  14338. type: string
  14339. nullable: true
  14340. description: 订阅方式(`yearly`/`monthly`);缺省按档位与分类派生。
  14341. title: term
  14342. required:
  14343. - replaces_subscription_id
  14344. description: 契约内逐条替换的 `service_items[].succession`。 只认这三键:价格、状态、`row_version` 等只读派生列出现即
  14345. `KLT-L222` 点名。
  14346. title: ContractSuccessionReq
  14347. ContractUpdateResult:
  14348. type: object
  14349. properties:
  14350. contract_id:
  14351. type: string
  14352. title: 合同 ID
  14353. description: 合同 ID。
  14354. updated:
  14355. type: boolean
  14356. title: 是否已更新
  14357. description: 是否已更新。
  14358. attachment_object_delete:
  14359. $ref: '#/components/schemas/ContractObjectReclaim'
  14360. required:
  14361. - contract_id
  14362. - updated
  14363. description: ContractUpdateResult 业务数据
  14364. title: ContractUpdateResult
  14365. CorrectionCreateResult:
  14366. type: object
  14367. properties:
  14368. correction_id:
  14369. type: string
  14370. title: correction id
  14371. description: 字段 correction_id。
  14372. required:
  14373. - correction_id
  14374. description: CorrectionCreateResult 业务数据
  14375. title: CorrectionCreateResult
  14376. CorrectionDetailResult:
  14377. type: object
  14378. properties:
  14379. correction_id:
  14380. type: string
  14381. title: correction id
  14382. description: 字段 correction_id。
  14383. created_at:
  14384. type: string
  14385. title: 创建时间
  14386. description: 创建时间。
  14387. period:
  14388. type: string
  14389. nullable: true
  14390. title: 账期
  14391. description: 字段 period。
  14392. region_label:
  14393. type: string
  14394. nullable: true
  14395. title: region label
  14396. description: 字段 region_label。
  14397. region_node_id:
  14398. type: string
  14399. nullable: true
  14400. description: 归属区域节点 ID:详情窗与列表同口径兜底取名(缺陷 详情「—」、列表「江苏省」)。
  14401. title: 区域节点 ID
  14402. operator_name:
  14403. type: string
  14404. description: 登记人可读名(与列表「登记人」列同口径)。
  14405. title: operator name
  14406. holder_name:
  14407. type: string
  14408. nullable: true
  14409. description: 分成方(运营商)名, 当登记人渲染。
  14410. title: holder name
  14411. error_text:
  14412. type: string
  14413. title: error text
  14414. description: 字段 error_text。
  14415. raw_ref:
  14416. type: string
  14417. nullable: true
  14418. title: 原始关联
  14419. description: 字段 raw_ref。
  14420. matched:
  14421. type: boolean
  14422. title: 是否匹配
  14423. description: 是否匹配。
  14424. matched_batch_no:
  14425. type: string
  14426. nullable: true
  14427. title: matched batch no
  14428. description: 字段 matched_batch_no。
  14429. matched_bill_detail_id:
  14430. type: string
  14431. nullable: true
  14432. title: matched bill detail id
  14433. description: 字段 matched_bill_detail_id。
  14434. matched_holder_id:
  14435. type: string
  14436. nullable: true
  14437. description: '* 命中批次的持有方 id(拼批次详情路由 `/settlement-batches/:holderId/:no` 用); * 未下发 ⇒ batch_no
  14438. 渲纯文本、不给批次入口(明细入口不受影响),已登记缺口清单。'
  14439. title: matched holder id
  14440. required:
  14441. - correction_id
  14442. - created_at
  14443. - period
  14444. - region_label
  14445. - operator_name
  14446. - error_text
  14447. - raw_ref
  14448. - matched
  14449. - matched_batch_no
  14450. - matched_bill_detail_id
  14451. description: CorrectionDetailResult 业务数据
  14452. title: CorrectionDetailResult
  14453. CorrectionDraftResult:
  14454. type: object
  14455. properties:
  14456. form:
  14457. type: string
  14458. description: 字段 form。
  14459. nullable: true
  14460. title: 表单
  14461. required:
  14462. - form
  14463. description: CorrectionDraftResult 业务数据
  14464. title: CorrectionDraftResult
  14465. CorrectionDraftSaveResult:
  14466. type: object
  14467. description: 纠错单草稿保存结果
  14468. properties:
  14469. correction_id:
  14470. type: string
  14471. description: 纠错单 ID
  14472. title: correction id
  14473. saved:
  14474. type: boolean
  14475. description: 是否已保存
  14476. title: 是否已保存
  14477. row_version:
  14478. type: integer
  14479. description: 乐观锁版本
  14480. nullable: true
  14481. title: 乐观锁版本
  14482. required:
  14483. - correction_id
  14484. - saved
  14485. title: CorrectionDraftSaveResult
  14486. CorrectionRow:
  14487. type: object
  14488. properties:
  14489. correction_id:
  14490. type: string
  14491. title: correction id
  14492. description: 字段 correction_id。
  14493. created_at:
  14494. type: string
  14495. title: 创建时间
  14496. description: 创建时间。
  14497. period:
  14498. type: string
  14499. nullable: true
  14500. description: 自然月不落库、现推;取不到 ⇒ null(界面显示「—」, 相似度推测)
  14501. title: 账期
  14502. ref_label:
  14503. type: string
  14504. description: 关联对象展示文本(命中候选=候选标签;未命中=raw_ref 原文)
  14505. title: ref label
  14506. region_label:
  14507. type: string
  14508. nullable: true
  14509. title: region label
  14510. description: 字段 region_label。
  14511. region_node_id:
  14512. type: string
  14513. nullable: true
  14514. description: 归属区域节点 ID(系统推导落库);`region_label` 缺值时前端据此从区域树取名。
  14515. title: 区域节点 ID
  14516. operator_name:
  14517. type: string
  14518. description: 登记人可读名(显示名→登录名);`operator_keyword` 按同一口径筛(缺陷 此前是分成方名)。
  14519. title: operator name
  14520. holder_name:
  14521. type: string
  14522. nullable: true
  14523. description: 分成方(运营商)名—— 当登记人渲染,只在需要时另列。
  14524. title: holder name
  14525. created_by:
  14526. type: string
  14527. nullable: true
  14528. description: 登记人=网关注入的登录用户 ID。
  14529. title: created by
  14530. error_excerpt:
  14531. type: string
  14532. description: 错误内容摘要(超 100 字截断;全文只在详情, 复制第二份)
  14533. title: error excerpt
  14534. matched:
  14535. type: boolean
  14536. description: false ⇒ 标「未关联到系统账目」
  14537. title: 是否匹配
  14538. required:
  14539. - correction_id
  14540. - created_at
  14541. - period
  14542. - ref_label
  14543. - region_label
  14544. - operator_name
  14545. - error_excerpt
  14546. - matched
  14547. description: CorrectionRow 业务数据
  14548. title: CorrectionRow
  14549. CostAmountListResult:
  14550. type: object
  14551. properties:
  14552. items:
  14553. type: array
  14554. items:
  14555. $ref: '#/components/schemas/CostAmountPivotRow'
  14556. title: 列表项
  14557. description: 列表项。
  14558. total:
  14559. type: integer
  14560. nullable: true
  14561. title: 总条数
  14562. description: 总条数。
  14563. page:
  14564. type: integer
  14565. nullable: true
  14566. title: 页码
  14567. description: 页码。
  14568. page_size:
  14569. type: integer
  14570. nullable: true
  14571. title: 每页条数
  14572. description: 每页条数。
  14573. available:
  14574. type: boolean
  14575. nullable: true
  14576. description: '`false`=一条透视行都配不出来,`message` 说明原因。'
  14577. title: available
  14578. message:
  14579. type: string
  14580. nullable: true
  14581. title: 说明
  14582. description: 说明。
  14583. rows:
  14584. type: array
  14585. items:
  14586. $ref: '#/components/schemas/CostAmountRow'
  14587. nullable: true
  14588. title: 行集
  14589. description: 行集。
  14590. rows_total:
  14591. type: number
  14592. nullable: true
  14593. title: rows total
  14594. description: 字段 rows_total。
  14595. rows_unattributed:
  14596. type: array
  14597. items:
  14598. $ref: '#/components/schemas/CostAmountRow'
  14599. nullable: true
  14600. title: rows unattributed
  14601. description: 字段 rows_unattributed。
  14602. rows_unattributed_total:
  14603. type: number
  14604. nullable: true
  14605. title: rows unattributed total
  14606. description: 字段 rows_unattributed_total。
  14607. required:
  14608. - items
  14609. description: CostAmountListResult 业务数据
  14610. title: CostAmountListResult
  14611. CostAmountPivotRow:
  14612. type: object
  14613. properties:
  14614. province_node_id:
  14615. type: string
  14616. title: province node id
  14617. description: 字段 province_node_id。
  14618. province_name:
  14619. type: string
  14620. nullable: true
  14621. title: province name
  14622. description: 字段 province_name。
  14623. operator_id:
  14624. type: string
  14625. title: 运营商 ID
  14626. description: 运营商 ID。
  14627. operator_name:
  14628. type: string
  14629. nullable: true
  14630. title: operator name
  14631. description: 字段 operator_name。
  14632. items:
  14633. type: array
  14634. items:
  14635. $ref: '#/components/schemas/CostAmountRow'
  14636. title: 列表项
  14637. description: 列表项。
  14638. required:
  14639. - province_node_id
  14640. - province_name
  14641. - operator_id
  14642. - operator_name
  14643. - items
  14644. description: CostAmountPivotRow 业务数据
  14645. title: CostAmountPivotRow
  14646. CostAmountRow:
  14647. type: object
  14648. properties:
  14649. amount_id:
  14650. type: string
  14651. nullable: true
  14652. title: amount id
  14653. description: 字段 amount_id。
  14654. province_node_id:
  14655. type: string
  14656. title: province node id
  14657. description: 字段 province_node_id。
  14658. operator_id:
  14659. type: string
  14660. title: 运营商 ID
  14661. description: 运营商 ID。
  14662. cost_item_id:
  14663. type: string
  14664. title: cost item id
  14665. description: 字段 cost_item_id。
  14666. item_name:
  14667. type: string
  14668. nullable: true
  14669. title: item name
  14670. description: 字段 item_name。
  14671. category:
  14672. type: string
  14673. nullable: true
  14674. title: category
  14675. description: 字段 category。
  14676. province_name:
  14677. type: string
  14678. nullable: true
  14679. description: 名称无来源(后端 区域名称表)⇒ `null`=后端未下发, 由前端造名称。
  14680. title: province name
  14681. operator_name:
  14682. type: string
  14683. nullable: true
  14684. title: operator name
  14685. description: 字段 operator_name。
  14686. period:
  14687. type: string
  14688. nullable: true
  14689. title: 账期
  14690. description: 字段 period。
  14691. amount_cents:
  14692. type: integer
  14693. nullable: true
  14694. title: 金额(分)
  14695. description: 金额(分)。
  14696. row_version:
  14697. oneOf:
  14698. - type: number
  14699. - type: string
  14700. nullable: true
  14701. title: 乐观锁版本
  14702. description: 乐观锁版本。
  14703. required:
  14704. - province_node_id
  14705. - operator_id
  14706. - cost_item_id
  14707. - amount_cents
  14708. - row_version
  14709. description: 成本金额明细行
  14710. title: CostAmountRow
  14711. CostAmountSaveResult:
  14712. type: object
  14713. properties:
  14714. province_node_id:
  14715. type: string
  14716. title: province node id
  14717. description: 字段 province_node_id。
  14718. operator_id:
  14719. type: string
  14720. title: 运营商 ID
  14721. description: 运营商 ID。
  14722. saved:
  14723. type: boolean
  14724. title: 是否已保存
  14725. description: 是否已保存。
  14726. deleted_count:
  14727. type: integer
  14728. nullable: true
  14729. description: 留空被删除的差异行数
  14730. title: deleted count
  14731. required:
  14732. - province_node_id
  14733. - operator_id
  14734. - saved
  14735. description: CostAmountSaveResult 业务数据
  14736. title: CostAmountSaveResult
  14737. CostItemDeleteResult:
  14738. type: object
  14739. properties:
  14740. deleted:
  14741. type: boolean
  14742. title: 是否已删除
  14743. description: 是否已删除。
  14744. cost_item_id:
  14745. type: string
  14746. nullable: true
  14747. title: cost item id
  14748. description: 字段 cost_item_id。
  14749. audit_written:
  14750. type: boolean
  14751. nullable: true
  14752. title: 是否已写审计
  14753. description: 是否已写审计。
  14754. note:
  14755. type: string
  14756. nullable: true
  14757. title: 备注
  14758. description: 备注。
  14759. required:
  14760. - deleted
  14761. description: CostItemDeleteResult 业务数据
  14762. title: CostItemDeleteResult
  14763. CostItemListResult:
  14764. type: object
  14765. properties:
  14766. items:
  14767. type: array
  14768. items:
  14769. $ref: '#/components/schemas/CostItemRow'
  14770. title: 列表项
  14771. description: 列表项。
  14772. total:
  14773. type: integer
  14774. nullable: true
  14775. title: 总条数
  14776. description: 总条数。
  14777. page:
  14778. type: integer
  14779. nullable: true
  14780. title: 页码
  14781. description: 页码。
  14782. page_size:
  14783. type: integer
  14784. nullable: true
  14785. title: 每页条数
  14786. description: 每页条数。
  14787. columns_pending:
  14788. type: array
  14789. items:
  14790. type: string
  14791. title: columns_pending元素
  14792. nullable: true
  14793. description: 下发的列名清单(dev 库尚未补列 ⇒ 名称之外的字段可能整体缺位)。
  14794. title: columns pending
  14795. required:
  14796. - items
  14797. description: CostItemListResult 业务数据
  14798. title: CostItemListResult
  14799. CostItemRow:
  14800. type: object
  14801. properties:
  14802. cost_item_id:
  14803. type: string
  14804. title: cost item id
  14805. description: 字段 cost_item_id。
  14806. item_id:
  14807. type: string
  14808. nullable: true
  14809. title: item id
  14810. description: 字段 item_id。
  14811. category:
  14812. type: string
  14813. nullable: true
  14814. description: 类别(`intl_resource`/`device_purchase`/`project_fee`);`null`=历史行未灌值 ⇒「后端未下发」。
  14815. title: category
  14816. item_name:
  14817. type: string
  14818. title: item name
  14819. description: 字段 item_name。
  14820. billing_unit:
  14821. type: string
  14822. nullable: true
  14823. description: 计费单位(`per_customer`/`per_account`/`per_copy`);同上可为 `null`。
  14824. title: billing unit
  14825. is_amortized:
  14826. type: boolean
  14827. nullable: true
  14828. title: is amortized
  14829. description: 字段 is_amortized。
  14830. amortization_months:
  14831. type: number
  14832. nullable: true
  14833. title: amortization months
  14834. description: 字段 amortization_months。
  14835. deduct_from_base:
  14836. type: boolean
  14837. nullable: true
  14838. title: deduct from base
  14839. description: 字段 deduct_from_base。
  14840. remark:
  14841. type: string
  14842. nullable: true
  14843. title: 备注
  14844. description: 备注。
  14845. status:
  14846. type: string
  14847. title: 状态
  14848. description: 状态。
  14849. row_version:
  14850. oneOf:
  14851. - type: number
  14852. - type: string
  14853. nullable: true
  14854. title: 乐观锁版本
  14855. description: 乐观锁版本。
  14856. cycle:
  14857. type: string
  14858. nullable: true
  14859. description: 周期(设计册 分成:一期恒 `monthly`);`null`=旧库未补列 ⇒「后端未下发」。
  14860. title: cycle
  14861. configured_row_count:
  14862. type: integer
  14863. nullable: true
  14864. description: 该成本项名下金额行总数(含缺省份/运营商轴的存量行;后端 `LEFT JOIN` 现算)。
  14865. title: configured row count
  14866. configured_combo_count:
  14867. type: integer
  14868. nullable: true
  14869. description: 已配金额的「省份×运营商」组合数(后端 `LEFT JOIN` 现算;0=一条都没配)。
  14870. title: configured combo count
  14871. configured_total_cents:
  14872. type: integer
  14873. nullable: true
  14874. description: 这些组合的月合计(整数分)。
  14875. title: configured total cents
  14876. referring_plan_count:
  14877. type: integer
  14878. nullable: true
  14879. description: 被套餐档引用份数(按 `plan_cost_item.cost_item_id` 强引用现算)。
  14880. title: referring plan count
  14881. referring_plans:
  14882. type: array
  14883. items:
  14884. type: object
  14885. properties:
  14886. plan_id:
  14887. type: string
  14888. plan_name:
  14889. type: string
  14890. nullable: true
  14891. required:
  14892. - plan_id
  14893. - plan_name
  14894. nullable: true
  14895. description: 引用该成本项的套餐档;`[]`=真的没有档位引用,`null`=后端未下发该概况。
  14896. title: referring plans
  14897. required:
  14898. - cost_item_id
  14899. - category
  14900. - item_name
  14901. - billing_unit
  14902. - is_amortized
  14903. - amortization_months
  14904. - deduct_from_base
  14905. - remark
  14906. - status
  14907. - row_version
  14908. description: CostItemRow 业务数据
  14909. title: CostItemRow
  14910. CostItemSaveResult:
  14911. type: object
  14912. properties:
  14913. cost_item_id:
  14914. type: string
  14915. title: cost item id
  14916. description: 字段 cost_item_id。
  14917. saved:
  14918. type: boolean
  14919. title: 是否已保存
  14920. description: 是否已保存。
  14921. required:
  14922. - cost_item_id
  14923. - saved
  14924. description: CostItemSaveResult 业务数据
  14925. title: CostItemSaveResult
  14926. CustomerAttributionResult:
  14927. type: object
  14928. properties:
  14929. customer_id:
  14930. type: string
  14931. title: 客户 ID
  14932. description: 客户 ID。
  14933. updated:
  14934. type: boolean
  14935. title: 是否已更新
  14936. description: 是否已更新。
  14937. blocked:
  14938. type: array
  14939. items:
  14940. type: string
  14941. title: 阻塞项元素
  14942. title: 阻塞项
  14943. description: 阻塞项。
  14944. operator_id:
  14945. type: string
  14946. nullable: true
  14947. title: 运营商 ID
  14948. description: 运营商 ID。
  14949. partner_id:
  14950. type: string
  14951. nullable: true
  14952. title: 合伙人 ID
  14953. description: 合伙人 ID。
  14954. required:
  14955. - customer_id
  14956. - updated
  14957. - blocked
  14958. description: CustomerAttributionResult 业务数据
  14959. title: CustomerAttributionResult
  14960. CustomerCreateResult:
  14961. type: object
  14962. properties:
  14963. customer_id:
  14964. type: string
  14965. title: 客户 ID
  14966. description: 客户 ID。
  14967. user_id:
  14968. type: string
  14969. nullable: true
  14970. title: 用户 ID
  14971. description: 用户 ID。
  14972. activation_code:
  14973. type: string
  14974. nullable: true
  14975. title: activation code
  14976. description: 字段 activation_code。
  14977. required:
  14978. - customer_id
  14979. description: CustomerCreateResult 业务数据
  14980. title: CustomerCreateResult
  14981. CustomerDeletePrecheck:
  14982. type: object
  14983. properties:
  14984. customer_id:
  14985. type: string
  14986. nullable: true
  14987. title: 客户 ID
  14988. description: 客户 ID。
  14989. can_delete:
  14990. type: boolean
  14991. title: can delete
  14992. description: 字段 can_delete。
  14993. blockers:
  14994. type: array
  14995. items:
  14996. type: string
  14997. title: blockers元素
  14998. title: blockers
  14999. description: 字段 blockers。
  15000. verified_checks:
  15001. type: array
  15002. items:
  15003. type: object
  15004. properties:
  15005. key:
  15006. type: string
  15007. label:
  15008. type: string
  15009. count:
  15010. type: number
  15011. blocking:
  15012. type: boolean
  15013. required:
  15014. - key
  15015. - label
  15016. - count
  15017. - blocking
  15018. nullable: true
  15019. title: verified checks
  15020. description: 字段 verified_checks。
  15021. unverifiable_checks:
  15022. type: array
  15023. items:
  15024. type: object
  15025. properties:
  15026. key:
  15027. type: string
  15028. label:
  15029. type: string
  15030. nullable: true
  15031. why:
  15032. type: string
  15033. nullable: true
  15034. reason:
  15035. type: string
  15036. nullable: true
  15037. required:
  15038. - key
  15039. nullable: true
  15040. title: unverifiable checks
  15041. description: 字段 unverifiable_checks。
  15042. precheck_version:
  15043. type: string
  15044. title: precheck version
  15045. description: 字段 precheck_version。
  15046. message:
  15047. type: string
  15048. nullable: true
  15049. title: 说明
  15050. description: 说明。
  15051. required:
  15052. - can_delete
  15053. - blockers
  15054. - precheck_version
  15055. description: CustomerDeletePrecheck 业务数据
  15056. title: CustomerDeletePrecheck
  15057. CustomerDeleteResult:
  15058. type: object
  15059. properties:
  15060. customer_id:
  15061. type: string
  15062. title: 客户 ID
  15063. description: 客户 ID。
  15064. deleted:
  15065. type: boolean
  15066. title: 是否已删除
  15067. description: 是否已删除。
  15068. blockers:
  15069. type: array
  15070. items:
  15071. type: string
  15072. title: blockers元素
  15073. nullable: true
  15074. title: blockers
  15075. description: 字段 blockers。
  15076. verified_checks:
  15077. type: array
  15078. items:
  15079. type: object
  15080. properties:
  15081. key:
  15082. type: string
  15083. label:
  15084. type: string
  15085. count:
  15086. type: number
  15087. blocking:
  15088. type: boolean
  15089. required:
  15090. - key
  15091. - label
  15092. - count
  15093. - blocking
  15094. nullable: true
  15095. title: verified checks
  15096. description: 字段 verified_checks。
  15097. unverifiable_checks:
  15098. type: array
  15099. items:
  15100. type: object
  15101. properties:
  15102. key:
  15103. type: string
  15104. label:
  15105. type: string
  15106. nullable: true
  15107. why:
  15108. type: string
  15109. nullable: true
  15110. reason:
  15111. type: string
  15112. nullable: true
  15113. required:
  15114. - key
  15115. nullable: true
  15116. title: unverifiable checks
  15117. description: 字段 unverifiable_checks。
  15118. precheck_version:
  15119. type: string
  15120. nullable: true
  15121. title: precheck version
  15122. description: 字段 precheck_version。
  15123. required:
  15124. - customer_id
  15125. - deleted
  15126. description: CustomerDeleteResult 业务数据
  15127. title: CustomerDeleteResult
  15128. CustomerDetail:
  15129. type: object
  15130. properties:
  15131. customer:
  15132. type: object
  15133. properties:
  15134. customer_id:
  15135. type: string
  15136. customer_name:
  15137. type: string
  15138. subject_type:
  15139. type: string
  15140. operator_id:
  15141. type: string
  15142. nullable: true
  15143. operator_name:
  15144. type: string
  15145. nullable: true
  15146. partner_id:
  15147. type: string
  15148. nullable: true
  15149. partner_name:
  15150. type: string
  15151. nullable: true
  15152. acct_status:
  15153. type: string
  15154. quota_cents:
  15155. type: string
  15156. created_at:
  15157. type: string
  15158. nullable: true
  15159. updated_at:
  15160. type: string
  15161. nullable: true
  15162. contact_name:
  15163. type: string
  15164. nullable: true
  15165. contact_mobile:
  15166. type: string
  15167. nullable: true
  15168. tech_contact_name:
  15169. type: string
  15170. nullable: true
  15171. tech_contact_mobile:
  15172. type: string
  15173. nullable: true
  15174. finance_contact_name:
  15175. type: string
  15176. nullable: true
  15177. finance_contact_mobile:
  15178. type: string
  15179. nullable: true
  15180. remark:
  15181. type: string
  15182. nullable: true
  15183. address:
  15184. type: string
  15185. nullable: true
  15186. identity_no_masked:
  15187. type: string
  15188. nullable: true
  15189. row_version:
  15190. type: number
  15191. nullable: true
  15192. required:
  15193. - customer_id
  15194. - customer_name
  15195. - subject_type
  15196. - operator_id
  15197. - operator_name
  15198. - partner_id
  15199. - partner_name
  15200. - acct_status
  15201. - quota_cents
  15202. - created_at
  15203. title: customer
  15204. description: 字段 customer。
  15205. team_ids:
  15206. type: array
  15207. items:
  15208. type: string
  15209. title: team_ids元素
  15210. description: 当期承接团队(运维团队;历史脏数据可能回显 >1,前端按实呈现并提示改派)。
  15211. title: team ids
  15212. sub_account_count:
  15213. type: integer
  15214. title: sub account count
  15215. description: 字段 sub_account_count。
  15216. region_mounts:
  15217. type: array
  15218. items:
  15219. type: object
  15220. properties:
  15221. parent_node_id:
  15222. type: string
  15223. hierarchy_id:
  15224. type: string
  15225. terminal_state:
  15226. type: string
  15227. path_name:
  15228. type: string
  15229. nullable: true
  15230. required:
  15231. - parent_node_id
  15232. - hierarchy_id
  15233. - terminal_state
  15234. description: '* 挂载区域。`path_name`=层级真源 `bos_region_meta.path_name`(形如「全网/上海市/市辖区/浦东新区」), * 后端
  15235. 随挂载点下发:`/region/tree@v1` 只回省级两层,挂载点常是市/区县节点 ⇒ * 光靠区域树查名必查不到(客户档案「所属区域」显示「—」实证)。未定级时后端回落为节点
  15236. ID 本身。'
  15237. title: region mounts
  15238. license:
  15239. type: object
  15240. properties:
  15241. file_name:
  15242. type: string
  15243. nullable: true
  15244. status:
  15245. type: string
  15246. enum:
  15247. - none
  15248. - viewable
  15249. - expired
  15250. view_url:
  15251. type: string
  15252. nullable: true
  15253. view_url_expires_at:
  15254. type: string
  15255. nullable: true
  15256. required:
  15257. - file_name
  15258. - status
  15259. - view_url
  15260. - view_url_expires_at
  15261. nullable: true
  15262. description: "* 登记材料摘要( 第八分区,`` )——一次读口给全, 为影像另发请求。 * · `status='none'`:未登记影像(个人/个体工商户恒此态,页面显示「不适用」;企业也可能未登记——影像选填);
  15263. * · `status='viewable'`:`view_url` 为平台 `unified-oss` 短时效下载签名(TTL 取平台默认), * 「查看」与「下载」共用同一张签名(
  15264. 前端拼地址、 另签第二张); * · `status='expired'`:`now − customer.created_at > license_image_retention_days`(默认
  15265. 3650 天, * 起算点=建档日、重新上传不重置)⇒ 两格为 `null`,页面固定渲染「已超期」空态。 * 对象键 出现在响应体——前端 自行拼 URL。"
  15266. title: 登记材料
  15267. required:
  15268. - customer
  15269. - team_ids
  15270. - sub_account_count
  15271. - region_mounts
  15272. description: CustomerDetail 业务数据
  15273. title: CustomerDetail
  15274. CustomerHistoryResult:
  15275. type: object
  15276. properties:
  15277. items:
  15278. type: array
  15279. items:
  15280. $ref: '#/components/schemas/CustomerHistoryRow'
  15281. title: 列表项
  15282. description: 列表项。
  15283. total:
  15284. type: integer
  15285. title: 总条数
  15286. description: 总条数。
  15287. page:
  15288. type: integer
  15289. nullable: true
  15290. title: 页码
  15291. description: 页码。
  15292. page_size:
  15293. type: integer
  15294. nullable: true
  15295. title: 每页条数
  15296. description: 每页条数。
  15297. message:
  15298. type: string
  15299. nullable: true
  15300. title: 说明
  15301. description: 说明。
  15302. required:
  15303. - items
  15304. - total
  15305. description: CustomerHistoryResult 业务数据
  15306. title: CustomerHistoryResult
  15307. CustomerHistoryRow:
  15308. type: object
  15309. properties:
  15310. field_key:
  15311. type: string
  15312. title: field key
  15313. description: 字段 field_key。
  15314. old_value:
  15315. type: string
  15316. nullable: true
  15317. title: old value
  15318. description: 字段 old_value。
  15319. new_value:
  15320. type: string
  15321. nullable: true
  15322. title: new value
  15323. description: 字段 new_value。
  15324. operator:
  15325. type: string
  15326. nullable: true
  15327. title: operator
  15328. description: 字段 operator。
  15329. changed_at:
  15330. type: string
  15331. nullable: true
  15332. title: changed at
  15333. description: 字段 changed_at。
  15334. change_basis:
  15335. type: string
  15336. nullable: true
  15337. title: 变更依据
  15338. description: 字段 change_basis。
  15339. source:
  15340. type: string
  15341. title: 来源
  15342. description: 来源。
  15343. required:
  15344. - field_key
  15345. - old_value
  15346. - new_value
  15347. - operator
  15348. - changed_at
  15349. - change_basis
  15350. - source
  15351. description: CustomerHistoryRow 业务数据
  15352. title: CustomerHistoryRow
  15353. CustomerListResult:
  15354. type: object
  15355. properties:
  15356. items:
  15357. type: array
  15358. items:
  15359. $ref: '#/components/schemas/CustomerListRow'
  15360. title: 列表项
  15361. description: 列表项。
  15362. total:
  15363. type: integer
  15364. title: 总条数
  15365. description: 总条数。
  15366. page:
  15367. type: integer
  15368. nullable: true
  15369. title: 页码
  15370. description: 页码。
  15371. page_size:
  15372. type: integer
  15373. nullable: true
  15374. title: 每页条数
  15375. description: 每页条数。
  15376. required:
  15377. - items
  15378. - total
  15379. description: CustomerListResult 业务数据
  15380. title: CustomerListResult
  15381. CustomerListRow:
  15382. type: object
  15383. properties:
  15384. customer_id:
  15385. type: string
  15386. title: 客户 ID
  15387. description: 客户 ID。
  15388. customer_name:
  15389. type: string
  15390. title: 客户名称
  15391. description: 客户名称。
  15392. subject_type:
  15393. type: string
  15394. title: 主体类型
  15395. description: 主体类型。
  15396. operator_id:
  15397. type: string
  15398. nullable: true
  15399. title: 运营商 ID
  15400. description: 运营商 ID。
  15401. operator_name:
  15402. type: string
  15403. nullable: true
  15404. title: operator name
  15405. description: 字段 operator_name。
  15406. partner_id:
  15407. type: string
  15408. nullable: true
  15409. title: 合伙人 ID
  15410. description: 合伙人 ID。
  15411. partner_name:
  15412. type: string
  15413. nullable: true
  15414. title: partner name
  15415. description: 字段 partner_name。
  15416. acct_status:
  15417. type: string
  15418. title: 账号状态
  15419. description: 账号状态。
  15420. quota_cents:
  15421. type: string
  15422. title: quota cents
  15423. description: 字段 quota_cents。
  15424. identity_no_masked:
  15425. type: string
  15426. nullable: true
  15427. description: 脱敏识别号(后端经平台 keybox 解密后掩码下发;`null`=该客户未登记识别号)。
  15428. title: identity no masked
  15429. parent_node_id:
  15430. type: string
  15431. nullable: true
  15432. description: 客户挂载的区域节点 ID(后端 扩展自 customer_region_mount.parent_node_id)。
  15433. title: 父节点 ID
  15434. region_path:
  15435. type: string
  15436. nullable: true
  15437. description: '* 挂载区域的完整路径(后端 扩展:`customer_region_mount` LEFT JOIN * `bos_region_meta.path_name`,未定级时回落节点
  15438. ID;口径同 `region_mounts.path_name`)。 * 区域树只下发授权范围内两层,市/区县级挂载点 能在树里查到名 ⇒ 列表侧必须后端下发。'
  15439. title: region path
  15440. team_ids:
  15441. type: array
  15442. items:
  15443. type: string
  15444. title: team_ids元素
  15445. description: 运维团队 ID(;历史脏数据可能回显 >1,前端按实呈现并提示改派)。
  15446. title: team ids
  15447. ops_team_names:
  15448. type: array
  15449. items:
  15450. type: string
  15451. title: ops_team_names元素
  15452. nullable: true
  15453. description: 运维团队中文名数组(后端 JOIN ops_team 批量查)。
  15454. title: ops team names
  15455. plan_names:
  15456. type: array
  15457. items:
  15458. type: string
  15459. title: plan_names元素
  15460. nullable: true
  15461. description: 在用订阅的套餐名数组(后端批量查 order,status ∈ pending/active;空数组=无在用订阅)。
  15462. title: plan names
  15463. sub_account_count:
  15464. type: integer
  15465. title: sub account count
  15466. description: 字段 sub_account_count。
  15467. created_at:
  15468. type: string
  15469. nullable: true
  15470. title: 创建时间
  15471. description: 创建时间。
  15472. required:
  15473. - customer_id
  15474. - customer_name
  15475. - subject_type
  15476. - operator_id
  15477. - operator_name
  15478. - partner_id
  15479. - partner_name
  15480. - acct_status
  15481. - quota_cents
  15482. - team_ids
  15483. - sub_account_count
  15484. - created_at
  15485. description: CustomerListRow 业务数据
  15486. title: CustomerListRow
  15487. CustomerMoveRegionResult:
  15488. type: object
  15489. properties:
  15490. customer_id:
  15491. type: string
  15492. title: 客户 ID
  15493. description: 客户 ID。
  15494. moved:
  15495. type: boolean
  15496. title: moved
  15497. description: 字段 moved。
  15498. blocked:
  15499. type: array
  15500. items:
  15501. type: string
  15502. title: 阻塞项元素
  15503. title: 阻塞项
  15504. description: 阻塞项。
  15505. new_region_node_id:
  15506. type: string
  15507. nullable: true
  15508. title: new region node id
  15509. description: 字段 new_region_node_id。
  15510. required:
  15511. - customer_id
  15512. - moved
  15513. - blocked
  15514. description: CustomerMoveRegionResult 业务数据
  15515. title: CustomerMoveRegionResult
  15516. CustomerOption:
  15517. type: object
  15518. properties:
  15519. customer_id:
  15520. type: string
  15521. title: 客户 ID
  15522. description: 客户 ID。
  15523. customer_name:
  15524. type: string
  15525. title: 客户名称
  15526. description: 客户名称。
  15527. required:
  15528. - customer_id
  15529. - customer_name
  15530. description: CustomerOption 业务数据
  15531. title: CustomerOption
  15532. CustomerUpdateResult:
  15533. type: object
  15534. properties:
  15535. customer_id:
  15536. type: string
  15537. title: 客户 ID
  15538. description: 客户 ID。
  15539. updated:
  15540. type: boolean
  15541. title: 是否已更新
  15542. description: 是否已更新。
  15543. required:
  15544. - customer_id
  15545. - updated
  15546. description: CustomerUpdateResult 业务数据
  15547. title: CustomerUpdateResult
  15548. DelegateResult:
  15549. type: object
  15550. properties:
  15551. ticket_id:
  15552. type: string
  15553. title: 工单 ID
  15554. description: 工单 ID。
  15555. assignee_user_id:
  15556. type: string
  15557. title: 处理人用户 ID
  15558. description: 处理人用户 ID。
  15559. assignee_snapshot_name:
  15560. type: string
  15561. title: assignee snapshot name
  15562. description: 字段 assignee_snapshot_name。
  15563. delegate_from_user_id:
  15564. type: string
  15565. title: delegate from user id
  15566. description: 字段 delegate_from_user_id。
  15567. delegated_at:
  15568. type: string
  15569. title: delegated at
  15570. description: 字段 delegated_at。
  15571. status:
  15572. $ref: '#/components/schemas/TicketStatus'
  15573. required:
  15574. - ticket_id
  15575. - assignee_user_id
  15576. - assignee_snapshot_name
  15577. - delegate_from_user_id
  15578. - delegated_at
  15579. - status
  15580. description: DelegateResult 业务数据
  15581. title: DelegateResult
  15582. DeliveryExportResult:
  15583. type: object
  15584. properties:
  15585. file_name:
  15586. type: string
  15587. title: 文件名
  15588. description: 文件名。
  15589. oss_key:
  15590. type: string
  15591. title: 对象键
  15592. description: 对象键。
  15593. row_count:
  15594. type: integer
  15595. title: row count
  15596. description: 字段 row_count。
  15597. limit:
  15598. type: number
  15599. title: limit
  15600. description: 字段 limit。
  15601. truncated:
  15602. type: boolean
  15603. title: 是否截断
  15604. description: 是否截断。
  15605. required:
  15606. - file_name
  15607. - oss_key
  15608. - row_count
  15609. - limit
  15610. - truncated
  15611. description: '`POST /delivery/export@v1`'
  15612. title: DeliveryExportResult
  15613. DeliveryListResult:
  15614. type: object
  15615. properties:
  15616. items:
  15617. type: array
  15618. items:
  15619. $ref: '#/components/schemas/DeliveryRow'
  15620. title: 列表项
  15621. description: 列表项。
  15622. total:
  15623. type: integer
  15624. title: 总条数
  15625. description: 总条数。
  15626. page:
  15627. type: integer
  15628. nullable: true
  15629. title: 页码
  15630. description: 页码。
  15631. page_size:
  15632. type: integer
  15633. nullable: true
  15634. title: 每页条数
  15635. description: 每页条数。
  15636. state:
  15637. type: string
  15638. nullable: true
  15639. description: 本次生效的三态过滤(默认 `in_use`=在用+已到期待回收)。
  15640. title: state
  15641. include_released:
  15642. type: boolean
  15643. nullable: true
  15644. title: include released
  15645. description: 字段 include_released。
  15646. required:
  15647. - items
  15648. - total
  15649. description: '`POST /delivery/list@v1`'
  15650. title: DeliveryListResult
  15651. DeliveryRow:
  15652. type: object
  15653. properties:
  15654. assign_id:
  15655. type: string
  15656. title: assign id
  15657. description: 字段 assign_id。
  15658. state:
  15659. type: string
  15660. enum:
  15661. - in_use
  15662. - pending_release
  15663. - released
  15664. description: 三态:`in_use`(在用)/`pending_release`(已到期待回收)/`released`(已回收)。
  15665. title: state
  15666. customer_id:
  15667. type: string
  15668. title: 客户 ID
  15669. description: 客户 ID。
  15670. customer_name:
  15671. type: string
  15672. nullable: true
  15673. title: 客户名称
  15674. description: 客户名称。
  15675. subscription_id:
  15676. type: string
  15677. title: 订阅 ID
  15678. description: 订阅 ID。
  15679. plan_name:
  15680. type: string
  15681. nullable: true
  15682. title: 档位名称
  15683. description: 档位名称。
  15684. plan_family:
  15685. type: string
  15686. nullable: true
  15687. description: 交付形态:`link`(跨境)/`addon`(附加)。
  15688. title: plan family
  15689. parent_subscription_id:
  15690. type: string
  15691. nullable: true
  15692. description: 附加订阅的父单号(前端只标注「叠加于 ⟨父单号⟩」, 折叠嵌套)。
  15693. title: parent subscription id
  15694. sub_start_date:
  15695. type: string
  15696. nullable: true
  15697. title: sub start date
  15698. description: 字段 sub_start_date。
  15699. sub_end_date:
  15700. type: string
  15701. nullable: true
  15702. title: sub end date
  15703. description: 字段 sub_end_date。
  15704. opened_at:
  15705. type: string
  15706. nullable: true
  15707. description: 开通日(订阅 `actual_opened_at`)。
  15708. title: opened at
  15709. sub_account_id:
  15710. type: string
  15711. title: sub account id
  15712. description: 字段 sub_account_id。
  15713. username:
  15714. type: string
  15715. nullable: true
  15716. title: 登录名
  15717. description: 登录名。
  15718. display_name:
  15719. type: string
  15720. nullable: true
  15721. title: 显示名
  15722. description: 显示名。
  15723. net_account:
  15724. type: string
  15725. nullable: true
  15726. title: net account
  15727. description: 字段 net_account。
  15728. account_status:
  15729. type: string
  15730. nullable: true
  15731. title: account status
  15732. description: 字段 account_status。
  15733. overseas_ip:
  15734. type: string
  15735. nullable: true
  15736. title: overseas ip
  15737. description: 字段 overseas_ip。
  15738. ip_egress:
  15739. type: string
  15740. nullable: true
  15741. title: ip egress
  15742. description: 字段 ip_egress。
  15743. ip_type:
  15744. type: string
  15745. nullable: true
  15746. title: ip type
  15747. description: 字段 ip_type。
  15748. declared_bandwidth_mbps:
  15749. type: integer
  15750. nullable: true
  15751. description: 台账申报带宽(IP 侧口径;跨境账号另见 `plan_bandwidth_*`)。
  15752. title: declared bandwidth mbps
  15753. activated_at:
  15754. type: string
  15755. nullable: true
  15756. title: 激活时间
  15757. description: 激活时间。
  15758. released_at:
  15759. type: string
  15760. nullable: true
  15761. title: released at
  15762. description: 字段 released_at。
  15763. release_reason:
  15764. type: string
  15765. nullable: true
  15766. title: release reason
  15767. description: 字段 release_reason。
  15768. source_ticket_no:
  15769. type: string
  15770. nullable: true
  15771. description: 来源回填单号(`ticket.ticket_no`)。
  15772. title: source ticket no
  15773. plan_bandwidth_committed:
  15774. type: boolean
  15775. nullable: true
  15776. title: plan bandwidth committed
  15777. description: 字段 plan_bandwidth_committed。
  15778. plan_bandwidth_up_mbps:
  15779. type: integer
  15780. nullable: true
  15781. title: plan bandwidth up mbps
  15782. description: 字段 plan_bandwidth_up_mbps。
  15783. plan_bandwidth_down_mbps:
  15784. type: integer
  15785. nullable: true
  15786. title: plan bandwidth down mbps
  15787. description: 字段 plan_bandwidth_down_mbps。
  15788. contract_exits:
  15789. type: array
  15790. items:
  15791. type: string
  15792. title: contract_exits元素
  15793. nullable: true
  15794. description: 合同出口集合(`subscription.line_exits`)。
  15795. title: contract exits
  15796. measured_egress:
  15797. type: string
  15798. nullable: true
  15799. description: 实测出口(`ticket_backfill_route.egress_pop`)。
  15800. title: measured egress
  15801. exit_mismatch:
  15802. type: boolean
  15803. nullable: true
  15804. description: '`true`=实测出口不在合同出口集合内(前端两值同显并标红);`null`=无从比对。'
  15805. title: exit mismatch
  15806. intranet_ip:
  15807. type: string
  15808. nullable: true
  15809. title: intranet ip
  15810. description: 字段 intranet_ip。
  15811. measured_down_mbps:
  15812. type: integer
  15813. nullable: true
  15814. title: measured down mbps
  15815. description: 字段 measured_down_mbps。
  15816. measured_up_mbps:
  15817. type: integer
  15818. nullable: true
  15819. title: measured up mbps
  15820. description: 字段 measured_up_mbps。
  15821. measured_at:
  15822. type: string
  15823. nullable: true
  15824. description: 实测日期(列头日期;`null`=该账号无成功回填)。
  15825. title: measured at
  15826. required:
  15827. - assign_id
  15828. - state
  15829. - customer_id
  15830. - customer_name
  15831. - subscription_id
  15832. - plan_name
  15833. - plan_family
  15834. - parent_subscription_id
  15835. - sub_start_date
  15836. - sub_end_date
  15837. - opened_at
  15838. - sub_account_id
  15839. - username
  15840. - display_name
  15841. - net_account
  15842. - account_status
  15843. - overseas_ip
  15844. - ip_egress
  15845. - ip_type
  15846. - declared_bandwidth_mbps
  15847. - activated_at
  15848. - released_at
  15849. - release_reason
  15850. - source_ticket_no
  15851. - plan_bandwidth_committed
  15852. - plan_bandwidth_up_mbps
  15853. - plan_bandwidth_down_mbps
  15854. - contract_exits
  15855. - measured_egress
  15856. - exit_mismatch
  15857. - intranet_ip
  15858. - measured_down_mbps
  15859. - measured_up_mbps
  15860. - measured_at
  15861. description: 交付现状行 [实](`POST /delivery/list@v1`)。 三类字段三个来源, 混读: -
  15862. 在册资源(`overseas_ip`/`ip_egress`/`declared_bandwidth_mbps`/账号)=台账 `released_at IS NULL` 的行; -
  15863. 账号资料与合同口径(`display_name`/`net_account`/`accoun
  15864. title: DeliveryRow
  15865. DeliveryTicketOutcome:
  15866. type: object
  15867. properties:
  15868. kind:
  15869. type: string
  15870. nullable: true
  15871. title: 类型
  15872. description: 类型。
  15873. ticket_id:
  15874. type: string
  15875. nullable: true
  15876. title: 工单 ID
  15877. description: 工单 ID。
  15878. ticket_no:
  15879. type: string
  15880. nullable: true
  15881. title: 工单号
  15882. description: 工单号。
  15883. items:
  15884. type: number
  15885. nullable: true
  15886. title: 列表项
  15887. description: 列表项。
  15888. note:
  15889. type: string
  15890. nullable: true
  15891. title: 备注
  15892. description: 备注。
  15893. failed:
  15894. type: boolean
  15895. nullable: true
  15896. title: failed
  15897. description: 字段 failed。
  15898. description: 订阅保存触发的交付建单结论(`delivery_ticket`)。
  15899. title: DeliveryTicketOutcome
  15900. DispatchResult:
  15901. type: object
  15902. properties:
  15903. team_id:
  15904. type: string
  15905. title: 团队 ID
  15906. description: 团队 ID。
  15907. scanned:
  15908. type: number
  15909. title: scanned
  15910. description: 字段 scanned。
  15911. dispatched:
  15912. type: array
  15913. items:
  15914. $ref: '#/components/schemas/DispatchedTicket'
  15915. title: dispatched
  15916. description: 字段 dispatched。
  15917. skipped:
  15918. type: array
  15919. items:
  15920. $ref: '#/components/schemas/DispatchSkipped'
  15921. title: skipped
  15922. description: 字段 skipped。
  15923. required:
  15924. - team_id
  15925. - scanned
  15926. - dispatched
  15927. - skipped
  15928. description: DispatchResult 业务数据
  15929. title: DispatchResult
  15930. DispatchSkipped:
  15931. type: object
  15932. properties:
  15933. ticket_id:
  15934. type: string
  15935. title: 工单 ID
  15936. description: 工单 ID。
  15937. ticket_no:
  15938. type: string
  15939. nullable: true
  15940. title: 工单号
  15941. description: 工单号。
  15942. reason:
  15943. type: string
  15944. description: no_candidate=无合适成员;already_taken=并发下已被他人分派
  15945. title: reason
  15946. message:
  15947. type: string
  15948. nullable: true
  15949. title: 说明
  15950. description: 说明。
  15951. required:
  15952. - ticket_id
  15953. - reason
  15954. description: DispatchSkipped 业务数据
  15955. title: DispatchSkipped
  15956. DispatchedTicket:
  15957. type: object
  15958. properties:
  15959. ticket_id:
  15960. type: string
  15961. title: 工单 ID
  15962. description: 工单 ID。
  15963. ticket_no:
  15964. type: string
  15965. nullable: true
  15966. title: 工单号
  15967. description: 工单号。
  15968. assignee_user_id:
  15969. type: string
  15970. title: 处理人用户 ID
  15971. description: 处理人用户 ID。
  15972. assignee_snapshot_name:
  15973. type: string
  15974. nullable: true
  15975. title: assignee snapshot name
  15976. description: 字段 assignee_snapshot_name。
  15977. required:
  15978. - ticket_id
  15979. - ticket_no
  15980. - assignee_user_id
  15981. - assignee_snapshot_name
  15982. description: 自动分派回执(create.rs dispatch_auto_inner):dispatched/skipped 是明细数组,不是计数。
  15983. title: DispatchedTicket
  15984. EffectiveMode:
  15985. type: string
  15986. enum:
  15987. - period_snapshot
  15988. - live_at_billing
  15989. description: 生效时点(对账/14.4)。
  15990. title: EffectiveMode
  15991. EmptyObject:
  15992. type: object
  15993. description: 空业务载荷
  15994. additionalProperties: false
  15995. properties: {}
  15996. title: EmptyObject
  15997. EntTeamCreateResult:
  15998. type: object
  15999. properties:
  16000. team_id:
  16001. type: string
  16002. title: 团队 ID
  16003. description: 团队 ID。
  16004. team_name:
  16005. type: string
  16006. title: 团队名称
  16007. description: 团队名称。
  16008. remark:
  16009. type: string
  16010. nullable: true
  16011. description: '备注回读(未带=null)'
  16012. title: 备注
  16013. is_builtin:
  16014. type: boolean
  16015. title: is builtin
  16016. description: 字段 is_builtin。
  16017. owner_user_id:
  16018. type: string
  16019. nullable: true
  16020. title: owner user id
  16021. description: 字段 owner_user_id。
  16022. member_count:
  16023. type: integer
  16024. title: member count
  16025. description: 字段 member_count。
  16026. members:
  16027. type: array
  16028. items:
  16029. $ref: '#/components/schemas/EntTeamMember'
  16030. title: members
  16031. description: 字段 members。
  16032. account:
  16033. $ref: '#/components/schemas/AccountOut'
  16034. scope_note:
  16035. type: string
  16036. title: scope note
  16037. description: 字段 scope_note。
  16038. builtin_note:
  16039. type: string
  16040. title: builtin note
  16041. description: 字段 builtin_note。
  16042. required:
  16043. - team_id
  16044. - team_name
  16045. - remark
  16046. - is_builtin
  16047. - owner_user_id
  16048. - member_count
  16049. - members
  16050. - account
  16051. - scope_note
  16052. - builtin_note
  16053. description: EntTeamCreateResult 业务数据
  16054. title: EntTeamCreateResult
  16055. EntTeamDeleteResult:
  16056. type: object
  16057. properties:
  16058. team_id:
  16059. type: string
  16060. title: 团队 ID
  16061. description: 团队 ID。
  16062. team_name:
  16063. type: string
  16064. title: 团队名称
  16065. description: 团队名称。
  16066. deleted:
  16067. type: string
  16068. description: 类型:false
  16069. title: 是否已删除
  16070. blockers:
  16071. type: array
  16072. items:
  16073. $ref: '#/components/schemas/BlockerItem'
  16074. title: blockers
  16075. description: 字段 blockers。
  16076. unverifiable_checks:
  16077. type: array
  16078. items:
  16079. $ref: '#/components/schemas/UnverifiableCheck'
  16080. title: unverifiable checks
  16081. description: 字段 unverifiable_checks。
  16082. audit_key:
  16083. type: string
  16084. nullable: true
  16085. title: audit key
  16086. description: 字段 audit_key。
  16087. note:
  16088. type: string
  16089. title: 备注
  16090. description: 备注。
  16091. required:
  16092. - team_id
  16093. - team_name
  16094. - deleted
  16095. - blockers
  16096. - unverifiable_checks
  16097. - note
  16098. description: EntTeamDeleteResult 业务数据
  16099. title: EntTeamDeleteResult
  16100. EntTeamListResult:
  16101. type: object
  16102. properties:
  16103. items:
  16104. type: array
  16105. items:
  16106. $ref: '#/components/schemas/EntTeamRow'
  16107. title: 列表项
  16108. description: 列表项。
  16109. total:
  16110. type: integer
  16111. title: 总条数
  16112. description: 总条数。
  16113. page:
  16114. type: integer
  16115. nullable: true
  16116. title: 页码
  16117. description: 页码。
  16118. page_size:
  16119. type: integer
  16120. nullable: true
  16121. title: 每页条数
  16122. description: 每页条数。
  16123. required:
  16124. - items
  16125. - total
  16126. description: EntTeamListResult 业务数据
  16127. title: EntTeamListResult
  16128. EntTeamMember:
  16129. type: object
  16130. properties:
  16131. user_id:
  16132. type: string
  16133. title: 用户 ID
  16134. description: 用户 ID。
  16135. username:
  16136. type: string
  16137. nullable: true
  16138. title: 登录名
  16139. description: 登录名。
  16140. display_name:
  16141. type: string
  16142. nullable: true
  16143. description: '本人姓名(`bos_account_ext.display_name`);未填=null, 用登录名冒充。'
  16144. title: 显示名
  16145. name:
  16146. type: string
  16147. nullable: true
  16148. description: '展示名回落链:姓名 → 登录名 → user_id。下拉框/表格统一读此字段。'
  16149. title: 名称
  16150. mobile:
  16151. type: string
  16152. nullable: true
  16153. title: 手机号
  16154. description: 手机号。
  16155. role_code:
  16156. type: string
  16157. nullable: true
  16158. title: 角色码
  16159. description: 角色码。
  16160. is_primary:
  16161. type: boolean
  16162. title: 是否主账号
  16163. description: 是否主账号。
  16164. binding_status:
  16165. type: string
  16166. nullable: true
  16167. description: '`bos_user_binding.status`(账号启停:active/disabled);与激活码生命周期正交。'
  16168. title: binding status
  16169. activation_status:
  16170. type: string
  16171. nullable: true
  16172. description: '`bos_account_ext.status`(激活码生命周期);`null`=无激活码扩展行。'
  16173. title: 激活态
  16174. ticket_types:
  16175. type: array
  16176. items:
  16177. type: string
  16178. title: ticket_types元素
  16179. nullable: true
  16180. description: '* 可承接工单类型清单(`ops_account_ticket_type`, 新增, 判据二)。 * 空数组=该运营账号不接任何单( 折算成「不限类型」);老后端
  16181. 该键时视为未知。'
  16182. title: 工单类型清单
  16183. required:
  16184. - user_id
  16185. - username
  16186. - mobile
  16187. - role_code
  16188. - is_primary
  16189. description: '[实] 成员行'
  16190. title: EntTeamMember
  16191. EntTeamMemberAddResult:
  16192. type: object
  16193. properties:
  16194. team_id:
  16195. type: string
  16196. title: 团队 ID
  16197. description: 团队 ID。
  16198. team_name:
  16199. type: string
  16200. title: 团队名称
  16201. description: 团队名称。
  16202. added:
  16203. type: string
  16204. description: 类型:true
  16205. title: added
  16206. user_id:
  16207. type: string
  16208. title: 用户 ID
  16209. description: 用户 ID。
  16210. role_code:
  16211. type: string
  16212. description: '`opsMain`(主账号)/`opsSub`(子账号)'
  16213. title: 角色码
  16214. is_primary:
  16215. type: boolean
  16216. title: 是否主账号
  16217. description: 是否主账号。
  16218. primary_forced:
  16219. type: boolean
  16220. description: '团队原 成员且 指定 ⇒ 自动置主账号'
  16221. title: primary forced
  16222. primary_forced_note:
  16223. type: string
  16224. title: primary forced note
  16225. description: 字段 primary_forced_note。
  16226. account:
  16227. $ref: '#/components/schemas/AccountOut'
  16228. members:
  16229. type: array
  16230. items:
  16231. $ref: '#/components/schemas/EntTeamMember'
  16232. title: members
  16233. description: 字段 members。
  16234. member_count:
  16235. type: integer
  16236. title: member count
  16237. description: 字段 member_count。
  16238. duplicate_member_note:
  16239. type: string
  16240. description: 同 user_id 已在团 ⇒ 显式报错(本字段为「 重复」说明)
  16241. title: duplicate member note
  16242. scope_note:
  16243. type: string
  16244. title: scope note
  16245. description: 字段 scope_note。
  16246. required:
  16247. - team_id
  16248. - team_name
  16249. - added
  16250. - user_id
  16251. - role_code
  16252. - is_primary
  16253. - primary_forced
  16254. - primary_forced_note
  16255. - account
  16256. - members
  16257. - member_count
  16258. - duplicate_member_note
  16259. - scope_note
  16260. description: EntTeamMemberAddResult 业务数据
  16261. title: EntTeamMemberAddResult
  16262. EntTeamMemberRemoveResult:
  16263. type: object
  16264. properties:
  16265. team_id:
  16266. type: string
  16267. title: 团队 ID
  16268. description: 团队 ID。
  16269. team_name:
  16270. type: string
  16271. title: 团队名称
  16272. description: 团队名称。
  16273. user_id:
  16274. type: string
  16275. title: 用户 ID
  16276. description: 用户 ID。
  16277. username:
  16278. type: string
  16279. nullable: true
  16280. title: 登录名
  16281. description: 登录名。
  16282. role_code:
  16283. type: string
  16284. nullable: true
  16285. title: 角色码
  16286. description: 角色码。
  16287. is_primary:
  16288. type: boolean
  16289. title: 是否主账号
  16290. description: 是否主账号。
  16291. team_primary_user_id:
  16292. type: string
  16293. nullable: true
  16294. title: team primary user id
  16295. description: 字段 team_primary_user_id。
  16296. member_count:
  16297. type: integer
  16298. title: member count
  16299. description: 字段 member_count。
  16300. removed:
  16301. type: string
  16302. description: 类型:false
  16303. title: removed
  16304. blockers:
  16305. type: array
  16306. items:
  16307. $ref: '#/components/schemas/BlockerItem'
  16308. title: blockers
  16309. description: 字段 blockers。
  16310. members:
  16311. type: array
  16312. items:
  16313. $ref: '#/components/schemas/EntTeamMember'
  16314. title: members
  16315. description: 字段 members。
  16316. note:
  16317. type: string
  16318. title: 备注
  16319. description: 备注。
  16320. required:
  16321. - team_id
  16322. - team_name
  16323. - user_id
  16324. - username
  16325. - role_code
  16326. - is_primary
  16327. - team_primary_user_id
  16328. - member_count
  16329. - removed
  16330. - blockers
  16331. - members
  16332. - note
  16333. description: EntTeamMemberRemoveResult 业务数据
  16334. title: EntTeamMemberRemoveResult
  16335. EntTeamMemberUpdateResult:
  16336. type: object
  16337. properties:
  16338. team_id:
  16339. type: string
  16340. title: 团队 ID
  16341. description: 团队 ID。
  16342. team_name:
  16343. type: string
  16344. title: 团队名称
  16345. description: 团队名称。
  16346. user_id:
  16347. type: string
  16348. title: 用户 ID
  16349. description: 用户 ID。
  16350. username:
  16351. type: string
  16352. nullable: true
  16353. title: 登录名
  16354. description: 登录名。
  16355. display_name:
  16356. type: string
  16357. nullable: true
  16358. description: '写后姓名(`bos_account_ext.display_name`);未填=null'
  16359. title: 显示名
  16360. is_primary:
  16361. type: boolean
  16362. title: 是否主账号
  16363. description: 是否主账号。
  16364. updated:
  16365. type: object
  16366. properties:
  16367. name:
  16368. type: boolean
  16369. mobile:
  16370. type: boolean
  16371. ticket_types:
  16372. type: boolean
  16373. nullable: true
  16374. required:
  16375. - name
  16376. - mobile
  16377. description: '本次实际改动的字段(缺省键= 改)'
  16378. title: 是否已更新
  16379. ticket_types:
  16380. type: array
  16381. items:
  16382. type: string
  16383. title: ticket_types元素
  16384. nullable: true
  16385. description: '本次提交的可承接类型清单(`ticket_types` 缺省时为 `null`)'
  16386. title: 工单类型清单
  16387. ticket_types_note:
  16388. type: string
  16389. nullable: true
  16390. title: ticket types note
  16391. description: 字段 ticket_types_note。
  16392. unchanged_note:
  16393. type: string
  16394. title: unchanged note
  16395. description: 字段 unchanged_note。
  16396. members:
  16397. type: array
  16398. items:
  16399. $ref: '#/components/schemas/EntTeamMember'
  16400. title: members
  16401. description: 字段 members。
  16402. member_count:
  16403. type: integer
  16404. title: member count
  16405. description: 字段 member_count。
  16406. required:
  16407. - team_id
  16408. - team_name
  16409. - user_id
  16410. - username
  16411. - display_name
  16412. - is_primary
  16413. - updated
  16414. - unchanged_note
  16415. - members
  16416. - member_count
  16417. description: EntTeamMemberUpdateResult 业务数据
  16418. title: EntTeamMemberUpdateResult
  16419. EntTeamRow:
  16420. type: object
  16421. properties:
  16422. team_id:
  16423. type: string
  16424. title: 团队 ID
  16425. description: 团队 ID。
  16426. team_name:
  16427. type: string
  16428. title: 团队名称
  16429. description: 团队名称。
  16430. remark:
  16431. type: string
  16432. nullable: true
  16433. description: '* 备注=`ent_team.remark VARCHAR(200) NULL`( 补列, ``)。 * 参与唯一键、 参与算账与判权;未配置=null(
  16434. 折算成空串冒充"已配置且无内容")。'
  16435. title: 备注
  16436. is_builtin:
  16437. type: boolean
  16438. title: is builtin
  16439. description: 字段 is_builtin。
  16440. owner_username:
  16441. type: string
  16442. nullable: true
  16443. title: owner username
  16444. description: 字段 owner_username。
  16445. member_count:
  16446. type: integer
  16447. title: member count
  16448. description: 字段 member_count。
  16449. members:
  16450. type: array
  16451. items:
  16452. $ref: '#/components/schemas/EntTeamMember'
  16453. nullable: true
  16454. description: '成员明细(含姓名);老后端 该键时按成员数缺失去展示, 编造名单。'
  16455. title: members
  16456. scope_regions:
  16457. type: array
  16458. items:
  16459. type: string
  16460. title: scope_regions元素
  16461. description: '* 「所属区域」列=`bos_data_scope` 里的授权节点(`ent_team` region 列,区域归属 * 按 只落 scope 表)。空数组:内置团队=「不限」,非内置=「未配置」,
  16462. * 显示成某个真实区域。'
  16463. title: scope regions
  16464. scope_customers:
  16465. type: array
  16466. items:
  16467. type: string
  16468. title: scope_customers元素
  16469. description: '范围内直接多选的客户'
  16470. title: scope customers
  16471. coverage_customers:
  16472. type: number
  16473. nullable: true
  16474. description: '覆盖客户数;内置空范围=全量在册;非内置空范围=null(未配置, 折算 0)'
  16475. title: coverage customers
  16476. created_at:
  16477. type: string
  16478. nullable: true
  16479. title: 创建时间
  16480. description: 创建时间。
  16481. required:
  16482. - team_id
  16483. - team_name
  16484. - remark
  16485. - is_builtin
  16486. - owner_username
  16487. - member_count
  16488. - scope_regions
  16489. - scope_customers
  16490. - coverage_customers
  16491. - created_at
  16492. description: EntTeamRow 业务数据
  16493. title: EntTeamRow
  16494. EntTeamScope:
  16495. type: object
  16496. properties:
  16497. grants:
  16498. type: array
  16499. items:
  16500. $ref: '#/components/schemas/ScopeGrant'
  16501. title: grants
  16502. description: 字段 grants。
  16503. total:
  16504. type: integer
  16505. title: 总条数
  16506. description: 总条数。
  16507. required:
  16508. - grants
  16509. - total
  16510. description: EntTeamScope 业务数据
  16511. title: EntTeamScope
  16512. EntTeamScopeSaveResult:
  16513. type: object
  16514. properties:
  16515. team_id:
  16516. type: string
  16517. title: 团队 ID
  16518. description: 团队 ID。
  16519. team_name:
  16520. type: string
  16521. nullable: true
  16522. description: '仅「确有改动」分支下发'
  16523. title: 团队名称
  16524. region_node_ids:
  16525. type: array
  16526. items:
  16527. type: string
  16528. title: region_node_ids元素
  16529. description: '回读 `bos_data_scope` 的 target_id 集'
  16530. title: region node ids
  16531. total:
  16532. type: integer
  16533. title: 总条数
  16534. description: 总条数。
  16535. inserted:
  16536. type: number
  16537. title: inserted
  16538. description: 字段 inserted。
  16539. deleted:
  16540. type: number
  16541. title: 是否已删除
  16542. description: 是否已删除。
  16543. unchanged:
  16544. type: number
  16545. title: unchanged
  16546. description: 字段 unchanged。
  16547. empty_allowed:
  16548. type: boolean
  16549. description: 授权清零(全部子账号失去可见性)说明
  16550. title: empty allowed
  16551. noop:
  16552. type: boolean
  16553. nullable: true
  16554. title: noop
  16555. description: 字段 noop。
  16556. consistent:
  16557. type: boolean
  16558. nullable: true
  16559. title: consistent
  16560. description: 字段 consistent。
  16561. diff_with_requested:
  16562. type: object
  16563. properties:
  16564. expected:
  16565. type: array
  16566. items:
  16567. type: string
  16568. actual:
  16569. type: array
  16570. items:
  16571. type: string
  16572. required:
  16573. - expected
  16574. - actual
  16575. nullable: true
  16576. title: diff with requested
  16577. description: 字段 diff_with_requested。
  16578. shrink_note:
  16579. type: string
  16580. title: shrink note
  16581. description: 字段 shrink_note。
  16582. required:
  16583. - team_id
  16584. - region_node_ids
  16585. - total
  16586. - inserted
  16587. - deleted
  16588. - unchanged
  16589. - empty_allowed
  16590. - shrink_note
  16591. description: EntTeamScopeSaveResult 业务数据
  16592. title: EntTeamScopeSaveResult
  16593. EntTeamTransferPrimaryResult:
  16594. type: object
  16595. properties:
  16596. team_id:
  16597. type: string
  16598. title: 团队 ID
  16599. description: 团队 ID。
  16600. team_name:
  16601. type: string
  16602. title: 团队名称
  16603. description: 团队名称。
  16604. transferred:
  16605. type: string
  16606. description: 类型:true
  16607. title: 是否已移交
  16608. from_user_id:
  16609. type: string
  16610. title: from user id
  16611. description: 字段 from_user_id。
  16612. from_username:
  16613. type: string
  16614. nullable: true
  16615. title: from username
  16616. description: 字段 from_username。
  16617. to_user_id:
  16618. type: string
  16619. title: to user id
  16620. description: 字段 to_user_id。
  16621. to_username:
  16622. type: string
  16623. nullable: true
  16624. title: to username
  16625. description: 字段 to_username。
  16626. owner_user_id:
  16627. type: string
  16628. title: owner user id
  16629. description: 字段 owner_user_id。
  16630. statement_order:
  16631. type: array
  16632. items:
  16633. type: string
  16634. title: statement_order元素
  16635. description: '逐语句标签,顺序=执行顺序'
  16636. title: statement order
  16637. role_switch_note:
  16638. type: string
  16639. title: role switch note
  16640. description: 字段 role_switch_note。
  16641. unchanged_note:
  16642. type: string
  16643. title: unchanged note
  16644. description: 字段 unchanged_note。
  16645. members:
  16646. type: array
  16647. items:
  16648. $ref: '#/components/schemas/EntTeamMember'
  16649. title: members
  16650. description: 字段 members。
  16651. audit_before_after:
  16652. type: object
  16653. properties:
  16654. before:
  16655. type: object
  16656. properties:
  16657. primary_user_id:
  16658. type: string
  16659. nullable: true
  16660. owner_user_id:
  16661. type: string
  16662. nullable: true
  16663. required:
  16664. - primary_user_id
  16665. - owner_user_id
  16666. after:
  16667. type: object
  16668. properties:
  16669. primary_user_id:
  16670. type: string
  16671. nullable: true
  16672. owner_user_id:
  16673. type: string
  16674. nullable: true
  16675. required:
  16676. - primary_user_id
  16677. - owner_user_id
  16678. required:
  16679. - before
  16680. - after
  16681. title: audit before after
  16682. description: 字段 audit_before_after。
  16683. required:
  16684. - team_id
  16685. - team_name
  16686. - transferred
  16687. - from_user_id
  16688. - from_username
  16689. - to_user_id
  16690. - to_username
  16691. - owner_user_id
  16692. - statement_order
  16693. - role_switch_note
  16694. - unchanged_note
  16695. - members
  16696. - audit_before_after
  16697. description: EntTeamTransferPrimaryResult 业务数据
  16698. title: EntTeamTransferPrimaryResult
  16699. EntTeamUpdateResult:
  16700. type: object
  16701. properties:
  16702. team_id:
  16703. type: string
  16704. title: 团队 ID
  16705. description: 团队 ID。
  16706. team_name:
  16707. type: string
  16708. title: 团队名称
  16709. description: 团队名称。
  16710. remark:
  16711. type: string
  16712. nullable: true
  16713. description: '备注回读(写后真值)'
  16714. title: 备注
  16715. remark_touched:
  16716. type: boolean
  16717. description: '本次是否改了备注(`true`=请求带 `remark` 键,含清空)'
  16718. title: remark touched
  16719. is_builtin:
  16720. type: boolean
  16721. title: is builtin
  16722. description: 字段 is_builtin。
  16723. owner_user_id:
  16724. type: string
  16725. nullable: true
  16726. title: owner user id
  16727. description: 字段 owner_user_id。
  16728. members:
  16729. type: array
  16730. items:
  16731. $ref: '#/components/schemas/EntTeamMember'
  16732. title: members
  16733. description: 字段 members。
  16734. builtin_renamed_note:
  16735. type: string
  16736. nullable: true
  16737. description: '内置团队改名说明(非内置=null)'
  16738. title: builtin renamed note
  16739. platform_sync_note:
  16740. type: string
  16741. title: platform sync note
  16742. description: 字段 platform_sync_note。
  16743. row_version_note:
  16744. type: string
  16745. description: 未传 `row_version` ⇒ `未传 row_version`(dev `ent_team` 版本列 ⇒ 乐观锁未启用)
  16746. title: row version note
  16747. required:
  16748. - team_id
  16749. - team_name
  16750. - remark
  16751. - remark_touched
  16752. - is_builtin
  16753. - owner_user_id
  16754. - members
  16755. - builtin_renamed_note
  16756. - platform_sync_note
  16757. - row_version_note
  16758. description: EntTeamUpdateResult 业务数据
  16759. title: EntTeamUpdateResult
  16760. ExportCodeItem:
  16761. type: object
  16762. title: 激活码条目
  16763. description: 平台导出条目原样转发;页面遇缺失字段显示「—」,勿猜测补全。
  16764. required:
  16765. - id
  16766. - user_id
  16767. - purpose
  16768. - plaintext
  16769. - expires_at
  16770. - reissued
  16771. properties:
  16772. id:
  16773. type: string
  16774. title: 平台条目 ID
  16775. description: 平台侧凭证条目标识。
  16776. user_id:
  16777. type: string
  16778. title: 用户 ID
  16779. description: 绑定的本系统用户 ID。
  16780. purpose:
  16781. type: string
  16782. title: 用途
  16783. description: 平台用途标识,常见值为 activate。
  16784. example: activate
  16785. plaintext:
  16786. type: string
  16787. title: 激活码明文
  16788. description: 仅本次应答出现;平台不落库,须立即分发或安全保存。
  16789. expires_at:
  16790. type: string
  16791. title: 过期时间
  16792. description: 凭证失效时间(平台原样)。
  16793. reissued:
  16794. type: boolean
  16795. title: 是否换新
  16796. description: true=本条为先作废再换新得到的新码。
  16797. additionalProperties: true
  16798. ExportResult:
  16799. type: object
  16800. properties:
  16801. file_name:
  16802. type: string
  16803. nullable: true
  16804. title: 文件名
  16805. description: 文件名。
  16806. download_url:
  16807. type: string
  16808. nullable: true
  16809. title: 下载地址
  16810. description: 下载地址。
  16811. content_base64:
  16812. type: string
  16813. nullable: true
  16814. title: content base64
  16815. description: 字段 content_base64。
  16816. expires_at:
  16817. type: string
  16818. nullable: true
  16819. title: expires at
  16820. description: 字段 expires_at。
  16821. task_id:
  16822. type: string
  16823. nullable: true
  16824. description: 超 export_async_rows 时异步通道任务号。
  16825. title: task id
  16826. async:
  16827. type: boolean
  16828. nullable: true
  16829. title: async
  16830. description: 字段 async。
  16831. rows:
  16832. type: array
  16833. items:
  16834. type: object
  16835. additionalProperties: {}
  16836. title: 行集元素
  16837. nullable: true
  16838. title: 行集
  16839. description: 行集。
  16840. status:
  16841. type: string
  16842. nullable: true
  16843. title: 状态
  16844. description: 状态。
  16845. message:
  16846. type: string
  16847. nullable: true
  16848. title: 说明
  16849. description: 说明。
  16850. scope_type:
  16851. type: string
  16852. nullable: true
  16853. title: 作用域类型
  16854. description: 作用域类型。
  16855. scope_id:
  16856. type: string
  16857. nullable: true
  16858. title: 作用域 ID
  16859. description: 作用域 ID。
  16860. validity:
  16861. type: string
  16862. nullable: true
  16863. title: 有效性口径
  16864. description: 有效性口径。
  16865. user_count:
  16866. type: integer
  16867. nullable: true
  16868. title: 账号数
  16869. description: 账号数。
  16870. user_ids:
  16871. type: array
  16872. items:
  16873. type: string
  16874. title: 用户 ID 列表元素
  16875. nullable: true
  16876. title: 用户 ID 列表
  16877. description: 用户 ID 列表。
  16878. total:
  16879. type: integer
  16880. nullable: true
  16881. title: 总条数
  16882. description: 总条数。
  16883. items:
  16884. type: array
  16885. items:
  16886. $ref: '#/components/schemas/ExportCodeItem'
  16887. nullable: true
  16888. title: 列表项
  16889. description: 列表项。
  16890. chunks:
  16891. type: number
  16892. nullable: true
  16893. title: chunks
  16894. description: 字段 chunks。
  16895. pages:
  16896. type: number
  16897. nullable: true
  16898. title: pages
  16899. description: 字段 pages。
  16900. reissued:
  16901. type: number
  16902. nullable: true
  16903. title: 换新条数
  16904. description: 换新条数。
  16905. kept:
  16906. type: number
  16907. nullable: true
  16908. title: 保留条数
  16909. description: 保留条数。
  16910. revoked:
  16911. type: number
  16912. nullable: true
  16913. title: 作废条数
  16914. description: 作废条数。
  16915. write_capability:
  16916. type: boolean
  16917. nullable: true
  16918. title: 是否写操作
  16919. description: 是否写操作。
  16920. export_mode:
  16921. type: string
  16922. nullable: true
  16923. description: 与 `write_capability` 同义的显式枚举:`read`=只读导出,`write`=作废换新路径。
  16924. title: 导出模式
  16925. plaintext_once:
  16926. type: boolean
  16927. nullable: true
  16928. title: 明文一次性
  16929. description: 明文一次性。
  16930. plaintext_note:
  16931. type: string
  16932. nullable: true
  16933. title: 明文说明
  16934. description: 明文说明。
  16935. audit_written:
  16936. type: boolean
  16937. nullable: true
  16938. title: 是否已写审计
  16939. description: 是否已写审计。
  16940. audit_note:
  16941. type: string
  16942. nullable: true
  16943. description: 与 `audit_written` 成对:已留痕/未留痕的人读说明( 勿仅凭布尔值猜测)。
  16944. title: 审计说明
  16945. batch_id:
  16946. type: string
  16947. nullable: true
  16948. title: 批次 ID
  16949. description: 批次 ID。
  16950. batch_no:
  16951. type: string
  16952. nullable: true
  16953. title: 批次号
  16954. description: 批次号。
  16955. description: 导出类应答
  16956. title: ExportResult
  16957. FinalizeResult:
  16958. type: object
  16959. properties:
  16960. ticket_id:
  16961. type: string
  16962. title: 工单 ID
  16963. description: 工单 ID。
  16964. status:
  16965. $ref: '#/components/schemas/TicketStatus'
  16966. closed_at:
  16967. type: string
  16968. nullable: true
  16969. title: 关闭时间
  16970. description: 关闭时间。
  16971. open_stop_closed:
  16972. type: boolean
  16973. nullable: true
  16974. title: open stop closed
  16975. description: 字段 open_stop_closed。
  16976. settled_at:
  16977. type: string
  16978. nullable: true
  16979. title: 办结时间
  16980. description: 办结时间。
  16981. defer_scope:
  16982. type: string
  16983. nullable: true
  16984. title: defer scope
  16985. description: 字段 defer_scope。
  16986. deferred_until:
  16987. type: string
  16988. nullable: true
  16989. title: 延期至
  16990. description: 延期至。
  16991. reverted_from:
  16992. type: string
  16993. nullable: true
  16994. title: reverted from
  16995. description: 字段 reverted_from。
  16996. untouched:
  16997. type: array
  16998. items:
  16999. type: string
  17000. title: untouched元素
  17001. nullable: true
  17002. title: untouched
  17003. description: 字段 untouched。
  17004. audit_written:
  17005. type: boolean
  17006. title: 是否已写审计
  17007. description: 是否已写审计。
  17008. required:
  17009. - ticket_id
  17010. - status
  17011. - audit_written
  17012. description: FinalizeResult 业务数据
  17013. title: FinalizeResult
  17014. FormExtPayload:
  17015. type: object
  17016. properties:
  17017. template_id:
  17018. type: string
  17019. nullable: true
  17020. title: template id
  17021. description: 字段 template_id。
  17022. template_version:
  17023. oneOf:
  17024. - type: number
  17025. - type: string
  17026. nullable: true
  17027. title: template version
  17028. description: 字段 template_version。
  17029. schema:
  17030. $ref: '#/components/schemas/FormSchema'
  17031. values:
  17032. type: object
  17033. additionalProperties: {}
  17034. nullable: true
  17035. title: values
  17036. description: 字段 values。
  17037. description: 详情 `backfill.ext`/回填提交 `ext`。
  17038. title: FormExtPayload
  17039. FormFieldFormat:
  17040. type: string
  17041. description: FormFieldFormat 业务数据
  17042. title: FormFieldFormat
  17043. FormFieldSchema:
  17044. type: object
  17045. properties:
  17046. key:
  17047. type: string
  17048. title: key
  17049. description: 字段 key。
  17050. label:
  17051. type: string
  17052. title: 标签
  17053. description: 标签。
  17054. type:
  17055. type: string
  17056. title: type
  17057. description: 字段 type。
  17058. required:
  17059. type: boolean
  17060. nullable: true
  17061. title: required
  17062. description: 字段 required。
  17063. options:
  17064. type: array
  17065. items:
  17066. type: object
  17067. properties:
  17068. value:
  17069. type: string
  17070. label:
  17071. type: string
  17072. required:
  17073. - value
  17074. - label
  17075. nullable: true
  17076. title: options
  17077. description: 字段 options。
  17078. help:
  17079. type: string
  17080. nullable: true
  17081. title: help
  17082. description: 字段 help。
  17083. maxLength:
  17084. type: number
  17085. nullable: true
  17086. description: 文本类长度上限:text/material_ref ≤200,textarea ≤2000。
  17087. title: maxLength
  17088. min:
  17089. type: number
  17090. nullable: true
  17091. description: number 最小值。
  17092. title: min
  17093. max:
  17094. type: number
  17095. nullable: true
  17096. description: number 最大值。
  17097. title: max
  17098. step:
  17099. type: number
  17100. nullable: true
  17101. description: number 步长(>0);相对 min(缺省 0)对齐。
  17102. title: step
  17103. format:
  17104. oneOf:
  17105. - $ref: '#/components/schemas/FormFieldFormat'
  17106. - type: string
  17107. nullable: true
  17108. description: 文本类命名格式规则。
  17109. title: format
  17110. span:
  17111. type: number
  17112. nullable: true
  17113. description: 本字段跨列数(1..=layout.columns);缺省 1。`array` 不使用。
  17114. title: span
  17115. minItems:
  17116. type: number
  17117. nullable: true
  17118. description: '`array`:最少卡片数;缺省 0;组 required 时至少 1。'
  17119. title: minItems
  17120. maxItems:
  17121. type: number
  17122. nullable: true
  17123. description: '`array`:最多卡片数;缺省 20,上限 20。'
  17124. title: maxItems
  17125. itemLabel:
  17126. type: string
  17127. nullable: true
  17128. description: '`array`:卡头前缀(呈现时拼 1 基序号)。'
  17129. title: itemLabel
  17130. fields:
  17131. type: array
  17132. items:
  17133. $ref: '#/components/schemas/FormFieldSchema'
  17134. nullable: true
  17135. description: '`array`:卡内叶子字段(禁止再嵌套 array)。'
  17136. title: fields
  17137. required:
  17138. - key
  17139. - label
  17140. - type
  17141. description: FormFieldSchema 业务数据
  17142. title: FormFieldSchema
  17143. FormSchema:
  17144. type: object
  17145. properties:
  17146. fields:
  17147. type: array
  17148. items:
  17149. $ref: '#/components/schemas/FormFieldSchema'
  17150. title: fields
  17151. description: 字段 fields。
  17152. layout:
  17153. type: object
  17154. properties:
  17155. columns:
  17156. type: number
  17157. nullable: true
  17158. nullable: true
  17159. description: 布局列数:1/2/3。
  17160. title: layout
  17161. required:
  17162. - fields
  17163. description: FormSchema 业务数据
  17164. title: FormSchema
  17165. FormTemplateBundle:
  17166. type: object
  17167. properties:
  17168. ticket_type:
  17169. type: string
  17170. title: 工单类型
  17171. description: 工单类型。
  17172. ticket_type_name:
  17173. type: string
  17174. nullable: true
  17175. title: ticket type name
  17176. description: 字段 ticket_type_name。
  17177. published:
  17178. $ref: '#/components/schemas/FormTemplateRow'
  17179. draft:
  17180. $ref: '#/components/schemas/FormTemplateRow'
  17181. versions:
  17182. type: array
  17183. items:
  17184. $ref: '#/components/schemas/FormTemplateRow'
  17185. title: versions
  17186. description: 字段 versions。
  17187. required:
  17188. - ticket_type
  17189. - published
  17190. - draft
  17191. - versions
  17192. description: FormTemplateBundle 业务数据
  17193. title: FormTemplateBundle
  17194. FormTemplateRow:
  17195. type: object
  17196. properties:
  17197. template_id:
  17198. type: string
  17199. title: template id
  17200. description: 字段 template_id。
  17201. ticket_type:
  17202. type: string
  17203. title: 工单类型
  17204. description: 工单类型。
  17205. ticket_type_name:
  17206. type: string
  17207. nullable: true
  17208. title: ticket type name
  17209. description: 字段 ticket_type_name。
  17210. version:
  17211. oneOf:
  17212. - type: string
  17213. - type: number
  17214. title: version
  17215. description: 字段 version。
  17216. status:
  17217. type: string
  17218. title: 状态
  17219. description: 状态。
  17220. schema:
  17221. $ref: '#/components/schemas/FormSchema'
  17222. row_version:
  17223. oneOf:
  17224. - type: string
  17225. - type: number
  17226. title: 乐观锁版本
  17227. description: 乐观锁版本。
  17228. published_at:
  17229. type: string
  17230. nullable: true
  17231. title: published at
  17232. description: 字段 published_at。
  17233. created_at:
  17234. type: string
  17235. nullable: true
  17236. title: 创建时间
  17237. description: 创建时间。
  17238. required:
  17239. - template_id
  17240. - ticket_type
  17241. - version
  17242. - status
  17243. - schema
  17244. - row_version
  17245. description: 模板管理口单条版本行。
  17246. title: FormTemplateRow
  17247. HealthInfo:
  17248. type: object
  17249. properties:
  17250. status:
  17251. type: string
  17252. title: 状态
  17253. description: 状态。
  17254. required:
  17255. - status
  17256. description: HealthInfo 业务数据
  17257. title: HealthInfo
  17258. HolderType:
  17259. type: string
  17260. enum:
  17261. - operator
  17262. - partner
  17263. - ops_team
  17264. description: 分成方类型值域(holder_type,对账)。
  17265. title: HolderType
  17266. ImportBatchDetail:
  17267. type: object
  17268. properties:
  17269. batch:
  17270. $ref: '#/components/schemas/ImportBatchRowT'
  17271. status_counts:
  17272. type: array
  17273. items:
  17274. type: object
  17275. properties:
  17276. validate_status:
  17277. type: string
  17278. count:
  17279. type: string
  17280. required:
  17281. - validate_status
  17282. - count
  17283. title: status counts
  17284. description: 字段 status_counts。
  17285. rows:
  17286. type: array
  17287. items:
  17288. $ref: '#/components/schemas/ImportRowDetail'
  17289. title: 行集
  17290. description: 行集。
  17291. page:
  17292. type: integer
  17293. nullable: true
  17294. title: 页码
  17295. description: 页码。
  17296. page_size:
  17297. type: integer
  17298. nullable: true
  17299. title: 每页条数
  17300. description: 每页条数。
  17301. required:
  17302. - batch
  17303. - status_counts
  17304. - rows
  17305. description: ImportBatchDetail 业务数据
  17306. title: ImportBatchDetail
  17307. ImportBatchListResult:
  17308. type: object
  17309. properties:
  17310. items:
  17311. type: array
  17312. items:
  17313. $ref: '#/components/schemas/ImportBatchRowT'
  17314. title: 列表项
  17315. description: 列表项。
  17316. total:
  17317. type: integer
  17318. title: 总条数
  17319. description: 总条数。
  17320. page:
  17321. type: integer
  17322. nullable: true
  17323. title: 页码
  17324. description: 页码。
  17325. page_size:
  17326. type: integer
  17327. nullable: true
  17328. title: 每页条数
  17329. description: 每页条数。
  17330. required:
  17331. - items
  17332. - total
  17333. description: ImportBatchListResult 业务数据
  17334. title: ImportBatchListResult
  17335. ImportBatchRowT:
  17336. type: object
  17337. properties:
  17338. batch_id:
  17339. type: string
  17340. title: 批次 ID
  17341. description: 批次 ID。
  17342. batch_no:
  17343. type: string
  17344. title: 批次号
  17345. description: 批次号。
  17346. batch_type:
  17347. type: string
  17348. title: batch type
  17349. description: 字段 batch_type。
  17350. status:
  17351. type: string
  17352. title: 状态
  17353. description: 状态。
  17354. total_rows:
  17355. type: string
  17356. title: total rows
  17357. description: 字段 total_rows。
  17358. success_rows:
  17359. type: string
  17360. title: success rows
  17361. description: 字段 success_rows。
  17362. fail_rows:
  17363. type: string
  17364. title: fail rows
  17365. description: 字段 fail_rows。
  17366. operator_username:
  17367. type: string
  17368. nullable: true
  17369. title: operator username
  17370. description: 字段 operator_username。
  17371. created_at:
  17372. type: string
  17373. nullable: true
  17374. title: 创建时间
  17375. description: 创建时间。
  17376. file_name:
  17377. type: string
  17378. nullable: true
  17379. description: 导入来源文件名;粘贴录入=「粘贴录入」;未传=null。
  17380. title: 文件名
  17381. customer_names:
  17382. type: string
  17383. nullable: true
  17384. description: 批次内客户名称汇总(空格分隔);供台账按客户名搜索。
  17385. title: customer names
  17386. required:
  17387. - batch_id
  17388. - batch_no
  17389. - batch_type
  17390. - status
  17391. - total_rows
  17392. - success_rows
  17393. - fail_rows
  17394. - operator_username
  17395. - created_at
  17396. description: ImportBatchRowT 业务数据
  17397. title: ImportBatchRowT
  17398. ImportConfirmResult:
  17399. type: object
  17400. properties:
  17401. batch_id:
  17402. type: string
  17403. title: 批次 ID
  17404. description: 批次 ID。
  17405. batch_no:
  17406. type: string
  17407. title: 批次号
  17408. description: 批次号。
  17409. status:
  17410. type: string
  17411. title: 状态
  17412. description: 状态。
  17413. total_rows:
  17414. oneOf:
  17415. - type: string
  17416. - type: number
  17417. title: total rows
  17418. description: 字段 total_rows。
  17419. success_rows:
  17420. oneOf:
  17421. - type: string
  17422. - type: number
  17423. title: success rows
  17424. description: 字段 success_rows。
  17425. fail_rows:
  17426. oneOf:
  17427. - type: string
  17428. - type: number
  17429. title: fail rows
  17430. description: 字段 fail_rows。
  17431. imported_this_call:
  17432. type: number
  17433. nullable: true
  17434. title: imported this call
  17435. description: 字段 imported_this_call。
  17436. failed_this_call:
  17437. type: number
  17438. nullable: true
  17439. title: failed this call
  17440. description: 字段 failed_this_call。
  17441. already_imported_rows:
  17442. type: number
  17443. nullable: true
  17444. title: already imported rows
  17445. description: 字段 already_imported_rows。
  17446. rows:
  17447. type: string
  17448. description: 行集。
  17449. nullable: true
  17450. title: 行集
  17451. required:
  17452. - batch_id
  17453. - batch_no
  17454. - status
  17455. - total_rows
  17456. - success_rows
  17457. - fail_rows
  17458. description: ImportConfirmResult 业务数据
  17459. title: ImportConfirmResult
  17460. ImportResumeResult:
  17461. type: object
  17462. properties:
  17463. batch_id:
  17464. type: string
  17465. title: 批次 ID
  17466. description: 批次 ID。
  17467. batch_no:
  17468. type: string
  17469. title: 批次号
  17470. description: 批次号。
  17471. status_before:
  17472. type: string
  17473. title: status before
  17474. description: 字段 status_before。
  17475. status_after:
  17476. type: string
  17477. title: status after
  17478. description: 字段 status_after。
  17479. updated_rows:
  17480. type: number
  17481. title: updated rows
  17482. description: 字段 updated_rows。
  17483. inserted_rows:
  17484. type: number
  17485. title: inserted rows
  17486. description: 字段 inserted_rows。
  17487. affected_rows:
  17488. type: number
  17489. title: affected rows
  17490. description: 字段 affected_rows。
  17491. already_imported_rows:
  17492. type: number
  17493. title: already imported rows
  17494. description: 字段 already_imported_rows。
  17495. summary:
  17496. type: object
  17497. properties:
  17498. status:
  17499. type: string
  17500. total_rows:
  17501. type: string
  17502. success_rows:
  17503. type: string
  17504. fail_rows:
  17505. type: string
  17506. required:
  17507. - status
  17508. - total_rows
  17509. - success_rows
  17510. - fail_rows
  17511. title: summary
  17512. description: 字段 summary。
  17513. rows:
  17514. type: array
  17515. items:
  17516. $ref: '#/components/schemas/ImportResumeRow'
  17517. title: 行集
  17518. description: 行集。
  17519. checks_pending:
  17520. type: array
  17521. items:
  17522. type: string
  17523. title: checks_pending元素
  17524. title: checks pending
  17525. description: 字段 checks_pending。
  17526. required:
  17527. - batch_id
  17528. - batch_no
  17529. - status_before
  17530. - status_after
  17531. - updated_rows
  17532. - inserted_rows
  17533. - affected_rows
  17534. - already_imported_rows
  17535. - summary
  17536. - rows
  17537. - checks_pending
  17538. description: ImportResumeResult 业务数据
  17539. title: ImportResumeResult
  17540. ImportResumeRow:
  17541. type: object
  17542. properties:
  17543. row_no:
  17544. type: number
  17545. title: row no
  17546. description: 字段 row_no。
  17547. outcome:
  17548. type: string
  17549. enum:
  17550. - already_imported
  17551. - overwritten
  17552. - inserted
  17553. title: outcome
  17554. description: 字段 outcome。
  17555. customer_id:
  17556. type: string
  17557. nullable: true
  17558. title: 客户 ID
  17559. description: 客户 ID。
  17560. note:
  17561. type: string
  17562. nullable: true
  17563. title: 备注
  17564. description: 备注。
  17565. validate_status:
  17566. type: string
  17567. nullable: true
  17568. title: validate status
  17569. description: 字段 validate_status。
  17570. errors:
  17571. type: array
  17572. items:
  17573. type: string
  17574. title: errors元素
  17575. nullable: true
  17576. description: 行级错误(契约字段 `errors`);`error_list` 为过渡双写。
  17577. title: errors
  17578. error_list:
  17579. type: array
  17580. items:
  17581. type: string
  17582. title: error_list元素
  17583. nullable: true
  17584. title: error list
  17585. description: 字段 error_list。
  17586. required:
  17587. - row_no
  17588. - outcome
  17589. description: ImportResumeRow 业务数据
  17590. title: ImportResumeRow
  17591. ImportRowDetail:
  17592. type: object
  17593. properties:
  17594. row_no:
  17595. type: string
  17596. title: row no
  17597. description: 字段 row_no。
  17598. validate_status:
  17599. type: string
  17600. title: validate status
  17601. description: 字段 validate_status。
  17602. business_id:
  17603. type: string
  17604. nullable: true
  17605. title: business id
  17606. description: 字段 business_id。
  17607. errors:
  17608. title: errors
  17609. description: 字段 errors。
  17610. customer_name:
  17611. type: string
  17612. nullable: true
  17613. title: 客户名称
  17614. description: 客户名称。
  17615. region_name:
  17616. type: string
  17617. nullable: true
  17618. title: region name
  17619. description: 字段 region_name。
  17620. subject_type:
  17621. type: string
  17622. nullable: true
  17623. title: 主体类型
  17624. description: 主体类型。
  17625. operator_name:
  17626. type: string
  17627. nullable: true
  17628. title: operator name
  17629. description: 字段 operator_name。
  17630. partner_name:
  17631. type: string
  17632. nullable: true
  17633. title: partner name
  17634. description: 字段 partner_name。
  17635. ops_team_names:
  17636. type: array
  17637. items:
  17638. type: string
  17639. title: ops_team_names元素
  17640. nullable: true
  17641. title: ops team names
  17642. description: 字段 ops_team_names。
  17643. required:
  17644. - row_no
  17645. - validate_status
  17646. - business_id
  17647. - errors
  17648. description: 导入行明细 [实]
  17649. title: ImportRowDetail
  17650. ImportSubmitResult:
  17651. type: object
  17652. properties:
  17653. batch_id:
  17654. type: string
  17655. title: 批次 ID
  17656. description: 批次 ID。
  17657. batch_no:
  17658. type: string
  17659. title: 批次号
  17660. description: 批次号。
  17661. status:
  17662. type: string
  17663. title: 状态
  17664. description: 状态。
  17665. total_rows:
  17666. type: number
  17667. title: total rows
  17668. description: 字段 total_rows。
  17669. success_rows:
  17670. type: number
  17671. title: success rows
  17672. description: 字段 success_rows。
  17673. fail_rows:
  17674. type: number
  17675. title: fail rows
  17676. description: 字段 fail_rows。
  17677. valid_rows:
  17678. type: number
  17679. title: valid rows
  17680. description: 字段 valid_rows。
  17681. invalid_rows:
  17682. type: number
  17683. title: invalid rows
  17684. description: 字段 invalid_rows。
  17685. rows_written:
  17686. type: number
  17687. title: rows written
  17688. description: 字段 rows_written。
  17689. rows:
  17690. type: array
  17691. items:
  17692. type: object
  17693. properties:
  17694. row_no:
  17695. type: number
  17696. validate_status:
  17697. type: string
  17698. errors:
  17699. type: array
  17700. items:
  17701. type: string
  17702. nullable: true
  17703. error_list:
  17704. type: array
  17705. items:
  17706. type: string
  17707. nullable: true
  17708. required:
  17709. - row_no
  17710. - validate_status
  17711. title: 行集
  17712. description: 行集。
  17713. checks_pending:
  17714. type: array
  17715. items:
  17716. type: string
  17717. title: checks_pending元素
  17718. description: 上传阶段仍待能力项(如实披露)
  17719. title: checks pending
  17720. region_match_note:
  17721. type: string
  17722. title: region match note
  17723. description: 字段 region_match_note。
  17724. audit_written:
  17725. type: boolean
  17726. nullable: true
  17727. title: 是否已写审计
  17728. description: 是否已写审计。
  17729. audit_note:
  17730. type: string
  17731. nullable: true
  17732. title: 审计说明
  17733. description: 审计说明。
  17734. required:
  17735. - batch_id
  17736. - batch_no
  17737. - status
  17738. - total_rows
  17739. - success_rows
  17740. - fail_rows
  17741. - valid_rows
  17742. - invalid_rows
  17743. - rows_written
  17744. - rows
  17745. - checks_pending
  17746. - region_match_note
  17747. description: ImportSubmitResult 业务数据
  17748. title: ImportSubmitResult
  17749. ImportTemplateDownloadResult:
  17750. type: object
  17751. description: 导入模板下载信息
  17752. properties:
  17753. file_name:
  17754. type: string
  17755. description: 文件名
  17756. title: 文件名
  17757. oss_key:
  17758. type: string
  17759. description: 对象存储键
  17760. title: 对象键
  17761. download_url:
  17762. type: string
  17763. description: 短时效下载地址
  17764. nullable: true
  17765. title: 下载地址
  17766. content_type:
  17767. type: string
  17768. description: MIME 类型
  17769. nullable: true
  17770. title: 内容类型
  17771. required:
  17772. - file_name
  17773. - oss_key
  17774. title: ImportTemplateDownloadResult
  17775. ImportTemplateSpec:
  17776. type: object
  17777. properties:
  17778. format:
  17779. type: string
  17780. title: format
  17781. description: 字段 format。
  17782. columns:
  17783. type: number
  17784. title: columns
  17785. description: 字段 columns。
  17786. max_rows:
  17787. type: number
  17788. title: max rows
  17789. description: 字段 max_rows。
  17790. column_names:
  17791. type: array
  17792. items:
  17793. type: string
  17794. title: column_names元素
  17795. nullable: true
  17796. description: 模板表头列名(顺序固定);缺省时前端按本地约定生成。
  17797. title: column names
  17798. sample_row:
  17799. type: array
  17800. items:
  17801. type: string
  17802. title: sample_row元素
  17803. nullable: true
  17804. description: 示例行(行编号=「示例」);上传时自动跳过。
  17805. title: sample row
  17806. fill_notes:
  17807. type: array
  17808. items:
  17809. type: string
  17810. title: fill_notes元素
  17811. nullable: true
  17812. description: 填写注意(主账号留空、区域名称/node_id 等)。
  17813. title: fill notes
  17814. required:
  17815. - format
  17816. - columns
  17817. - max_rows
  17818. description: GET/POST /import_batch/template_download@v1
  17819. title: ImportTemplateSpec
  17820. InboxListResult:
  17821. type: object
  17822. properties:
  17823. total:
  17824. type: integer
  17825. title: 总条数
  17826. description: 总条数。
  17827. page:
  17828. type: integer
  17829. title: 页码
  17830. description: 页码。
  17831. page_size:
  17832. type: integer
  17833. title: 每页条数
  17834. description: 每页条数。
  17835. unread:
  17836. type: integer
  17837. description: 未读总数(不受 `unread_only` 影响)。
  17838. title: 未读数
  17839. rows:
  17840. type: array
  17841. items:
  17842. $ref: '#/components/schemas/InboxMessage'
  17843. title: 行集
  17844. description: 行集。
  17845. required:
  17846. - total
  17847. - page
  17848. - page_size
  17849. - unread
  17850. - rows
  17851. description: InboxListResult 业务数据
  17852. title: InboxListResult
  17853. InboxMessage:
  17854. type: object
  17855. properties:
  17856. message_id:
  17857. type: string
  17858. title: 消息 ID
  17859. description: 消息 ID。
  17860. kind:
  17861. type: string
  17862. description: '* 消息类型:`contract_renewal`/`ticket_urge`/`customer_region_transfer`/ * `ticket_awaiting_confirm`/`completion_rejected`。'
  17863. title: 类型
  17864. ref_type:
  17865. type: string
  17866. description: 关联对象类型:`contract`/`ticket`/`customer`。
  17867. title: ref type
  17868. ref_id:
  17869. type: string
  17870. description: 关联对象 ID(续签=合同 ID;催办=`{ticket_id}:{业务日}`;改挂=`{customer_id}:{transfer_id}`)。
  17871. title: ref id
  17872. title:
  17873. type: string
  17874. title: 标题
  17875. description: 标题。
  17876. body:
  17877. type: string
  17878. nullable: true
  17879. title: body
  17880. description: 字段 body。
  17881. action:
  17882. type: string
  17883. nullable: true
  17884. description: '`create_renewal_ticket`/`open_ticket`/`open_customer`/`confirm_close`。'
  17885. title: 动作
  17886. payload:
  17887. type: object
  17888. properties:
  17889. contract_id:
  17890. type: string
  17891. nullable: true
  17892. contract_no:
  17893. type: string
  17894. nullable: true
  17895. customer_id:
  17896. type: string
  17897. nullable: true
  17898. customer_name:
  17899. type: string
  17900. nullable: true
  17901. end_date:
  17902. type: string
  17903. nullable: true
  17904. days_left:
  17905. type: number
  17906. nullable: true
  17907. ticket_id:
  17908. type: string
  17909. nullable: true
  17910. ticket_no:
  17911. type: string
  17912. nullable: true
  17913. ticket_type:
  17914. type: string
  17915. nullable: true
  17916. ticket_title:
  17917. type: string
  17918. nullable: true
  17919. counterparty_kind:
  17920. type: string
  17921. nullable: true
  17922. counterparty_name:
  17923. type: string
  17924. nullable: true
  17925. from_user_name:
  17926. type: string
  17927. nullable: true
  17928. waiting_hours:
  17929. type: number
  17930. nullable: true
  17931. business_date:
  17932. type: string
  17933. nullable: true
  17934. nullable: true
  17935. title: 载荷
  17936. description: 载荷。
  17937. read_at:
  17938. type: string
  17939. nullable: true
  17940. title: 已读时间
  17941. description: 已读时间。
  17942. handled_at:
  17943. type: string
  17944. nullable: true
  17945. title: 处理时间
  17946. description: 处理时间。
  17947. handled_by:
  17948. type: string
  17949. nullable: true
  17950. title: handled by
  17951. description: 字段 handled_by。
  17952. created_at:
  17953. type: string
  17954. nullable: true
  17955. title: 创建时间
  17956. description: 创建时间。
  17957. required:
  17958. - message_id
  17959. - kind
  17960. - ref_type
  17961. - ref_id
  17962. - title
  17963. - body
  17964. - action
  17965. - payload
  17966. - read_at
  17967. - handled_at
  17968. - handled_by
  17969. - created_at
  17970. description: 消息行(列表与动作回执共用形状)。
  17971. title: InboxMessage
  17972. InboxReadResult:
  17973. type: object
  17974. description: 站内信已读标记结果
  17975. properties:
  17976. message_id:
  17977. type: string
  17978. description: 消息 ID
  17979. title: 消息 ID
  17980. changed:
  17981. type: boolean
  17982. description: 本次是否从未读变为已读
  17983. title: 是否已变更
  17984. required:
  17985. - message_id
  17986. - changed
  17987. title: InboxReadResult
  17988. InfluenceItem:
  17989. type: object
  17990. properties:
  17991. key:
  17992. type: string
  17993. title: key
  17994. description: 字段 key。
  17995. label:
  17996. type: string
  17997. title: 标签
  17998. description: 标签。
  17999. count:
  18000. type: number
  18001. title: count
  18002. description: 字段 count。
  18003. note:
  18004. type: string
  18005. nullable: true
  18006. title: 备注
  18007. description: 备注。
  18008. required:
  18009. - key
  18010. - label
  18011. - count
  18012. - note
  18013. description: InfluenceItem 业务数据
  18014. title: InfluenceItem
  18015. IpBandwidthTierListResult:
  18016. type: object
  18017. properties:
  18018. items:
  18019. type: array
  18020. items:
  18021. $ref: '#/components/schemas/IpBandwidthTierRow'
  18022. title: 列表项
  18023. description: 列表项。
  18024. total:
  18025. type: integer
  18026. nullable: true
  18027. title: 总条数
  18028. description: 总条数。
  18029. source:
  18030. type: string
  18031. nullable: true
  18032. title: 来源
  18033. description: 来源。
  18034. required:
  18035. - items
  18036. description: IpBandwidthTierListResult 业务数据
  18037. title: IpBandwidthTierListResult
  18038. IpBandwidthTierRow:
  18039. type: object
  18040. properties:
  18041. tier_key:
  18042. type: string
  18043. title: tier key
  18044. description: 字段 tier_key。
  18045. tier_name:
  18046. type: string
  18047. title: tier name
  18048. description: 字段 tier_name。
  18049. bandwidth_tier_mbps:
  18050. type: integer
  18051. nullable: true
  18052. title: bandwidth tier mbps
  18053. description: 字段 bandwidth_tier_mbps。
  18054. bandwidth_committed:
  18055. type: boolean
  18056. title: bandwidth committed
  18057. description: 字段 bandwidth_committed。
  18058. sort_no:
  18059. type: number
  18060. title: sort no
  18061. description: 字段 sort_no。
  18062. ref_count:
  18063. type: integer
  18064. nullable: true
  18065. title: ref count
  18066. description: 字段 ref_count。
  18067. ref_summary:
  18068. type: string
  18069. nullable: true
  18070. title: ref summary
  18071. description: 字段 ref_summary。
  18072. required:
  18073. - tier_key
  18074. - tier_name
  18075. - bandwidth_tier_mbps
  18076. - bandwidth_committed
  18077. - sort_no
  18078. description: IP 带宽档位目录行(套餐配置 → 线路出口 tab 内维护;)。 `bandwidth_tier_mbps === null`
  18079. =「不承诺带宽」;`bandwidth_committed` 是同一件事的可读位。 `ref_count`/`ref_summary` 由后端逐条带出:>0 表示已被合同 IP
  18080. 备案引用,目录侧不允许删除。
  18081. title: IpBandwidthTierRow
  18082. IpBandwidthTierSaveResult:
  18083. type: object
  18084. properties:
  18085. items:
  18086. type: array
  18087. items:
  18088. $ref: '#/components/schemas/IpBandwidthTierRow'
  18089. title: 列表项
  18090. description: 列表项。
  18091. total:
  18092. type: integer
  18093. nullable: true
  18094. title: 总条数
  18095. description: 总条数。
  18096. source:
  18097. type: string
  18098. nullable: true
  18099. title: 来源
  18100. description: 来源。
  18101. added:
  18102. type: number
  18103. nullable: true
  18104. title: added
  18105. description: 字段 added。
  18106. updated:
  18107. type: number
  18108. nullable: true
  18109. title: 是否已更新
  18110. description: 是否已更新。
  18111. removed:
  18112. type: number
  18113. nullable: true
  18114. title: removed
  18115. description: 字段 removed。
  18116. audit_written:
  18117. type: boolean
  18118. nullable: true
  18119. title: 是否已写审计
  18120. description: 是否已写审计。
  18121. required:
  18122. - items
  18123. description: IpBandwidthTierSaveResult 业务数据
  18124. title: IpBandwidthTierSaveResult
  18125. IpRow:
  18126. type: object
  18127. properties:
  18128. id:
  18129. type: string
  18130. title: ID
  18131. description: ID。
  18132. row_no:
  18133. type: string
  18134. title: row no
  18135. description: 字段 row_no。
  18136. egress:
  18137. type: string
  18138. nullable: true
  18139. title: egress
  18140. description: 字段 egress。
  18141. overseas_ip:
  18142. type: string
  18143. nullable: true
  18144. title: overseas ip
  18145. description: 字段 overseas_ip。
  18146. ip_type:
  18147. type: string
  18148. nullable: true
  18149. title: ip type
  18150. description: 字段 ip_type。
  18151. bandwidth_mbps:
  18152. type: string
  18153. nullable: true
  18154. title: bandwidth mbps
  18155. description: 字段 bandwidth_mbps。
  18156. pin_registered:
  18157. type: string
  18158. nullable: true
  18159. title: pin registered
  18160. description: 字段 pin_registered。
  18161. cpid_registered:
  18162. type: string
  18163. nullable: true
  18164. title: cpid registered
  18165. description: 字段 cpid_registered。
  18166. action:
  18167. type: string
  18168. nullable: true
  18169. description: P1:行级动作 `allocate`/`release`;释放行只定位旧 IP,不再要求重填凭据。
  18170. title: 动作
  18171. sub_account_ids:
  18172. type: array
  18173. items:
  18174. type: string
  18175. title: sub_account_ids元素
  18176. nullable: true
  18177. description: P1:该 IP 映射到的分账号主键(`fixed_ip` 恒 1 个、`nat_forward` 1..N 个)。
  18178. title: sub account ids
  18179. required:
  18180. - id
  18181. - row_no
  18182. - egress
  18183. - overseas_ip
  18184. - ip_type
  18185. - bandwidth_mbps
  18186. - pin_registered
  18187. - cpid_registered
  18188. description: PIN/CPID 库里只有密文 ⇒ 只出"有没有登记"(`"true"`/`"false"` 字符串)。
  18189. title: IpRow
  18190. JobKey:
  18191. type: string
  18192. description: 作业 key(`bos_jobs::registry::JobKey` 的 serde 序列化名)。
  18193. title: JobKey
  18194. JobRunDetailItem:
  18195. type: object
  18196. properties:
  18197. object_type:
  18198. type: string
  18199. nullable: true
  18200. title: object type
  18201. description: 字段 object_type。
  18202. object_id:
  18203. type: string
  18204. nullable: true
  18205. title: object id
  18206. description: 字段 object_id。
  18207. object_name:
  18208. type: string
  18209. nullable: true
  18210. title: object name
  18211. description: 字段 object_name。
  18212. disposition:
  18213. type: string
  18214. nullable: true
  18215. title: disposition
  18216. description: 字段 disposition。
  18217. reason:
  18218. type: string
  18219. nullable: true
  18220. title: reason
  18221. description: 字段 reason。
  18222. description: 一轮执行的对象级明细(最多 200 条;后端 `bos_job_run.detail_json`)。
  18223. title: JobRunDetailItem
  18224. JobRunReport:
  18225. type: object
  18226. properties:
  18227. run_id:
  18228. type: string
  18229. title: run id
  18230. description: 字段 run_id。
  18231. job_key:
  18232. $ref: '#/components/schemas/JobKey'
  18233. job_name:
  18234. type: string
  18235. title: job name
  18236. description: 字段 job_name。
  18237. biz_date:
  18238. type: string
  18239. title: 业务日
  18240. description: 字段 biz_date。
  18241. period:
  18242. type: string
  18243. nullable: true
  18244. title: 账期
  18245. description: 字段 period。
  18246. status:
  18247. type: string
  18248. enum:
  18249. - success
  18250. - partial
  18251. - failed
  18252. title: 状态
  18253. description: 状态。
  18254. status_label:
  18255. type: string
  18256. title: status label
  18257. description: 字段 status_label。
  18258. scanned:
  18259. type: number
  18260. title: scanned
  18261. description: 字段 scanned。
  18262. matched:
  18263. type: number
  18264. title: 是否匹配
  18265. description: 是否匹配。
  18266. processed:
  18267. type: number
  18268. title: processed
  18269. description: 字段 processed。
  18270. succeeded:
  18271. type: number
  18272. title: succeeded
  18273. description: 字段 succeeded。
  18274. skipped:
  18275. type: number
  18276. title: skipped
  18277. description: 字段 skipped。
  18278. failed:
  18279. type: number
  18280. title: failed
  18281. description: 字段 failed。
  18282. message:
  18283. type: string
  18284. title: 说明
  18285. description: 说明。
  18286. details:
  18287. type: array
  18288. items:
  18289. $ref: '#/components/schemas/JobRunDetailItem'
  18290. title: details
  18291. description: 字段 details。
  18292. violations:
  18293. type: array
  18294. items:
  18295. $ref: '#/components/schemas/JobRunDetailItem'
  18296. title: violations
  18297. description: 字段 violations。
  18298. disposition:
  18299. type: string
  18300. title: disposition
  18301. description: 字段 disposition。
  18302. disposition_code:
  18303. type: string
  18304. title: disposition code
  18305. description: 字段 disposition_code。
  18306. required:
  18307. - run_id
  18308. - job_key
  18309. - job_name
  18310. - biz_date
  18311. - period
  18312. - status
  18313. - status_label
  18314. - scanned
  18315. - matched
  18316. - processed
  18317. - succeeded
  18318. - skipped
  18319. - failed
  18320. - message
  18321. - details
  18322. - violations
  18323. - disposition
  18324. - disposition_code
  18325. description: JobRunReport 业务数据
  18326. title: JobRunReport
  18327. JobRunRow:
  18328. type: object
  18329. properties:
  18330. run_id:
  18331. type: string
  18332. title: run id
  18333. description: 字段 run_id。
  18334. job_key:
  18335. $ref: '#/components/schemas/JobKey'
  18336. job_name:
  18337. type: string
  18338. nullable: true
  18339. title: job name
  18340. description: 字段 job_name。
  18341. trigger:
  18342. type: string
  18343. description: 定时/事件/人工
  18344. title: trigger
  18345. trigger_code:
  18346. type: string
  18347. enum:
  18348. - schedule
  18349. - event
  18350. - manual
  18351. title: trigger code
  18352. description: 字段 trigger_code。
  18353. started_at:
  18354. type: string
  18355. title: started at
  18356. description: 字段 started_at。
  18357. finished_at:
  18358. type: string
  18359. nullable: true
  18360. title: finished at
  18361. description: 字段 finished_at。
  18362. status:
  18363. type: string
  18364. enum:
  18365. - 成功
  18366. - 部分成功
  18367. - 失败
  18368. title: 状态
  18369. description: 状态。
  18370. status_code:
  18371. type: string
  18372. enum:
  18373. - success
  18374. - partial
  18375. - failed
  18376. title: status code
  18377. description: 字段 status_code。
  18378. scanned:
  18379. type: number
  18380. title: scanned
  18381. description: 字段 scanned。
  18382. matched:
  18383. type: number
  18384. title: 是否匹配
  18385. description: 是否匹配。
  18386. succeeded:
  18387. type: number
  18388. title: succeeded
  18389. description: 字段 succeeded。
  18390. skipped:
  18391. type: number
  18392. title: skipped
  18393. description: 字段 skipped。
  18394. failed:
  18395. type: number
  18396. title: failed
  18397. description: 字段 failed。
  18398. message:
  18399. type: string
  18400. nullable: true
  18401. title: 说明
  18402. description: 说明。
  18403. disposition:
  18404. type: string
  18405. title: disposition
  18406. description: 字段 disposition。
  18407. disposition_code:
  18408. type: string
  18409. enum:
  18410. - none
  18411. - pending_rerun
  18412. - rerun_done
  18413. - covered
  18414. title: disposition code
  18415. description: 字段 disposition_code。
  18416. goto_page:
  18417. type: string
  18418. nullable: true
  18419. title: goto page
  18420. description: 字段 goto_page。
  18421. goto_visible:
  18422. type: boolean
  18423. title: goto visible
  18424. description: 字段 goto_visible。
  18425. detail:
  18426. type: array
  18427. items:
  18428. $ref: '#/components/schemas/JobRunDetailItem'
  18429. title: detail
  18430. description: 字段 detail。
  18431. violations:
  18432. type: array
  18433. items:
  18434. $ref: '#/components/schemas/JobRunDetailItem'
  18435. title: violations
  18436. description: 字段 violations。
  18437. actor_user_id:
  18438. type: string
  18439. nullable: true
  18440. title: actor user id
  18441. description: 字段 actor_user_id。
  18442. actor_role:
  18443. type: string
  18444. nullable: true
  18445. title: actor role
  18446. description: 字段 actor_role。
  18447. biz_date:
  18448. type: string
  18449. nullable: true
  18450. title: 业务日
  18451. description: 字段 biz_date。
  18452. period:
  18453. type: string
  18454. nullable: true
  18455. title: 账期
  18456. description: 字段 period。
  18457. required:
  18458. - run_id
  18459. - job_key
  18460. - trigger
  18461. - trigger_code
  18462. - started_at
  18463. - finished_at
  18464. - status
  18465. - status_code
  18466. - scanned
  18467. - matched
  18468. - succeeded
  18469. - skipped
  18470. - failed
  18471. - message
  18472. - disposition
  18473. - disposition_code
  18474. - goto_page
  18475. - goto_visible
  18476. - detail
  18477. - violations
  18478. - actor_user_id
  18479. - actor_role
  18480. - biz_date
  18481. - period
  18482. description: JobRunRow 业务数据
  18483. title: JobRunRow
  18484. JobSpecRow:
  18485. type: object
  18486. properties:
  18487. key:
  18488. $ref: '#/components/schemas/JobKey'
  18489. name:
  18490. type: string
  18491. description: 注册契约名称
  18492. title: 名称
  18493. display_name:
  18494. type: string
  18495. nullable: true
  18496. description: 业务展示名(清单第 2 列)
  18497. title: 显示名
  18498. group:
  18499. type: string
  18500. enum:
  18501. - business
  18502. - system
  18503. nullable: true
  18504. title: group
  18505. description: 字段 group。
  18506. annotation:
  18507. type: boolean
  18508. nullable: true
  18509. title: annotation
  18510. description: 字段 annotation。
  18511. cron_hint:
  18512. type: string
  18513. title: cron hint
  18514. description: 字段 cron_hint。
  18515. cadence:
  18516. type: object
  18517. properties:
  18518. kind:
  18519. type: string
  18520. enum:
  18521. - daily
  18522. - monthly_first
  18523. hour:
  18524. type: number
  18525. minute:
  18526. type: number
  18527. required:
  18528. - kind
  18529. - hour
  18530. - minute
  18531. nullable: true
  18532. title: cadence
  18533. description: 字段 cadence。
  18534. trigger_text:
  18535. type: string
  18536. nullable: true
  18537. title: trigger text
  18538. description: 字段 trigger_text。
  18539. wired_in_phase1:
  18540. type: boolean
  18541. description: 作业体是否已接线可执行
  18542. title: wired in phase1
  18543. page_switch:
  18544. type: boolean
  18545. nullable: true
  18546. title: page switch
  18547. description: 字段 page_switch。
  18548. enabled:
  18549. type: boolean
  18550. nullable: true
  18551. title: enabled
  18552. description: 字段 enabled。
  18553. toggleable:
  18554. type: boolean
  18555. nullable: true
  18556. title: toggleable
  18557. description: 字段 toggleable。
  18558. reason_code:
  18559. type: string
  18560. enum:
  18561. - NOT_WIRED
  18562. - ROLE_READONLY
  18563. - NO_SWITCH
  18564. nullable: true
  18565. title: reason code
  18566. description: 字段 reason_code。
  18567. last_run_at:
  18568. type: string
  18569. nullable: true
  18570. title: last run at
  18571. description: 字段 last_run_at。
  18572. last_status:
  18573. type: string
  18574. nullable: true
  18575. title: last status
  18576. description: 字段 last_status。
  18577. last_status_code:
  18578. type: string
  18579. enum:
  18580. - success
  18581. - partial
  18582. - failed
  18583. nullable: true
  18584. title: last status code
  18585. description: 字段 last_status_code。
  18586. last_duration_ms:
  18587. type: number
  18588. nullable: true
  18589. title: last duration ms
  18590. description: 字段 last_duration_ms。
  18591. last_counts:
  18592. type: object
  18593. properties:
  18594. scanned:
  18595. type: number
  18596. matched:
  18597. type: number
  18598. succeeded:
  18599. type: number
  18600. skipped:
  18601. type: number
  18602. failed:
  18603. type: number
  18604. required:
  18605. - scanned
  18606. - matched
  18607. - succeeded
  18608. - skipped
  18609. - failed
  18610. nullable: true
  18611. title: last counts
  18612. description: 字段 last_counts。
  18613. run_count:
  18614. type: integer
  18615. nullable: true
  18616. description: 累计执行轮次
  18617. title: run count
  18618. object_scope:
  18619. type: string
  18620. nullable: true
  18621. description: 作业定义弹窗第 5–7 行(注册契约文案逐字)
  18622. title: object scope
  18623. action_text:
  18624. type: string
  18625. nullable: true
  18626. title: action text
  18627. description: 字段 action_text。
  18628. idempotency_text:
  18629. type: string
  18630. nullable: true
  18631. title: idempotency text
  18632. description: 字段 idempotency_text。
  18633. stop_impact_note:
  18634. type: string
  18635. nullable: true
  18636. title: stop impact note
  18637. description: 字段 stop_impact_note。
  18638. required:
  18639. - key
  18640. - name
  18641. - cron_hint
  18642. - wired_in_phase1
  18643. description: JobSpecRow 业务数据
  18644. title: JobSpecRow
  18645. JobToggleResult:
  18646. type: object
  18647. properties:
  18648. job_key:
  18649. $ref: '#/components/schemas/JobKey'
  18650. enabled:
  18651. type: boolean
  18652. title: enabled
  18653. description: 字段 enabled。
  18654. changed:
  18655. type: boolean
  18656. title: 是否已变更
  18657. description: 是否已变更。
  18658. audit_written:
  18659. type: boolean
  18660. title: 是否已写审计
  18661. description: 是否已写审计。
  18662. request_id:
  18663. type: string
  18664. nullable: true
  18665. title: request id
  18666. description: 字段 request_id。
  18667. message:
  18668. type: string
  18669. title: 说明
  18670. description: 说明。
  18671. required:
  18672. - job_key
  18673. - enabled
  18674. - changed
  18675. - audit_written
  18676. - message
  18677. description: JobToggleResult 业务数据
  18678. title: JobToggleResult
  18679. LineExitListResult:
  18680. type: object
  18681. properties:
  18682. items:
  18683. type: array
  18684. items:
  18685. $ref: '#/components/schemas/LineExitRow'
  18686. title: 列表项
  18687. description: 列表项。
  18688. total:
  18689. type: integer
  18690. nullable: true
  18691. title: 总条数
  18692. description: 总条数。
  18693. source:
  18694. type: string
  18695. nullable: true
  18696. title: 来源
  18697. description: 来源。
  18698. required:
  18699. - items
  18700. description: LineExitListResult 业务数据
  18701. title: LineExitListResult
  18702. LineExitRow:
  18703. type: object
  18704. properties:
  18705. exit_name:
  18706. type: string
  18707. title: exit name
  18708. description: 字段 exit_name。
  18709. exit_key:
  18710. type: string
  18711. title: exit key
  18712. description: 字段 exit_key。
  18713. sort_no:
  18714. type: number
  18715. title: sort no
  18716. description: 字段 sort_no。
  18717. price_factor:
  18718. type: number
  18719. nullable: true
  18720. description: 计费系数(默认 1,取值 (0, 1],最多两位小数);最终订阅价=档位价×本列。
  18721. title: price factor
  18722. price_factor_text:
  18723. type: string
  18724. nullable: true
  18725. title: price factor text
  18726. description: 字段 price_factor_text。
  18727. ref_count:
  18728. type: integer
  18729. nullable: true
  18730. title: ref count
  18731. description: 字段 ref_count。
  18732. ref_summary:
  18733. type: string
  18734. nullable: true
  18735. title: ref summary
  18736. description: 字段 ref_summary。
  18737. required:
  18738. - exit_name
  18739. - exit_key
  18740. - sort_no
  18741. description: 线路出口目录行(套餐配置统一维护;合同条目只选择)。 `ref_count`/`ref_summary` 由后端逐条带出:>0 表示已被合同条目/派生档/订阅引用
  18742. (IP 备案那列随合同 IP 条目下线不再计入),目录侧不允许删除( 。
  18743. title: LineExitRow
  18744. LineExitSaveResult:
  18745. type: object
  18746. properties:
  18747. items:
  18748. type: array
  18749. items:
  18750. $ref: '#/components/schemas/LineExitRow'
  18751. title: 列表项
  18752. description: 列表项。
  18753. total:
  18754. type: integer
  18755. nullable: true
  18756. title: 总条数
  18757. description: 总条数。
  18758. source:
  18759. type: string
  18760. nullable: true
  18761. title: 来源
  18762. description: 来源。
  18763. added:
  18764. type: number
  18765. nullable: true
  18766. title: added
  18767. description: 字段 added。
  18768. updated:
  18769. type: number
  18770. nullable: true
  18771. title: 是否已更新
  18772. description: 是否已更新。
  18773. removed:
  18774. type: number
  18775. nullable: true
  18776. title: removed
  18777. description: 字段 removed。
  18778. audit_written:
  18779. type: boolean
  18780. nullable: true
  18781. title: 是否已写审计
  18782. description: 是否已写审计。
  18783. required:
  18784. - items
  18785. description: LineExitSaveResult 业务数据
  18786. title: LineExitSaveResult
  18787. MarkDoneResult:
  18788. type: object
  18789. properties:
  18790. ticket_id:
  18791. type: string
  18792. title: 工单 ID
  18793. description: 工单 ID。
  18794. status:
  18795. $ref: '#/components/schemas/TicketStatus'
  18796. completed_at:
  18797. type: string
  18798. title: 完成时间
  18799. description: 完成时间。
  18800. biz_date:
  18801. type: string
  18802. title: 业务日
  18803. description: 字段 biz_date。
  18804. audit_written:
  18805. type: boolean
  18806. title: 是否已写审计
  18807. description: 是否已写审计。
  18808. required:
  18809. - ticket_id
  18810. - status
  18811. - completed_at
  18812. - biz_date
  18813. - audit_written
  18814. description: MarkDoneResult 业务数据
  18815. title: MarkDoneResult
  18816. MaterialAttachResult:
  18817. type: object
  18818. properties:
  18819. ticket_id:
  18820. type: string
  18821. title: 工单 ID
  18822. description: 工单 ID。
  18823. material_id:
  18824. type: string
  18825. title: material id
  18826. description: 字段 material_id。
  18827. kind:
  18828. type: string
  18829. title: 类型
  18830. description: 类型。
  18831. file_name:
  18832. type: string
  18833. title: 文件名
  18834. description: 文件名。
  18835. size_bytes:
  18836. type: string
  18837. nullable: true
  18838. title: size bytes
  18839. description: 字段 size_bytes。
  18840. audit_written:
  18841. type: boolean
  18842. title: 是否已写审计
  18843. description: 是否已写审计。
  18844. next_step:
  18845. type: string
  18846. title: next step
  18847. description: 字段 next_step。
  18848. required:
  18849. - ticket_id
  18850. - material_id
  18851. - kind
  18852. - file_name
  18853. - size_bytes
  18854. - audit_written
  18855. - next_step
  18856. description: MaterialAttachResult 业务数据
  18857. title: MaterialAttachResult
  18858. MaterialGrantDownload:
  18859. type: object
  18860. properties:
  18861. purpose:
  18862. type: string
  18863. description: 类型:"download"
  18864. title: purpose
  18865. material_id:
  18866. type: string
  18867. title: material id
  18868. description: 字段 material_id。
  18869. kind:
  18870. type: string
  18871. title: 类型
  18872. description: 类型。
  18873. ticket_id:
  18874. type: string
  18875. title: 工单 ID
  18876. description: 工单 ID。
  18877. ticket_status:
  18878. $ref: '#/components/schemas/TicketStatus'
  18879. file_name:
  18880. type: string
  18881. title: 文件名
  18882. description: 文件名。
  18883. download_url:
  18884. type: string
  18885. title: 下载地址
  18886. description: 下载地址。
  18887. expires_at:
  18888. type: string
  18889. nullable: true
  18890. title: expires at
  18891. description: 字段 expires_at。
  18892. required:
  18893. - purpose
  18894. - material_id
  18895. - kind
  18896. - ticket_id
  18897. - ticket_status
  18898. - file_name
  18899. - download_url
  18900. - expires_at
  18901. description: 下载分支: 对象键 下发,只给一条平台现签的短时效地址。
  18902. title: MaterialGrantDownload
  18903. MaterialGrantResult:
  18904. oneOf:
  18905. - $ref: '#/components/schemas/MaterialGrantUpload'
  18906. - $ref: '#/components/schemas/MaterialGrantDownload'
  18907. description: MaterialGrantResult 业务数据
  18908. title: MaterialGrantResult
  18909. MaterialGrantUpload:
  18910. type: object
  18911. properties:
  18912. purpose:
  18913. type: string
  18914. description: 类型:"upload"
  18915. title: purpose
  18916. kind:
  18917. type: string
  18918. title: 类型
  18919. description: 类型。
  18920. ticket_id:
  18921. type: string
  18922. title: 工单 ID
  18923. description: 工单 ID。
  18924. ticket_status:
  18925. $ref: '#/components/schemas/TicketStatus'
  18926. file_name:
  18927. type: string
  18928. title: 文件名
  18929. description: 文件名。
  18930. oss_key:
  18931. type: string
  18932. title: 对象键
  18933. description: 对象键。
  18934. prefix:
  18935. type: string
  18936. title: prefix
  18937. description: 字段 prefix。
  18938. presign_endpoint:
  18939. type: string
  18940. title: presign endpoint
  18941. description: 字段 presign_endpoint。
  18942. bucket:
  18943. type: string
  18944. title: bucket
  18945. description: 字段 bucket。
  18946. size_limit_bytes:
  18947. type: number
  18948. title: size limit bytes
  18949. description: 字段 size_limit_bytes。
  18950. next_step:
  18951. type: string
  18952. title: next step
  18953. description: 字段 next_step。
  18954. required:
  18955. - purpose
  18956. - kind
  18957. - ticket_id
  18958. - ticket_status
  18959. - file_name
  18960. - oss_key
  18961. - prefix
  18962. - presign_endpoint
  18963. - bucket
  18964. - size_limit_bytes
  18965. - next_step
  18966. description: 上传分支:服务端派生的对象键与前缀(直传完成后必须原样交给 `material_attach`)。
  18967. title: MaterialGrantUpload
  18968. MessageActionResult:
  18969. type: object
  18970. properties:
  18971. message_id:
  18972. type: string
  18973. title: 消息 ID
  18974. description: 消息 ID。
  18975. status:
  18976. type: string
  18977. title: 状态
  18978. description: 状态。
  18979. ticket_id:
  18980. type: string
  18981. title: 工单 ID
  18982. description: 工单 ID。
  18983. audit_written:
  18984. type: boolean
  18985. title: 是否已写审计
  18986. description: 是否已写审计。
  18987. next_step:
  18988. type: string
  18989. title: next step
  18990. description: 字段 next_step。
  18991. required:
  18992. - message_id
  18993. - status
  18994. - ticket_id
  18995. - audit_written
  18996. - next_step
  18997. description: MessageActionResult 业务数据
  18998. title: MessageActionResult
  18999. MessagePendingResult:
  19000. type: object
  19001. properties:
  19002. rows:
  19003. type: array
  19004. items:
  19005. $ref: '#/components/schemas/TicketMessage'
  19006. title: 行集
  19007. description: 行集。
  19008. total:
  19009. type: integer
  19010. title: 总条数
  19011. description: 总条数。
  19012. page:
  19013. type: integer
  19014. title: 页码
  19015. description: 页码。
  19016. page_size:
  19017. type: integer
  19018. title: 每页条数
  19019. description: 每页条数。
  19020. required:
  19021. - rows
  19022. - total
  19023. - page
  19024. - page_size
  19025. description: MessagePendingResult 业务数据
  19026. title: MessagePendingResult
  19027. MountCandidateRow:
  19028. type: object
  19029. properties:
  19030. customer_id:
  19031. type: string
  19032. title: 客户 ID
  19033. description: 客户 ID。
  19034. customer_name:
  19035. type: string
  19036. title: 客户名称
  19037. description: 客户名称。
  19038. region_node_id:
  19039. type: string
  19040. title: 区域节点 ID
  19041. description: 区域节点 ID。
  19042. region_path:
  19043. type: string
  19044. title: region path
  19045. description: 字段 region_path。
  19046. operator_id:
  19047. type: string
  19048. nullable: true
  19049. title: 运营商 ID
  19050. description: 运营商 ID。
  19051. required:
  19052. - customer_id
  19053. - customer_name
  19054. - region_node_id
  19055. - region_path
  19056. - operator_id
  19057. description: MountCandidateRow 业务数据
  19058. title: MountCandidateRow
  19059. MountCandidatesResult:
  19060. type: object
  19061. properties:
  19062. items:
  19063. type: array
  19064. items:
  19065. $ref: '#/components/schemas/MountCandidateRow'
  19066. title: 列表项
  19067. description: 列表项。
  19068. total:
  19069. type: integer
  19070. nullable: true
  19071. title: 总条数
  19072. description: 总条数。
  19073. required:
  19074. - items
  19075. description: MountCandidatesResult 业务数据
  19076. title: MountCandidatesResult
  19077. NotifyChannelPref:
  19078. type: object
  19079. properties:
  19080. enabled:
  19081. type: boolean
  19082. title: enabled
  19083. description: 字段 enabled。
  19084. available:
  19085. type: boolean
  19086. title: available
  19087. description: 字段 available。
  19088. address_hint:
  19089. type: string
  19090. nullable: true
  19091. description: 地址摘要(邮箱/手机号均脱敏);站内恒 `null`。
  19092. title: address hint
  19093. required:
  19094. - enabled
  19095. - available
  19096. - address_hint
  19097. description: 单通道偏好:`enabled` 是记录值;`available` 是服务端判定的可否切换。
  19098. title: NotifyChannelPref
  19099. OpenStop:
  19100. type: object
  19101. properties:
  19102. open_stop_id:
  19103. type: string
  19104. nullable: true
  19105. title: open stop id
  19106. description: 字段 open_stop_id。
  19107. customer_id:
  19108. type: string
  19109. nullable: true
  19110. title: 客户 ID
  19111. description: 客户 ID。
  19112. subscription_id:
  19113. type: string
  19114. nullable: true
  19115. title: 订阅 ID
  19116. description: 订阅 ID。
  19117. action:
  19118. type: string
  19119. nullable: true
  19120. title: 动作
  19121. description: 动作。
  19122. exec_status:
  19123. type: string
  19124. nullable: true
  19125. title: exec status
  19126. description: 字段 exec_status。
  19127. exec_date:
  19128. type: string
  19129. nullable: true
  19130. title: exec date
  19131. description: 字段 exec_date。
  19132. effective_account_count:
  19133. type: string
  19134. nullable: true
  19135. title: effective account count
  19136. description: 字段 effective_account_count。
  19137. backfill_id:
  19138. type: string
  19139. nullable: true
  19140. title: backfill id
  19141. description: 字段 backfill_id。
  19142. deferred_until:
  19143. type: string
  19144. nullable: true
  19145. title: 延期至
  19146. description: 延期至。
  19147. note:
  19148. type: string
  19149. nullable: true
  19150. title: 备注
  19151. description: 备注。
  19152. closed_flag:
  19153. type: string
  19154. nullable: true
  19155. title: closed flag
  19156. description: 字段 closed_flag。
  19157. row_version:
  19158. type: string
  19159. nullable: true
  19160. title: 乐观锁版本
  19161. description: 乐观锁版本。
  19162. accounts:
  19163. type: array
  19164. items:
  19165. $ref: '#/components/schemas/OpenStopAccount'
  19166. title: accounts
  19167. description: 字段 accounts。
  19168. overdue:
  19169. type: boolean
  19170. nullable: true
  19171. title: overdue
  19172. description: 字段 overdue。
  19173. preview:
  19174. type: boolean
  19175. nullable: true
  19176. description: 尚无 open_stop 行时的待停账号预览块。
  19177. title: preview
  19178. required:
  19179. - effective_account_count
  19180. - accounts
  19181. description: OpenStop 业务数据
  19182. title: OpenStop
  19183. OpenStopAccount:
  19184. type: object
  19185. properties:
  19186. id:
  19187. type: string
  19188. nullable: true
  19189. description: 回填落库行有 id; 预览行可能缺席。
  19190. title: ID
  19191. sub_account_id:
  19192. type: string
  19193. nullable: true
  19194. title: sub account id
  19195. description: 字段 sub_account_id。
  19196. before_status:
  19197. type: string
  19198. nullable: true
  19199. title: before status
  19200. description: 字段 before_status。
  19201. after_status:
  19202. type: string
  19203. nullable: true
  19204. title: after status
  19205. description: 字段 after_status。
  19206. effective_date:
  19207. type: string
  19208. nullable: true
  19209. title: effective date
  19210. description: 字段 effective_date。
  19211. source:
  19212. type: string
  19213. nullable: true
  19214. title: 来源
  19215. description: 来源。
  19216. display_name:
  19217. type: string
  19218. nullable: true
  19219. title: 显示名
  19220. description: 显示名。
  19221. net_account:
  19222. type: string
  19223. nullable: true
  19224. title: net account
  19225. description: 字段 net_account。
  19226. required:
  19227. - sub_account_id
  19228. - before_status
  19229. - source
  19230. - display_name
  19231. - net_account
  19232. description: OpenStopAccount 业务数据
  19233. title: OpenStopAccount
  19234. OperatorCreateResult:
  19235. type: object
  19236. properties:
  19237. operator_id:
  19238. type: string
  19239. title: 运营商 ID
  19240. description: 运营商 ID。
  19241. name:
  19242. type: string
  19243. title: 名称
  19244. description: 名称。
  19245. brand:
  19246. type: string
  19247. title: brand
  19248. description: 字段 brand。
  19249. region_node_id:
  19250. type: string
  19251. title: 区域节点 ID
  19252. description: 区域节点 ID。
  19253. required:
  19254. - operator_id
  19255. - name
  19256. - brand
  19257. - region_node_id
  19258. description: OperatorCreateResult 业务数据
  19259. title: OperatorCreateResult
  19260. OperatorDeleteResult:
  19261. type: object
  19262. properties:
  19263. operator_id:
  19264. type: string
  19265. title: 运营商 ID
  19266. description: 运营商 ID。
  19267. deleted:
  19268. type: boolean
  19269. title: 是否已删除
  19270. description: 是否已删除。
  19271. blocked:
  19272. type: array
  19273. items:
  19274. type: string
  19275. title: 阻塞项元素
  19276. description: 删除前检查未通过项(成功时为空)
  19277. title: 阻塞项
  19278. revoked_user_ids:
  19279. type: array
  19280. items:
  19281. type: string
  19282. title: revoked_user_ids元素
  19283. nullable: true
  19284. description: 级联处置的对账账号 user_id
  19285. title: revoked user ids
  19286. audit_written:
  19287. type: boolean
  19288. nullable: true
  19289. title: 是否已写审计
  19290. description: 是否已写审计。
  19291. required:
  19292. - operator_id
  19293. - deleted
  19294. - blocked
  19295. description: OperatorDeleteResult 业务数据
  19296. title: OperatorDeleteResult
  19297. OperatorListResult:
  19298. type: object
  19299. properties:
  19300. items:
  19301. type: array
  19302. items:
  19303. $ref: '#/components/schemas/OperatorRow'
  19304. title: 列表项
  19305. description: 列表项。
  19306. total:
  19307. type: integer
  19308. title: 总条数
  19309. description: 总条数。
  19310. page:
  19311. type: integer
  19312. nullable: true
  19313. title: 页码
  19314. description: 页码。
  19315. page_size:
  19316. type: integer
  19317. nullable: true
  19318. title: 每页条数
  19319. description: 每页条数。
  19320. required:
  19321. - items
  19322. - total
  19323. description: OperatorListResult 业务数据
  19324. title: OperatorListResult
  19325. OperatorRow:
  19326. type: object
  19327. properties:
  19328. operator_id:
  19329. type: string
  19330. title: 运营商 ID
  19331. description: 运营商 ID。
  19332. name:
  19333. type: string
  19334. title: 名称
  19335. description: 名称。
  19336. brand:
  19337. type: string
  19338. nullable: true
  19339. title: brand
  19340. description: 字段 brand。
  19341. region_node_id:
  19342. type: string
  19343. title: 区域节点 ID
  19344. description: 区域节点 ID。
  19345. region_path_name:
  19346. type: string
  19347. nullable: true
  19348. description: '`bos_region_meta.path_name`(现为节点 ID 链;未建档=null)'
  19349. title: region path name
  19350. region_level:
  19351. type: string
  19352. nullable: true
  19353. description: '`bos_region_meta.level`,dev 值域:省/市/区县'
  19354. title: region level
  19355. account:
  19356. $ref: '#/components/schemas/SubjectAccount'
  19357. recon_day:
  19358. type: number
  19359. nullable: true
  19360. description: '对账日;`null`=未单独设置(跟随系统默认), 与「字段缺失」混为一谈'
  19361. title: recon day
  19362. pay_cycle:
  19363. type: string
  19364. title: pay cycle
  19365. description: 字段 pay_cycle。
  19366. settle_mode:
  19367. type: string
  19368. title: settle mode
  19369. description: 字段 settle_mode。
  19370. settle_value:
  19371. type: string
  19372. nullable: true
  19373. title: settle value
  19374. description: 字段 settle_value。
  19375. customer_count:
  19376. type: integer
  19377. title: customer count
  19378. description: 字段 customer_count。
  19379. required:
  19380. - operator_id
  19381. - name
  19382. - brand
  19383. - region_node_id
  19384. - region_path_name
  19385. - region_level
  19386. - account
  19387. - recon_day
  19388. - pay_cycle
  19389. - settle_mode
  19390. - settle_value
  19391. - customer_count
  19392. description: OperatorRow 业务数据
  19393. title: OperatorRow
  19394. OperatorUpdateResult:
  19395. type: object
  19396. properties:
  19397. operator_id:
  19398. type: string
  19399. title: 运营商 ID
  19400. description: 运营商 ID。
  19401. updated:
  19402. type: boolean
  19403. title: 是否已更新
  19404. description: 是否已更新。
  19405. required:
  19406. - operator_id
  19407. - updated
  19408. description: OperatorUpdateResult 业务数据
  19409. title: OperatorUpdateResult
  19410. OpsMemberAddResult:
  19411. type: object
  19412. properties:
  19413. member_id:
  19414. type: string
  19415. title: 成员 ID
  19416. description: 成员 ID。
  19417. team_id:
  19418. type: string
  19419. title: 团队 ID
  19420. description: 团队 ID。
  19421. user_id:
  19422. type: string
  19423. title: 用户 ID
  19424. description: 用户 ID。
  19425. is_primary:
  19426. type: boolean
  19427. title: 是否主账号
  19428. description: 是否主账号。
  19429. scope_mode:
  19430. type: string
  19431. title: 可见形态
  19432. description: 可见形态。
  19433. display_name:
  19434. type: string
  19435. nullable: true
  19436. description: 成员姓名(`bos_account_ext.display_name`);`null`=未填,前端回落显示登录名
  19437. title: 显示名
  19438. username:
  19439. type: string
  19440. nullable: true
  19441. title: 登录名
  19442. description: 登录名。
  19443. mobile:
  19444. type: string
  19445. nullable: true
  19446. title: 手机号
  19447. description: 手机号。
  19448. member_count:
  19449. type: integer
  19450. title: member count
  19451. description: 字段 member_count。
  19452. ticket_mode:
  19453. type: string
  19454. description: 可处理类型形态:`follow_team`=随团队;`custom`=勾选子集
  19455. title: ticket mode
  19456. ticket_types:
  19457. type: array
  19458. items:
  19459. type: string
  19460. title: ticket_types元素
  19461. description: 成员有效可接类型(`follow_team`=团队可分配类型)
  19462. title: 工单类型清单
  19463. account:
  19464. $ref: '#/components/schemas/AccountOut'
  19465. required:
  19466. - member_id
  19467. - team_id
  19468. - user_id
  19469. - is_primary
  19470. - scope_mode
  19471. - display_name
  19472. - username
  19473. - mobile
  19474. - member_count
  19475. - ticket_mode
  19476. - ticket_types
  19477. - account
  19478. description: OpsMemberAddResult 业务数据
  19479. title: OpsMemberAddResult
  19480. OpsMemberRemoveResult:
  19481. type: object
  19482. properties:
  19483. member_id:
  19484. type: string
  19485. title: 成员 ID
  19486. description: 成员 ID。
  19487. team_id:
  19488. type: string
  19489. title: 团队 ID
  19490. description: 团队 ID。
  19491. user_id:
  19492. type: string
  19493. title: 用户 ID
  19494. description: 用户 ID。
  19495. removed:
  19496. type: string
  19497. description: 类型:false
  19498. title: removed
  19499. blockers:
  19500. type: array
  19501. items:
  19502. $ref: '#/components/schemas/BlockerItem'
  19503. title: blockers
  19504. description: 字段 blockers。
  19505. account_deactivation:
  19506. type: object
  19507. properties:
  19508. applied:
  19509. type: boolean
  19510. reason:
  19511. type: string
  19512. required:
  19513. - applied
  19514. - reason
  19515. title: account deactivation
  19516. description: 字段 account_deactivation。
  19517. note:
  19518. type: string
  19519. title: 备注
  19520. description: 备注。
  19521. required:
  19522. - member_id
  19523. - team_id
  19524. - user_id
  19525. - removed
  19526. - blockers
  19527. - account_deactivation
  19528. - note
  19529. description: OpsMemberRemoveResult 业务数据
  19530. title: OpsMemberRemoveResult
  19531. OpsMemberScopeSaveResult:
  19532. type: object
  19533. properties:
  19534. member_id:
  19535. type: string
  19536. title: 成员 ID
  19537. description: 成员 ID。
  19538. team_id:
  19539. type: string
  19540. title: 团队 ID
  19541. description: 团队 ID。
  19542. scope_mode:
  19543. type: string
  19544. title: 可见形态
  19545. description: 可见形态。
  19546. scope_mode_before:
  19547. type: string
  19548. nullable: true
  19549. title: scope mode before
  19550. description: 字段 scope_mode_before。
  19551. is_primary:
  19552. type: boolean
  19553. title: 是否主账号
  19554. description: 是否主账号。
  19555. scope_rows:
  19556. type: array
  19557. items:
  19558. type: string
  19559. title: scope_rows元素
  19560. title: scope rows
  19561. description: 字段 scope_rows。
  19562. scope_row_count:
  19563. type: integer
  19564. title: scope row count
  19565. description: 字段 scope_row_count。
  19566. team_coverage_count:
  19567. type: integer
  19568. title: team coverage count
  19569. description: 字段 team_coverage_count。
  19570. team_coverage_basis:
  19571. type: string
  19572. title: team coverage basis
  19573. description: 字段 team_coverage_basis。
  19574. required:
  19575. - member_id
  19576. - team_id
  19577. - scope_mode
  19578. - scope_mode_before
  19579. - is_primary
  19580. - scope_rows
  19581. - scope_row_count
  19582. - team_coverage_count
  19583. - team_coverage_basis
  19584. description: OpsMemberScopeSaveResult 业务数据
  19585. title: OpsMemberScopeSaveResult
  19586. OpsMemberUpdateResult:
  19587. type: object
  19588. properties:
  19589. member_id:
  19590. type: string
  19591. title: 成员 ID
  19592. description: 成员 ID。
  19593. team_id:
  19594. type: string
  19595. title: 团队 ID
  19596. description: 团队 ID。
  19597. user_id:
  19598. type: string
  19599. title: 用户 ID
  19600. description: 用户 ID。
  19601. is_primary:
  19602. type: boolean
  19603. title: 是否主账号
  19604. description: 是否主账号。
  19605. scope_mode:
  19606. type: string
  19607. title: 可见形态
  19608. description: 可见形态。
  19609. display_name:
  19610. type: string
  19611. nullable: true
  19612. description: 回读的成员姓名真值(`bos_account_ext.display_name`)
  19613. title: 显示名
  19614. display_name_updated:
  19615. type: boolean
  19616. title: display name updated
  19617. description: 字段 display_name_updated。
  19618. mobile:
  19619. type: string
  19620. nullable: true
  19621. title: 手机号
  19622. description: 手机号。
  19623. mobile_updated:
  19624. type: boolean
  19625. title: mobile updated
  19626. description: 字段 mobile_updated。
  19627. ticket_mode:
  19628. type: string
  19629. description: 回读的类型形态:`follow_team`/`custom`
  19630. title: ticket mode
  19631. ticket_mode_updated:
  19632. type: boolean
  19633. title: ticket mode updated
  19634. description: 字段 ticket_mode_updated。
  19635. ticket_types:
  19636. type: array
  19637. items:
  19638. type: string
  19639. title: ticket_types元素
  19640. description: 成员有效可接类型(`follow_team`/主账号=团队类型;`custom` 空数组=不接单)
  19641. title: 工单类型清单
  19642. required:
  19643. - member_id
  19644. - team_id
  19645. - user_id
  19646. - is_primary
  19647. - scope_mode
  19648. - display_name
  19649. - display_name_updated
  19650. - mobile
  19651. - mobile_updated
  19652. - ticket_mode
  19653. - ticket_mode_updated
  19654. - ticket_types
  19655. description: OpsMemberUpdateResult 业务数据
  19656. title: OpsMemberUpdateResult
  19657. OpsTeamCoverage:
  19658. type: object
  19659. properties:
  19660. customers:
  19661. type: array
  19662. items:
  19663. type: object
  19664. properties:
  19665. customer_id:
  19666. type: string
  19667. customer_name:
  19668. type: string
  19669. valid_from:
  19670. type: string
  19671. nullable: true
  19672. required:
  19673. - customer_id
  19674. - customer_name
  19675. - valid_from
  19676. title: 客户数
  19677. description: 客户数。
  19678. total:
  19679. type: integer
  19680. title: 总条数
  19681. description: 总条数。
  19682. required:
  19683. - customers
  19684. - total
  19685. description: OpsTeamCoverage 业务数据
  19686. title: OpsTeamCoverage
  19687. OpsTeamCreateResult:
  19688. type: object
  19689. properties:
  19690. team_id:
  19691. type: string
  19692. title: 团队 ID
  19693. description: 团队 ID。
  19694. team_name:
  19695. type: string
  19696. title: 团队名称
  19697. description: 团队名称。
  19698. region_node_id:
  19699. type: string
  19700. title: 区域节点 ID
  19701. description: 区域节点 ID。
  19702. region_level:
  19703. type: string
  19704. description: '`bos_region_meta.level`(运维团队 限省级,可下沉市/区县)'
  19705. title: region level
  19706. region_path_name:
  19707. type: string
  19708. title: region path name
  19709. description: 字段 region_path_name。
  19710. dispatch_mode:
  19711. type: string
  19712. title: dispatch mode
  19713. description: 字段 dispatch_mode。
  19714. settle_mode:
  19715. type: string
  19716. nullable: true
  19717. title: settle mode
  19718. description: 字段 settle_mode。
  19719. settle_value:
  19720. type: string
  19721. nullable: true
  19722. title: settle value
  19723. description: 字段 settle_value。
  19724. ticket_types:
  19725. type: array
  19726. items:
  19727. type: string
  19728. title: ticket_types元素
  19729. description: '回读 `ops_team_ticket_type`'
  19730. title: 工单类型清单
  19731. requested_ticket_types:
  19732. type: array
  19733. items:
  19734. type: string
  19735. title: requested_ticket_types元素
  19736. description: 本次请求提交的类型(与 `ticket_types` 不一致即未落库)
  19737. title: requested ticket types
  19738. member_count:
  19739. type: integer
  19740. title: member count
  19741. description: 字段 member_count。
  19742. primary_member_id:
  19743. type: string
  19744. title: primary member id
  19745. description: 字段 primary_member_id。
  19746. primary_account:
  19747. $ref: '#/components/schemas/AccountOut'
  19748. ops_main_scope_check:
  19749. $ref: '#/components/schemas/ScopeCheck'
  19750. required:
  19751. - team_id
  19752. - team_name
  19753. - region_node_id
  19754. - region_level
  19755. - region_path_name
  19756. - dispatch_mode
  19757. - settle_mode
  19758. - settle_value
  19759. - ticket_types
  19760. - requested_ticket_types
  19761. - member_count
  19762. - primary_member_id
  19763. - primary_account
  19764. - ops_main_scope_check
  19765. description: OpsTeamCreateResult 业务数据
  19766. title: OpsTeamCreateResult
  19767. OpsTeamDeleteResult:
  19768. type: object
  19769. properties:
  19770. team_id:
  19771. type: string
  19772. title: 团队 ID
  19773. description: 团队 ID。
  19774. team_name:
  19775. type: string
  19776. title: 团队名称
  19777. description: 团队名称。
  19778. deleted:
  19779. type: string
  19780. description: 类型:false
  19781. title: 是否已删除
  19782. blockers:
  19783. type: array
  19784. items:
  19785. $ref: '#/components/schemas/BlockerItem'
  19786. title: blockers
  19787. description: 字段 blockers。
  19788. unverifiable_checks:
  19789. type: array
  19790. items:
  19791. $ref: '#/components/schemas/UnverifiableCheck'
  19792. title: unverifiable checks
  19793. description: 字段 unverifiable_checks。
  19794. ops_main_scope_check:
  19795. $ref: '#/components/schemas/ScopeCheck'
  19796. note:
  19797. type: string
  19798. title: 备注
  19799. description: 备注。
  19800. required:
  19801. - team_id
  19802. - team_name
  19803. - deleted
  19804. - blockers
  19805. - unverifiable_checks
  19806. - ops_main_scope_check
  19807. - note
  19808. description: OpsTeamDeleteResult 业务数据
  19809. title: OpsTeamDeleteResult
  19810. OpsTeamDispatchResult:
  19811. type: object
  19812. properties:
  19813. team_id:
  19814. type: string
  19815. title: 团队 ID
  19816. description: 团队 ID。
  19817. dispatch_mode:
  19818. type: string
  19819. title: dispatch mode
  19820. description: 字段 dispatch_mode。
  19821. dispatch_mode_before:
  19822. type: string
  19823. nullable: true
  19824. description: '仅「确有变更」分支下发'
  19825. title: dispatch mode before
  19826. changed:
  19827. type: boolean
  19828. title: 是否已变更
  19829. description: 是否已变更。
  19830. written:
  19831. type: boolean
  19832. title: written
  19833. description: 字段 written。
  19834. scanned:
  19835. type: number
  19836. nullable: true
  19837. description: '本次扫描的待分派工单数(切到 auto_avg 时才有意义)'
  19838. title: scanned
  19839. dispatched:
  19840. type: array
  19841. items:
  19842. type: object
  19843. properties:
  19844. ticket_id:
  19845. type: string
  19846. ticket_no:
  19847. type: string
  19848. nullable: true
  19849. assignee_user_id:
  19850. type: string
  19851. assignee_snapshot_name:
  19852. type: string
  19853. required:
  19854. - ticket_id
  19855. - ticket_no
  19856. - assignee_user_id
  19857. - assignee_snapshot_name
  19858. description: '本次同批次分派成功的工单(与模式切换在同一次 `/dml/batch@v1` 提交)'
  19859. title: dispatched
  19860. skipped:
  19861. type: array
  19862. items:
  19863. type: object
  19864. properties:
  19865. ticket_id:
  19866. type: string
  19867. ticket_no:
  19868. type: string
  19869. nullable: true
  19870. reason:
  19871. type: string
  19872. message:
  19873. type: string
  19874. required:
  19875. - ticket_id
  19876. - ticket_no
  19877. - reason
  19878. - message
  19879. description: '仍留在团队队列的工单:`no_candidate`/`ops_account_only`/`already_taken`'
  19880. title: skipped
  19881. mode_changed:
  19882. type: boolean
  19883. nullable: true
  19884. description: '模式行是否真被本批改写;`false`=提交时模式已被并发改动( 谎报已切换)'
  19885. title: mode changed
  19886. note:
  19887. type: string
  19888. title: 备注
  19889. description: 备注。
  19890. ops_main_scope_check:
  19891. $ref: '#/components/schemas/ScopeCheck'
  19892. audit_written:
  19893. type: boolean
  19894. nullable: true
  19895. title: 是否已写审计
  19896. description: 是否已写审计。
  19897. audit_note:
  19898. type: string
  19899. nullable: true
  19900. title: 审计说明
  19901. description: 审计说明。
  19902. time_note:
  19903. type: string
  19904. nullable: true
  19905. title: time note
  19906. description: 字段 time_note。
  19907. required:
  19908. - team_id
  19909. - dispatch_mode
  19910. - changed
  19911. - written
  19912. - dispatched
  19913. - skipped
  19914. - note
  19915. - ops_main_scope_check
  19916. description: OpsTeamDispatchResult 业务数据
  19917. title: OpsTeamDispatchResult
  19918. OpsTeamListResult:
  19919. type: object
  19920. properties:
  19921. items:
  19922. type: array
  19923. items:
  19924. $ref: '#/components/schemas/OpsTeamRow'
  19925. title: 列表项
  19926. description: 列表项。
  19927. total:
  19928. type: integer
  19929. title: 总条数
  19930. description: 总条数。
  19931. page:
  19932. type: integer
  19933. nullable: true
  19934. title: 页码
  19935. description: 页码。
  19936. page_size:
  19937. type: integer
  19938. nullable: true
  19939. title: 每页条数
  19940. description: 每页条数。
  19941. load_pending:
  19942. type: string
  19943. nullable: true
  19944. description: 后端在有条目时下发:负载列降级说明
  19945. title: load pending
  19946. member_load_pending:
  19947. type: string
  19948. nullable: true
  19949. description: 成员未完成工单列降级说明(`null`/缺省=取数成功)
  19950. title: member load pending
  19951. required:
  19952. - items
  19953. - total
  19954. description: OpsTeamListResult 业务数据
  19955. title: OpsTeamListResult
  19956. OpsTeamMemberRow:
  19957. type: object
  19958. properties:
  19959. member_id:
  19960. type: string
  19961. title: 成员 ID
  19962. description: 成员 ID。
  19963. user_id:
  19964. type: string
  19965. title: 用户 ID
  19966. description: 用户 ID。
  19967. display_name:
  19968. type: string
  19969. nullable: true
  19970. description: 成员姓名(`bos_account_ext.display_name`);`null`=未填,前端回落显示登录名
  19971. title: 显示名
  19972. username:
  19973. type: string
  19974. nullable: true
  19975. title: 登录名
  19976. description: 登录名。
  19977. mobile:
  19978. type: string
  19979. nullable: true
  19980. title: 手机号
  19981. description: 手机号。
  19982. role_code:
  19983. type: string
  19984. nullable: true
  19985. title: 角色码
  19986. description: 角色码。
  19987. is_primary:
  19988. type: boolean
  19989. title: 是否主账号
  19990. description: 是否主账号。
  19991. scope_mode:
  19992. type: string
  19993. title: 可见形态
  19994. description: 可见形态。
  19995. scope_regions:
  19996. type: array
  19997. items:
  19998. type: string
  19999. title: scope_regions元素
  20000. title: scope regions
  20001. description: 字段 scope_regions。
  20002. scope_customers:
  20003. type: array
  20004. items:
  20005. type: string
  20006. title: scope_customers元素
  20007. title: scope customers
  20008. description: 字段 scope_customers。
  20009. ticket_mode:
  20010. type: string
  20011. description: 可处理类型形态:`follow_team`=随团队;`custom`=勾选子集
  20012. title: ticket mode
  20013. ticket_types:
  20014. type: array
  20015. items:
  20016. type: string
  20017. title: ticket_types元素
  20018. nullable: true
  20019. description: 成员有效可接类型(`follow_team`/主账号=团队类型;`custom` 空数组=不接单);`null`=后端未下发
  20020. title: 工单类型清单
  20021. binding_status:
  20022. type: string
  20023. nullable: true
  20024. description: KLT 侧 `bos_user_binding.status` 原文;平台账号状态按权限单独判定
  20025. title: binding status
  20026. activation_status:
  20027. type: string
  20028. nullable: true
  20029. description: '`bos_account_ext.status`(激活码生命周期 none/issued/issuing/activated),与 `binding_status`
  20030. 正交'
  20031. title: 激活态
  20032. open_tickets:
  20033. type: number
  20034. nullable: true
  20035. description: 成员未完成工单数(`pending`+`processing`,责任人是本人;`null`=取数失败)
  20036. title: open tickets
  20037. required:
  20038. - member_id
  20039. - user_id
  20040. - display_name
  20041. - username
  20042. - mobile
  20043. - role_code
  20044. - is_primary
  20045. - scope_mode
  20046. - scope_regions
  20047. - scope_customers
  20048. - ticket_mode
  20049. - ticket_types
  20050. - binding_status
  20051. description: '[实] `ops_team/get_list@v1` 内联成员投影(`ops_member` + `bos_user_binding`)。'
  20052. title: OpsTeamMemberRow
  20053. OpsTeamRow:
  20054. type: object
  20055. properties:
  20056. team_id:
  20057. type: string
  20058. title: 团队 ID
  20059. description: 团队 ID。
  20060. team_name:
  20061. type: string
  20062. title: 团队名称
  20063. description: 团队名称。
  20064. region_node_id:
  20065. type: string
  20066. title: 区域节点 ID
  20067. description: 区域节点 ID。
  20068. region_path_name:
  20069. type: string
  20070. nullable: true
  20071. description: '`bos_region_meta.path_name`(节点 ID 链;未建档=null)'
  20072. title: region path name
  20073. region_level:
  20074. type: string
  20075. nullable: true
  20076. description: '`bos_region_meta.level`(运维团队 限省级,可下沉市/区县)'
  20077. title: region level
  20078. dispatch_mode:
  20079. type: string
  20080. title: dispatch mode
  20081. description: 字段 dispatch_mode。
  20082. settle_mode:
  20083. type: string
  20084. nullable: true
  20085. title: settle mode
  20086. description: 字段 settle_mode。
  20087. settle_value:
  20088. type: string
  20089. nullable: true
  20090. title: settle value
  20091. description: 字段 settle_value。
  20092. primary_username:
  20093. type: string
  20094. nullable: true
  20095. title: primary username
  20096. description: 字段 primary_username。
  20097. member_count:
  20098. type: integer
  20099. title: member count
  20100. description: 字段 member_count。
  20101. members:
  20102. type: array
  20103. items:
  20104. $ref: '#/components/schemas/OpsTeamMemberRow'
  20105. description: '成员明细投影(member_id/user_id 可定位成员级写接口)'
  20106. title: members
  20107. ticket_types:
  20108. type: array
  20109. items:
  20110. type: string
  20111. title: ticket_types元素
  20112. title: 工单类型清单
  20113. description: 字段 ticket_types。
  20114. scope_regions:
  20115. type: array
  20116. items:
  20117. type: string
  20118. title: scope_regions元素
  20119. description: '「负责范围」列:授权区域节点+直接多选客户'
  20120. title: scope regions
  20121. scope_customers:
  20122. type: array
  20123. items:
  20124. type: string
  20125. title: scope_customers元素
  20126. title: scope customers
  20127. description: 字段 scope_customers。
  20128. coverage_customers:
  20129. type: number
  20130. nullable: true
  20131. description: '「覆盖客户」列:范围(含下级)内去重在册客户数;未配置=null'
  20132. title: coverage customers
  20133. open_tickets:
  20134. type: number
  20135. nullable: true
  20136. title: open tickets
  20137. description: 字段 open_tickets。
  20138. overdue_open_tickets:
  20139. type: number
  20140. nullable: true
  20141. title: overdue open tickets
  20142. description: 字段 overdue_open_tickets。
  20143. required:
  20144. - team_id
  20145. - team_name
  20146. - region_node_id
  20147. - region_path_name
  20148. - region_level
  20149. - dispatch_mode
  20150. - settle_mode
  20151. - settle_value
  20152. - primary_username
  20153. - member_count
  20154. - members
  20155. - ticket_types
  20156. - scope_regions
  20157. - scope_customers
  20158. - coverage_customers
  20159. - open_tickets
  20160. - overdue_open_tickets
  20161. description: OpsTeamRow 业务数据
  20162. title: OpsTeamRow
  20163. OpsTeamScopeSaveResult:
  20164. type: object
  20165. properties:
  20166. team_id:
  20167. type: string
  20168. title: 团队 ID
  20169. description: 团队 ID。
  20170. region_node_ids:
  20171. type: array
  20172. items:
  20173. type: string
  20174. title: region_node_ids元素
  20175. title: region node ids
  20176. description: 字段 region_node_ids。
  20177. customer_ids:
  20178. type: array
  20179. items:
  20180. type: string
  20181. title: customer_ids元素
  20182. title: customer ids
  20183. description: 字段 customer_ids。
  20184. region_count:
  20185. type: integer
  20186. title: region count
  20187. description: 字段 region_count。
  20188. customer_count:
  20189. type: integer
  20190. title: customer count
  20191. description: 字段 customer_count。
  20192. coverage_before:
  20193. type: number
  20194. title: coverage before
  20195. description: 字段 coverage_before。
  20196. coverage_after:
  20197. type: number
  20198. title: coverage after
  20199. description: 字段 coverage_after。
  20200. coverage_basis_before:
  20201. type: string
  20202. title: coverage basis before
  20203. description: 字段 coverage_basis_before。
  20204. coverage_basis_after:
  20205. type: string
  20206. title: coverage basis after
  20207. description: 字段 coverage_basis_after。
  20208. coverage_basis_saved:
  20209. type: string
  20210. title: coverage basis saved
  20211. description: 字段 coverage_basis_saved。
  20212. allow_empty:
  20213. type: string
  20214. description: 类型:true
  20215. title: allow empty
  20216. required:
  20217. - team_id
  20218. - region_node_ids
  20219. - customer_ids
  20220. - region_count
  20221. - customer_count
  20222. - coverage_before
  20223. - coverage_after
  20224. - coverage_basis_before
  20225. - coverage_basis_after
  20226. - coverage_basis_saved
  20227. - allow_empty
  20228. description: OpsTeamScopeSaveResult 业务数据
  20229. title: OpsTeamScopeSaveResult
  20230. OpsTeamTransferPrimaryResult:
  20231. type: object
  20232. description: 运维团队主账号移交结果
  20233. properties:
  20234. ops_team_id:
  20235. type: string
  20236. description: 运维团队 ID
  20237. title: 运维团队 ID
  20238. from_member_id:
  20239. type: string
  20240. description: 原主账号成员 ID
  20241. title: from member id
  20242. to_member_id:
  20243. type: string
  20244. description: 新主账号成员 ID
  20245. title: to member id
  20246. transferred:
  20247. type: boolean
  20248. description: 是否已移交
  20249. title: 是否已移交
  20250. required:
  20251. - ops_team_id
  20252. - transferred
  20253. title: OpsTeamTransferPrimaryResult
  20254. OpsTeamUpdateResult:
  20255. type: object
  20256. properties:
  20257. team_id:
  20258. type: string
  20259. title: 团队 ID
  20260. description: 团队 ID。
  20261. team_name:
  20262. type: string
  20263. title: 团队名称
  20264. description: 团队名称。
  20265. region_node_id:
  20266. type: string
  20267. title: 区域节点 ID
  20268. description: 区域节点 ID。
  20269. dispatch_mode:
  20270. type: string
  20271. title: dispatch mode
  20272. description: 字段 dispatch_mode。
  20273. settle_mode:
  20274. type: string
  20275. nullable: true
  20276. title: settle mode
  20277. description: 字段 settle_mode。
  20278. settle_value:
  20279. type: string
  20280. nullable: true
  20281. title: settle value
  20282. description: 字段 settle_value。
  20283. ticket_types:
  20284. type: array
  20285. items:
  20286. type: string
  20287. title: ticket_types元素
  20288. title: 工单类型清单
  20289. description: 字段 ticket_types。
  20290. dropped_team_types:
  20291. type: array
  20292. items:
  20293. type: string
  20294. title: dropped_team_types元素
  20295. description: '本次被收窄掉的团队类型( 收窄=空数组)'
  20296. title: dropped team types
  20297. member_type_trim:
  20298. type: string
  20299. description: '成员级类型载体表 `ops_member_ticket_type` 建表 ⇒ 有收窄即 `applied: false`'
  20300. title: member type trim
  20301. ops_main_scope_check:
  20302. $ref: '#/components/schemas/ScopeCheck'
  20303. required:
  20304. - team_id
  20305. - team_name
  20306. - region_node_id
  20307. - dispatch_mode
  20308. - settle_mode
  20309. - settle_value
  20310. - ticket_types
  20311. - dropped_team_types
  20312. - member_type_trim
  20313. - ops_main_scope_check
  20314. description: OpsTeamUpdateResult 业务数据
  20315. title: OpsTeamUpdateResult
  20316. OrderChangeResult:
  20317. type: object
  20318. properties:
  20319. subscription_id:
  20320. type: string
  20321. title: 订阅 ID
  20322. description: 订阅 ID。
  20323. customer_id:
  20324. type: string
  20325. title: 客户 ID
  20326. description: 客户 ID。
  20327. customer_name:
  20328. type: string
  20329. nullable: true
  20330. title: 客户名称
  20331. description: 客户名称。
  20332. contract_id:
  20333. type: string
  20334. nullable: true
  20335. title: 合同 ID
  20336. description: 合同 ID。
  20337. contract_item_id:
  20338. type: string
  20339. nullable: true
  20340. title: contract item id
  20341. description: 字段 contract_item_id。
  20342. plan_id:
  20343. type: string
  20344. nullable: true
  20345. title: 档位 ID
  20346. description: 档位 ID。
  20347. plan_name:
  20348. type: string
  20349. nullable: true
  20350. title: 档位名称
  20351. description: 档位名称。
  20352. plan_family:
  20353. type: string
  20354. nullable: true
  20355. title: plan family
  20356. description: 字段 plan_family。
  20357. status:
  20358. type: string
  20359. title: 状态
  20360. description: 状态。
  20361. status_display:
  20362. type: object
  20363. properties:
  20364. key:
  20365. type: string
  20366. label:
  20367. type: string
  20368. note:
  20369. type: string
  20370. nullable: true
  20371. required:
  20372. - key
  20373. - label
  20374. nullable: true
  20375. title: status display
  20376. description: 字段 status_display。
  20377. start_date:
  20378. type: string
  20379. nullable: true
  20380. title: 开始日
  20381. description: 开始日。
  20382. end_date:
  20383. type: string
  20384. nullable: true
  20385. title: 结束日
  20386. description: 结束日。
  20387. effective_date:
  20388. type: string
  20389. nullable: true
  20390. title: effective date
  20391. description: 字段 effective_date。
  20392. expire_date:
  20393. type: string
  20394. nullable: true
  20395. title: 到期日
  20396. description: 到期日。
  20397. annual_price_cents:
  20398. type: integer
  20399. nullable: true
  20400. title: 年价(分)
  20401. description: 年价(分)。
  20402. monthly_settle_cents:
  20403. type: integer
  20404. nullable: true
  20405. title: 月结算(分)
  20406. description: 月结算(分)。
  20407. quota_slots:
  20408. type: number
  20409. title: quota slots
  20410. description: 字段 quota_slots。
  20411. quantity:
  20412. type: number
  20413. nullable: true
  20414. title: quantity
  20415. description: 字段 quantity。
  20416. parent_subscription_id:
  20417. type: string
  20418. nullable: true
  20419. title: parent subscription id
  20420. description: 字段 parent_subscription_id。
  20421. replaces_subscription_id:
  20422. type: string
  20423. nullable: true
  20424. title: replaces subscription id
  20425. description: 字段 replaces_subscription_id。
  20426. created_at:
  20427. type: string
  20428. title: 创建时间
  20429. description: 创建时间。
  20430. row_version:
  20431. type: string
  20432. title: 乐观锁版本
  20433. description: 乐观锁版本。
  20434. contract_no:
  20435. type: string
  20436. nullable: true
  20437. title: 合同编号
  20438. description: 合同编号。
  20439. plan_kind:
  20440. type: string
  20441. nullable: true
  20442. title: plan kind
  20443. description: 字段 plan_kind。
  20444. plan_owner_customer_id:
  20445. type: string
  20446. nullable: true
  20447. title: plan owner customer id
  20448. description: 字段 plan_owner_customer_id。
  20449. sub_mode:
  20450. type: string
  20451. nullable: true
  20452. title: sub mode
  20453. description: 字段 sub_mode。
  20454. sub_mode_label:
  20455. type: string
  20456. nullable: true
  20457. title: sub mode label
  20458. description: 字段 sub_mode_label。
  20459. term:
  20460. type: string
  20461. nullable: true
  20462. title: term
  20463. description: 字段 term。
  20464. trial_months:
  20465. type: number
  20466. nullable: true
  20467. title: trial months
  20468. description: 字段 trial_months。
  20469. discount_monthly_cents:
  20470. type: integer
  20471. nullable: true
  20472. title: discount monthly cents
  20473. description: 字段 discount_monthly_cents。
  20474. line_exits:
  20475. type: array
  20476. items:
  20477. type: string
  20478. title: line_exits元素
  20479. nullable: true
  20480. title: line exits
  20481. description: 字段 line_exits。
  20482. line_exit_key:
  20483. type: string
  20484. nullable: true
  20485. title: line exit key
  20486. description: 字段 line_exit_key。
  20487. order_no:
  20488. type: string
  20489. nullable: true
  20490. title: order no
  20491. description: 字段 order_no。
  20492. actual_opened_at:
  20493. type: string
  20494. nullable: true
  20495. title: actual opened at
  20496. description: 字段 actual_opened_at。
  20497. early_stopped_at:
  20498. type: string
  20499. nullable: true
  20500. title: early stopped at
  20501. description: 字段 early_stopped_at。
  20502. plan_cost_cents:
  20503. type: integer
  20504. nullable: true
  20505. title: plan cost cents
  20506. description: 字段 plan_cost_cents。
  20507. plan_cost_state:
  20508. $ref: '#/components/schemas/ValueState'
  20509. billing:
  20510. $ref: '#/components/schemas/SubscriptionBilling'
  20511. editable:
  20512. type: boolean
  20513. nullable: true
  20514. title: editable
  20515. description: 字段 editable。
  20516. reason:
  20517. type: string
  20518. nullable: true
  20519. title: reason
  20520. description: 字段 reason。
  20521. replaced_by:
  20522. $ref: '#/components/schemas/RelatedOrderRef'
  20523. original:
  20524. $ref: '#/components/schemas/RelatedOrderRef'
  20525. replaced_subscription_id:
  20526. type: string
  20527. nullable: true
  20528. title: replaced subscription id
  20529. description: 字段 replaced_subscription_id。
  20530. cut_end_date:
  20531. type: string
  20532. nullable: true
  20533. title: cut end date
  20534. description: 字段 cut_end_date。
  20535. quota_changed:
  20536. type: boolean
  20537. nullable: true
  20538. title: quota changed
  20539. description: 字段 quota_changed。
  20540. notes:
  20541. type: array
  20542. items:
  20543. type: string
  20544. title: 说明列表元素
  20545. nullable: true
  20546. title: 说明列表
  20547. description: 说明列表。
  20548. delivery_ticket:
  20549. $ref: '#/components/schemas/DeliveryTicketOutcome'
  20550. required:
  20551. - subscription_id
  20552. - customer_id
  20553. - contract_id
  20554. - contract_item_id
  20555. - plan_id
  20556. - plan_name
  20557. - plan_family
  20558. - status
  20559. - start_date
  20560. - end_date
  20561. - effective_date
  20562. - expire_date
  20563. - annual_price_cents
  20564. - monthly_settle_cents
  20565. - quota_slots
  20566. - replaces_subscription_id
  20567. - created_at
  20568. - row_version
  20569. description: OrderChangeResult 业务数据
  20570. title: OrderChangeResult
  20571. OrderContractItemOption:
  20572. type: object
  20573. properties:
  20574. item_id:
  20575. type: string
  20576. title: item id
  20577. description: 字段 item_id。
  20578. plan_id:
  20579. type: string
  20580. nullable: true
  20581. title: 档位 ID
  20582. description: 档位 ID。
  20583. plan_name:
  20584. type: string
  20585. nullable: true
  20586. title: 档位名称
  20587. description: 档位名称。
  20588. item_family:
  20589. type: string
  20590. nullable: true
  20591. title: item family
  20592. description: 字段 item_family。
  20593. quantity:
  20594. type: number
  20595. nullable: true
  20596. title: quantity
  20597. description: 字段 quantity。
  20598. annual_price_cents:
  20599. type: integer
  20600. nullable: true
  20601. title: 年价(分)
  20602. description: 年价(分)。
  20603. line_exits:
  20604. type: array
  20605. items:
  20606. type: string
  20607. title: line_exits元素
  20608. nullable: true
  20609. title: line exits
  20610. description: 字段 line_exits。
  20611. available:
  20612. type: boolean
  20613. nullable: true
  20614. description: 条目可选性(后端已剔除「已有订阅的条目」,此处再给档位停用等原因)。
  20615. title: available
  20616. unavailable_reason:
  20617. type: string
  20618. nullable: true
  20619. title: unavailable reason
  20620. description: 字段 unavailable_reason。
  20621. required:
  20622. - item_id
  20623. - plan_id
  20624. - plan_name
  20625. - item_family
  20626. - quantity
  20627. - annual_price_cents
  20628. - line_exits
  20629. description: OrderContractItemOption 业务数据
  20630. title: OrderContractItemOption
  20631. OrderCreateResult:
  20632. type: object
  20633. properties:
  20634. subscription_id:
  20635. type: string
  20636. title: 订阅 ID
  20637. description: 订阅 ID。
  20638. customer_id:
  20639. type: string
  20640. title: 客户 ID
  20641. description: 客户 ID。
  20642. customer_name:
  20643. type: string
  20644. nullable: true
  20645. title: 客户名称
  20646. description: 客户名称。
  20647. contract_id:
  20648. type: string
  20649. nullable: true
  20650. title: 合同 ID
  20651. description: 合同 ID。
  20652. contract_item_id:
  20653. type: string
  20654. nullable: true
  20655. title: contract item id
  20656. description: 字段 contract_item_id。
  20657. plan_id:
  20658. type: string
  20659. nullable: true
  20660. title: 档位 ID
  20661. description: 档位 ID。
  20662. plan_name:
  20663. type: string
  20664. nullable: true
  20665. title: 档位名称
  20666. description: 档位名称。
  20667. plan_family:
  20668. type: string
  20669. nullable: true
  20670. title: plan family
  20671. description: 字段 plan_family。
  20672. status:
  20673. type: string
  20674. title: 状态
  20675. description: 状态。
  20676. status_display:
  20677. type: object
  20678. properties:
  20679. key:
  20680. type: string
  20681. label:
  20682. type: string
  20683. note:
  20684. type: string
  20685. nullable: true
  20686. required:
  20687. - key
  20688. - label
  20689. nullable: true
  20690. title: status display
  20691. description: 字段 status_display。
  20692. start_date:
  20693. type: string
  20694. nullable: true
  20695. title: 开始日
  20696. description: 开始日。
  20697. end_date:
  20698. type: string
  20699. nullable: true
  20700. title: 结束日
  20701. description: 结束日。
  20702. effective_date:
  20703. type: string
  20704. nullable: true
  20705. title: effective date
  20706. description: 字段 effective_date。
  20707. expire_date:
  20708. type: string
  20709. nullable: true
  20710. title: 到期日
  20711. description: 到期日。
  20712. annual_price_cents:
  20713. type: integer
  20714. nullable: true
  20715. title: 年价(分)
  20716. description: 年价(分)。
  20717. monthly_settle_cents:
  20718. type: integer
  20719. nullable: true
  20720. title: 月结算(分)
  20721. description: 月结算(分)。
  20722. quota_slots:
  20723. type: number
  20724. title: quota slots
  20725. description: 字段 quota_slots。
  20726. quantity:
  20727. type: number
  20728. nullable: true
  20729. title: quantity
  20730. description: 字段 quantity。
  20731. parent_subscription_id:
  20732. type: string
  20733. nullable: true
  20734. title: parent subscription id
  20735. description: 字段 parent_subscription_id。
  20736. replaces_subscription_id:
  20737. type: string
  20738. nullable: true
  20739. title: replaces subscription id
  20740. description: 字段 replaces_subscription_id。
  20741. created_at:
  20742. type: string
  20743. title: 创建时间
  20744. description: 创建时间。
  20745. row_version:
  20746. type: string
  20747. title: 乐观锁版本
  20748. description: 乐观锁版本。
  20749. contract_no:
  20750. type: string
  20751. nullable: true
  20752. title: 合同编号
  20753. description: 合同编号。
  20754. plan_kind:
  20755. type: string
  20756. nullable: true
  20757. title: plan kind
  20758. description: 字段 plan_kind。
  20759. plan_owner_customer_id:
  20760. type: string
  20761. nullable: true
  20762. title: plan owner customer id
  20763. description: 字段 plan_owner_customer_id。
  20764. sub_mode:
  20765. type: string
  20766. nullable: true
  20767. title: sub mode
  20768. description: 字段 sub_mode。
  20769. sub_mode_label:
  20770. type: string
  20771. nullable: true
  20772. title: sub mode label
  20773. description: 字段 sub_mode_label。
  20774. term:
  20775. type: string
  20776. nullable: true
  20777. title: term
  20778. description: 字段 term。
  20779. trial_months:
  20780. type: number
  20781. nullable: true
  20782. title: trial months
  20783. description: 字段 trial_months。
  20784. discount_monthly_cents:
  20785. type: integer
  20786. nullable: true
  20787. title: discount monthly cents
  20788. description: 字段 discount_monthly_cents。
  20789. line_exits:
  20790. type: array
  20791. items:
  20792. type: string
  20793. title: line_exits元素
  20794. nullable: true
  20795. title: line exits
  20796. description: 字段 line_exits。
  20797. line_exit_key:
  20798. type: string
  20799. nullable: true
  20800. title: line exit key
  20801. description: 字段 line_exit_key。
  20802. order_no:
  20803. type: string
  20804. nullable: true
  20805. title: order no
  20806. description: 字段 order_no。
  20807. actual_opened_at:
  20808. type: string
  20809. nullable: true
  20810. title: actual opened at
  20811. description: 字段 actual_opened_at。
  20812. early_stopped_at:
  20813. type: string
  20814. nullable: true
  20815. title: early stopped at
  20816. description: 字段 early_stopped_at。
  20817. plan_cost_cents:
  20818. type: integer
  20819. nullable: true
  20820. title: plan cost cents
  20821. description: 字段 plan_cost_cents。
  20822. plan_cost_state:
  20823. $ref: '#/components/schemas/ValueState'
  20824. billing:
  20825. $ref: '#/components/schemas/SubscriptionBilling'
  20826. editable:
  20827. type: boolean
  20828. nullable: true
  20829. title: editable
  20830. description: 字段 editable。
  20831. reason:
  20832. type: string
  20833. nullable: true
  20834. title: reason
  20835. description: 字段 reason。
  20836. replaced_by:
  20837. $ref: '#/components/schemas/RelatedOrderRef'
  20838. original:
  20839. $ref: '#/components/schemas/RelatedOrderRef'
  20840. quota_changed:
  20841. type: boolean
  20842. nullable: true
  20843. title: quota changed
  20844. description: 字段 quota_changed。
  20845. notes:
  20846. type: array
  20847. items:
  20848. type: string
  20849. title: 说明列表元素
  20850. nullable: true
  20851. title: 说明列表
  20852. description: 说明列表。
  20853. delivery_ticket:
  20854. $ref: '#/components/schemas/DeliveryTicketOutcome'
  20855. required:
  20856. - subscription_id
  20857. - customer_id
  20858. - contract_id
  20859. - contract_item_id
  20860. - plan_id
  20861. - plan_name
  20862. - plan_family
  20863. - status
  20864. - start_date
  20865. - end_date
  20866. - effective_date
  20867. - expire_date
  20868. - annual_price_cents
  20869. - monthly_settle_cents
  20870. - quota_slots
  20871. - replaces_subscription_id
  20872. - created_at
  20873. - row_version
  20874. description: OrderCreateResult 业务数据
  20875. title: OrderCreateResult
  20876. OrderDeleteCheckResult:
  20877. type: object
  20878. properties:
  20879. deletable:
  20880. type: boolean
  20881. title: deletable
  20882. description: 字段 deletable。
  20883. blocks:
  20884. type: object
  20885. properties:
  20886. billing_details:
  20887. type: array
  20888. items: {}
  20889. nullable: true
  20890. change_chain:
  20891. type: array
  20892. items: {}
  20893. nullable: true
  20894. nullable: true
  20895. title: blocks
  20896. description: 字段 blocks。
  20897. billing_state:
  20898. $ref: '#/components/schemas/ValueState'
  20899. snapshot_version:
  20900. type: string
  20901. nullable: true
  20902. title: snapshot version
  20903. description: 字段 snapshot_version。
  20904. required:
  20905. - deletable
  20906. description: OrderDeleteCheckResult 业务数据
  20907. title: OrderDeleteCheckResult
  20908. OrderDeleteResult:
  20909. type: object
  20910. properties:
  20911. deleted:
  20912. type: boolean
  20913. title: 是否已删除
  20914. description: 是否已删除。
  20915. quota_released:
  20916. type: number
  20917. nullable: true
  20918. title: quota released
  20919. description: 字段 quota_released。
  20920. required:
  20921. - deleted
  20922. description: OrderDeleteResult 业务数据
  20923. title: OrderDeleteResult
  20924. OrderGetResult:
  20925. type: object
  20926. properties:
  20927. subscription_id:
  20928. type: string
  20929. title: 订阅 ID
  20930. description: 订阅 ID。
  20931. customer_id:
  20932. type: string
  20933. title: 客户 ID
  20934. description: 客户 ID。
  20935. customer_name:
  20936. type: string
  20937. nullable: true
  20938. title: 客户名称
  20939. description: 客户名称。
  20940. contract_id:
  20941. type: string
  20942. nullable: true
  20943. title: 合同 ID
  20944. description: 合同 ID。
  20945. contract_item_id:
  20946. type: string
  20947. nullable: true
  20948. title: contract item id
  20949. description: 字段 contract_item_id。
  20950. plan_id:
  20951. type: string
  20952. nullable: true
  20953. title: 档位 ID
  20954. description: 档位 ID。
  20955. plan_name:
  20956. type: string
  20957. nullable: true
  20958. title: 档位名称
  20959. description: 档位名称。
  20960. plan_family:
  20961. type: string
  20962. nullable: true
  20963. title: plan family
  20964. description: 字段 plan_family。
  20965. status:
  20966. type: string
  20967. title: 状态
  20968. description: 状态。
  20969. status_display:
  20970. type: object
  20971. properties:
  20972. key:
  20973. type: string
  20974. label:
  20975. type: string
  20976. note:
  20977. type: string
  20978. nullable: true
  20979. required:
  20980. - key
  20981. - label
  20982. nullable: true
  20983. title: status display
  20984. description: 字段 status_display。
  20985. start_date:
  20986. type: string
  20987. nullable: true
  20988. title: 开始日
  20989. description: 开始日。
  20990. end_date:
  20991. type: string
  20992. nullable: true
  20993. title: 结束日
  20994. description: 结束日。
  20995. effective_date:
  20996. type: string
  20997. nullable: true
  20998. title: effective date
  20999. description: 字段 effective_date。
  21000. expire_date:
  21001. type: string
  21002. nullable: true
  21003. title: 到期日
  21004. description: 到期日。
  21005. annual_price_cents:
  21006. type: integer
  21007. nullable: true
  21008. title: 年价(分)
  21009. description: 年价(分)。
  21010. monthly_settle_cents:
  21011. type: integer
  21012. nullable: true
  21013. title: 月结算(分)
  21014. description: 月结算(分)。
  21015. quota_slots:
  21016. type: number
  21017. title: quota slots
  21018. description: 字段 quota_slots。
  21019. quantity:
  21020. type: number
  21021. nullable: true
  21022. title: quantity
  21023. description: 字段 quantity。
  21024. parent_subscription_id:
  21025. type: string
  21026. nullable: true
  21027. title: parent subscription id
  21028. description: 字段 parent_subscription_id。
  21029. replaces_subscription_id:
  21030. type: string
  21031. nullable: true
  21032. title: replaces subscription id
  21033. description: 字段 replaces_subscription_id。
  21034. created_at:
  21035. type: string
  21036. title: 创建时间
  21037. description: 创建时间。
  21038. row_version:
  21039. type: string
  21040. title: 乐观锁版本
  21041. description: 乐观锁版本。
  21042. contract_no:
  21043. type: string
  21044. nullable: true
  21045. title: 合同编号
  21046. description: 合同编号。
  21047. plan_kind:
  21048. type: string
  21049. nullable: true
  21050. title: plan kind
  21051. description: 字段 plan_kind。
  21052. plan_owner_customer_id:
  21053. type: string
  21054. nullable: true
  21055. title: plan owner customer id
  21056. description: 字段 plan_owner_customer_id。
  21057. sub_mode:
  21058. type: string
  21059. nullable: true
  21060. title: sub mode
  21061. description: 字段 sub_mode。
  21062. sub_mode_label:
  21063. type: string
  21064. nullable: true
  21065. title: sub mode label
  21066. description: 字段 sub_mode_label。
  21067. term:
  21068. type: string
  21069. nullable: true
  21070. title: term
  21071. description: 字段 term。
  21072. trial_months:
  21073. type: number
  21074. nullable: true
  21075. title: trial months
  21076. description: 字段 trial_months。
  21077. discount_monthly_cents:
  21078. type: integer
  21079. nullable: true
  21080. title: discount monthly cents
  21081. description: 字段 discount_monthly_cents。
  21082. line_exits:
  21083. type: array
  21084. items:
  21085. type: string
  21086. title: line_exits元素
  21087. nullable: true
  21088. title: line exits
  21089. description: 字段 line_exits。
  21090. line_exit_key:
  21091. type: string
  21092. nullable: true
  21093. title: line exit key
  21094. description: 字段 line_exit_key。
  21095. order_no:
  21096. type: string
  21097. nullable: true
  21098. title: order no
  21099. description: 字段 order_no。
  21100. actual_opened_at:
  21101. type: string
  21102. nullable: true
  21103. title: actual opened at
  21104. description: 字段 actual_opened_at。
  21105. early_stopped_at:
  21106. type: string
  21107. nullable: true
  21108. title: early stopped at
  21109. description: 字段 early_stopped_at。
  21110. plan_cost_cents:
  21111. type: integer
  21112. nullable: true
  21113. title: plan cost cents
  21114. description: 字段 plan_cost_cents。
  21115. plan_cost_state:
  21116. $ref: '#/components/schemas/ValueState'
  21117. billing:
  21118. $ref: '#/components/schemas/SubscriptionBilling'
  21119. editable:
  21120. type: boolean
  21121. nullable: true
  21122. title: editable
  21123. description: 字段 editable。
  21124. reason:
  21125. type: string
  21126. nullable: true
  21127. title: reason
  21128. description: 字段 reason。
  21129. replaced_by:
  21130. $ref: '#/components/schemas/RelatedOrderRef'
  21131. original:
  21132. $ref: '#/components/schemas/RelatedOrderRef'
  21133. related:
  21134. type: object
  21135. properties:
  21136. replaced_by:
  21137. $ref: '#/components/schemas/RelatedOrderRef'
  21138. original:
  21139. $ref: '#/components/schemas/RelatedOrderRef'
  21140. nullable: true
  21141. title: related
  21142. description: 字段 related。
  21143. required:
  21144. - subscription_id
  21145. - customer_id
  21146. - contract_id
  21147. - contract_item_id
  21148. - plan_id
  21149. - plan_name
  21150. - plan_family
  21151. - status
  21152. - start_date
  21153. - end_date
  21154. - effective_date
  21155. - expire_date
  21156. - annual_price_cents
  21157. - monthly_settle_cents
  21158. - quota_slots
  21159. - replaces_subscription_id
  21160. - created_at
  21161. - row_version
  21162. description: OrderGetResult 业务数据
  21163. title: OrderGetResult
  21164. OrderListResult:
  21165. type: object
  21166. properties:
  21167. items:
  21168. type: array
  21169. items:
  21170. $ref: '#/components/schemas/OrderRow'
  21171. title: 列表项
  21172. description: 列表项。
  21173. total:
  21174. type: integer
  21175. nullable: true
  21176. title: 总条数
  21177. description: 总条数。
  21178. page:
  21179. type: integer
  21180. nullable: true
  21181. title: 页码
  21182. description: 页码。
  21183. page_size:
  21184. type: integer
  21185. nullable: true
  21186. title: 每页条数
  21187. description: 每页条数。
  21188. required:
  21189. - items
  21190. description: OrderListResult 业务数据
  21191. title: OrderListResult
  21192. OrderPlanOption:
  21193. type: object
  21194. properties:
  21195. plan_id:
  21196. type: string
  21197. title: 档位 ID
  21198. description: 档位 ID。
  21199. plan_name:
  21200. type: string
  21201. title: 档位名称
  21202. description: 档位名称。
  21203. plan_kind:
  21204. type: string
  21205. title: plan kind
  21206. description: 字段 plan_kind。
  21207. owner_customer_id:
  21208. type: string
  21209. nullable: true
  21210. description: 档位归属客户(固定档=null,自定义档=该客户)。
  21211. title: owner customer id
  21212. plan_family:
  21213. type: string
  21214. nullable: true
  21215. title: plan family
  21216. description: 字段 plan_family。
  21217. annual_price_cents:
  21218. type: integer
  21219. title: 年价(分)
  21220. description: 年价(分)。
  21221. monthly_settle_cents:
  21222. type: integer
  21223. nullable: true
  21224. description: 月结算标准金额(`monthly_settle_of` 折算,只读带出)。
  21225. title: 月结算(分)
  21226. sub_account_quota:
  21227. type: number
  21228. nullable: true
  21229. title: sub account quota
  21230. description: 字段 sub_account_quota。
  21231. line_exits:
  21232. type: array
  21233. items:
  21234. type: string
  21235. title: line_exits元素
  21236. nullable: true
  21237. title: line exits
  21238. description: 字段 line_exits。
  21239. referred_count:
  21240. type: integer
  21241. nullable: true
  21242. description: 被引用次数/是否已首次引用(改档冻结判据)。
  21243. title: referred count
  21244. first_referred:
  21245. type: boolean
  21246. nullable: true
  21247. title: first referred
  21248. description: 字段 first_referred。
  21249. available:
  21250. type: boolean
  21251. title: available
  21252. description: 字段 available。
  21253. unavailable_reason:
  21254. type: string
  21255. nullable: true
  21256. title: unavailable reason
  21257. description: 字段 unavailable_reason。
  21258. required:
  21259. - plan_id
  21260. - plan_name
  21261. - plan_kind
  21262. - plan_family
  21263. - annual_price_cents
  21264. - sub_account_quota
  21265. - line_exits
  21266. - available
  21267. description: OrderPlanOption 业务数据
  21268. title: OrderPlanOption
  21269. OrderRow:
  21270. type: object
  21271. properties:
  21272. subscription_id:
  21273. type: string
  21274. title: 订阅 ID
  21275. description: 订阅 ID。
  21276. customer_id:
  21277. type: string
  21278. title: 客户 ID
  21279. description: 客户 ID。
  21280. customer_name:
  21281. type: string
  21282. nullable: true
  21283. title: 客户名称
  21284. description: 客户名称。
  21285. contract_id:
  21286. type: string
  21287. nullable: true
  21288. title: 合同 ID
  21289. description: 合同 ID。
  21290. contract_item_id:
  21291. type: string
  21292. nullable: true
  21293. title: contract item id
  21294. description: 字段 contract_item_id。
  21295. plan_id:
  21296. type: string
  21297. nullable: true
  21298. title: 档位 ID
  21299. description: 档位 ID。
  21300. plan_name:
  21301. type: string
  21302. nullable: true
  21303. title: 档位名称
  21304. description: 档位名称。
  21305. plan_family:
  21306. type: string
  21307. nullable: true
  21308. title: plan family
  21309. description: 字段 plan_family。
  21310. status:
  21311. type: string
  21312. title: 状态
  21313. description: 状态。
  21314. status_display:
  21315. type: object
  21316. properties:
  21317. key:
  21318. type: string
  21319. label:
  21320. type: string
  21321. note:
  21322. type: string
  21323. nullable: true
  21324. required:
  21325. - key
  21326. - label
  21327. nullable: true
  21328. description: 读侧状态:终态(含 early_stopped)原样保留,其余按起止日推导。
  21329. title: status display
  21330. start_date:
  21331. type: string
  21332. nullable: true
  21333. title: 开始日
  21334. description: 开始日。
  21335. end_date:
  21336. type: string
  21337. nullable: true
  21338. title: 结束日
  21339. description: 结束日。
  21340. effective_date:
  21341. type: string
  21342. nullable: true
  21343. title: effective date
  21344. description: 字段 effective_date。
  21345. expire_date:
  21346. type: string
  21347. nullable: true
  21348. title: 到期日
  21349. description: 到期日。
  21350. annual_price_cents:
  21351. type: integer
  21352. nullable: true
  21353. title: 年价(分)
  21354. description: 年价(分)。
  21355. monthly_settle_cents:
  21356. type: integer
  21357. nullable: true
  21358. title: 月结算(分)
  21359. description: 月结算(分)。
  21360. quota_slots:
  21361. type: number
  21362. title: quota slots
  21363. description: 字段 quota_slots。
  21364. quantity:
  21365. type: number
  21366. nullable: true
  21367. description: 订阅份数:可叠加档可 > 1(例:境外 IP 按个),其余恒 1。
  21368. title: quantity
  21369. parent_subscription_id:
  21370. type: string
  21371. nullable: true
  21372. description: P1:附加订阅的父订阅;`null`/缺省=独立订阅。
  21373. title: parent subscription id
  21374. replaces_subscription_id:
  21375. type: string
  21376. nullable: true
  21377. title: replaces subscription id
  21378. description: 字段 replaces_subscription_id。
  21379. created_at:
  21380. type: string
  21381. title: 创建时间
  21382. description: 创建时间。
  21383. row_version:
  21384. type: string
  21385. title: 乐观锁版本
  21386. description: 乐观锁版本。
  21387. contract_no:
  21388. type: string
  21389. nullable: true
  21390. title: 合同编号
  21391. description: 合同编号。
  21392. plan_kind:
  21393. type: string
  21394. nullable: true
  21395. title: plan kind
  21396. description: 字段 plan_kind。
  21397. plan_owner_customer_id:
  21398. type: string
  21399. nullable: true
  21400. description: 档位归属客户:固定档=平台方,自定义档=该客户
  21401. title: plan owner customer id
  21402. sub_mode:
  21403. type: string
  21404. nullable: true
  21405. title: sub mode
  21406. description: 字段 sub_mode。
  21407. sub_mode_label:
  21408. type: string
  21409. nullable: true
  21410. title: sub mode label
  21411. description: 字段 sub_mode_label。
  21412. term:
  21413. type: string
  21414. nullable: true
  21415. description: 规格(年付/季付/月付三值, 显示英文码)
  21416. title: term
  21417. trial_months:
  21418. type: number
  21419. nullable: true
  21420. title: trial months
  21421. description: 字段 trial_months。
  21422. discount_monthly_cents:
  21423. type: integer
  21424. nullable: true
  21425. title: discount monthly cents
  21426. description: 字段 discount_monthly_cents。
  21427. line_exits:
  21428. type: array
  21429. items:
  21430. type: string
  21431. title: line_exits元素
  21432. nullable: true
  21433. description: 线路出口(数组)
  21434. title: line exits
  21435. line_exit_key:
  21436. type: string
  21437. nullable: true
  21438. title: line exit key
  21439. description: 字段 line_exit_key。
  21440. order_no:
  21441. type: string
  21442. nullable: true
  21443. description: 工单号:本册只读,写入方在
  21444. title: order no
  21445. actual_opened_at:
  21446. type: string
  21447. nullable: true
  21448. description: 实际开通日:本册只读,唯一写入方=工单回填
  21449. title: actual opened at
  21450. early_stopped_at:
  21451. type: string
  21452. nullable: true
  21453. description: 提前停机日:service_stop 回填生效写入;起止日不变
  21454. title: early stopped at
  21455. plan_cost_cents:
  21456. type: integer
  21457. nullable: true
  21458. description: 月成本三态
  21459. title: plan cost cents
  21460. plan_cost_state:
  21461. $ref: '#/components/schemas/ValueState'
  21462. billing:
  21463. $ref: '#/components/schemas/SubscriptionBilling'
  21464. editable:
  21465. type: boolean
  21466. nullable: true
  21467. description: 写口可见性由后端给出,前端 自行推导
  21468. title: editable
  21469. reason:
  21470. type: string
  21471. nullable: true
  21472. title: reason
  21473. description: 字段 reason。
  21474. replaced_by:
  21475. $ref: '#/components/schemas/RelatedOrderRef'
  21476. original:
  21477. $ref: '#/components/schemas/RelatedOrderRef'
  21478. required:
  21479. - subscription_id
  21480. - customer_id
  21481. - contract_id
  21482. - contract_item_id
  21483. - plan_id
  21484. - plan_name
  21485. - plan_family
  21486. - status
  21487. - start_date
  21488. - end_date
  21489. - effective_date
  21490. - expire_date
  21491. - annual_price_cents
  21492. - monthly_settle_cents
  21493. - quota_slots
  21494. - replaces_subscription_id
  21495. - created_at
  21496. - row_version
  21497. description: OrderRow 业务数据
  21498. title: OrderRow
  21499. OrderStackResult:
  21500. type: object
  21501. properties:
  21502. subscription_id:
  21503. type: string
  21504. title: 订阅 ID
  21505. description: 订阅 ID。
  21506. updated_fields:
  21507. type: array
  21508. items:
  21509. type: string
  21510. title: updated_fields元素
  21511. nullable: true
  21512. title: updated fields
  21513. description: 字段 updated_fields。
  21514. required:
  21515. - subscription_id
  21516. description: OrderStackResult 业务数据
  21517. title: OrderStackResult
  21518. OrderUpdateResult:
  21519. type: object
  21520. properties:
  21521. subscription_id:
  21522. type: string
  21523. title: 订阅 ID
  21524. description: 订阅 ID。
  21525. customer_id:
  21526. type: string
  21527. title: 客户 ID
  21528. description: 客户 ID。
  21529. customer_name:
  21530. type: string
  21531. nullable: true
  21532. title: 客户名称
  21533. description: 客户名称。
  21534. contract_id:
  21535. type: string
  21536. nullable: true
  21537. title: 合同 ID
  21538. description: 合同 ID。
  21539. contract_item_id:
  21540. type: string
  21541. nullable: true
  21542. title: contract item id
  21543. description: 字段 contract_item_id。
  21544. plan_id:
  21545. type: string
  21546. nullable: true
  21547. title: 档位 ID
  21548. description: 档位 ID。
  21549. plan_name:
  21550. type: string
  21551. nullable: true
  21552. title: 档位名称
  21553. description: 档位名称。
  21554. plan_family:
  21555. type: string
  21556. nullable: true
  21557. title: plan family
  21558. description: 字段 plan_family。
  21559. status:
  21560. type: string
  21561. title: 状态
  21562. description: 状态。
  21563. status_display:
  21564. type: object
  21565. properties:
  21566. key:
  21567. type: string
  21568. label:
  21569. type: string
  21570. note:
  21571. type: string
  21572. nullable: true
  21573. required:
  21574. - key
  21575. - label
  21576. nullable: true
  21577. title: status display
  21578. description: 字段 status_display。
  21579. start_date:
  21580. type: string
  21581. nullable: true
  21582. title: 开始日
  21583. description: 开始日。
  21584. end_date:
  21585. type: string
  21586. nullable: true
  21587. title: 结束日
  21588. description: 结束日。
  21589. effective_date:
  21590. type: string
  21591. nullable: true
  21592. title: effective date
  21593. description: 字段 effective_date。
  21594. expire_date:
  21595. type: string
  21596. nullable: true
  21597. title: 到期日
  21598. description: 到期日。
  21599. annual_price_cents:
  21600. type: integer
  21601. nullable: true
  21602. title: 年价(分)
  21603. description: 年价(分)。
  21604. monthly_settle_cents:
  21605. type: integer
  21606. nullable: true
  21607. title: 月结算(分)
  21608. description: 月结算(分)。
  21609. quota_slots:
  21610. type: number
  21611. title: quota slots
  21612. description: 字段 quota_slots。
  21613. quantity:
  21614. type: number
  21615. nullable: true
  21616. title: quantity
  21617. description: 字段 quantity。
  21618. parent_subscription_id:
  21619. type: string
  21620. nullable: true
  21621. title: parent subscription id
  21622. description: 字段 parent_subscription_id。
  21623. replaces_subscription_id:
  21624. type: string
  21625. nullable: true
  21626. title: replaces subscription id
  21627. description: 字段 replaces_subscription_id。
  21628. created_at:
  21629. type: string
  21630. title: 创建时间
  21631. description: 创建时间。
  21632. row_version:
  21633. type: string
  21634. title: 乐观锁版本
  21635. description: 乐观锁版本。
  21636. contract_no:
  21637. type: string
  21638. nullable: true
  21639. title: 合同编号
  21640. description: 合同编号。
  21641. plan_kind:
  21642. type: string
  21643. nullable: true
  21644. title: plan kind
  21645. description: 字段 plan_kind。
  21646. plan_owner_customer_id:
  21647. type: string
  21648. nullable: true
  21649. title: plan owner customer id
  21650. description: 字段 plan_owner_customer_id。
  21651. sub_mode:
  21652. type: string
  21653. nullable: true
  21654. title: sub mode
  21655. description: 字段 sub_mode。
  21656. sub_mode_label:
  21657. type: string
  21658. nullable: true
  21659. title: sub mode label
  21660. description: 字段 sub_mode_label。
  21661. term:
  21662. type: string
  21663. nullable: true
  21664. title: term
  21665. description: 字段 term。
  21666. trial_months:
  21667. type: number
  21668. nullable: true
  21669. title: trial months
  21670. description: 字段 trial_months。
  21671. discount_monthly_cents:
  21672. type: integer
  21673. nullable: true
  21674. title: discount monthly cents
  21675. description: 字段 discount_monthly_cents。
  21676. line_exits:
  21677. type: array
  21678. items:
  21679. type: string
  21680. title: line_exits元素
  21681. nullable: true
  21682. title: line exits
  21683. description: 字段 line_exits。
  21684. line_exit_key:
  21685. type: string
  21686. nullable: true
  21687. title: line exit key
  21688. description: 字段 line_exit_key。
  21689. order_no:
  21690. type: string
  21691. nullable: true
  21692. title: order no
  21693. description: 字段 order_no。
  21694. actual_opened_at:
  21695. type: string
  21696. nullable: true
  21697. title: actual opened at
  21698. description: 字段 actual_opened_at。
  21699. early_stopped_at:
  21700. type: string
  21701. nullable: true
  21702. title: early stopped at
  21703. description: 字段 early_stopped_at。
  21704. plan_cost_cents:
  21705. type: integer
  21706. nullable: true
  21707. title: plan cost cents
  21708. description: 字段 plan_cost_cents。
  21709. plan_cost_state:
  21710. $ref: '#/components/schemas/ValueState'
  21711. billing:
  21712. $ref: '#/components/schemas/SubscriptionBilling'
  21713. editable:
  21714. type: boolean
  21715. nullable: true
  21716. title: editable
  21717. description: 字段 editable。
  21718. reason:
  21719. type: string
  21720. nullable: true
  21721. title: reason
  21722. description: 字段 reason。
  21723. replaced_by:
  21724. $ref: '#/components/schemas/RelatedOrderRef'
  21725. original:
  21726. $ref: '#/components/schemas/RelatedOrderRef'
  21727. updated:
  21728. type: boolean
  21729. nullable: true
  21730. title: 是否已更新
  21731. description: 是否已更新。
  21732. required:
  21733. - subscription_id
  21734. - customer_id
  21735. - contract_id
  21736. - contract_item_id
  21737. - plan_id
  21738. - plan_name
  21739. - plan_family
  21740. - status
  21741. - start_date
  21742. - end_date
  21743. - effective_date
  21744. - expire_date
  21745. - annual_price_cents
  21746. - monthly_settle_cents
  21747. - quota_slots
  21748. - replaces_subscription_id
  21749. - created_at
  21750. - row_version
  21751. description: OrderUpdateResult 业务数据
  21752. title: OrderUpdateResult
  21753. OverviewStat:
  21754. type: object
  21755. properties:
  21756. role:
  21757. oneOf:
  21758. - $ref: '#/components/schemas/RoleCode'
  21759. - type: string
  21760. title: role
  21761. description: 字段 role。
  21762. tickets:
  21763. type: object
  21764. properties:
  21765. pending:
  21766. type: number
  21767. nullable: true
  21768. processing:
  21769. type: number
  21770. nullable: true
  21771. available:
  21772. type: boolean
  21773. required:
  21774. - pending
  21775. - processing
  21776. - available
  21777. title: tickets
  21778. description: 字段 tickets。
  21779. overdue:
  21780. type: object
  21781. properties:
  21782. count:
  21783. type: number
  21784. nullable: true
  21785. available:
  21786. type: boolean
  21787. required:
  21788. - count
  21789. - available
  21790. title: overdue
  21791. description: 字段 overdue。
  21792. message:
  21793. type: string
  21794. title: 说明
  21795. description: 说明。
  21796. required:
  21797. - role
  21798. - tickets
  21799. - overdue
  21800. - message
  21801. description: OverviewStat 业务数据
  21802. title: OverviewStat
  21803. PartnerCreateResult:
  21804. type: object
  21805. properties:
  21806. partner_id:
  21807. type: string
  21808. title: 合伙人 ID
  21809. description: 合伙人 ID。
  21810. name:
  21811. type: string
  21812. title: 名称
  21813. description: 名称。
  21814. duty_desc:
  21815. type: string
  21816. nullable: true
  21817. title: duty desc
  21818. description: 字段 duty_desc。
  21819. region_node_id:
  21820. type: string
  21821. title: 区域节点 ID
  21822. description: 区域节点 ID。
  21823. region_level:
  21824. type: string
  21825. description: '`bos_region_meta` 回读(合伙人限省级)'
  21826. title: region level
  21827. region_path_name:
  21828. type: string
  21829. title: region path name
  21830. description: 字段 region_path_name。
  21831. ops_main_scope_check:
  21832. $ref: '#/components/schemas/ScopeCheck'
  21833. mobile:
  21834. type: string
  21835. nullable: true
  21836. description: '已按 掩码'
  21837. title: 手机号
  21838. status:
  21839. type: string
  21840. title: 状态
  21841. description: 状态。
  21842. settle_mode:
  21843. type: string
  21844. nullable: true
  21845. title: settle mode
  21846. description: 字段 settle_mode。
  21847. settle_value:
  21848. type: string
  21849. nullable: true
  21850. description: dev UDS 对 numeric 写入有静默落 NULL 缺陷 ⇒ 与 `settle_requested` 不一致即未落库
  21851. title: settle value
  21852. settle_value_note:
  21853. type: string
  21854. title: settle value note
  21855. description: 字段 settle_value_note。
  21856. settle_requested:
  21857. type: object
  21858. properties:
  21859. settle_mode:
  21860. type: string
  21861. nullable: true
  21862. settle_value:
  21863. oneOf:
  21864. - type: string
  21865. - type: number
  21866. nullable: true
  21867. required:
  21868. - settle_mode
  21869. - settle_value
  21870. description: 本次请求的分成入参(原样回显,供与 `settle_value` 比对)
  21871. title: settle requested
  21872. account:
  21873. $ref: '#/components/schemas/AccountOut'
  21874. required:
  21875. - partner_id
  21876. - name
  21877. - duty_desc
  21878. - region_node_id
  21879. - region_level
  21880. - region_path_name
  21881. - ops_main_scope_check
  21882. - mobile
  21883. - status
  21884. - settle_mode
  21885. - settle_value
  21886. - settle_value_note
  21887. - settle_requested
  21888. - account
  21889. description: PartnerCreateResult 业务数据
  21890. title: PartnerCreateResult
  21891. PartnerDeleteResult:
  21892. type: object
  21893. properties:
  21894. partner_id:
  21895. type: string
  21896. title: 合伙人 ID
  21897. description: 合伙人 ID。
  21898. name:
  21899. type: string
  21900. title: 名称
  21901. description: 名称。
  21902. deleted:
  21903. type: string
  21904. description: 类型:false
  21905. title: 是否已删除
  21906. blockers:
  21907. type: array
  21908. items:
  21909. $ref: '#/components/schemas/BlockerItem'
  21910. title: blockers
  21911. description: 字段 blockers。
  21912. unverifiable_checks:
  21913. type: array
  21914. items:
  21915. $ref: '#/components/schemas/UnverifiableCheck'
  21916. title: unverifiable checks
  21917. description: 字段 unverifiable_checks。
  21918. note:
  21919. type: string
  21920. title: 备注
  21921. description: 备注。
  21922. required:
  21923. - partner_id
  21924. - name
  21925. - deleted
  21926. - blockers
  21927. - unverifiable_checks
  21928. - note
  21929. description: PartnerDeleteResult 业务数据
  21930. title: PartnerDeleteResult
  21931. PartnerListResult:
  21932. type: object
  21933. properties:
  21934. items:
  21935. type: array
  21936. items:
  21937. $ref: '#/components/schemas/PartnerRow'
  21938. title: 列表项
  21939. description: 列表项。
  21940. total:
  21941. type: integer
  21942. title: 总条数
  21943. description: 总条数。
  21944. page:
  21945. type: integer
  21946. nullable: true
  21947. title: 页码
  21948. description: 页码。
  21949. page_size:
  21950. type: integer
  21951. nullable: true
  21952. title: 每页条数
  21953. description: 每页条数。
  21954. required:
  21955. - items
  21956. - total
  21957. description: PartnerListResult 业务数据
  21958. title: PartnerListResult
  21959. PartnerRow:
  21960. type: object
  21961. properties:
  21962. partner_id:
  21963. type: string
  21964. title: 合伙人 ID
  21965. description: 合伙人 ID。
  21966. name:
  21967. type: string
  21968. title: 名称
  21969. description: 名称。
  21970. duty_desc:
  21971. type: string
  21972. nullable: true
  21973. title: duty desc
  21974. description: 字段 duty_desc。
  21975. region_node_id:
  21976. type: string
  21977. title: 区域节点 ID
  21978. description: 区域节点 ID。
  21979. region_path_name:
  21980. type: string
  21981. nullable: true
  21982. description: '`bos_region_meta.path_name`(节点 ID 链;未建档=null)'
  21983. title: region path name
  21984. region_level:
  21985. type: string
  21986. nullable: true
  21987. description: '`bos_region_meta.level`(合伙人限省级)'
  21988. title: region level
  21989. mobile:
  21990. type: string
  21991. nullable: true
  21992. title: 手机号
  21993. description: 手机号。
  21994. status:
  21995. type: string
  21996. title: 状态
  21997. description: 状态。
  21998. settle_mode:
  21999. type: string
  22000. nullable: true
  22001. title: settle mode
  22002. description: 字段 settle_mode。
  22003. settle_value:
  22004. type: string
  22005. nullable: true
  22006. title: settle value
  22007. description: 字段 settle_value。
  22008. customer_count:
  22009. type: integer
  22010. title: customer count
  22011. description: 字段 customer_count。
  22012. created_at:
  22013. type: string
  22014. nullable: true
  22015. title: 创建时间
  22016. description: 创建时间。
  22017. account:
  22018. $ref: '#/components/schemas/SubjectAccount'
  22019. scope:
  22020. type: object
  22021. properties:
  22022. regions:
  22023. type: array
  22024. items:
  22025. type: string
  22026. customers:
  22027. type: array
  22028. items:
  22029. type: string
  22030. coverage_customers:
  22031. type: number
  22032. nullable: true
  22033. required:
  22034. - regions
  22035. - customers
  22036. - coverage_customers
  22037. description: '* 「配置范围」弹窗回显 —— 随列表一并下发, 另开「按 id 查他人范围」的接口 * (`partner/scope/get@v1` 设计上只允许本人查自己,admin
  22038. 越权读他人范围在本域被禁止)。'
  22039. title: scope
  22040. required:
  22041. - partner_id
  22042. - name
  22043. - duty_desc
  22044. - region_node_id
  22045. - region_path_name
  22046. - region_level
  22047. - mobile
  22048. - status
  22049. - settle_mode
  22050. - settle_value
  22051. - customer_count
  22052. - created_at
  22053. - account
  22054. - scope
  22055. description: PartnerRow 业务数据
  22056. title: PartnerRow
  22057. PartnerScope:
  22058. type: object
  22059. properties:
  22060. grants:
  22061. type: array
  22062. items:
  22063. $ref: '#/components/schemas/ScopeGrant'
  22064. title: grants
  22065. description: 字段 grants。
  22066. total:
  22067. type: integer
  22068. title: 总条数
  22069. description: 总条数。
  22070. required:
  22071. - grants
  22072. - total
  22073. description: PartnerScope 业务数据
  22074. title: PartnerScope
  22075. PartnerScopeSaveResult:
  22076. type: object
  22077. properties:
  22078. partner_id:
  22079. type: string
  22080. title: 合伙人 ID
  22081. description: 合伙人 ID。
  22082. grants:
  22083. type: array
  22084. items:
  22085. $ref: '#/components/schemas/ScopeGrant'
  22086. title: grants
  22087. description: 字段 grants。
  22088. region_count:
  22089. type: integer
  22090. title: region count
  22091. description: 字段 region_count。
  22092. customer_count:
  22093. type: integer
  22094. title: customer count
  22095. description: 字段 customer_count。
  22096. total:
  22097. type: integer
  22098. title: 总条数
  22099. description: 总条数。
  22100. inserted:
  22101. type: number
  22102. title: inserted
  22103. description: 字段 inserted。
  22104. deleted:
  22105. type: number
  22106. title: 是否已删除
  22107. description: 是否已删除。
  22108. unchanged:
  22109. type: number
  22110. title: unchanged
  22111. description: 字段 unchanged。
  22112. noop:
  22113. type: boolean
  22114. nullable: true
  22115. description: '仅「本次无需改动」分支下发'
  22116. title: noop
  22117. consistent:
  22118. type: boolean
  22119. nullable: true
  22120. description: '回读与请求是否一致( 假定 true);noop 分支 下发'
  22121. title: consistent
  22122. diff_with_requested:
  22123. type: object
  22124. properties:
  22125. expected:
  22126. type: array
  22127. items:
  22128. type: string
  22129. actual:
  22130. type: array
  22131. items:
  22132. type: string
  22133. required:
  22134. - expected
  22135. - actual
  22136. nullable: true
  22137. title: diff with requested
  22138. description: 字段 diff_with_requested。
  22139. scope_note:
  22140. type: string
  22141. title: scope note
  22142. description: 字段 scope_note。
  22143. required:
  22144. - partner_id
  22145. - grants
  22146. - region_count
  22147. - customer_count
  22148. - total
  22149. - inserted
  22150. - deleted
  22151. - unchanged
  22152. - scope_note
  22153. description: PartnerScopeSaveResult 业务数据
  22154. title: PartnerScopeSaveResult
  22155. PartnerUpdateResult:
  22156. type: object
  22157. properties:
  22158. partner_id:
  22159. type: string
  22160. title: 合伙人 ID
  22161. description: 合伙人 ID。
  22162. name:
  22163. type: string
  22164. title: 名称
  22165. description: 名称。
  22166. duty_desc:
  22167. type: string
  22168. nullable: true
  22169. title: duty desc
  22170. description: 字段 duty_desc。
  22171. region_node_id:
  22172. type: string
  22173. title: 区域节点 ID
  22174. description: 区域节点 ID。
  22175. region_level:
  22176. type: string
  22177. title: region level
  22178. description: 字段 region_level。
  22179. region_path_name:
  22180. type: string
  22181. title: region path name
  22182. description: 字段 region_path_name。
  22183. ops_main_scope_check:
  22184. $ref: '#/components/schemas/ScopeCheck'
  22185. mobile:
  22186. type: string
  22187. nullable: true
  22188. title: 手机号
  22189. description: 手机号。
  22190. status:
  22191. type: string
  22192. title: 状态
  22193. description: 状态。
  22194. settle_mode:
  22195. type: string
  22196. nullable: true
  22197. title: settle mode
  22198. description: 字段 settle_mode。
  22199. settle_value:
  22200. type: string
  22201. nullable: true
  22202. title: settle value
  22203. description: 字段 settle_value。
  22204. settle_requested:
  22205. type: object
  22206. properties:
  22207. settle_mode:
  22208. type: string
  22209. nullable: true
  22210. settle_value:
  22211. oneOf:
  22212. - type: string
  22213. - type: number
  22214. nullable: true
  22215. required:
  22216. - settle_mode
  22217. - settle_value
  22218. title: settle requested
  22219. description: 字段 settle_requested。
  22220. username:
  22221. type: string
  22222. nullable: true
  22223. description: 随本接口同步平台账号,此处=本地绑定行真值
  22224. title: 登录名
  22225. form_semantics:
  22226. type: string
  22227. title: form semantics
  22228. description: 字段 form_semantics。
  22229. platform_sync_note:
  22230. type: string
  22231. title: platform sync note
  22232. description: 字段 platform_sync_note。
  22233. row_version_note:
  22234. type: string
  22235. title: row version note
  22236. description: 字段 row_version_note。
  22237. required:
  22238. - partner_id
  22239. - name
  22240. - duty_desc
  22241. - region_node_id
  22242. - region_level
  22243. - region_path_name
  22244. - ops_main_scope_check
  22245. - mobile
  22246. - status
  22247. - settle_mode
  22248. - settle_value
  22249. - settle_requested
  22250. - username
  22251. - form_semantics
  22252. - platform_sync_note
  22253. - row_version_note
  22254. description: PartnerUpdateResult 业务数据
  22255. title: PartnerUpdateResult
  22256. PendingQueueItem:
  22257. type: object
  22258. properties:
  22259. seq_no:
  22260. type: number
  22261. nullable: true
  22262. title: 序号
  22263. description: 序号。
  22264. ticket_id:
  22265. type: string
  22266. title: 工单 ID
  22267. description: 工单 ID。
  22268. ticket_no:
  22269. type: string
  22270. nullable: true
  22271. title: 工单号
  22272. description: 工单号。
  22273. ticket_type:
  22274. $ref: '#/components/schemas/TicketType'
  22275. title:
  22276. type: string
  22277. nullable: true
  22278. title: 标题
  22279. description: 标题。
  22280. customer_id:
  22281. type: string
  22282. nullable: true
  22283. title: 客户 ID
  22284. description: 客户 ID。
  22285. customer_name:
  22286. type: string
  22287. nullable: true
  22288. title: 客户名称
  22289. description: 客户名称。
  22290. assign_team_id:
  22291. type: string
  22292. nullable: true
  22293. title: 承接团队 ID
  22294. description: 承接团队 ID。
  22295. team_name:
  22296. type: string
  22297. nullable: true
  22298. title: 团队名称
  22299. description: 团队名称。
  22300. assignee_user_id:
  22301. type: string
  22302. nullable: true
  22303. title: 处理人用户 ID
  22304. description: 处理人用户 ID。
  22305. assignee_name:
  22306. type: string
  22307. nullable: true
  22308. title: 处理人姓名
  22309. description: 处理人姓名。
  22310. status:
  22311. $ref: '#/components/schemas/TicketStatus'
  22312. backfill_source:
  22313. type: string
  22314. nullable: true
  22315. title: 回填来源
  22316. description: 回填来源。
  22317. expected_done_date:
  22318. type: string
  22319. nullable: true
  22320. title: 期望完成日
  22321. description: 期望完成日。
  22322. deferred_until:
  22323. type: string
  22324. nullable: true
  22325. title: 延期至
  22326. description: 延期至。
  22327. overdue_7d:
  22328. type: boolean
  22329. nullable: true
  22330. title: 七日超期
  22331. description: 七日超期。
  22332. execution_locked:
  22333. type: boolean
  22334. nullable: true
  22335. title: 执行锁定
  22336. description: 执行锁定。
  22337. execution_not_before:
  22338. type: string
  22339. nullable: true
  22340. title: 最早可执行日
  22341. description: 最早可执行日。
  22342. created_at:
  22343. type: string
  22344. nullable: true
  22345. title: 创建时间
  22346. description: 创建时间。
  22347. completed_at:
  22348. type: string
  22349. nullable: true
  22350. title: 完成时间
  22351. description: 完成时间。
  22352. waiting:
  22353. $ref: '#/components/schemas/TicketWaiting'
  22354. submitter_type:
  22355. type: string
  22356. nullable: true
  22357. title: 提交方类型
  22358. description: 提交方类型。
  22359. candidates:
  22360. type: array
  22361. items:
  22362. $ref: '#/components/schemas/AssignCandidate'
  22363. title: 候选人
  22364. description: 候选人。
  22365. required:
  22366. - ticket_id
  22367. - ticket_no
  22368. - ticket_type
  22369. - title
  22370. - customer_id
  22371. - customer_name
  22372. - assign_team_id
  22373. - assignee_user_id
  22374. - status
  22375. - backfill_source
  22376. - expected_done_date
  22377. - created_at
  22378. - candidates
  22379. description: PendingQueueItem 业务数据
  22380. title: PendingQueueItem
  22381. PendingQueueResult:
  22382. type: object
  22383. properties:
  22384. rows:
  22385. type: array
  22386. items:
  22387. $ref: '#/components/schemas/PendingQueueItem'
  22388. title: 行集
  22389. description: 行集。
  22390. total:
  22391. type: integer
  22392. title: 总条数
  22393. description: 总条数。
  22394. page:
  22395. type: integer
  22396. title: 页码
  22397. description: 页码。
  22398. page_size:
  22399. type: integer
  22400. title: 每页条数
  22401. description: 每页条数。
  22402. required:
  22403. - rows
  22404. - total
  22405. - page
  22406. - page_size
  22407. description: PendingQueueResult 业务数据
  22408. title: PendingQueueResult
  22409. PingInfo:
  22410. type: object
  22411. properties:
  22412. status:
  22413. type: string
  22414. title: 状态
  22415. description: 状态。
  22416. service:
  22417. type: string
  22418. title: 服务名
  22419. description: 服务名。
  22420. user_id:
  22421. type: string
  22422. title: 用户 ID
  22423. description: 用户 ID。
  22424. role_code:
  22425. $ref: '#/components/schemas/RoleCode'
  22426. required:
  22427. - status
  22428. - service
  22429. - user_id
  22430. - role_code
  22431. description: PingInfo 业务数据
  22432. title: PingInfo
  22433. PlanCostItemListResult:
  22434. type: object
  22435. description: 档位随附成本项列表
  22436. properties:
  22437. items:
  22438. type: array
  22439. description: 成本项行
  22440. items:
  22441. type: object
  22442. additionalProperties: true
  22443. title: 列表项元素
  22444. title: 列表项
  22445. plan_id:
  22446. type: string
  22447. description: 套餐档位 ID
  22448. nullable: true
  22449. title: 档位 ID
  22450. frozen:
  22451. type: boolean
  22452. description: 是否冻结(只读提示)
  22453. nullable: true
  22454. title: frozen
  22455. required:
  22456. - items
  22457. title: PlanCostItemListResult
  22458. PlanCostItemRow:
  22459. type: object
  22460. properties:
  22461. item_id:
  22462. type: string
  22463. nullable: true
  22464. title: item id
  22465. description: 字段 item_id。
  22466. cost_item_id:
  22467. type: string
  22468. nullable: true
  22469. description: 全局成本项 ID(强引用,保存时必填)。
  22470. title: cost item id
  22471. item_name:
  22472. type: string
  22473. title: item name
  22474. description: 字段 item_name。
  22475. amount_cents:
  22476. type: integer
  22477. nullable: true
  22478. title: 金额(分)
  22479. description: 金额(分)。
  22480. billing_unit:
  22481. type: string
  22482. nullable: true
  22483. title: billing unit
  22484. description: 字段 billing_unit。
  22485. category:
  22486. type: string
  22487. nullable: true
  22488. title: category
  22489. description: 字段 category。
  22490. remark:
  22491. type: string
  22492. nullable: true
  22493. title: 备注
  22494. description: 备注。
  22495. sort_no:
  22496. type: number
  22497. nullable: true
  22498. title: sort no
  22499. description: 字段 sort_no。
  22500. required:
  22501. - item_name
  22502. - amount_cents
  22503. - billing_unit
  22504. - category
  22505. - remark
  22506. description: 套餐随附成本项(`plan_cost_item`)。`cost_item_id` 为对全局 `cost_item` 的强引用;
  22507. `item_name`/`category`/`billing_unit` 读时取全局现名(服务端 JOIN),保存时由服务端快照覆盖。
  22508. title: PlanCostItemRow
  22509. PlanCostItemSaveResult:
  22510. type: object
  22511. properties:
  22512. items:
  22513. type: array
  22514. items:
  22515. $ref: '#/components/schemas/PlanCostItemRow'
  22516. title: 列表项
  22517. description: 列表项。
  22518. saved_count:
  22519. type: integer
  22520. nullable: true
  22521. title: saved count
  22522. description: 字段 saved_count。
  22523. required:
  22524. - items
  22525. description: PlanCostItemSaveResult 业务数据
  22526. title: PlanCostItemSaveResult
  22527. PortalPlanBoardResult:
  22528. type: object
  22529. description: 客户门户套餐看板
  22530. properties:
  22531. view:
  22532. type: string
  22533. description: 视图:board/list/detail
  22534. title: 视图
  22535. party:
  22536. type: object
  22537. description: 页头主体
  22538. properties:
  22539. customer_id:
  22540. type: string
  22541. description: 客户 ID
  22542. customer_name:
  22543. type: string
  22544. description: 客户名称
  22545. nullable: true
  22546. operator_name:
  22547. type: string
  22548. description: 签订方运营商名称
  22549. nullable: true
  22550. region_path:
  22551. type: string
  22552. description: 区域路径
  22553. nullable: true
  22554. title: 主体信息
  22555. current_rows:
  22556. type: array
  22557. description: 当前套餐行(status.key ∈ active/pending)
  22558. items:
  22559. $ref: '#/components/schemas/PortalPlanBoardRow'
  22560. title: 当前行
  22561. history_rows:
  22562. type: array
  22563. description: 往期套餐行(含 expired/cancelled/replaced)
  22564. items:
  22565. $ref: '#/components/schemas/PortalPlanBoardRow'
  22566. title: 历史行
  22567. amount_note:
  22568. type: string
  22569. description: 合同总额与每期结算口径说明
  22570. title: 金额说明
  22571. notes:
  22572. type: array
  22573. items:
  22574. type: string
  22575. title: 说明列表元素
  22576. description: 补充说明
  22577. title: 说明列表
  22578. required:
  22579. - view
  22580. - current_rows
  22581. - history_rows
  22582. title: PortalPlanBoardResult
  22583. PriorActivation:
  22584. type: object
  22585. properties:
  22586. ticket_id:
  22587. type: string
  22588. nullable: true
  22589. title: 工单 ID
  22590. description: 工单 ID。
  22591. ticket_no:
  22592. type: string
  22593. nullable: true
  22594. title: 工单号
  22595. description: 工单号。
  22596. actual_opened_date:
  22597. type: string
  22598. nullable: true
  22599. title: actual opened date
  22600. description: 字段 actual_opened_date。
  22601. pin_bind_mode:
  22602. type: string
  22603. nullable: true
  22604. title: pin bind mode
  22605. description: 字段 pin_bind_mode。
  22606. routes:
  22607. type: array
  22608. items:
  22609. $ref: '#/components/schemas/RouteRow'
  22610. nullable: true
  22611. title: routes
  22612. description: 字段 routes。
  22613. ips:
  22614. type: array
  22615. items:
  22616. $ref: '#/components/schemas/IpRow'
  22617. nullable: true
  22618. title: ips
  22619. description: 字段 ips。
  22620. ip_binds:
  22621. type: array
  22622. items:
  22623. type: object
  22624. properties:
  22625. backfill_ip_id:
  22626. type: string
  22627. nullable: true
  22628. sub_account_id:
  22629. type: string
  22630. nullable: true
  22631. nullable: true
  22632. title: ip binds
  22633. description: 字段 ip_binds。
  22634. description: PriorActivation 业务数据
  22635. title: PriorActivation
  22636. ProcessLog:
  22637. type: object
  22638. properties:
  22639. log_id:
  22640. type: string
  22641. title: log id
  22642. description: 字段 log_id。
  22643. action:
  22644. type: string
  22645. nullable: true
  22646. title: 动作
  22647. description: 动作。
  22648. actor_user_id:
  22649. type: string
  22650. nullable: true
  22651. description: '* 操作人平台主体号。 服务端按角色下发:台账读侧五档给原值(要拿它对齐审计流水), * 客户侧/合作方侧置 `null`;`"0"`=系统/定时作。'
  22652. title: actor user id
  22653. actor_name:
  22654. type: string
  22655. nullable: true
  22656. description: 操作人姓名/展示名(服务端按 `bos_account_ext.display_name` 优先、未自填回落登录名现查;查无或系统主体为 `null`)。
  22657. title: actor name
  22658. actor_role:
  22659. type: string
  22660. nullable: true
  22661. title: actor role
  22662. description: 字段 actor_role。
  22663. note:
  22664. type: string
  22665. nullable: true
  22666. title: 备注
  22667. description: 备注。
  22668. at:
  22669. type: string
  22670. nullable: true
  22671. title: at
  22672. description: 字段 at。
  22673. required:
  22674. - log_id
  22675. - action
  22676. - actor_user_id
  22677. - actor_role
  22678. - note
  22679. - at
  22680. description: 处理记录=append-only 纯文本留痕(数据模型): `related_id` 之类的关联列。
  22681. title: ProcessLog
  22682. ReconAccountCreateResult:
  22683. type: object
  22684. properties:
  22685. operator_id:
  22686. type: string
  22687. title: 运营商 ID
  22688. description: 运营商 ID。
  22689. user_id:
  22690. type: string
  22691. title: 用户 ID
  22692. description: 用户 ID。
  22693. username:
  22694. type: string
  22695. title: 登录名
  22696. description: 登录名。
  22697. mobile:
  22698. type: string
  22699. nullable: true
  22700. title: 手机号
  22701. description: 手机号。
  22702. status:
  22703. type: string
  22704. title: 状态
  22705. description: 状态。
  22706. status_hint:
  22707. type: string
  22708. nullable: true
  22709. description: 状态提示,如「未发送,线下告知本人」
  22710. title: status hint
  22711. initial_password:
  22712. type: string
  22713. nullable: true
  22714. description: 仅创建当次返回,查询接口不下发
  22715. title: initial password
  22716. required:
  22717. - operator_id
  22718. - user_id
  22719. - username
  22720. - mobile
  22721. - status
  22722. - status_hint
  22723. description: ReconAccountCreateResult 业务数据
  22724. title: ReconAccountCreateResult
  22725. ReconAccountGetResult:
  22726. type: object
  22727. properties:
  22728. found:
  22729. type: boolean
  22730. title: 是否命中
  22731. description: 是否命中。
  22732. operator_id:
  22733. type: string
  22734. title: 运营商 ID
  22735. description: 运营商 ID。
  22736. user_id:
  22737. type: string
  22738. nullable: true
  22739. title: 用户 ID
  22740. description: 用户 ID。
  22741. username:
  22742. type: string
  22743. nullable: true
  22744. title: 登录名
  22745. description: 登录名。
  22746. mobile:
  22747. type: string
  22748. nullable: true
  22749. title: 手机号
  22750. description: 手机号。
  22751. status:
  22752. type: string
  22753. nullable: true
  22754. title: 状态
  22755. description: 状态。
  22756. status_hint:
  22757. type: string
  22758. nullable: true
  22759. title: status hint
  22760. description: 字段 status_hint。
  22761. required:
  22762. - found
  22763. - operator_id
  22764. - user_id
  22765. - username
  22766. - mobile
  22767. - status
  22768. - status_hint
  22769. description: ReconAccountGetResult 业务数据
  22770. title: ReconAccountGetResult
  22771. ReconBatchRow:
  22772. type: object
  22773. properties:
  22774. batch_no:
  22775. type: string
  22776. title: 批次号
  22777. description: 批次号。
  22778. holder_type:
  22779. $ref: '#/components/schemas/HolderType'
  22780. holder_id:
  22781. type: string
  22782. title: holder id
  22783. description: 字段 holder_id。
  22784. holder_name:
  22785. type: string
  22786. description: 当期快照名称( 不存批次快照,显示时按快照口径取名)
  22787. title: holder name
  22788. period:
  22789. type: string
  22790. title: 账期
  22791. description: 字段 period。
  22792. recon_date:
  22793. type: string
  22794. title: recon date
  22795. description: 字段 recon_date。
  22796. trigger_type:
  22797. $ref: '#/components/schemas/ReconTriggerType'
  22798. detail_count:
  22799. type: integer
  22800. description: 明细条数:count(active) 现算,void 行不计
  22801. title: detail count
  22802. base_cents:
  22803. type: integer
  22804. description: 本批 SUM(active share_base_cents)——与卡片口径不同(不去重)
  22805. title: base cents
  22806. share_cents:
  22807. type: integer
  22808. description: 本批 SUM(active share_amount_cents)
  22809. title: share cents
  22810. reconcile_status:
  22811. $ref: '#/components/schemas/ReconcileStatus'
  22812. status:
  22813. $ref: '#/components/schemas/ReconBatchStatus'
  22814. fail_reason:
  22815. type: string
  22816. nullable: true
  22817. description: failed 行行末红点悬浮原文( 不是 KLT-* 码,对账 末格)
  22818. title: fail reason
  22819. operator_user_id:
  22820. type: string
  22821. nullable: true
  22822. description: 执行人;NULL ⇒ 界面显示「系统」( 显示 0/占位用户名)
  22823. title: operator user id
  22824. operator_username:
  22825. type: string
  22826. nullable: true
  22827. description: 执行人可读名(`bos_user_binding` 联表): 无绑定 ⇒ null ⇒ 回落「系统」。
  22828. title: operator username
  22829. required:
  22830. - batch_no
  22831. - holder_type
  22832. - holder_id
  22833. - holder_name
  22834. - period
  22835. - recon_date
  22836. - trigger_type
  22837. - detail_count
  22838. - base_cents
  22839. - share_cents
  22840. - reconcile_status
  22841. - status
  22842. - fail_reason
  22843. - operator_user_id
  22844. description: ReconBatchRow 业务数据
  22845. title: ReconBatchRow
  22846. ReconBatchStatus:
  22847. type: string
  22848. enum:
  22849. - pending
  22850. - executed
  22851. - failed
  22852. - voided
  22853. description: 批次状态四值(对账)。 与出账状态是两个维度, 混列。
  22854. title: ReconBatchStatus
  22855. ReconDetailLine:
  22856. type: object
  22857. properties:
  22858. bill_detail_id:
  22859. type: string
  22860. title: bill detail id
  22861. description: 字段 bill_detail_id。
  22862. customer_name:
  22863. type: string
  22864. title: 客户名称
  22865. description: 客户名称。
  22866. subscription_label:
  22867. type: string
  22868. title: subscription label
  22869. description: 字段 subscription_label。
  22870. receivable_cents:
  22871. type: integer
  22872. title: receivable cents
  22873. description: 字段 receivable_cents。
  22874. share_base_cents:
  22875. type: integer
  22876. title: share base cents
  22877. description: 字段 share_base_cents。
  22878. share_mode:
  22879. type: string
  22880. title: share mode
  22881. description: 字段 share_mode。
  22882. share_value:
  22883. type: number
  22884. title: share value
  22885. description: 字段 share_value。
  22886. share_amount_cents:
  22887. type: integer
  22888. title: share amount cents
  22889. description: 字段 share_amount_cents。
  22890. zero_note:
  22891. $ref: '#/components/schemas/ZeroNote'
  22892. required:
  22893. - bill_detail_id
  22894. - customer_name
  22895. - subscription_label
  22896. - receivable_cents
  22897. - share_base_cents
  22898. - share_mode
  22899. - share_value
  22900. - share_amount_cents
  22901. - zero_note
  22902. description: ReconDetailLine 业务数据
  22903. title: ReconDetailLine
  22904. ReconDetailResult:
  22905. type: object
  22906. properties:
  22907. batch_no:
  22908. type: string
  22909. title: 批次号
  22910. description: 批次号。
  22911. holder_type:
  22912. $ref: '#/components/schemas/HolderType'
  22913. holder_id:
  22914. type: string
  22915. title: holder id
  22916. description: 字段 holder_id。
  22917. holder_name:
  22918. type: string
  22919. title: holder name
  22920. description: 字段 holder_name。
  22921. period:
  22922. type: string
  22923. title: 账期
  22924. description: 字段 period。
  22925. recon_date:
  22926. type: string
  22927. title: recon date
  22928. description: 字段 recon_date。
  22929. status:
  22930. $ref: '#/components/schemas/ReconBatchStatus'
  22931. operator_user_id:
  22932. type: string
  22933. nullable: true
  22934. title: operator user id
  22935. description: 字段 operator_user_id。
  22936. operator_username:
  22937. type: string
  22938. nullable: true
  22939. description: 执行人可读名(`bos_user_binding` 联表):人工补跑=操作人账号名,自动出账/ 无绑定 ⇒ null。
  22940. title: operator username
  22941. executed_at:
  22942. type: string
  22943. nullable: true
  22944. title: executed at
  22945. description: 字段 executed_at。
  22946. fail_reason:
  22947. type: string
  22948. nullable: true
  22949. description: 只在 failed/voided 时渲染
  22950. title: fail reason
  22951. voided_by_batch_no:
  22952. type: string
  22953. nullable: true
  22954. description: voided 时必带:由哪一次补跑作废(新批 batch_no,作废通路唯一人类可读轨迹)
  22955. title: voided by batch no
  22956. trigger_type:
  22957. $ref: '#/components/schemas/ReconTriggerType'
  22958. detail_count:
  22959. type: integer
  22960. title: detail count
  22961. description: 字段 detail_count。
  22962. base_cents:
  22963. type: integer
  22964. title: base cents
  22965. description: 字段 base_cents。
  22966. share_cents:
  22967. type: integer
  22968. title: share cents
  22969. description: 字段 share_cents。
  22970. can_rerun:
  22971. type: boolean
  22972. nullable: true
  22973. description: '* 动作可用性三布尔位:服务端算、与 对账 同源常量, 前端按角色自猜=第二套判据。 * 后端未下发 ⇒ null ⇒ 界面禁用+「可操作性位后端未下发」。'
  22974. title: can rerun
  22975. can_export:
  22976. type: boolean
  22977. nullable: true
  22978. title: can export
  22979. description: 字段 can_export。
  22980. can_correct:
  22981. type: boolean
  22982. nullable: true
  22983. title: can correct
  22984. description: 字段 can_correct。
  22985. ticket_gap_count:
  22986. type: integer
  22987. nullable: true
  22988. description: 本批仍有未完成开户工单(ticket_gap_counts);KLT-S406 ⇒ null 且 gap_failed=true(只坏该格)
  22989. title: ticket gap count
  22990. ticket_gap_failed:
  22991. type: boolean
  22992. title: ticket gap failed
  22993. description: 字段 ticket_gap_failed。
  22994. cost_unconfigured:
  22995. type: array
  22996. items:
  22997. type: string
  22998. title: cost_unconfigured元素
  22999. description: 成本未配置提示(configured=false 的成本项名,一行文本,不建提醒表)
  23000. title: cost unconfigured
  23001. items:
  23002. type: array
  23003. items:
  23004. $ref: '#/components/schemas/ReconDetailLine'
  23005. title: 列表项
  23006. description: 列表项。
  23007. required:
  23008. - batch_no
  23009. - holder_type
  23010. - holder_id
  23011. - holder_name
  23012. - period
  23013. - recon_date
  23014. - status
  23015. - operator_user_id
  23016. - executed_at
  23017. - fail_reason
  23018. - voided_by_batch_no
  23019. - trigger_type
  23020. - detail_count
  23021. - base_cents
  23022. - share_cents
  23023. - can_rerun
  23024. - can_export
  23025. - can_correct
  23026. - ticket_gap_count
  23027. - ticket_gap_failed
  23028. - cost_unconfigured
  23029. - items
  23030. description: ReconDetailResult 业务数据
  23031. title: ReconDetailResult
  23032. ReconExportResult:
  23033. type: object
  23034. properties:
  23035. file_name:
  23036. type: string
  23037. nullable: true
  23038. title: 文件名
  23039. description: 文件名。
  23040. oss_key:
  23041. type: string
  23042. nullable: true
  23043. title: 对象键
  23044. description: 对象键。
  23045. row_count:
  23046. type: integer
  23047. nullable: true
  23048. title: row count
  23049. description: 字段 row_count。
  23050. accepted_id:
  23051. type: string
  23052. nullable: true
  23053. description: 异步受理号(超 export_async_rows 阈值时同步/异步共用同一段行集查询)
  23054. title: accepted id
  23055. description: ReconExportResult 业务数据
  23056. title: ReconExportResult
  23057. ReconPeriodsResult:
  23058. type: object
  23059. properties:
  23060. periods:
  23061. type: array
  23062. items:
  23063. type: string
  23064. title: periods元素
  23065. title: periods
  23066. description: 字段 periods。
  23067. required:
  23068. - periods
  23069. description: ReconPeriodsResult 业务数据
  23070. title: ReconPeriodsResult
  23071. ReconRerunResult:
  23072. type: object
  23073. properties:
  23074. batch_no:
  23075. type: string
  23076. title: 批次号
  23077. description: 批次号。
  23078. required:
  23079. - batch_no
  23080. description: ReconRerunResult 业务数据
  23081. title: ReconRerunResult
  23082. ReconTriggerType:
  23083. type: string
  23084. enum:
  23085. - auto
  23086. - manual
  23087. description: 触发方式两值( 补账功能取消后无第三值, 二次。
  23088. title: ReconTriggerType
  23089. ReconcileStatus:
  23090. type: string
  23091. enum:
  23092. - settled
  23093. - abnormal
  23094. - unsettled
  23095. description: 出账状态三值(唯一派生 reconcile_status_of,对账; 前端自写 CASE)。
  23096. title: ReconcileStatus
  23097. RegionChangeLogResult:
  23098. type: object
  23099. properties:
  23100. items:
  23101. type: array
  23102. items:
  23103. $ref: '#/components/schemas/RegionChangeLogRow'
  23104. title: 列表项
  23105. description: 列表项。
  23106. total:
  23107. type: integer
  23108. title: 总条数
  23109. description: 总条数。
  23110. audit_write_ready:
  23111. type: boolean
  23112. nullable: true
  23113. title: 审计可写
  23114. description: 审计可写。
  23115. truncated:
  23116. type: boolean
  23117. nullable: true
  23118. title: 是否截断
  23119. description: 是否截断。
  23120. window_size:
  23121. type: integer
  23122. nullable: true
  23123. title: 窗口大小
  23124. description: 窗口大小。
  23125. message:
  23126. type: string
  23127. nullable: true
  23128. title: 说明
  23129. description: 说明。
  23130. required:
  23131. - items
  23132. - total
  23133. description: RegionChangeLogResult 业务数据
  23134. title: RegionChangeLogResult
  23135. RegionChangeLogRow:
  23136. type: object
  23137. properties:
  23138. action:
  23139. type: string
  23140. title: 动作
  23141. description: 动作。
  23142. object:
  23143. type: object
  23144. properties:
  23145. type:
  23146. type: string
  23147. nullable: true
  23148. id:
  23149. type: string
  23150. nullable: true
  23151. nullable: true
  23152. title: object
  23153. description: 字段 object。
  23154. before:
  23155. type: string
  23156. nullable: true
  23157. title: before
  23158. description: 字段 before。
  23159. after:
  23160. type: string
  23161. nullable: true
  23162. title: after
  23163. description: 字段 after。
  23164. actor:
  23165. type: object
  23166. properties:
  23167. user_id:
  23168. type: string
  23169. nullable: true
  23170. username:
  23171. type: string
  23172. nullable: true
  23173. nullable: true
  23174. title: actor
  23175. description: 字段 actor。
  23176. detail:
  23177. type: object
  23178. properties:
  23179. object:
  23180. type: string
  23181. nullable: true
  23182. before:
  23183. type: string
  23184. nullable: true
  23185. after:
  23186. type: string
  23187. nullable: true
  23188. actor_name:
  23189. type: string
  23190. nullable: true
  23191. nullable: true
  23192. title: detail
  23193. description: 字段 detail。
  23194. occurred_at:
  23195. type: string
  23196. nullable: true
  23197. title: occurred at
  23198. description: 字段 occurred_at。
  23199. required:
  23200. - action
  23201. - object
  23202. - before
  23203. - after
  23204. - actor
  23205. - detail
  23206. - occurred_at
  23207. description: RegionChangeLogRow 业务数据
  23208. title: RegionChangeLogRow
  23209. RegionCreateResult:
  23210. type: object
  23211. properties:
  23212. node_id:
  23213. type: string
  23214. title: 节点 ID
  23215. description: 节点 ID。
  23216. node_name:
  23217. type: string
  23218. nullable: true
  23219. title: 节点名称
  23220. description: 节点名称。
  23221. parent_node_id:
  23222. type: string
  23223. nullable: true
  23224. title: 父节点 ID
  23225. description: 父节点 ID。
  23226. level:
  23227. type: string
  23228. nullable: true
  23229. title: 层级
  23230. description: 层级。
  23231. level_label:
  23232. type: string
  23233. nullable: true
  23234. title: 层级标签
  23235. description: 层级标签。
  23236. required:
  23237. - node_id
  23238. description: RegionCreateResult 业务数据
  23239. title: RegionCreateResult
  23240. RegionDeleteResult:
  23241. type: object
  23242. properties:
  23243. node_id:
  23244. type: string
  23245. title: 节点 ID
  23246. description: 节点 ID。
  23247. deleted:
  23248. type: boolean
  23249. title: 是否已删除
  23250. description: 是否已删除。
  23251. blocked:
  23252. type: array
  23253. items:
  23254. type: string
  23255. title: 阻塞项元素
  23256. description: 阻塞项:has_children / has_children_customers / has_operator_profiles /
  23257. has_partner_profiles / has_ops_teams / has_team_scope_refs
  23258. title: 阻塞项
  23259. required:
  23260. - node_id
  23261. - deleted
  23262. - blocked
  23263. description: RegionDeleteResult 业务数据
  23264. title: RegionDeleteResult
  23265. RegionNode:
  23266. type: object
  23267. properties:
  23268. node_id:
  23269. type: string
  23270. title: 节点 ID
  23271. description: 节点 ID。
  23272. parent_id:
  23273. type: string
  23274. nullable: true
  23275. title: 父 ID
  23276. description: 父 ID。
  23277. node_name:
  23278. type: string
  23279. nullable: true
  23280. description: RM 下发的节点中文名;`null`=后端未下发( 用 ID 顶名)
  23281. title: 节点名称
  23282. name:
  23283. type: string
  23284. nullable: true
  23285. description: 展示名(=path_name,现为节点 ID 链;未建档=null)
  23286. title: 名称
  23287. path_name:
  23288. type: string
  23289. nullable: true
  23290. title: 路径名
  23291. description: 路径名。
  23292. level:
  23293. type: string
  23294. nullable: true
  23295. description: dev 值域:省/市/区县
  23296. title: 层级
  23297. level_label:
  23298. type: string
  23299. nullable: true
  23300. title: 层级标签
  23301. description: 层级标签。
  23302. counters:
  23303. type: object
  23304. properties:
  23305. operators:
  23306. type: number
  23307. partners:
  23308. type: number
  23309. ops_teams:
  23310. type: number
  23311. customers:
  23312. type: number
  23313. customers_in_subtree:
  23314. type: number
  23315. children:
  23316. type: number
  23317. required:
  23318. - operators
  23319. - partners
  23320. - ops_teams
  23321. - customers
  23322. - customers_in_subtree
  23323. - children
  23324. title: 计数
  23325. description: 计数。
  23326. required:
  23327. - node_id
  23328. - parent_id
  23329. - node_name
  23330. - name
  23331. - path_name
  23332. - level
  23333. - level_label
  23334. - counters
  23335. description: 区域树节点 [实]
  23336. title: RegionNode
  23337. RegionOrphanResult:
  23338. type: object
  23339. properties:
  23340. items:
  23341. type: array
  23342. items:
  23343. $ref: '#/components/schemas/RegionOrphanRow'
  23344. title: 列表项
  23345. description: 列表项。
  23346. total:
  23347. type: integer
  23348. title: 总条数
  23349. description: 总条数。
  23350. dangling_count:
  23351. type: integer
  23352. title: 疑似悬空数
  23353. description: 疑似悬空数。
  23354. window_size:
  23355. type: integer
  23356. nullable: true
  23357. title: 窗口大小
  23358. description: 窗口大小。
  23359. platform_state_verified:
  23360. type: boolean
  23361. nullable: true
  23362. title: 是否已核平台态
  23363. description: 是否已核平台态。
  23364. message:
  23365. type: string
  23366. nullable: true
  23367. title: 说明
  23368. description: 说明。
  23369. required:
  23370. - items
  23371. - total
  23372. - dangling_count
  23373. description: RegionOrphanResult 业务数据
  23374. title: RegionOrphanResult
  23375. RegionOrphanRow:
  23376. type: object
  23377. properties:
  23378. mount_request_id:
  23379. type: string
  23380. title: mount request id
  23381. description: 字段 mount_request_id。
  23382. customer_id:
  23383. type: string
  23384. title: 客户 ID
  23385. description: 客户 ID。
  23386. hierarchy_id:
  23387. type: string
  23388. title: hierarchy id
  23389. description: 字段 hierarchy_id。
  23390. parent_node_id:
  23391. type: string
  23392. nullable: true
  23393. title: 父节点 ID
  23394. description: 父节点 ID。
  23395. terminal_state:
  23396. type: string
  23397. title: terminal state
  23398. description: 字段 terminal_state。
  23399. local_customer_exists:
  23400. type: boolean
  23401. title: local customer exists
  23402. description: 字段 local_customer_exists。
  23403. created_at:
  23404. type: string
  23405. nullable: true
  23406. title: 创建时间
  23407. description: 创建时间。
  23408. cleaned_at:
  23409. type: string
  23410. nullable: true
  23411. title: cleaned at
  23412. description: 字段 cleaned_at。
  23413. required:
  23414. - mount_request_id
  23415. - customer_id
  23416. - hierarchy_id
  23417. - parent_node_id
  23418. - terminal_state
  23419. - local_customer_exists
  23420. - created_at
  23421. - cleaned_at
  23422. description: RegionOrphanRow 业务数据
  23423. title: RegionOrphanRow
  23424. RegionRenameResult:
  23425. type: object
  23426. properties:
  23427. node_id:
  23428. type: string
  23429. title: 节点 ID
  23430. description: 节点 ID。
  23431. node_name:
  23432. type: string
  23433. title: 节点名称
  23434. description: 节点名称。
  23435. required:
  23436. - node_id
  23437. - node_name
  23438. description: RegionRenameResult 业务数据
  23439. title: RegionRenameResult
  23440. RegionSubtreeResult:
  23441. $ref: '#/components/schemas/RegionTreeResult'
  23442. RegionTreeResult:
  23443. type: object
  23444. properties:
  23445. node_ids:
  23446. type: array
  23447. items:
  23448. type: string
  23449. title: 节点 ID 列表元素
  23450. title: 节点 ID 列表
  23451. description: 节点 ID 列表。
  23452. nodes:
  23453. type: array
  23454. items:
  23455. $ref: '#/components/schemas/RegionNode'
  23456. title: 节点列表
  23457. description: 节点列表。
  23458. root:
  23459. type: string
  23460. nullable: true
  23461. title: 根节点
  23462. description: 根节点。
  23463. name_ready:
  23464. type: boolean
  23465. description: false=可见集合的中文名 全部到手(`name_source` 说明卡在哪一环)
  23466. title: 名称是否齐全
  23467. name_source:
  23468. type: string
  23469. title: 名称来源
  23470. description: 名称来源。
  23471. name_missing:
  23472. type: array
  23473. items:
  23474. type: string
  23475. title: 缺名节点元素
  23476. description: RM 明确未给名的节点 id(截 20 条控体积)。 平台把「不存在」与「越权」混在一起, 渲染成"节点不存在"
  23477. title: 缺名节点
  23478. name_missing_count:
  23479. type: integer
  23480. title: 缺名数量
  23481. description: 缺名数量。
  23482. grant_scope:
  23483. type: string
  23484. nullable: true
  23485. description: RM 据以判权的调用方作用域(如 `end_user:376985101906509824`);排障用, 据此放宽可见范围
  23486. title: 授权作用域
  23487. note:
  23488. type: string
  23489. title: 备注
  23490. description: 备注。
  23491. required:
  23492. - node_ids
  23493. - nodes
  23494. - root
  23495. - name_ready
  23496. - name_source
  23497. - name_missing
  23498. - name_missing_count
  23499. - grant_scope
  23500. - note
  23501. description: RegionTreeResult 业务数据
  23502. title: RegionTreeResult
  23503. RelatedOrderRef:
  23504. type: object
  23505. properties:
  23506. subscription_id:
  23507. type: string
  23508. title: 订阅 ID
  23509. description: 订阅 ID。
  23510. plan_name:
  23511. type: string
  23512. nullable: true
  23513. title: 档位名称
  23514. description: 档位名称。
  23515. status:
  23516. type: string
  23517. nullable: true
  23518. title: 状态
  23519. description: 状态。
  23520. term:
  23521. type: string
  23522. nullable: true
  23523. title: term
  23524. description: 字段 term。
  23525. annual_price_cents:
  23526. type: integer
  23527. nullable: true
  23528. title: 年价(分)
  23529. description: 年价(分)。
  23530. monthly_settle_cents:
  23531. type: integer
  23532. nullable: true
  23533. title: 月结算(分)
  23534. description: 月结算(分)。
  23535. start_date:
  23536. type: string
  23537. nullable: true
  23538. title: 开始日
  23539. description: 开始日。
  23540. end_date:
  23541. type: string
  23542. nullable: true
  23543. title: 结束日
  23544. description: 结束日。
  23545. required:
  23546. - subscription_id
  23547. description: 升降配替换关系的对照行(订阅 条件面板)。
  23548. title: RelatedOrderRef
  23549. RenewalCandidate:
  23550. type: object
  23551. properties:
  23552. user_id:
  23553. type: string
  23554. title: 用户 ID
  23555. description: 用户 ID。
  23556. username:
  23557. type: string
  23558. nullable: true
  23559. title: 登录名
  23560. description: 登录名。
  23561. member_id:
  23562. type: string
  23563. nullable: true
  23564. description: 团队成员档案号;运营账号(`source=ops_account`)没有成员档案 ⇒ null
  23565. title: 成员 ID
  23566. is_primary:
  23567. type: boolean
  23568. title: 是否主账号
  23569. description: 是否主账号。
  23570. label:
  23571. type: string
  23572. title: 标签
  23573. description: 标签。
  23574. source:
  23575. type: string
  23576. enum:
  23577. - member
  23578. - ops_account
  23579. nullable: true
  23580. description: 候选来源:缺省/`member`=运维团队成员,`ops_account`=运营主/子账号
  23581. title: 来源
  23582. required:
  23583. - user_id
  23584. - username
  23585. - member_id
  23586. - is_primary
  23587. - label
  23588. description: 可指派成员(同团队 ∩ 可接 renewal ∩ 负责范围覆盖客户;含运营账号)[实]。
  23589. title: RenewalCandidate
  23590. RenewalCandidatesResult:
  23591. type: object
  23592. properties:
  23593. message_id:
  23594. type: string
  23595. title: 消息 ID
  23596. description: 消息 ID。
  23597. contract_id:
  23598. type: string
  23599. title: 合同 ID
  23600. description: 合同 ID。
  23601. customer_id:
  23602. type: string
  23603. title: 客户 ID
  23604. description: 客户 ID。
  23605. team_id:
  23606. type: string
  23607. title: 团队 ID
  23608. description: 团队 ID。
  23609. rows:
  23610. type: array
  23611. items:
  23612. $ref: '#/components/schemas/RenewalCandidate'
  23613. title: 行集
  23614. description: 行集。
  23615. required:
  23616. - message_id
  23617. - contract_id
  23618. - customer_id
  23619. - team_id
  23620. - rows
  23621. description: RenewalCandidatesResult 业务数据
  23622. title: RenewalCandidatesResult
  23623. RenewalTicketResult:
  23624. type: object
  23625. properties:
  23626. message_id:
  23627. type: string
  23628. title: 消息 ID
  23629. description: 消息 ID。
  23630. contract_id:
  23631. type: string
  23632. title: 合同 ID
  23633. description: 合同 ID。
  23634. ticket_id:
  23635. type: string
  23636. title: 工单 ID
  23637. description: 工单 ID。
  23638. ticket_no:
  23639. type: string
  23640. title: 工单号
  23641. description: 工单号。
  23642. created:
  23643. type: boolean
  23644. title: 是否已创建
  23645. description: 是否已创建。
  23646. assignee_user_id:
  23647. type: string
  23648. nullable: true
  23649. title: 处理人用户 ID
  23650. description: 处理人用户 ID。
  23651. status:
  23652. type: string
  23653. nullable: true
  23654. title: 状态
  23655. description: 状态。
  23656. messages_handled:
  23657. type: integer
  23658. title: messages handled
  23659. description: 字段 messages_handled。
  23660. next_step:
  23661. type: string
  23662. title: next step
  23663. description: 字段 next_step。
  23664. required:
  23665. - message_id
  23666. - contract_id
  23667. - ticket_id
  23668. - ticket_no
  23669. - created
  23670. - assignee_user_id
  23671. - status
  23672. - messages_handled
  23673. - next_step
  23674. description: 读信人生成续签工单并指派 [实]。
  23675. title: RenewalTicketResult
  23676. ReplacementProbeReq:
  23677. type: object
  23678. properties:
  23679. index:
  23680. type: number
  23681. nullable: true
  23682. description: 0 基条目下标(缺省=数组位置)。
  23683. title: index
  23684. plan_id:
  23685. type: string
  23686. nullable: true
  23687. title: 档位 ID
  23688. description: 档位 ID。
  23689. plan_family:
  23690. type: string
  23691. nullable: true
  23692. description: 缺省时后端回落档位的交付形态。
  23693. title: plan family
  23694. line_exits:
  23695. type: array
  23696. items:
  23697. type: string
  23698. title: line_exits元素
  23699. nullable: true
  23700. title: line exits
  23701. description: 字段 line_exits。
  23702. description: '`POST /subscription/replacement_candidates@v1`'
  23703. title: ReplacementProbeReq
  23704. RoleCode:
  23705. type: string
  23706. enum:
  23707. - admin
  23708. - opsMain
  23709. - opsSub
  23710. - teamLead
  23711. - ops
  23712. - enterprise
  23713. - sub
  23714. - partner
  23715. - operator
  23716. description: klt-bos 前端类型层(应答载荷契约)。 权威依据(优先级从高到低): 1. `src/modules/account/src/handlers/*.rs`
  23717. 中 `json_ok(...)` 真实写出的 JSON
  23718. title: RoleCode
  23719. RouteRow:
  23720. type: object
  23721. properties:
  23722. id:
  23723. type: string
  23724. title: ID
  23725. description: ID。
  23726. sub_account_id:
  23727. type: string
  23728. nullable: true
  23729. title: sub account id
  23730. description: 字段 sub_account_id。
  23731. network_account_name:
  23732. type: string
  23733. nullable: true
  23734. title: network account name
  23735. description: 字段 network_account_name。
  23736. intranet_ip:
  23737. type: string
  23738. nullable: true
  23739. title: intranet ip
  23740. description: 字段 intranet_ip。
  23741. subnet_mask:
  23742. type: string
  23743. nullable: true
  23744. title: subnet mask
  23745. description: 字段 subnet_mask。
  23746. gateway:
  23747. type: string
  23748. nullable: true
  23749. title: gateway
  23750. description: 字段 gateway。
  23751. vlan:
  23752. type: string
  23753. nullable: true
  23754. title: vlan
  23755. description: 字段 vlan。
  23756. tunnel_encap:
  23757. type: string
  23758. nullable: true
  23759. title: tunnel encap
  23760. description: 字段 tunnel_encap。
  23761. vni:
  23762. type: string
  23763. nullable: true
  23764. title: vni
  23765. description: 字段 vni。
  23766. src_endpoint:
  23767. type: string
  23768. nullable: true
  23769. title: src endpoint
  23770. description: 字段 src_endpoint。
  23771. dst_endpoint:
  23772. type: string
  23773. nullable: true
  23774. title: dst endpoint
  23775. description: 字段 dst_endpoint。
  23776. egress_pop:
  23777. type: string
  23778. nullable: true
  23779. title: egress pop
  23780. description: 字段 egress_pop。
  23781. down_mbps:
  23782. type: string
  23783. nullable: true
  23784. title: down mbps
  23785. description: 字段 down_mbps。
  23786. up_mbps:
  23787. type: string
  23788. nullable: true
  23789. title: up mbps
  23790. description: 字段 up_mbps。
  23791. proxy_host:
  23792. type: string
  23793. nullable: true
  23794. title: proxy host
  23795. description: 字段 proxy_host。
  23796. proxy_port:
  23797. type: string
  23798. nullable: true
  23799. title: proxy port
  23800. description: 字段 proxy_port。
  23801. pin_registered:
  23802. type: string
  23803. nullable: true
  23804. title: pin registered
  23805. description: 字段 pin_registered。
  23806. cpid_registered:
  23807. type: string
  23808. nullable: true
  23809. title: cpid registered
  23810. description: 字段 cpid_registered。
  23811. required:
  23812. - id
  23813. - sub_account_id
  23814. - network_account_name
  23815. - intranet_ip
  23816. - subnet_mask
  23817. - gateway
  23818. - vlan
  23819. - vni
  23820. - src_endpoint
  23821. - dst_endpoint
  23822. - egress_pop
  23823. - down_mbps
  23824. - up_mbps
  23825. description: RouteRow 业务数据
  23826. title: RouteRow
  23827. ScopeCheck:
  23828. type: object
  23829. properties:
  23830. applied:
  23831. type: boolean
  23832. title: applied
  23833. description: 字段 applied。
  23834. evidence:
  23835. type: string
  23836. nullable: true
  23837. title: evidence
  23838. description: 字段 evidence。
  23839. reason:
  23840. type: string
  23841. nullable: true
  23842. title: reason
  23843. description: 字段 reason。
  23844. required:
  23845. - applied
  23846. description: opsMain 区域上界核对 [实]
  23847. title: ScopeCheck
  23848. ScopeGrant:
  23849. type: object
  23850. properties:
  23851. target_type:
  23852. type: string
  23853. title: target type
  23854. description: 字段 target_type。
  23855. target_id:
  23856. type: string
  23857. title: target id
  23858. description: 字段 target_id。
  23859. grant_id:
  23860. type: string
  23861. nullable: true
  23862. title: grant id
  23863. description: 字段 grant_id。
  23864. holder_type:
  23865. type: string
  23866. nullable: true
  23867. title: holder type
  23868. description: 字段 holder_type。
  23869. holder_id:
  23870. type: string
  23871. nullable: true
  23872. title: holder id
  23873. description: 字段 holder_id。
  23874. updated_at:
  23875. type: string
  23876. nullable: true
  23877. title: 更新时间
  23878. description: 更新时间。
  23879. required:
  23880. - target_type
  23881. - target_id
  23882. description: '`bos_data_scope` 一行(holder×target 模型;partner/ent_team 共用)。后端只下发 target 两列。'
  23883. title: ScopeGrant
  23884. ScopeView:
  23885. type: object
  23886. properties:
  23887. kind:
  23888. type: string
  23889. enum:
  23890. - all
  23891. - regions
  23892. - teams
  23893. - customers
  23894. - self
  23895. title: 类型
  23896. description: 类型。
  23897. region_node_ids:
  23898. type: array
  23899. items:
  23900. type: string
  23901. title: region_node_ids元素
  23902. title: region node ids
  23903. description: 字段 region_node_ids。
  23904. customer_ids:
  23905. type: array
  23906. items:
  23907. type: string
  23908. title: customer_ids元素
  23909. title: customer ids
  23910. description: 字段 customer_ids。
  23911. team_ids:
  23912. type: array
  23913. items:
  23914. type: string
  23915. title: team_ids元素
  23916. title: team ids
  23917. description: 字段 team_ids。
  23918. required:
  23919. - kind
  23920. - region_node_ids
  23921. - customer_ids
  23922. - team_ids
  23923. description: '后端待实现,契约以此为准:auth/context 目前只下发 `scope_mode: string | null`,未下发本结构。'
  23924. title: ScopeView
  23925. ServiceItem:
  23926. type: object
  23927. properties:
  23928. item_id:
  23929. type: string
  23930. title: item id
  23931. description: 字段 item_id。
  23932. seq_no:
  23933. type: string
  23934. title: 序号
  23935. description: 序号。
  23936. item_name:
  23937. type: string
  23938. nullable: true
  23939. title: item name
  23940. description: 字段 item_name。
  23941. spec_text:
  23942. type: string
  23943. nullable: true
  23944. title: spec text
  23945. description: 字段 spec_text。
  23946. spec_before:
  23947. type: string
  23948. nullable: true
  23949. description: '* 升降配(`updown`)的参数对照( 补列):`spec_before`=原档位参数摘要、 * `spec_after`=新档位参数摘要(回收行写「停用(截止新订阅生效前一日)」);其余类型两列为
  23950. null。'
  23951. title: spec before
  23952. spec_after:
  23953. type: string
  23954. nullable: true
  23955. title: spec after
  23956. description: 字段 spec_after。
  23957. expect_qty:
  23958. type: string
  23959. nullable: true
  23960. title: expect qty
  23961. description: 字段 expect_qty。
  23962. check_result:
  23963. type: string
  23964. nullable: true
  23965. title: check result
  23966. description: 字段 check_result。
  23967. checked_at:
  23968. type: string
  23969. nullable: true
  23970. title: checked at
  23971. description: 字段 checked_at。
  23972. checked_by:
  23973. type: string
  23974. nullable: true
  23975. title: checked by
  23976. description: 字段 checked_by。
  23977. note:
  23978. type: string
  23979. nullable: true
  23980. title: 备注
  23981. description: 备注。
  23982. required:
  23983. - item_id
  23984. - seq_no
  23985. - item_name
  23986. - spec_text
  23987. - spec_before
  23988. - spec_after
  23989. - expect_qty
  23990. - check_result
  23991. - checked_at
  23992. - checked_by
  23993. - note
  23994. description: ServiceItem 业务数据
  23995. title: ServiceItem
  23996. ShareParamSummaryRequest:
  23997. type: object
  23998. properties:
  23999. holders:
  24000. type: array
  24001. items:
  24002. type: object
  24003. properties:
  24004. holder_type:
  24005. $ref: '#/components/schemas/HolderType'
  24006. holder_id:
  24007. type: string
  24008. required:
  24009. - holder_type
  24010. - holder_id
  24011. description: 调用计数=1:列表页一次提交全部 holder(契约 14.1.3 注 3, 逐行调用)。
  24012. title: holders
  24013. required:
  24014. - holders
  24015. description: '[实] POST /share_rule/param_summary@v1'
  24016. title: ShareParamSummaryRequest
  24017. ShareRuleDeleteResult:
  24018. type: object
  24019. properties:
  24020. rule_id:
  24021. type: string
  24022. nullable: true
  24023. title: rule id
  24024. description: 字段 rule_id。
  24025. deleted:
  24026. type: boolean
  24027. nullable: true
  24028. title: 是否已删除
  24029. description: 是否已删除。
  24030. description: ShareRuleDeleteResult 业务数据
  24031. title: ShareRuleDeleteResult
  24032. ShareRuleDetail:
  24033. type: object
  24034. properties:
  24035. holder_type:
  24036. type: string
  24037. title: holder type
  24038. description: 字段 holder_type。
  24039. holder_id:
  24040. type: string
  24041. title: holder id
  24042. description: 字段 holder_id。
  24043. holder_name:
  24044. type: string
  24045. nullable: true
  24046. title: holder name
  24047. description: 字段 holder_name。
  24048. cards:
  24049. type: object
  24050. additionalProperties:
  24051. type: number
  24052. nullable: true
  24053. description: 四张卡=结算口径(宿主,一期恒 `null`。
  24054. title: cards
  24055. cards_available:
  24056. type: boolean
  24057. nullable: true
  24058. title: cards available
  24059. description: 字段 cards_available。
  24060. cards_message:
  24061. type: string
  24062. nullable: true
  24063. title: cards message
  24064. description: 字段 cards_message。
  24065. rules:
  24066. type: array
  24067. items:
  24068. $ref: '#/components/schemas/ShareRuleRow'
  24069. title: rules
  24070. description: 字段 rules。
  24071. available:
  24072. type: boolean
  24073. nullable: true
  24074. description: '`false`=该档案行查不到/未知 `holder_type`。'
  24075. title: available
  24076. message:
  24077. type: string
  24078. nullable: true
  24079. title: 说明
  24080. description: 说明。
  24081. source:
  24082. type: string
  24083. nullable: true
  24084. title: 来源
  24085. description: 来源。
  24086. derived:
  24087. type: string
  24088. nullable: true
  24089. title: derived
  24090. description: 字段 derived。
  24091. columns_pending:
  24092. type: array
  24093. items:
  24094. type: string
  24095. title: columns_pending元素
  24096. nullable: true
  24097. title: columns pending
  24098. description: 字段 columns_pending。
  24099. required:
  24100. - holder_type
  24101. - holder_id
  24102. - holder_name
  24103. - cards
  24104. - rules
  24105. description: ShareRuleDetail 业务数据
  24106. title: ShareRuleDetail
  24107. ShareRuleListResult:
  24108. type: object
  24109. properties:
  24110. items:
  24111. type: array
  24112. items:
  24113. $ref: '#/components/schemas/ShareRuleRow'
  24114. title: 列表项
  24115. description: 列表项。
  24116. total:
  24117. type: integer
  24118. nullable: true
  24119. title: 总条数
  24120. description: 总条数。
  24121. page:
  24122. type: integer
  24123. nullable: true
  24124. title: 页码
  24125. description: 页码。
  24126. page_size:
  24127. type: integer
  24128. nullable: true
  24129. title: 每页条数
  24130. description: 每页条数。
  24131. source:
  24132. type: string
  24133. nullable: true
  24134. description: 恒 `"archive"`=取值来自档案两列, 读 dev 库遗留 `share_rule` 表。
  24135. title: 来源
  24136. derived:
  24137. type: string
  24138. nullable: true
  24139. description: 派生代价说明(`rule_id`/`rule_level` 为视图键)。
  24140. title: derived
  24141. columns_pending:
  24142. type: array
  24143. items:
  24144. type: string
  24145. title: columns_pending元素
  24146. nullable: true
  24147. description: 下发的列名清单,页面据此标「后端未下发」。
  24148. title: columns pending
  24149. message:
  24150. type: string
  24151. nullable: true
  24152. title: 说明
  24153. description: 说明。
  24154. required:
  24155. - items
  24156. description: ShareRuleListResult 业务数据
  24157. title: ShareRuleListResult
  24158. ShareRuleRow:
  24159. type: object
  24160. properties:
  24161. rule_id:
  24162. type: string
  24163. title: rule id
  24164. description: 字段 rule_id。
  24165. holder_type:
  24166. type: string
  24167. title: holder type
  24168. description: 字段 holder_type。
  24169. holder_id:
  24170. type: string
  24171. title: holder id
  24172. description: 字段 holder_id。
  24173. holder_name:
  24174. type: string
  24175. nullable: true
  24176. title: holder name
  24177. description: 字段 holder_name。
  24178. customer_id:
  24179. type: string
  24180. nullable: true
  24181. title: 客户 ID
  24182. description: 客户 ID。
  24183. customer_name:
  24184. type: string
  24185. nullable: true
  24186. title: 客户名称
  24187. description: 客户名称。
  24188. rule_level:
  24189. type: string
  24190. title: rule level
  24191. description: 字段 rule_level。
  24192. share_mode:
  24193. type: string
  24194. nullable: true
  24195. title: share mode
  24196. description: 字段 share_mode。
  24197. share_value:
  24198. type: number
  24199. nullable: true
  24200. title: share value
  24201. description: 字段 share_value。
  24202. remark:
  24203. type: string
  24204. nullable: true
  24205. title: 备注
  24206. description: 备注。
  24207. status:
  24208. type: string
  24209. nullable: true
  24210. title: 状态
  24211. description: 状态。
  24212. row_version:
  24213. type: integer
  24214. title: 乐观锁版本
  24215. description: |-
  24216. 档案乐观锁版本(operator/ops_team/partner.row_version;与 save/三档案 update 同链)。
  24217. minimum: 1
  24218. required:
  24219. - rule_id
  24220. - holder_type
  24221. - holder_id
  24222. - customer_id
  24223. - rule_level
  24224. - share_mode
  24225. - share_value
  24226. - remark
  24227. - status
  24228. - row_version
  24229. description: ShareRuleRow 业务数据
  24230. title: ShareRuleRow
  24231. ShareRuleSaveResult:
  24232. type: object
  24233. properties:
  24234. holder_type:
  24235. type: string
  24236. title: holder type
  24237. description: 字段 holder_type。
  24238. holder_id:
  24239. type: string
  24240. title: holder id
  24241. description: 字段 holder_id。
  24242. saved:
  24243. type: boolean
  24244. title: 是否已保存
  24245. description: 是否已保存。
  24246. saved_count:
  24247. type: integer
  24248. nullable: true
  24249. title: saved count
  24250. description: 净写入条数;同值=0。
  24251. changed:
  24252. type: integer
  24253. nullable: true
  24254. title: changed
  24255. description: 0=同值未改;1=已写入并推版本。
  24256. row_version:
  24257. type: integer
  24258. nullable: true
  24259. title: 乐观锁版本
  24260. description: 写后档案版本(同值=原版本)。
  24261. rule:
  24262. $ref: '#/components/schemas/ShareRuleRow'
  24263. source:
  24264. type: string
  24265. nullable: true
  24266. title: 来源
  24267. description: 来源。
  24268. derived:
  24269. type: string
  24270. nullable: true
  24271. title: derived
  24272. description: 字段 derived。
  24273. columns_pending:
  24274. type: array
  24275. items:
  24276. type: string
  24277. title: columns_pending元素
  24278. nullable: true
  24279. title: columns pending
  24280. description: 仍未落库的派生列(customer_id/customer_name/remark);row_version 已落地。
  24281. message:
  24282. type: string
  24283. nullable: true
  24284. title: 说明
  24285. description: 说明。
  24286. required:
  24287. - holder_type
  24288. - holder_id
  24289. - saved
  24290. description: ShareRuleSaveResult 业务数据
  24291. title: ShareRuleSaveResult
  24292. StartResult:
  24293. type: object
  24294. properties:
  24295. ticket_id:
  24296. type: string
  24297. title: 工单 ID
  24298. description: 工单 ID。
  24299. advanced:
  24300. type: boolean
  24301. title: advanced
  24302. description: 字段 advanced。
  24303. status:
  24304. $ref: '#/components/schemas/TicketStatus'
  24305. reason:
  24306. type: string
  24307. enum:
  24308. - not_assignee
  24309. - already_advanced
  24310. - concurrent
  24311. nullable: true
  24312. description: '`advanced:false` 时后端回的原因:非责任人/已被推进/并发。'
  24313. title: reason
  24314. advanced_at:
  24315. type: string
  24316. nullable: true
  24317. title: advanced at
  24318. description: 字段 advanced_at。
  24319. audit_written:
  24320. type: boolean
  24321. nullable: true
  24322. title: 是否已写审计
  24323. description: 是否已写审计。
  24324. required:
  24325. - ticket_id
  24326. - advanced
  24327. - status
  24328. description: StartResult 业务数据
  24329. title: StartResult
  24330. SubAccountListResult:
  24331. type: object
  24332. properties:
  24333. items:
  24334. type: array
  24335. items:
  24336. $ref: '#/components/schemas/SubAccountRow'
  24337. title: 列表项
  24338. description: 列表项。
  24339. total:
  24340. type: integer
  24341. title: 总条数
  24342. description: 总条数。
  24343. page:
  24344. type: integer
  24345. nullable: true
  24346. title: 页码
  24347. description: 页码。
  24348. page_size:
  24349. type: integer
  24350. nullable: true
  24351. title: 每页条数
  24352. description: 每页条数。
  24353. required:
  24354. - items
  24355. - total
  24356. description: GET(列表)/sub_account/get_list@v1
  24357. title: SubAccountListResult
  24358. SubAccountRow:
  24359. type: object
  24360. properties:
  24361. sub_account_id:
  24362. type: string
  24363. title: sub account id
  24364. description: 字段 sub_account_id。
  24365. customer_id:
  24366. type: string
  24367. title: 客户 ID
  24368. description: 客户 ID。
  24369. username:
  24370. type: string
  24371. nullable: true
  24372. title: 登录名
  24373. description: 登录名。
  24374. display_name:
  24375. type: string
  24376. nullable: true
  24377. title: 显示名
  24378. description: 显示名。
  24379. purpose:
  24380. type: string
  24381. nullable: true
  24382. title: purpose
  24383. description: 字段 purpose。
  24384. net_account:
  24385. type: string
  24386. nullable: true
  24387. title: net account
  24388. description: 字段 net_account。
  24389. status:
  24390. type: string
  24391. title: 状态
  24392. description: 状态。
  24393. created_at:
  24394. type: string
  24395. nullable: true
  24396. title: 创建时间
  24397. description: 创建时间。
  24398. stopped_at:
  24399. type: string
  24400. nullable: true
  24401. description: 停用日 :取最近一次停机类开停记录的生效日(`ticket_open_stop_account.effective_date`);`null`=从未停用。
  24402. title: stopped at
  24403. required:
  24404. - sub_account_id
  24405. - customer_id
  24406. - username
  24407. - display_name
  24408. - purpose
  24409. - net_account
  24410. - status
  24411. - created_at
  24412. - stopped_at
  24413. description: 分账号行 [实](`sub_account` LEFT JOIN `bos_user_binding`)。
  24414. title: SubAccountRow
  24415. SubAccountUpdateResult:
  24416. type: object
  24417. properties:
  24418. sub_account_id:
  24419. type: string
  24420. title: sub account id
  24421. description: 字段 sub_account_id。
  24422. customer_id:
  24423. type: string
  24424. title: 客户 ID
  24425. description: 客户 ID。
  24426. display_name:
  24427. type: string
  24428. nullable: true
  24429. title: 显示名
  24430. description: 显示名。
  24431. network_account_name:
  24432. type: string
  24433. nullable: true
  24434. description: =库内 `sub_account.net_account`(与列表行同值,仅键名不同)
  24435. title: network account name
  24436. purpose:
  24437. type: string
  24438. nullable: true
  24439. description: 可改,恒为改前原值
  24440. title: purpose
  24441. status:
  24442. type: string
  24443. title: 状态
  24444. description: 状态。
  24445. updated_fields:
  24446. type: array
  24447. items:
  24448. type: string
  24449. title: updated_fields元素
  24450. description: 本次实际写入的列名:`display_name`/`net_account`
  24451. title: updated fields
  24452. written_cols:
  24453. type: array
  24454. items:
  24455. type: string
  24456. title: written_cols元素
  24457. title: written cols
  24458. description: 字段 written_cols。
  24459. audit_key:
  24460. type: string
  24461. title: audit key
  24462. description: 字段 audit_key。
  24463. audit_before_after:
  24464. type: object
  24465. properties:
  24466. before:
  24467. type: object
  24468. properties:
  24469. display_name:
  24470. type: string
  24471. nullable: true
  24472. net_account:
  24473. type: string
  24474. nullable: true
  24475. required:
  24476. - display_name
  24477. - net_account
  24478. after:
  24479. type: object
  24480. properties:
  24481. display_name:
  24482. type: string
  24483. nullable: true
  24484. net_account:
  24485. type: string
  24486. nullable: true
  24487. required:
  24488. - display_name
  24489. - net_account
  24490. required:
  24491. - before
  24492. - after
  24493. title: audit before after
  24494. description: 字段 audit_before_after。
  24495. audit_written:
  24496. type: boolean
  24497. title: 是否已写审计
  24498. description: 是否已写审计。
  24499. audit_note:
  24500. type: string
  24501. title: 审计说明
  24502. description: 审计说明。
  24503. purpose_note:
  24504. type: string
  24505. title: purpose note
  24506. description: 字段 purpose_note。
  24507. platform_sync:
  24508. type: object
  24509. properties:
  24510. applied:
  24511. type: boolean
  24512. reason:
  24513. type: string
  24514. required:
  24515. - applied
  24516. - reason
  24517. title: platform sync
  24518. description: 字段 platform_sync。
  24519. time_note:
  24520. type: string
  24521. title: time note
  24522. description: 字段 time_note。
  24523. required:
  24524. - sub_account_id
  24525. - customer_id
  24526. - display_name
  24527. - network_account_name
  24528. - purpose
  24529. - status
  24530. - updated_fields
  24531. - written_cols
  24532. - audit_key
  24533. - audit_before_after
  24534. - audit_written
  24535. - audit_note
  24536. - purpose_note
  24537. - platform_sync
  24538. - time_note
  24539. description: SubAccountUpdateResult 业务数据
  24540. title: SubAccountUpdateResult
  24541. SubjectAccount:
  24542. type: object
  24543. properties:
  24544. user_id:
  24545. type: string
  24546. title: 用户 ID
  24547. description: 用户 ID。
  24548. username:
  24549. type: string
  24550. title: 登录名
  24551. description: 登录名。
  24552. mobile:
  24553. type: string
  24554. nullable: true
  24555. title: 手机号
  24556. description: 手机号。
  24557. status:
  24558. type: string
  24559. description: '`bos_user_binding.status`(启停 active/disabled)。'
  24560. title: 状态
  24561. activation_status:
  24562. type: string
  24563. nullable: true
  24564. description: '`bos_account_ext.status`(激活码生命周期 none/issued/issuing/activated),与 `status` 正交。'
  24565. title: 激活态
  24566. account_count:
  24567. type: integer
  24568. title: account count
  24569. description: 字段 account_count。
  24570. required:
  24571. - user_id
  24572. - username
  24573. - mobile
  24574. - status
  24575. - account_count
  24576. description: 主体名下账号(列表页内联下发,`bos_user_binding` ⋈ `bos_account_ext`)[实]。 同主体绑定多账号时取 `user_id`
  24577. 最小的一行作代表,`account_count` 给出总数; `mobile` 已按 掩码, 再用于拨打/复制。
  24578. title: SubjectAccount
  24579. SubjectType:
  24580. type: string
  24581. enum:
  24582. - hq
  24583. - region
  24584. - ops_team
  24585. - ent_team
  24586. - customer
  24587. - sub_account
  24588. - partner
  24589. - operator
  24590. description: 主体类型(spec subject_type;SQL 注释含
  24591. hq/region/ops_team/ent_team/customer/sub_account/partner/operator)
  24592. title: SubjectType
  24593. SubscriptionBilling:
  24594. type: object
  24595. properties:
  24596. state:
  24597. type: string
  24598. enum:
  24599. - ok
  24600. - no_receivable
  24601. title: state
  24602. description: 字段 state。
  24603. receivable_cents:
  24604. type: integer
  24605. nullable: true
  24606. title: receivable cents
  24607. description: 字段 receivable_cents。
  24608. billed_cents:
  24609. type: integer
  24610. nullable: true
  24611. title: billed cents
  24612. description: 字段 billed_cents。
  24613. unbilled_cents:
  24614. type: integer
  24615. nullable: true
  24616. title: unbilled cents
  24617. description: 字段 unbilled_cents。
  24618. cost_cents:
  24619. type: integer
  24620. nullable: true
  24621. title: cost cents
  24622. description: 字段 cost_cents。
  24623. periods:
  24624. type: number
  24625. title: periods
  24626. description: 字段 periods。
  24627. required:
  24628. - state
  24629. - receivable_cents
  24630. - billed_cents
  24631. - unbilled_cents
  24632. - cost_cents
  24633. - periods
  24634. description: 订阅出账聚合(。 `state="no_receivable"` ⇒ 四值 `null`(该订阅尚无应收行, 用 0 元冒充「未出账」);
  24635. `state="ok"` ⇒ 数值来自 `billing_receivable` 与已执行批次 `bill_detail`。
  24636. title: SubscriptionBilling
  24637. TicketCreateResult:
  24638. type: object
  24639. properties:
  24640. ticket_id:
  24641. type: string
  24642. title: 工单 ID
  24643. description: 工单 ID。
  24644. ticket_no:
  24645. type: string
  24646. title: 工单号
  24647. description: 工单号。
  24648. status:
  24649. $ref: '#/components/schemas/TicketStatus'
  24650. assign_team_id:
  24651. type: string
  24652. nullable: true
  24653. title: 承接团队 ID
  24654. description: 承接团队 ID。
  24655. materials:
  24656. type: number
  24657. nullable: true
  24658. description: 随单登记的材料条数(建单不再有「同类未完成并入」分支)
  24659. title: materials
  24660. required:
  24661. - ticket_id
  24662. - ticket_no
  24663. - status
  24664. - assign_team_id
  24665. description: TicketCreateResult 业务数据
  24666. title: TicketCreateResult
  24667. TicketDetail:
  24668. type: object
  24669. properties:
  24670. ticket:
  24671. $ref: '#/components/schemas/TicketHead'
  24672. customer:
  24673. type: object
  24674. properties:
  24675. customer_id:
  24676. type: string
  24677. customer_name:
  24678. type: string
  24679. nullable: true
  24680. customer_code:
  24681. type: string
  24682. nullable: true
  24683. contact_name:
  24684. type: string
  24685. nullable: true
  24686. contact_mobile:
  24687. type: string
  24688. nullable: true
  24689. contact_mobile_full:
  24690. type: string
  24691. nullable: true
  24692. contact_name_missing:
  24693. type: boolean
  24694. nullable: true
  24695. contact_mobile_missing:
  24696. type: boolean
  24697. nullable: true
  24698. address:
  24699. type: string
  24700. nullable: true
  24701. address_missing:
  24702. type: boolean
  24703. nullable: true
  24704. required:
  24705. - customer_id
  24706. - customer_name
  24707. - customer_code
  24708. - contact_name
  24709. - contact_mobile
  24710. - address
  24711. nullable: true
  24712. title: customer
  24713. description: 字段 customer。
  24714. order:
  24715. type: object
  24716. properties:
  24717. subscription_id:
  24718. type: string
  24719. customer_id:
  24720. type: string
  24721. nullable: true
  24722. contract_id:
  24723. type: string
  24724. nullable: true
  24725. plan_id:
  24726. type: string
  24727. nullable: true
  24728. plan_name:
  24729. type: string
  24730. nullable: true
  24731. plan_kind:
  24732. type: string
  24733. nullable: true
  24734. plan_family:
  24735. type: string
  24736. nullable: true
  24737. sub_mode:
  24738. type: string
  24739. nullable: true
  24740. line_exits:
  24741. type: array
  24742. items:
  24743. oneOf:
  24744. - type: string
  24745. - type: string
  24746. nullable: true
  24747. order_no:
  24748. type: string
  24749. nullable: true
  24750. term:
  24751. type: string
  24752. nullable: true
  24753. start_date:
  24754. type: string
  24755. nullable: true
  24756. status:
  24757. type: string
  24758. nullable: true
  24759. actual_opened_at:
  24760. type: string
  24761. nullable: true
  24762. quantity:
  24763. oneOf:
  24764. - type: string
  24765. - type: number
  24766. nullable: true
  24767. quota_slots:
  24768. oneOf:
  24769. - type: string
  24770. - type: number
  24771. nullable: true
  24772. sub_account_quota:
  24773. oneOf:
  24774. - type: string
  24775. - type: number
  24776. nullable: true
  24777. bandwidth_up_mbps:
  24778. oneOf:
  24779. - type: string
  24780. - type: number
  24781. nullable: true
  24782. bandwidth_down_mbps:
  24783. oneOf:
  24784. - type: string
  24785. - type: number
  24786. nullable: true
  24787. bandwidth_committed:
  24788. oneOf:
  24789. - type: string
  24790. - type: boolean
  24791. nullable: true
  24792. bandwidth_missing:
  24793. type: boolean
  24794. nullable: true
  24795. replaces_subscription_id:
  24796. type: string
  24797. nullable: true
  24798. parent_subscription_id:
  24799. type: string
  24800. nullable: true
  24801. required:
  24802. - subscription_id
  24803. - customer_id
  24804. - plan_name
  24805. - plan_kind
  24806. - plan_family
  24807. - sub_mode
  24808. - line_exits
  24809. - order_no
  24810. - term
  24811. - start_date
  24812. - status
  24813. - actual_opened_at
  24814. nullable: true
  24815. title: order
  24816. description: 字段 order。
  24817. service_items:
  24818. type: array
  24819. items:
  24820. $ref: '#/components/schemas/ServiceItem'
  24821. title: service items
  24822. description: 字段 service_items。
  24823. subscriptions:
  24824. type: array
  24825. items:
  24826. $ref: '#/components/schemas/TicketMemberSubscription'
  24827. nullable: true
  24828. description: '* P1:并单成员订阅(`ticket_subscription`,只装本单交付的附加订阅)。 * 主订阅仍唯一落在 `order`;本数组永远平铺,附加成员靠
  24829. `parent_subscription_id` 标「叠加于」。'
  24830. title: subscriptions
  24831. open_stop:
  24832. $ref: '#/components/schemas/OpenStop'
  24833. backfill:
  24834. $ref: '#/components/schemas/Backfill'
  24835. completion:
  24836. $ref: '#/components/schemas/Completion'
  24837. completion_rejects:
  24838. type: array
  24839. items:
  24840. $ref: '#/components/schemas/CompletionReject'
  24841. nullable: true
  24842. description: 驳回流水(旧→新)。门户/合伙人拿到的行集与运维侧同形,只是少了对外编号列。
  24843. title: completion rejects
  24844. reject_pending:
  24845. type: boolean
  24846. nullable: true
  24847. description: 「外部等待中」判据( 第六条):由服务端判, 前端用 `length > 0` 推导。
  24848. title: reject pending
  24849. process_logs:
  24850. type: array
  24851. items:
  24852. $ref: '#/components/schemas/ProcessLog'
  24853. title: process logs
  24854. description: 字段 process_logs。
  24855. materials:
  24856. type: array
  24857. items:
  24858. $ref: '#/components/schemas/TicketMaterial'
  24859. title: materials
  24860. description: 字段 materials。
  24861. messages:
  24862. type: array
  24863. items:
  24864. $ref: '#/components/schemas/TicketMessage'
  24865. title: messages
  24866. description: 字段 messages。
  24867. gaps:
  24868. type: array
  24869. items:
  24870. type: string
  24871. title: gaps元素
  24872. description: 缺口分组名(与 `required_groups` 同词典);空集=可出竣工
  24873. title: gaps
  24874. required_groups:
  24875. type: array
  24876. items:
  24877. type: string
  24878. title: required_groups元素
  24879. title: required groups
  24880. description: 字段 required_groups。
  24881. actions:
  24882. type: object
  24883. additionalProperties:
  24884. type: boolean
  24885. title: actions
  24886. description: 字段 actions。
  24887. read_advanced:
  24888. type: boolean
  24889. title: read advanced
  24890. description: 字段 read_advanced。
  24891. waiting:
  24892. $ref: '#/components/schemas/TicketWaiting'
  24893. construction_guide:
  24894. $ref: '#/components/schemas/ConstructionGuide'
  24895. backfill_draft:
  24896. $ref: '#/components/schemas/BackfillDraft'
  24897. required:
  24898. - ticket
  24899. - customer
  24900. - order
  24901. - service_items
  24902. - open_stop
  24903. - backfill
  24904. - completion
  24905. - process_logs
  24906. - materials
  24907. - messages
  24908. - gaps
  24909. - required_groups
  24910. - actions
  24911. - read_advanced
  24912. description: TicketDetail 业务数据
  24913. title: TicketDetail
  24914. TicketHead:
  24915. type: object
  24916. properties:
  24917. ticket_id:
  24918. type: string
  24919. title: 工单 ID
  24920. description: 工单 ID。
  24921. ticket_no:
  24922. type: string
  24923. title: 工单号
  24924. description: 工单号。
  24925. ticket_type:
  24926. $ref: '#/components/schemas/TicketType'
  24927. status:
  24928. $ref: '#/components/schemas/TicketStatus'
  24929. title:
  24930. type: string
  24931. title: 标题
  24932. description: 标题。
  24933. detail:
  24934. type: string
  24935. nullable: true
  24936. title: detail
  24937. description: 字段 detail。
  24938. customer_id:
  24939. type: string
  24940. nullable: true
  24941. title: 客户 ID
  24942. description: 客户 ID。
  24943. subscription_id:
  24944. type: string
  24945. nullable: true
  24946. title: 订阅 ID
  24947. description: 订阅 ID。
  24948. contract_id:
  24949. type: string
  24950. nullable: true
  24951. description: 经订阅/续签投影的合同 ID(工单表本身不存)。
  24952. title: 合同 ID
  24953. reporter_account_id:
  24954. type: string
  24955. nullable: true
  24956. title: reporter account id
  24957. description: 字段 reporter_account_id。
  24958. carrier_order_no:
  24959. type: string
  24960. nullable: true
  24961. title: carrier order no
  24962. description: 字段 carrier_order_no。
  24963. submitter_type:
  24964. type: string
  24965. nullable: true
  24966. title: 提交方类型
  24967. description: 提交方类型。
  24968. submitter_user_id:
  24969. type: string
  24970. nullable: true
  24971. title: submitter user id
  24972. description: 字段 submitter_user_id。
  24973. assign_team_id:
  24974. type: string
  24975. nullable: true
  24976. title: 承接团队 ID
  24977. description: 承接团队 ID。
  24978. assignee_user_id:
  24979. type: string
  24980. nullable: true
  24981. title: 处理人用户 ID
  24982. description: 处理人用户 ID。
  24983. assignee_snapshot_name:
  24984. type: string
  24985. nullable: true
  24986. title: assignee snapshot name
  24987. description: 字段 assignee_snapshot_name。
  24988. assign_team_name:
  24989. type: string
  24990. nullable: true
  24991. description: 服务端把 *_user_id 解析成的姓名回填进这三键(无匹配 ⇒ 键缺席,保留 ID 值)
  24992. title: assign team name
  24993. creator_name:
  24994. type: string
  24995. nullable: true
  24996. title: creator name
  24997. description: 字段 creator_name。
  24998. delegate_from_name:
  24999. type: string
  25000. nullable: true
  25001. title: delegate from name
  25002. description: 字段 delegate_from_name。
  25003. assignee_name:
  25004. type: string
  25005. nullable: true
  25006. title: 处理人姓名
  25007. description: 处理人姓名。
  25008. delegate_from_user_id:
  25009. type: string
  25010. nullable: true
  25011. title: delegate from user id
  25012. description: 字段 delegate_from_user_id。
  25013. delegated_at:
  25014. type: string
  25015. nullable: true
  25016. title: delegated at
  25017. description: 字段 delegated_at。
  25018. expected_done_date:
  25019. type: string
  25020. nullable: true
  25021. title: 期望完成日
  25022. description: 期望完成日。
  25023. execution_locked:
  25024. type: boolean
  25025. nullable: true
  25026. description: 执行锁:开通类未到服务开始日 ⇒ `true`(写侧同口径拒绝)。
  25027. title: 执行锁定
  25028. execution_not_before:
  25029. type: string
  25030. nullable: true
  25031. description: 计划执行日=服务开始日(非开通类恒 `null`)。
  25032. title: 最早可执行日
  25033. deferred_until:
  25034. type: string
  25035. nullable: true
  25036. title: 延期至
  25037. description: 延期至。
  25038. confirm_deadline:
  25039. type: string
  25040. nullable: true
  25041. title: confirm deadline
  25042. description: 字段 confirm_deadline。
  25043. source_message_id:
  25044. type: string
  25045. nullable: true
  25046. title: source message id
  25047. description: 字段 source_message_id。
  25048. close_reason:
  25049. type: string
  25050. nullable: true
  25051. title: close reason
  25052. description: 字段 close_reason。
  25053. completed_at:
  25054. type: string
  25055. nullable: true
  25056. title: 完成时间
  25057. description: 完成时间。
  25058. closed_at:
  25059. type: string
  25060. nullable: true
  25061. title: 关闭时间
  25062. description: 关闭时间。
  25063. settled_at:
  25064. type: string
  25065. nullable: true
  25066. title: 办结时间
  25067. description: 办结时间。
  25068. creator_user_id:
  25069. type: string
  25070. nullable: true
  25071. title: creator user id
  25072. description: 字段 creator_user_id。
  25073. created_at:
  25074. type: string
  25075. nullable: true
  25076. title: 创建时间
  25077. description: 创建时间。
  25078. updated_at:
  25079. type: string
  25080. nullable: true
  25081. title: 更新时间
  25082. description: 更新时间。
  25083. row_version:
  25084. type: string
  25085. title: 乐观锁版本
  25086. description: 乐观锁版本。
  25087. overdue:
  25088. type: boolean
  25089. title: overdue
  25090. description: 字段 overdue。
  25091. renew_from_contract_id:
  25092. type: string
  25093. nullable: true
  25094. description: 续签:原合同/新合同(;非续签单缺席)
  25095. title: renew from contract id
  25096. renew_contract_id:
  25097. type: string
  25098. nullable: true
  25099. title: renew contract id
  25100. description: 字段 renew_contract_id。
  25101. renew_from_contract_no:
  25102. type: string
  25103. nullable: true
  25104. title: renew from contract no
  25105. description: 字段 renew_from_contract_no。
  25106. renew_from_end_date:
  25107. type: string
  25108. nullable: true
  25109. title: renew from end date
  25110. description: 字段 renew_from_end_date。
  25111. renew_contract_no:
  25112. type: string
  25113. nullable: true
  25114. title: renew contract no
  25115. description: 字段 renew_contract_no。
  25116. required:
  25117. - ticket_id
  25118. - ticket_no
  25119. - ticket_type
  25120. - status
  25121. - title
  25122. - detail
  25123. - customer_id
  25124. - subscription_id
  25125. - reporter_account_id
  25126. - carrier_order_no
  25127. - submitter_type
  25128. - submitter_user_id
  25129. - assign_team_id
  25130. - assignee_user_id
  25131. - assignee_snapshot_name
  25132. - delegate_from_user_id
  25133. - delegated_at
  25134. - expected_done_date
  25135. - deferred_until
  25136. - confirm_deadline
  25137. - source_message_id
  25138. - close_reason
  25139. - completed_at
  25140. - closed_at
  25141. - settled_at
  25142. - creator_user_id
  25143. - created_at
  25144. - updated_at
  25145. - row_version
  25146. - overdue
  25147. description: TicketHead 业务数据
  25148. title: TicketHead
  25149. TicketListItem:
  25150. type: object
  25151. properties:
  25152. seq_no:
  25153. type: number
  25154. nullable: true
  25155. description: 全局序号(按当页偏移现算)
  25156. title: 序号
  25157. ticket_id:
  25158. type: string
  25159. title: 工单 ID
  25160. description: 工单 ID。
  25161. ticket_no:
  25162. type: string
  25163. nullable: true
  25164. title: 工单号
  25165. description: 工单号。
  25166. ticket_type:
  25167. $ref: '#/components/schemas/TicketType'
  25168. title:
  25169. type: string
  25170. nullable: true
  25171. title: 标题
  25172. description: 标题。
  25173. customer_id:
  25174. type: string
  25175. nullable: true
  25176. title: 客户 ID
  25177. description: 客户 ID。
  25178. customer_name:
  25179. type: string
  25180. nullable: true
  25181. title: 客户名称
  25182. description: 客户名称。
  25183. assign_team_id:
  25184. type: string
  25185. nullable: true
  25186. title: 承接团队 ID
  25187. description: 承接团队 ID。
  25188. team_name:
  25189. type: string
  25190. nullable: true
  25191. title: 团队名称
  25192. description: 团队名称。
  25193. assignee_user_id:
  25194. type: string
  25195. nullable: true
  25196. title: 处理人用户 ID
  25197. description: 处理人用户 ID。
  25198. assignee_name:
  25199. type: string
  25200. nullable: true
  25201. title: 处理人姓名
  25202. description: 处理人姓名。
  25203. status:
  25204. $ref: '#/components/schemas/TicketStatus'
  25205. backfill_source:
  25206. type: string
  25207. nullable: true
  25208. description: 回填来源(manual/unicom_feedback/mixed;NULL=未回填)
  25209. title: 回填来源
  25210. expected_done_date:
  25211. type: string
  25212. nullable: true
  25213. title: 期望完成日
  25214. description: 期望完成日。
  25215. deferred_until:
  25216. type: string
  25217. nullable: true
  25218. description: '* 延期后的生效期限(`YYYY-MM-DD`;无延期=`null`/`undefined`)。 * * 服务端 `handlers/read.rs` 已按
  25219. `os.deferred_until` → `t.deferred_until` 折算后下发 * (与 `overdue_7d` 同一优先级)。行内日期、分组与「还剩 N 天」都用它,
  25220. 再用 * `expected_done_date`——那会让延期单显示「已超 N 天」而页顶「已超期」不数它。'
  25221. title: 延期至
  25222. overdue_7d:
  25223. type: boolean
  25224. nullable: true
  25225. description: 7 日内到期/已超期(真布尔;仅队列口下发)
  25226. title: 七日超期
  25227. execution_locked:
  25228. type: boolean
  25229. nullable: true
  25230. description: '* 执行锁(,服务端业务日现算):开通类三类 * (`open`/`service_open`/`updown`)的计划执行日=订阅服务开始日,未到该日 *
  25231. ⇒ `true`:工单可见可分派,但回填/核对一律被 `KLT-G20403` 拒。 * * 前端按 `expected_done_date - 今天` 自行推断:业务日锚在 `Asia/Shanghai`,
  25232. * 浏览器时钟与它不同源(跨零点会打架)。'
  25233. title: 执行锁定
  25234. execution_not_before:
  25235. type: string
  25236. nullable: true
  25237. description: 计划执行日(=服务开始日;非开通类恒 `null`),可作日期输入的 `min`。
  25238. title: 最早可执行日
  25239. created_at:
  25240. type: string
  25241. nullable: true
  25242. title: 创建时间
  25243. description: 创建时间。
  25244. completed_at:
  25245. type: string
  25246. nullable: true
  25247. title: 完成时间
  25248. description: 完成时间。
  25249. waiting:
  25250. $ref: '#/components/schemas/TicketWaiting'
  25251. submitter_type:
  25252. type: string
  25253. nullable: true
  25254. description: '* 提交方(`customer`=客户自报/`ops`=运营代建/`system`/`unicom`)。 * * 声明成可选是事实而非猜测:`handlers/read.rs`
  25255. 的 `LIST_COLS` 投影里没有这一列, * `list_inner` 的 `json!` 也不下发 ⇒ 列表行拿到这里通常是 `undefined`。 * 客户侧「我的工单」据此判闸门(`customerLiveTicketActions`):`undefined`=还没取过详情,
  25256. * 凭空当作 `customer` 给「确认完成,关闭工单」按钮(运维代建的单点了必被 `KLT-G20401` 拒)。 * 后端哪天补上这列,前端无需改动即可直接在同一行给出按钮。'
  25257. title: 提交方类型
  25258. required:
  25259. - ticket_id
  25260. - ticket_no
  25261. - ticket_type
  25262. - title
  25263. - customer_id
  25264. - customer_name
  25265. - assign_team_id
  25266. - assignee_user_id
  25267. - status
  25268. - backfill_source
  25269. - expected_done_date
  25270. - created_at
  25271. description: '`POST /ticket/list@v1` 行(`list_inner` 的 `json!`,键名逐字对齐)。'
  25272. title: TicketListItem
  25273. TicketListResult:
  25274. type: object
  25275. properties:
  25276. rows:
  25277. type: array
  25278. items:
  25279. $ref: '#/components/schemas/TicketListItem'
  25280. title: 行集
  25281. description: 行集。
  25282. total:
  25283. type: integer
  25284. title: 总条数
  25285. description: 总条数。
  25286. page:
  25287. type: integer
  25288. title: 页码
  25289. description: 页码。
  25290. page_size:
  25291. type: integer
  25292. title: 每页条数
  25293. description: 每页条数。
  25294. status_totals:
  25295. type: object
  25296. additionalProperties:
  25297. type: number
  25298. nullable: true
  25299. description: '`include_status_totals=true` 时下发:可见范围内各状态张数(台账 Tab 角标)。'
  25300. title: status totals
  25301. required:
  25302. - rows
  25303. - total
  25304. - page
  25305. - page_size
  25306. description: TicketListResult 业务数据
  25307. title: TicketListResult
  25308. TicketMaterial:
  25309. type: object
  25310. properties:
  25311. material_id:
  25312. type: string
  25313. title: material id
  25314. description: 字段 material_id。
  25315. kind:
  25316. type: string
  25317. nullable: true
  25318. title: 类型
  25319. description: 类型。
  25320. file_name:
  25321. type: string
  25322. nullable: true
  25323. title: 文件名
  25324. description: 文件名。
  25325. size_bytes:
  25326. type: string
  25327. nullable: true
  25328. title: size bytes
  25329. description: 字段 size_bytes。
  25330. uploaded_by:
  25331. type: string
  25332. nullable: true
  25333. title: uploaded by
  25334. description: 字段 uploaded_by。
  25335. uploaded_at:
  25336. type: string
  25337. nullable: true
  25338. title: uploaded at
  25339. description: 字段 uploaded_at。
  25340. required:
  25341. - material_id
  25342. - kind
  25343. - file_name
  25344. - size_bytes
  25345. - uploaded_by
  25346. - uploaded_at
  25347. description: 期望 `oss_key`:下载走 `material_grant`,服务端不外泄对象键。
  25348. title: TicketMaterial
  25349. TicketMemberSubscription:
  25350. type: object
  25351. properties:
  25352. subscription_id:
  25353. type: string
  25354. title: 订阅 ID
  25355. description: 订阅 ID。
  25356. plan_name:
  25357. type: string
  25358. nullable: true
  25359. title: 档位名称
  25360. description: 档位名称。
  25361. plan_family:
  25362. type: string
  25363. nullable: true
  25364. title: plan family
  25365. description: 字段 plan_family。
  25366. status:
  25367. type: string
  25368. nullable: true
  25369. title: 状态
  25370. description: 状态。
  25371. parent_subscription_id:
  25372. type: string
  25373. nullable: true
  25374. description: 指向父链路订阅;非空即界面上标「叠加于 SUB-xxx」。
  25375. title: parent subscription id
  25376. required:
  25377. - subscription_id
  25378. description: 并单成员订阅(P1,`ticket_subscription`):只承载本单交付的附加订阅,平铺呈现。
  25379. title: TicketMemberSubscription
  25380. TicketMessage:
  25381. type: object
  25382. properties:
  25383. message_id:
  25384. type: string
  25385. title: 消息 ID
  25386. description: 消息 ID。
  25387. carrier_order_no:
  25388. type: string
  25389. nullable: true
  25390. title: carrier order no
  25391. description: 字段 carrier_order_no。
  25392. reported_ticket_no:
  25393. type: string
  25394. nullable: true
  25395. title: reported ticket no
  25396. description: 字段 reported_ticket_no。
  25397. action:
  25398. type: string
  25399. nullable: true
  25400. title: 动作
  25401. description: 动作。
  25402. status:
  25403. type: string
  25404. nullable: true
  25405. title: 状态
  25406. description: 状态。
  25407. external_date:
  25408. type: string
  25409. nullable: true
  25410. title: external date
  25411. description: 字段 external_date。
  25412. received_at:
  25413. type: string
  25414. nullable: true
  25415. title: received at
  25416. description: 字段 received_at。
  25417. effective_at:
  25418. type: string
  25419. nullable: true
  25420. title: effective at
  25421. description: 字段 effective_at。
  25422. void_reason:
  25423. type: string
  25424. nullable: true
  25425. title: void reason
  25426. description: 字段 void_reason。
  25427. conflict_note:
  25428. type: string
  25429. nullable: true
  25430. title: conflict note
  25431. description: 字段 conflict_note。
  25432. customer_name:
  25433. type: string
  25434. nullable: true
  25435. title: 客户名称
  25436. description: 客户名称。
  25437. identity_no:
  25438. type: string
  25439. nullable: true
  25440. title: identity no
  25441. description: 字段 identity_no。
  25442. contact_name:
  25443. type: string
  25444. nullable: true
  25445. title: contact name
  25446. description: 字段 contact_name。
  25447. contact_phone:
  25448. type: string
  25449. nullable: true
  25450. title: contact phone
  25451. description: 字段 contact_phone。
  25452. network_account_name:
  25453. type: string
  25454. nullable: true
  25455. title: network account name
  25456. description: 字段 network_account_name。
  25457. required:
  25458. - message_id
  25459. - carrier_order_no
  25460. - reported_ticket_no
  25461. - action
  25462. - status
  25463. - external_date
  25464. - received_at
  25465. - effective_at
  25466. - void_reason
  25467. - conflict_note
  25468. - customer_name
  25469. - identity_no
  25470. - contact_name
  25471. - contact_phone
  25472. - network_account_name
  25473. description: 报文出参(`message_json`:已脱敏, 期望拿到原文)。
  25474. title: TicketMessage
  25475. TicketStatus:
  25476. oneOf:
  25477. - type: string
  25478. - type: string
  25479. description: TicketStatus 业务数据
  25480. title: TicketStatus
  25481. TicketType:
  25482. oneOf:
  25483. - type: string
  25484. - type: string
  25485. description: TicketType 业务数据
  25486. title: TicketType
  25487. TicketUrgeResult:
  25488. type: object
  25489. properties:
  25490. ticket_id:
  25491. type: string
  25492. title: 工单 ID
  25493. description: 工单 ID。
  25494. created:
  25495. type: boolean
  25496. description: '`true`=本轮真的投递了一封;`false`=当日已发过(幂等去重)或并发已投。'
  25497. title: 是否已创建
  25498. reason:
  25499. type: string
  25500. nullable: true
  25501. title: reason
  25502. description: 字段 reason。
  25503. message_id:
  25504. type: string
  25505. nullable: true
  25506. title: 消息 ID
  25507. description: 消息 ID。
  25508. business_date:
  25509. type: string
  25510. title: business date
  25511. description: 字段 business_date。
  25512. counterparty:
  25513. type: object
  25514. properties:
  25515. user_id:
  25516. type: string
  25517. name:
  25518. type: string
  25519. role:
  25520. type: string
  25521. org_name:
  25522. type: string
  25523. nullable: true
  25524. required:
  25525. - user_id
  25526. - name
  25527. - role
  25528. - org_name
  25529. nullable: true
  25530. title: counterparty
  25531. description: 字段 counterparty。
  25532. waiting:
  25533. $ref: '#/components/schemas/TicketWaiting'
  25534. audit_written:
  25535. type: boolean
  25536. nullable: true
  25537. title: 是否已写审计
  25538. description: 是否已写审计。
  25539. next_step:
  25540. type: string
  25541. title: next step
  25542. description: 字段 next_step。
  25543. required:
  25544. - ticket_id
  25545. - created
  25546. - reason
  25547. - business_date
  25548. - waiting
  25549. - next_step
  25550. description: 站内催办 [实](,)
  25551. title: TicketUrgeResult
  25552. TicketWaiting:
  25553. type: object
  25554. properties:
  25555. kind:
  25556. type: string
  25557. title: 类型
  25558. description: 类型。
  25559. label:
  25560. type: string
  25561. description: 服务端中文主文案(「等运营商回执」/「等客户确认」), 前端再拼一份。
  25562. title: 标签
  25563. counterparty_user_id:
  25564. type: string
  25565. nullable: true
  25566. title: counterparty user id
  25567. description: 字段 counterparty_user_id。
  25568. counterparty_name:
  25569. type: string
  25570. nullable: true
  25571. title: counterparty name
  25572. description: 字段 counterparty_name。
  25573. counterparty_role:
  25574. type: string
  25575. nullable: true
  25576. title: counterparty role
  25577. description: 字段 counterparty_role。
  25578. org_name:
  25579. type: string
  25580. nullable: true
  25581. description: 所属主体名(运营商所在地/客户名);无值时不加括号。
  25582. title: org name
  25583. since:
  25584. type: string
  25585. nullable: true
  25586. title: since
  25587. description: 字段 since。
  25588. hours:
  25589. type: number
  25590. nullable: true
  25591. title: hours
  25592. description: 字段 hours。
  25593. urge:
  25594. type: object
  25595. properties:
  25596. eligible:
  25597. type: boolean
  25598. reason:
  25599. type: string
  25600. nullable: true
  25601. sent_today:
  25602. type: boolean
  25603. last_sent_at:
  25604. type: string
  25605. nullable: true
  25606. min_hours:
  25607. type: number
  25608. required:
  25609. - eligible
  25610. - reason
  25611. - sent_today
  25612. - last_sent_at
  25613. - min_hours
  25614. title: urge
  25615. description: 字段 urge。
  25616. required:
  25617. - kind
  25618. - label
  25619. - counterparty_user_id
  25620. - counterparty_name
  25621. - counterparty_role
  25622. - org_name
  25623. - since
  25624. - hours
  25625. - urge
  25626. description: 「卡在别人手里」的对家与催办读数(`waiting.rs::to_json`,列表 `rows[].waiting` 与详情 `waiting` 同形)。 *
  25627. `kind`:`receipt`=等运营商回执(v1.62 起对家=该客户所属运营商的账号); `customer`=等客户确认(对家=提交方账号)。 *
  25628. `counterparty_user_id` 为 `null` =主体档案在
  25629. title: TicketWaiting
  25630. TodoCounts:
  25631. type: object
  25632. properties:
  25633. item_1_pending_exec_overdue:
  25634. type: number
  25635. description: 件1:开户/到期停机/服务停用/升降配 ∧ 尚未回填出开停事实 ∧ 已超期(开通类=超过服务开始日才计入;停机类=建单日+7
  25636. 当天计入;批准延期后按新期限)
  25637. title: item 1 pending exec overdue
  25638. item_2_service_open_incomplete:
  25639. type: number
  25640. description: 件2:服务开通工单(待分派/待处理/处理中)同口径筛超期,与件1 单集互斥
  25641. title: item 2 service open incomplete
  25642. item_4_message_pending:
  25643. type: number
  25644. description: 件4:待处置报文(未归集+待确认), 与未回填合算
  25645. title: item 4 message pending
  25646. note:
  25647. type: string
  25648. title: 备注
  25649. description: 备注。
  25650. required:
  25651. - item_1_pending_exec_overdue
  25652. - item_2_service_open_incomplete
  25653. - item_4_message_pending
  25654. - note
  25655. description: '`GET /ticket/todo_counts@v1`:四件套计数(口径写死在 SQL,`note` 是人读口径说明)。'
  25656. title: TodoCounts
  25657. TraceResult:
  25658. type: object
  25659. properties:
  25660. ticket:
  25661. type: object
  25662. properties:
  25663. ticket_id:
  25664. type: string
  25665. ticket_no:
  25666. type: string
  25667. nullable: true
  25668. ticket_type:
  25669. $ref: '#/components/schemas/TicketType'
  25670. status:
  25671. $ref: '#/components/schemas/TicketStatus'
  25672. customer_id:
  25673. type: string
  25674. nullable: true
  25675. carrier_order_no:
  25676. type: string
  25677. nullable: true
  25678. title:
  25679. type: string
  25680. nullable: true
  25681. required:
  25682. - ticket_id
  25683. - ticket_no
  25684. - ticket_type
  25685. - status
  25686. - customer_id
  25687. - carrier_order_no
  25688. - title
  25689. title: ticket
  25690. description: 字段 ticket。
  25691. open_stop:
  25692. type: array
  25693. items:
  25694. type: object
  25695. additionalProperties:
  25696. type: string
  25697. nullable: true
  25698. title: open_stop元素
  25699. description: 开停载体行(`::text` 字符串布尔判 `isYes`)
  25700. title: open stop
  25701. backfill:
  25702. type: array
  25703. items:
  25704. type: object
  25705. additionalProperties:
  25706. type: string
  25707. nullable: true
  25708. title: backfill元素
  25709. description: 回填头(至多一行)
  25710. title: backfill
  25711. completion:
  25712. type: array
  25713. items:
  25714. type: object
  25715. additionalProperties:
  25716. type: string
  25717. nullable: true
  25718. title: completion元素
  25719. description: 竣工件行
  25720. title: completion
  25721. messages:
  25722. type: array
  25723. items:
  25724. $ref: '#/components/schemas/TicketMessage'
  25725. title: messages
  25726. description: 字段 messages。
  25727. required:
  25728. - ticket
  25729. - open_stop
  25730. - backfill
  25731. - completion
  25732. - messages
  25733. description: TraceResult 业务数据
  25734. title: TraceResult
  25735. UnverifiableCheck:
  25736. type: object
  25737. properties:
  25738. key:
  25739. type: string
  25740. title: key
  25741. description: 字段 key。
  25742. reason:
  25743. type: string
  25744. title: reason
  25745. description: 字段 reason。
  25746. required:
  25747. - key
  25748. - reason
  25749. description: 可判定项 [实]
  25750. title: UnverifiableCheck
  25751. ValueState:
  25752. type: string
  25753. enum:
  25754. - ok
  25755. - unconfigured
  25756. - by_combination
  25757. - error
  25758. - failed
  25759. description: 取值状态:成功 / 未配置 / 按组合(无唯一金额)/ 取数失败(后端 回退 0 冒充缺值)。
  25760. title: ValueState
  25761. ViewBillDetailRow:
  25762. type: object
  25763. properties:
  25764. bill_detail_id:
  25765. type: string
  25766. title: bill detail id
  25767. description: 字段 bill_detail_id。
  25768. customer_id:
  25769. type: string
  25770. description: 客户行键(V-D1 客户详情链接入参;customer_visible=false 时不渲染链接)
  25771. title: 客户 ID
  25772. customer_name:
  25773. type: string
  25774. title: 客户名称
  25775. description: 客户名称。
  25776. receivable_no:
  25777. type: string
  25778. description: 应收单号
  25779. title: receivable no
  25780. period:
  25781. type: string
  25782. title: 账期
  25783. description: 字段 period。
  25784. receivable_cents:
  25785. type: integer
  25786. description: 应结金额(整数分)
  25787. title: receivable cents
  25788. batch_no:
  25789. type: string
  25790. description: 所属对账单号(恒有值;批次详情宿主路由未在 14.1 声明 ⇒ 前端暂渲纯文本,缺口已登记)
  25791. title: 批次号
  25792. customer_visible:
  25793. type: boolean
  25794. description: false ⇒ 客户名纯文本无链接+标「归属已变更」(C76/视图,断链只在快照侧出现)
  25795. title: customer visible
  25796. required:
  25797. - bill_detail_id
  25798. - customer_id
  25799. - customer_name
  25800. - receivable_no
  25801. - period
  25802. - receivable_cents
  25803. - batch_no
  25804. - customer_visible
  25805. description: V- 表 2 明细行(A18:只含已进入本方 executed 批次且 active 的行)。
  25806. title: ViewBillDetailRow
  25807. ViewPartnerReconResult:
  25808. type: object
  25809. properties:
  25810. settle:
  25811. type: object
  25812. properties:
  25813. mode:
  25814. type: string
  25815. nullable: true
  25816. value:
  25817. type: number
  25818. nullable: true
  25819. required:
  25820. - mode
  25821. - value
  25822. description: 卡 1:本方分成方式与取值(档案现值、三档同构;value 未配 ⇒ null, 返 0)
  25823. title: settle
  25824. config:
  25825. type: object
  25826. properties:
  25827. recon_day:
  25828. type: number
  25829. nullable: true
  25830. pay_cycle:
  25831. type: string
  25832. nullable: true
  25833. required:
  25834. - recon_day
  25835. - pay_cycle
  25836. nullable: true
  25837. description: '* 页顶配置卡(14.2① V6):对账日/付款周期。两格都给具体取值: * `recon_day` 缺失 ⇒ 「留空=跟随默认」;`pay_cycle`
  25838. 由后端给生效值 * (未配置 ⇒ 系统默认「按月」, 页面显示「留空=跟随默认」)。'
  25839. title: config
  25840. batch_total:
  25841. type: number
  25842. title: batch total
  25843. description: 字段 batch_total。
  25844. batch_shown:
  25845. type: number
  25846. title: batch shown
  25847. description: 字段 batch_shown。
  25848. detail_total:
  25849. type: number
  25850. title: detail total
  25851. description: 字段 detail_total。
  25852. detail_shown:
  25853. type: number
  25854. title: detail shown
  25855. description: 字段 detail_shown。
  25856. batches:
  25857. type: array
  25858. items:
  25859. $ref: '#/components/schemas/ViewReconBatchRow'
  25860. title: batches
  25861. description: 字段 batches。
  25862. details:
  25863. type: array
  25864. items:
  25865. $ref: '#/components/schemas/ViewBillDetailRow'
  25866. title: details
  25867. description: 字段 details。
  25868. share_sum:
  25869. type: number
  25870. nullable: true
  25871. description: 卡 4 当前筛选合计(整数分;取数失败 ⇒ null + 状态位, 返 0)
  25872. title: share sum
  25873. share_sum_all:
  25874. type: number
  25875. nullable: true
  25876. description: 本方全部合计(筛选态双值常驻,视图 条 7)
  25877. title: share sum all
  25878. month_options:
  25879. type: string
  25880. description: A52;取数失败 ⇒ 整个字段 "failed"(前端禁用下拉, 回落近 12 个月)
  25881. title: month options
  25882. month_options_truncated:
  25883. type: boolean
  25884. nullable: true
  25885. description: true ⇒ 筛选条下显示「仅显示最近 {N} 个月」(view_month_option_limit)
  25886. title: month options truncated
  25887. snapshot_state:
  25888. type: string
  25889. enum:
  25890. - ok
  25891. - not_ready
  25892. - failed
  25893. description: not_ready ⇒ 整页 KLT-O20703(①—⑥ 全替换, 渲染空表)
  25894. title: snapshot state
  25895. required:
  25896. - settle
  25897. - config
  25898. - batch_total
  25899. - batch_shown
  25900. - detail_total
  25901. - detail_shown
  25902. - batches
  25903. - details
  25904. - share_sum
  25905. - share_sum_all
  25906. - month_options
  25907. - snapshot_state
  25908. description: ViewPartnerReconResult 业务数据
  25909. title: ViewPartnerReconResult
  25910. ViewReconBatchRow:
  25911. type: object
  25912. properties:
  25913. batch_no:
  25914. type: string
  25915. description: 对账单号=行键+导出本批入参(recon/export_detail@v1 以 batch_no 作 batch_id,同册 6 惯例)
  25916. title: 批次号
  25917. period:
  25918. type: string
  25919. title: 账期
  25920. description: 字段 period。
  25921. reconcile_status:
  25922. $ref: '#/components/schemas/ReconcileStatus'
  25923. status:
  25924. $ref: '#/components/schemas/ReconBatchStatus'
  25925. detail_count:
  25926. type: integer
  25927. title: detail count
  25928. description: 字段 detail_count。
  25929. share_cents:
  25930. type: integer
  25931. description: 本方分成金额(整数分)
  25932. title: share cents
  25933. has_detail:
  25934. type: boolean
  25935. description: 该批次本方有明细 ⇒ 行末「导出本批」渲染判据( 无明细=按钮整块不渲染,)
  25936. title: has detail
  25937. required:
  25938. - batch_no
  25939. - period
  25940. - reconcile_status
  25941. - status
  25942. - detail_count
  25943. - share_cents
  25944. - has_detail
  25945. description: V- 表 1 批次行(视图 列清单; 无「其他分成方」列)。
  25946. title: ViewReconBatchRow
  25947. ZeroNote:
  25948. type: string
  25949. enum:
  25950. - base_zero
  25951. - no_in_period_account
  25952. description: 明细行 zero_note 取值域(对账 恒 0 表;partner_amount_unsupported 已随 删除)。
  25953. title: ZeroNote
  25954. ActivationCodeExportData:
  25955. type: object
  25956. title: 激活码导出结果
  25957. description: 读(validity=valid)与写(expired/all)共用同一信封;差别体现在 write_capability、export_mode 与计数。
  25958. required:
  25959. - status
  25960. - validity
  25961. - user_count
  25962. - user_ids
  25963. - total
  25964. - items
  25965. - write_capability
  25966. - export_mode
  25967. - plaintext_once
  25968. - audit_written
  25969. properties:
  25970. status:
  25971. type: string
  25972. title: 处理状态
  25973. description: 成功导出时为 ok。
  25974. example: ok
  25975. scope_type:
  25976. type: string
  25977. title: 作用域类型
  25978. description: 服务端派生,固定为 end_user。
  25979. example: end_user
  25980. scope_id:
  25981. type: string
  25982. title: 作用域 ID
  25983. description: 服务端派生的项目空间 ID。
  25984. validity:
  25985. type: string
  25986. title: 导出口径
  25987. description: valid=仍有效(只读);expired=已过期(写/换新);all=全部(写)。
  25988. enum:
  25989. - valid
  25990. - expired
  25991. - all
  25992. user_count:
  25993. type: integer
  25994. title: 请求账号数
  25995. description: 本次提交并经可见性收窄后的账号个数。
  25996. minimum: 0
  25997. user_ids:
  25998. type: array
  25999. title: 账号 ID 列表
  26000. description: 实际参与导出的用户 ID。
  26001. items:
  26002. type: string
  26003. title: 用户 ID
  26004. total:
  26005. type: integer
  26006. title: 条目总数
  26007. description: items 数组长度。
  26008. minimum: 0
  26009. items:
  26010. type: array
  26011. title: 激活码条目
  26012. description: 平台 bootstrap_credential/export 条目原样转发;含明文 plaintext。
  26013. items:
  26014. $ref: '#/components/schemas/ExportCodeItem'
  26015. chunks:
  26016. type: integer
  26017. title: 分片数
  26018. description: 按平台分页自动分片时的片数。
  26019. minimum: 0
  26020. pages:
  26021. type: integer
  26022. title: 翻页数
  26023. description: 平台翻页次数。
  26024. minimum: 0
  26025. reissued:
  26026. type: integer
  26027. title: 换新条数
  26028. description: 本次作废并换发的凭证条数;只读导出时为 0。
  26029. minimum: 0
  26030. kept:
  26031. type: integer
  26032. title: 保留条数
  26033. description: 未换新、仍保留的未消费凭证条数。
  26034. minimum: 0
  26035. revoked:
  26036. type: integer
  26037. title: 作废条数
  26038. description: 本次作废的凭证条数。
  26039. minimum: 0
  26040. write_capability:
  26041. type: boolean
  26042. title: 是否写操作
  26043. description: true=本次含换新/作废(validity 为 expired 或 all);false=只读。
  26044. export_mode:
  26045. type: string
  26046. title: 导出模式
  26047. description: read=只读导出;write=作废换新路径。与 write_capability 对应。
  26048. enum:
  26049. - read
  26050. - write
  26051. plaintext_once:
  26052. type: boolean
  26053. title: 明文一次性
  26054. description: 恒为 true:明文只随本次应答回显,平台侧不落库。
  26055. example: true
  26056. plaintext_note:
  26057. type: string
  26058. title: 明文说明
  26059. description: 提示调用方立即分发或安全保存明文。
  26060. audit_written:
  26061. type: boolean
  26062. title: 是否已写审计
  26063. description: true=已写入 bos_audit_log;false=本次未留痕。
  26064. audit_note:
  26065. type: string
  26066. title: 审计说明
  26067. description: 与 audit_written 成对的人读说明,勿仅凭布尔值猜测。
  26068. batch_id:
  26069. type: string
  26070. title: 批次 ID
  26071. description: 按批次导出口回显;账号导出口不下发。
  26072. nullable: true
  26073. batch_no:
  26074. type: string
  26075. title: 批次号
  26076. description: 按批次导出口回显;账号导出口不下发。
  26077. nullable: true
  26078. ApiResponseHealth:
  26079. type: object
  26080. title: 健康检查响应
  26081. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26082. required:
  26083. - code
  26084. - message
  26085. properties:
  26086. code:
  26087. type: integer
  26088. title: 业务码
  26089. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26090. example: 10000
  26091. message:
  26092. type: string
  26093. title: 响应消息
  26094. description: 成功或错误说明。
  26095. example: ok
  26096. error_code:
  26097. type: string
  26098. title: 稳定错误码
  26099. description: 失败时的 KLT-* 字符串;成功时不下发。
  26100. nullable: true
  26101. data:
  26102. $ref: '#/components/schemas/HealthInfo'
  26103. ApiResponseHealthV1:
  26104. type: object
  26105. title: 健康检查(v1)响应
  26106. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26107. required:
  26108. - code
  26109. - message
  26110. properties:
  26111. code:
  26112. type: integer
  26113. title: 业务码
  26114. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26115. example: 10000
  26116. message:
  26117. type: string
  26118. title: 响应消息
  26119. description: 成功或错误说明。
  26120. example: ok
  26121. error_code:
  26122. type: string
  26123. title: 稳定错误码
  26124. description: 失败时的 KLT-* 字符串;成功时不下发。
  26125. nullable: true
  26126. data:
  26127. $ref: '#/components/schemas/HealthInfo'
  26128. ApiResponsePing:
  26129. type: object
  26130. title: 存活探测响应
  26131. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26132. required:
  26133. - code
  26134. - message
  26135. properties:
  26136. code:
  26137. type: integer
  26138. title: 业务码
  26139. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26140. example: 10000
  26141. message:
  26142. type: string
  26143. title: 响应消息
  26144. description: 成功或错误说明。
  26145. example: ok
  26146. error_code:
  26147. type: string
  26148. title: 稳定错误码
  26149. description: 失败时的 KLT-* 字符串;成功时不下发。
  26150. nullable: true
  26151. data:
  26152. $ref: '#/components/schemas/PingInfo'
  26153. ApiResponseAuthContext:
  26154. type: object
  26155. title: 当前登录上下文响应
  26156. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26157. required:
  26158. - code
  26159. - message
  26160. properties:
  26161. code:
  26162. type: integer
  26163. title: 业务码
  26164. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26165. example: 10000
  26166. message:
  26167. type: string
  26168. title: 响应消息
  26169. description: 成功或错误说明。
  26170. example: ok
  26171. error_code:
  26172. type: string
  26173. title: 稳定错误码
  26174. description: 失败时的 KLT-* 字符串;成功时不下发。
  26175. nullable: true
  26176. data:
  26177. $ref: '#/components/schemas/AuthContext'
  26178. ApiResponseRegionCreate:
  26179. type: object
  26180. title: 新建区域节点响应
  26181. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26182. required:
  26183. - code
  26184. - message
  26185. properties:
  26186. code:
  26187. type: integer
  26188. title: 业务码
  26189. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26190. example: 10000
  26191. message:
  26192. type: string
  26193. title: 响应消息
  26194. description: 成功或错误说明。
  26195. example: ok
  26196. error_code:
  26197. type: string
  26198. title: 稳定错误码
  26199. description: 失败时的 KLT-* 字符串;成功时不下发。
  26200. nullable: true
  26201. data:
  26202. $ref: '#/components/schemas/RegionCreateResult'
  26203. ApiResponseRegionRename:
  26204. type: object
  26205. title: 重命名区域节点响应
  26206. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26207. required:
  26208. - code
  26209. - message
  26210. properties:
  26211. code:
  26212. type: integer
  26213. title: 业务码
  26214. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26215. example: 10000
  26216. message:
  26217. type: string
  26218. title: 响应消息
  26219. description: 成功或错误说明。
  26220. example: ok
  26221. error_code:
  26222. type: string
  26223. title: 稳定错误码
  26224. description: 失败时的 KLT-* 字符串;成功时不下发。
  26225. nullable: true
  26226. data:
  26227. $ref: '#/components/schemas/RegionRenameResult'
  26228. ApiResponseRegionDelete:
  26229. type: object
  26230. title: 删除区域节点响应
  26231. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26232. required:
  26233. - code
  26234. - message
  26235. properties:
  26236. code:
  26237. type: integer
  26238. title: 业务码
  26239. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26240. example: 10000
  26241. message:
  26242. type: string
  26243. title: 响应消息
  26244. description: 成功或错误说明。
  26245. example: ok
  26246. error_code:
  26247. type: string
  26248. title: 稳定错误码
  26249. description: 失败时的 KLT-* 字符串;成功时不下发。
  26250. nullable: true
  26251. data:
  26252. $ref: '#/components/schemas/RegionDeleteResult'
  26253. ApiResponseRegionTree:
  26254. type: object
  26255. title: 查询可见区域树响应
  26256. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26257. required:
  26258. - code
  26259. - message
  26260. properties:
  26261. code:
  26262. type: integer
  26263. title: 业务码
  26264. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26265. example: 10000
  26266. message:
  26267. type: string
  26268. title: 响应消息
  26269. description: 成功或错误说明。
  26270. example: ok
  26271. error_code:
  26272. type: string
  26273. title: 稳定错误码
  26274. description: 失败时的 KLT-* 字符串;成功时不下发。
  26275. nullable: true
  26276. data:
  26277. $ref: '#/components/schemas/RegionTreeResult'
  26278. ApiResponseRegionSubtree:
  26279. type: object
  26280. title: 查询区域子树响应
  26281. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26282. required:
  26283. - code
  26284. - message
  26285. properties:
  26286. code:
  26287. type: integer
  26288. title: 业务码
  26289. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26290. example: 10000
  26291. message:
  26292. type: string
  26293. title: 响应消息
  26294. description: 成功或错误说明。
  26295. example: ok
  26296. error_code:
  26297. type: string
  26298. title: 稳定错误码
  26299. description: 失败时的 KLT-* 字符串;成功时不下发。
  26300. nullable: true
  26301. data:
  26302. $ref: '#/components/schemas/RegionSubtreeResult'
  26303. ApiResponseRegionChangeLog:
  26304. type: object
  26305. title: 区域变更流水响应
  26306. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26307. required:
  26308. - code
  26309. - message
  26310. properties:
  26311. code:
  26312. type: integer
  26313. title: 业务码
  26314. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26315. example: 10000
  26316. message:
  26317. type: string
  26318. title: 响应消息
  26319. description: 成功或错误说明。
  26320. example: ok
  26321. error_code:
  26322. type: string
  26323. title: 稳定错误码
  26324. description: 失败时的 KLT-* 字符串;成功时不下发。
  26325. nullable: true
  26326. data:
  26327. $ref: '#/components/schemas/RegionChangeLogResult'
  26328. ApiResponseRegionOrphans:
  26329. type: object
  26330. title: 悬空区域节点响应
  26331. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26332. required:
  26333. - code
  26334. - message
  26335. properties:
  26336. code:
  26337. type: integer
  26338. title: 业务码
  26339. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26340. example: 10000
  26341. message:
  26342. type: string
  26343. title: 响应消息
  26344. description: 成功或错误说明。
  26345. example: ok
  26346. error_code:
  26347. type: string
  26348. title: 稳定错误码
  26349. description: 失败时的 KLT-* 字符串;成功时不下发。
  26350. nullable: true
  26351. data:
  26352. $ref: '#/components/schemas/RegionOrphanResult'
  26353. ApiResponseAccountGetList:
  26354. type: object
  26355. title: 成员账号列表响应
  26356. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26357. required:
  26358. - code
  26359. - message
  26360. properties:
  26361. code:
  26362. type: integer
  26363. title: 业务码
  26364. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26365. example: 10000
  26366. message:
  26367. type: string
  26368. title: 响应消息
  26369. description: 成功或错误说明。
  26370. example: ok
  26371. error_code:
  26372. type: string
  26373. title: 稳定错误码
  26374. description: 失败时的 KLT-* 字符串;成功时不下发。
  26375. nullable: true
  26376. data:
  26377. $ref: '#/components/schemas/AccountListResult'
  26378. ApiResponseEntTeamGetList:
  26379. type: object
  26380. title: 运营团队列表响应
  26381. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26382. required:
  26383. - code
  26384. - message
  26385. properties:
  26386. code:
  26387. type: integer
  26388. title: 业务码
  26389. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26390. example: 10000
  26391. message:
  26392. type: string
  26393. title: 响应消息
  26394. description: 成功或错误说明。
  26395. example: ok
  26396. error_code:
  26397. type: string
  26398. title: 稳定错误码
  26399. description: 失败时的 KLT-* 字符串;成功时不下发。
  26400. nullable: true
  26401. data:
  26402. $ref: '#/components/schemas/EntTeamListResult'
  26403. ApiResponseOpsTeamGetList:
  26404. type: object
  26405. title: 运维团队列表响应
  26406. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26407. required:
  26408. - code
  26409. - message
  26410. properties:
  26411. code:
  26412. type: integer
  26413. title: 业务码
  26414. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26415. example: 10000
  26416. message:
  26417. type: string
  26418. title: 响应消息
  26419. description: 成功或错误说明。
  26420. example: ok
  26421. error_code:
  26422. type: string
  26423. title: 稳定错误码
  26424. description: 失败时的 KLT-* 字符串;成功时不下发。
  26425. nullable: true
  26426. data:
  26427. $ref: '#/components/schemas/OpsTeamListResult'
  26428. ApiResponseAuditGetList:
  26429. type: object
  26430. title: 审计日志检索响应
  26431. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26432. required:
  26433. - code
  26434. - message
  26435. properties:
  26436. code:
  26437. type: integer
  26438. title: 业务码
  26439. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26440. example: 10000
  26441. message:
  26442. type: string
  26443. title: 响应消息
  26444. description: 成功或错误说明。
  26445. example: ok
  26446. error_code:
  26447. type: string
  26448. title: 稳定错误码
  26449. description: 失败时的 KLT-* 字符串;成功时不下发。
  26450. nullable: true
  26451. data:
  26452. $ref: '#/components/schemas/AuditItem'
  26453. ApiResponseAuditExport:
  26454. type: object
  26455. title: 审计日志导出响应
  26456. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26457. required:
  26458. - code
  26459. - message
  26460. properties:
  26461. code:
  26462. type: integer
  26463. title: 业务码
  26464. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26465. example: 10000
  26466. message:
  26467. type: string
  26468. title: 响应消息
  26469. description: 成功或错误说明。
  26470. example: ok
  26471. error_code:
  26472. type: string
  26473. title: 稳定错误码
  26474. description: 失败时的 KLT-* 字符串;成功时不下发。
  26475. nullable: true
  26476. data:
  26477. $ref: '#/components/schemas/AuditExportResult'
  26478. ApiResponseAccountProvision:
  26479. type: object
  26480. title: 开通账号响应
  26481. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26482. required:
  26483. - code
  26484. - message
  26485. properties:
  26486. code:
  26487. type: integer
  26488. title: 业务码
  26489. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26490. example: 10000
  26491. message:
  26492. type: string
  26493. title: 响应消息
  26494. description: 成功或错误说明。
  26495. example: ok
  26496. error_code:
  26497. type: string
  26498. title: 稳定错误码
  26499. description: 失败时的 KLT-* 字符串;成功时不下发。
  26500. nullable: true
  26501. data:
  26502. $ref: '#/components/schemas/AccountProvisionResult'
  26503. ApiResponseAccountUpdateStatus:
  26504. type: object
  26505. title: 停用或恢复账号响应
  26506. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26507. required:
  26508. - code
  26509. - message
  26510. properties:
  26511. code:
  26512. type: integer
  26513. title: 业务码
  26514. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26515. example: 10000
  26516. message:
  26517. type: string
  26518. title: 响应消息
  26519. description: 成功或错误说明。
  26520. example: ok
  26521. error_code:
  26522. type: string
  26523. title: 稳定错误码
  26524. description: 失败时的 KLT-* 字符串;成功时不下发。
  26525. nullable: true
  26526. data:
  26527. $ref: '#/components/schemas/AccountStatusResult'
  26528. ApiResponseAccountUnbind:
  26529. type: object
  26530. title: 注销/解绑账号响应
  26531. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26532. required:
  26533. - code
  26534. - message
  26535. properties:
  26536. code:
  26537. type: integer
  26538. title: 业务码
  26539. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26540. example: 10000
  26541. message:
  26542. type: string
  26543. title: 响应消息
  26544. description: 成功或错误说明。
  26545. example: ok
  26546. error_code:
  26547. type: string
  26548. title: 稳定错误码
  26549. description: 失败时的 KLT-* 字符串;成功时不下发。
  26550. nullable: true
  26551. data:
  26552. $ref: '#/components/schemas/AccountUnbindResult'
  26553. ApiResponseAccountResetCode:
  26554. type: object
  26555. title: 重置激活码响应
  26556. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26557. required:
  26558. - code
  26559. - message
  26560. properties:
  26561. code:
  26562. type: integer
  26563. title: 业务码
  26564. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26565. example: 10000
  26566. message:
  26567. type: string
  26568. title: 响应消息
  26569. description: 成功或错误说明。
  26570. example: ok
  26571. error_code:
  26572. type: string
  26573. title: 稳定错误码
  26574. description: 失败时的 KLT-* 字符串;成功时不下发。
  26575. nullable: true
  26576. data:
  26577. $ref: '#/components/schemas/AccountResetCodeResult'
  26578. ApiResponseAccountExportCodes:
  26579. type: object
  26580. title: 导出激活码响应
  26581. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26582. required:
  26583. - code
  26584. - message
  26585. properties:
  26586. code:
  26587. type: integer
  26588. title: 业务码
  26589. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26590. example: 10000
  26591. message:
  26592. type: string
  26593. title: 响应消息
  26594. description: 成功或错误说明。
  26595. example: ok
  26596. error_code:
  26597. type: string
  26598. title: 稳定错误码
  26599. description: 失败时的 KLT-* 字符串;成功时不下发。
  26600. nullable: true
  26601. data:
  26602. $ref: '#/components/schemas/ActivationCodeExportData'
  26603. ApiResponseAccountChangePassword:
  26604. type: object
  26605. title: 自助修改密码响应
  26606. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26607. required:
  26608. - code
  26609. - message
  26610. properties:
  26611. code:
  26612. type: integer
  26613. title: 业务码
  26614. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26615. example: 10000
  26616. message:
  26617. type: string
  26618. title: 响应消息
  26619. description: 成功或错误说明。
  26620. example: ok
  26621. error_code:
  26622. type: string
  26623. title: 稳定错误码
  26624. description: 失败时的 KLT-* 字符串;成功时不下发。
  26625. nullable: true
  26626. data:
  26627. $ref: '#/components/schemas/AccountChangePasswordResult'
  26628. ApiResponseAccountProfileUpdate:
  26629. type: object
  26630. title: 本人维护姓名响应
  26631. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26632. required:
  26633. - code
  26634. - message
  26635. properties:
  26636. code:
  26637. type: integer
  26638. title: 业务码
  26639. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26640. example: 10000
  26641. message:
  26642. type: string
  26643. title: 响应消息
  26644. description: 成功或错误说明。
  26645. example: ok
  26646. error_code:
  26647. type: string
  26648. title: 稳定错误码
  26649. description: 失败时的 KLT-* 字符串;成功时不下发。
  26650. nullable: true
  26651. data:
  26652. $ref: '#/components/schemas/AccountProfileUpdateResult'
  26653. ApiResponseAccountNotifyPref:
  26654. type: object
  26655. title: 读通知投递偏好响应
  26656. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26657. required:
  26658. - code
  26659. - message
  26660. properties:
  26661. code:
  26662. type: integer
  26663. title: 业务码
  26664. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26665. example: 10000
  26666. message:
  26667. type: string
  26668. title: 响应消息
  26669. description: 成功或错误说明。
  26670. example: ok
  26671. error_code:
  26672. type: string
  26673. title: 稳定错误码
  26674. description: 失败时的 KLT-* 字符串;成功时不下发。
  26675. nullable: true
  26676. data:
  26677. $ref: '#/components/schemas/AccountNotifyPrefResult'
  26678. ApiResponseAccountNotifyPrefSave:
  26679. type: object
  26680. title: 保存通知投递开关响应
  26681. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26682. required:
  26683. - code
  26684. - message
  26685. properties:
  26686. code:
  26687. type: integer
  26688. title: 业务码
  26689. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26690. example: 10000
  26691. message:
  26692. type: string
  26693. title: 响应消息
  26694. description: 成功或错误说明。
  26695. example: ok
  26696. error_code:
  26697. type: string
  26698. title: 稳定错误码
  26699. description: 失败时的 KLT-* 字符串;成功时不下发。
  26700. nullable: true
  26701. data:
  26702. $ref: '#/components/schemas/AccountNotifyPrefSaveResult'
  26703. ApiResponseAccountNotifyEmailGet:
  26704. type: object
  26705. title: 本人只读通知投递邮箱响应
  26706. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26707. required:
  26708. - code
  26709. - message
  26710. properties:
  26711. code:
  26712. type: integer
  26713. title: 业务码
  26714. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26715. example: 10000
  26716. message:
  26717. type: string
  26718. title: 响应消息
  26719. description: 成功或错误说明。
  26720. example: ok
  26721. error_code:
  26722. type: string
  26723. title: 稳定错误码
  26724. description: 失败时的 KLT-* 字符串;成功时不下发。
  26725. nullable: true
  26726. data:
  26727. $ref: '#/components/schemas/AccountNotifyEmailResult'
  26728. ApiResponseAccountNotifyEmail:
  26729. type: object
  26730. title: 本人维护通知投递邮箱响应
  26731. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26732. required:
  26733. - code
  26734. - message
  26735. properties:
  26736. code:
  26737. type: integer
  26738. title: 业务码
  26739. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26740. example: 10000
  26741. message:
  26742. type: string
  26743. title: 响应消息
  26744. description: 成功或错误说明。
  26745. example: ok
  26746. error_code:
  26747. type: string
  26748. title: 稳定错误码
  26749. description: 失败时的 KLT-* 字符串;成功时不下发。
  26750. nullable: true
  26751. data:
  26752. $ref: '#/components/schemas/AccountNotifyEmailResult'
  26753. ApiResponseAccountNotifyEmailSet:
  26754. type: object
  26755. title: 运营代办维护通知投递邮箱响应
  26756. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26757. required:
  26758. - code
  26759. - message
  26760. properties:
  26761. code:
  26762. type: integer
  26763. title: 业务码
  26764. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26765. example: 10000
  26766. message:
  26767. type: string
  26768. title: 响应消息
  26769. description: 成功或错误说明。
  26770. example: ok
  26771. error_code:
  26772. type: string
  26773. title: 稳定错误码
  26774. description: 失败时的 KLT-* 字符串;成功时不下发。
  26775. nullable: true
  26776. data:
  26777. $ref: '#/components/schemas/AccountNotifyEmailSetResult'
  26778. ApiResponseActivationVerify:
  26779. type: object
  26780. title: 激活并设置密码响应
  26781. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26782. required:
  26783. - code
  26784. - message
  26785. properties:
  26786. code:
  26787. type: integer
  26788. title: 业务码
  26789. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26790. example: 10000
  26791. message:
  26792. type: string
  26793. title: 响应消息
  26794. description: 成功或错误说明。
  26795. example: ok
  26796. error_code:
  26797. type: string
  26798. title: 稳定错误码
  26799. description: 失败时的 KLT-* 字符串;成功时不下发。
  26800. nullable: true
  26801. data:
  26802. $ref: '#/components/schemas/ActivationVerifyResult'
  26803. ApiResponseActivationPrecheck:
  26804. type: object
  26805. title: 激活第 1 步预校验(登录名与激活状态)响应
  26806. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26807. required:
  26808. - code
  26809. - message
  26810. properties:
  26811. code:
  26812. type: integer
  26813. title: 业务码
  26814. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26815. example: 10000
  26816. message:
  26817. type: string
  26818. title: 响应消息
  26819. description: 成功或错误说明。
  26820. example: ok
  26821. error_code:
  26822. type: string
  26823. title: 稳定错误码
  26824. description: 失败时的 KLT-* 字符串;成功时不下发。
  26825. nullable: true
  26826. data:
  26827. $ref: '#/components/schemas/ActivationPrecheckResult'
  26828. ApiResponseOperatorCreate:
  26829. type: object
  26830. title: 新建运营商响应
  26831. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26832. required:
  26833. - code
  26834. - message
  26835. properties:
  26836. code:
  26837. type: integer
  26838. title: 业务码
  26839. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26840. example: 10000
  26841. message:
  26842. type: string
  26843. title: 响应消息
  26844. description: 成功或错误说明。
  26845. example: ok
  26846. error_code:
  26847. type: string
  26848. title: 稳定错误码
  26849. description: 失败时的 KLT-* 字符串;成功时不下发。
  26850. nullable: true
  26851. data:
  26852. $ref: '#/components/schemas/OperatorCreateResult'
  26853. ApiResponseOperatorUpdate:
  26854. type: object
  26855. title: 编辑运营商响应
  26856. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26857. required:
  26858. - code
  26859. - message
  26860. properties:
  26861. code:
  26862. type: integer
  26863. title: 业务码
  26864. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26865. example: 10000
  26866. message:
  26867. type: string
  26868. title: 响应消息
  26869. description: 成功或错误说明。
  26870. example: ok
  26871. error_code:
  26872. type: string
  26873. title: 稳定错误码
  26874. description: 失败时的 KLT-* 字符串;成功时不下发。
  26875. nullable: true
  26876. data:
  26877. $ref: '#/components/schemas/OperatorUpdateResult'
  26878. ApiResponseOperatorDelete:
  26879. type: object
  26880. title: 删除运营商响应
  26881. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26882. required:
  26883. - code
  26884. - message
  26885. properties:
  26886. code:
  26887. type: integer
  26888. title: 业务码
  26889. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26890. example: 10000
  26891. message:
  26892. type: string
  26893. title: 响应消息
  26894. description: 成功或错误说明。
  26895. example: ok
  26896. error_code:
  26897. type: string
  26898. title: 稳定错误码
  26899. description: 失败时的 KLT-* 字符串;成功时不下发。
  26900. nullable: true
  26901. data:
  26902. $ref: '#/components/schemas/OperatorDeleteResult'
  26903. ApiResponseOperatorGetList:
  26904. type: object
  26905. title: 运营商列表响应
  26906. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26907. required:
  26908. - code
  26909. - message
  26910. properties:
  26911. code:
  26912. type: integer
  26913. title: 业务码
  26914. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26915. example: 10000
  26916. message:
  26917. type: string
  26918. title: 响应消息
  26919. description: 成功或错误说明。
  26920. example: ok
  26921. error_code:
  26922. type: string
  26923. title: 稳定错误码
  26924. description: 失败时的 KLT-* 字符串;成功时不下发。
  26925. nullable: true
  26926. data:
  26927. $ref: '#/components/schemas/OperatorListResult'
  26928. ApiResponseOperatorReconAccountCreate:
  26929. type: object
  26930. title: 创建对账账号响应
  26931. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26932. required:
  26933. - code
  26934. - message
  26935. properties:
  26936. code:
  26937. type: integer
  26938. title: 业务码
  26939. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26940. example: 10000
  26941. message:
  26942. type: string
  26943. title: 响应消息
  26944. description: 成功或错误说明。
  26945. example: ok
  26946. error_code:
  26947. type: string
  26948. title: 稳定错误码
  26949. description: 失败时的 KLT-* 字符串;成功时不下发。
  26950. nullable: true
  26951. data:
  26952. $ref: '#/components/schemas/ReconAccountCreateResult'
  26953. ApiResponseOperatorReconAccountGet:
  26954. type: object
  26955. title: 查询对账账号响应
  26956. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26957. required:
  26958. - code
  26959. - message
  26960. properties:
  26961. code:
  26962. type: integer
  26963. title: 业务码
  26964. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26965. example: 10000
  26966. message:
  26967. type: string
  26968. title: 响应消息
  26969. description: 成功或错误说明。
  26970. example: ok
  26971. error_code:
  26972. type: string
  26973. title: 稳定错误码
  26974. description: 失败时的 KLT-* 字符串;成功时不下发。
  26975. nullable: true
  26976. data:
  26977. $ref: '#/components/schemas/ReconAccountGetResult'
  26978. ApiResponsePartnerCreate:
  26979. type: object
  26980. title: 新建合伙人响应
  26981. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  26982. required:
  26983. - code
  26984. - message
  26985. properties:
  26986. code:
  26987. type: integer
  26988. title: 业务码
  26989. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  26990. example: 10000
  26991. message:
  26992. type: string
  26993. title: 响应消息
  26994. description: 成功或错误说明。
  26995. example: ok
  26996. error_code:
  26997. type: string
  26998. title: 稳定错误码
  26999. description: 失败时的 KLT-* 字符串;成功时不下发。
  27000. nullable: true
  27001. data:
  27002. $ref: '#/components/schemas/PartnerCreateResult'
  27003. ApiResponsePartnerUpdate:
  27004. type: object
  27005. title: 编辑合伙人响应
  27006. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27007. required:
  27008. - code
  27009. - message
  27010. properties:
  27011. code:
  27012. type: integer
  27013. title: 业务码
  27014. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27015. example: 10000
  27016. message:
  27017. type: string
  27018. title: 响应消息
  27019. description: 成功或错误说明。
  27020. example: ok
  27021. error_code:
  27022. type: string
  27023. title: 稳定错误码
  27024. description: 失败时的 KLT-* 字符串;成功时不下发。
  27025. nullable: true
  27026. data:
  27027. $ref: '#/components/schemas/PartnerUpdateResult'
  27028. ApiResponsePartnerDelete:
  27029. type: object
  27030. title: 删除合伙人响应
  27031. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27032. required:
  27033. - code
  27034. - message
  27035. properties:
  27036. code:
  27037. type: integer
  27038. title: 业务码
  27039. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27040. example: 10000
  27041. message:
  27042. type: string
  27043. title: 响应消息
  27044. description: 成功或错误说明。
  27045. example: ok
  27046. error_code:
  27047. type: string
  27048. title: 稳定错误码
  27049. description: 失败时的 KLT-* 字符串;成功时不下发。
  27050. nullable: true
  27051. data:
  27052. $ref: '#/components/schemas/PartnerDeleteResult'
  27053. ApiResponsePartnerGetList:
  27054. type: object
  27055. title: 合伙人列表响应
  27056. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27057. required:
  27058. - code
  27059. - message
  27060. properties:
  27061. code:
  27062. type: integer
  27063. title: 业务码
  27064. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27065. example: 10000
  27066. message:
  27067. type: string
  27068. title: 响应消息
  27069. description: 成功或错误说明。
  27070. example: ok
  27071. error_code:
  27072. type: string
  27073. title: 稳定错误码
  27074. description: 失败时的 KLT-* 字符串;成功时不下发。
  27075. nullable: true
  27076. data:
  27077. $ref: '#/components/schemas/PartnerListResult'
  27078. ApiResponsePartnerScopeGet:
  27079. type: object
  27080. title: 读取合伙人负责范围响应
  27081. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27082. required:
  27083. - code
  27084. - message
  27085. properties:
  27086. code:
  27087. type: integer
  27088. title: 业务码
  27089. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27090. example: 10000
  27091. message:
  27092. type: string
  27093. title: 响应消息
  27094. description: 成功或错误说明。
  27095. example: ok
  27096. error_code:
  27097. type: string
  27098. title: 稳定错误码
  27099. description: 失败时的 KLT-* 字符串;成功时不下发。
  27100. nullable: true
  27101. data:
  27102. $ref: '#/components/schemas/PartnerScope'
  27103. ApiResponsePartnerScopeSave:
  27104. type: object
  27105. title: 保存合伙人负责范围响应
  27106. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27107. required:
  27108. - code
  27109. - message
  27110. properties:
  27111. code:
  27112. type: integer
  27113. title: 业务码
  27114. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27115. example: 10000
  27116. message:
  27117. type: string
  27118. title: 响应消息
  27119. description: 成功或错误说明。
  27120. example: ok
  27121. error_code:
  27122. type: string
  27123. title: 稳定错误码
  27124. description: 失败时的 KLT-* 字符串;成功时不下发。
  27125. nullable: true
  27126. data:
  27127. $ref: '#/components/schemas/PartnerScopeSaveResult'
  27128. ApiResponseEntTeamCreate:
  27129. type: object
  27130. title: 新建运营团队响应
  27131. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27132. required:
  27133. - code
  27134. - message
  27135. properties:
  27136. code:
  27137. type: integer
  27138. title: 业务码
  27139. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27140. example: 10000
  27141. message:
  27142. type: string
  27143. title: 响应消息
  27144. description: 成功或错误说明。
  27145. example: ok
  27146. error_code:
  27147. type: string
  27148. title: 稳定错误码
  27149. description: 失败时的 KLT-* 字符串;成功时不下发。
  27150. nullable: true
  27151. data:
  27152. $ref: '#/components/schemas/EntTeamCreateResult'
  27153. ApiResponseEntTeamUpdate:
  27154. type: object
  27155. title: 编辑运营团队响应
  27156. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27157. required:
  27158. - code
  27159. - message
  27160. properties:
  27161. code:
  27162. type: integer
  27163. title: 业务码
  27164. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27165. example: 10000
  27166. message:
  27167. type: string
  27168. title: 响应消息
  27169. description: 成功或错误说明。
  27170. example: ok
  27171. error_code:
  27172. type: string
  27173. title: 稳定错误码
  27174. description: 失败时的 KLT-* 字符串;成功时不下发。
  27175. nullable: true
  27176. data:
  27177. $ref: '#/components/schemas/EntTeamUpdateResult'
  27178. ApiResponseEntTeamDelete:
  27179. type: object
  27180. title: 删除运营团队响应
  27181. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27182. required:
  27183. - code
  27184. - message
  27185. properties:
  27186. code:
  27187. type: integer
  27188. title: 业务码
  27189. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27190. example: 10000
  27191. message:
  27192. type: string
  27193. title: 响应消息
  27194. description: 成功或错误说明。
  27195. example: ok
  27196. error_code:
  27197. type: string
  27198. title: 稳定错误码
  27199. description: 失败时的 KLT-* 字符串;成功时不下发。
  27200. nullable: true
  27201. data:
  27202. $ref: '#/components/schemas/EntTeamDeleteResult'
  27203. ApiResponseEntTeamMemberAdd:
  27204. type: object
  27205. title: 添加运营团队成员响应
  27206. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27207. required:
  27208. - code
  27209. - message
  27210. properties:
  27211. code:
  27212. type: integer
  27213. title: 业务码
  27214. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27215. example: 10000
  27216. message:
  27217. type: string
  27218. title: 响应消息
  27219. description: 成功或错误说明。
  27220. example: ok
  27221. error_code:
  27222. type: string
  27223. title: 稳定错误码
  27224. description: 失败时的 KLT-* 字符串;成功时不下发。
  27225. nullable: true
  27226. data:
  27227. $ref: '#/components/schemas/EntTeamMemberAddResult'
  27228. ApiResponseEntTeamMemberUpdate:
  27229. type: object
  27230. title: 编辑运营团队成员资料响应
  27231. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27232. required:
  27233. - code
  27234. - message
  27235. properties:
  27236. code:
  27237. type: integer
  27238. title: 业务码
  27239. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27240. example: 10000
  27241. message:
  27242. type: string
  27243. title: 响应消息
  27244. description: 成功或错误说明。
  27245. example: ok
  27246. error_code:
  27247. type: string
  27248. title: 稳定错误码
  27249. description: 失败时的 KLT-* 字符串;成功时不下发。
  27250. nullable: true
  27251. data:
  27252. $ref: '#/components/schemas/EntTeamMemberUpdateResult'
  27253. ApiResponseEntTeamMemberRemove:
  27254. type: object
  27255. title: 移除运营团队成员响应
  27256. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27257. required:
  27258. - code
  27259. - message
  27260. properties:
  27261. code:
  27262. type: integer
  27263. title: 业务码
  27264. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27265. example: 10000
  27266. message:
  27267. type: string
  27268. title: 响应消息
  27269. description: 成功或错误说明。
  27270. example: ok
  27271. error_code:
  27272. type: string
  27273. title: 稳定错误码
  27274. description: 失败时的 KLT-* 字符串;成功时不下发。
  27275. nullable: true
  27276. data:
  27277. $ref: '#/components/schemas/EntTeamMemberRemoveResult'
  27278. ApiResponseEntTeamTransferPrimary:
  27279. type: object
  27280. title: 转交运营团队主账号响应
  27281. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27282. required:
  27283. - code
  27284. - message
  27285. properties:
  27286. code:
  27287. type: integer
  27288. title: 业务码
  27289. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27290. example: 10000
  27291. message:
  27292. type: string
  27293. title: 响应消息
  27294. description: 成功或错误说明。
  27295. example: ok
  27296. error_code:
  27297. type: string
  27298. title: 稳定错误码
  27299. description: 失败时的 KLT-* 字符串;成功时不下发。
  27300. nullable: true
  27301. data:
  27302. $ref: '#/components/schemas/EntTeamTransferPrimaryResult'
  27303. ApiResponseEntTeamScopeGet:
  27304. type: object
  27305. title: 读取运营团队负责范围响应
  27306. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27307. required:
  27308. - code
  27309. - message
  27310. properties:
  27311. code:
  27312. type: integer
  27313. title: 业务码
  27314. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27315. example: 10000
  27316. message:
  27317. type: string
  27318. title: 响应消息
  27319. description: 成功或错误说明。
  27320. example: ok
  27321. error_code:
  27322. type: string
  27323. title: 稳定错误码
  27324. description: 失败时的 KLT-* 字符串;成功时不下发。
  27325. nullable: true
  27326. data:
  27327. $ref: '#/components/schemas/EntTeamScope'
  27328. ApiResponseEntTeamScopeSave:
  27329. type: object
  27330. title: 保存运营团队负责范围响应
  27331. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27332. required:
  27333. - code
  27334. - message
  27335. properties:
  27336. code:
  27337. type: integer
  27338. title: 业务码
  27339. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27340. example: 10000
  27341. message:
  27342. type: string
  27343. title: 响应消息
  27344. description: 成功或错误说明。
  27345. example: ok
  27346. error_code:
  27347. type: string
  27348. title: 稳定错误码
  27349. description: 失败时的 KLT-* 字符串;成功时不下发。
  27350. nullable: true
  27351. data:
  27352. $ref: '#/components/schemas/EntTeamScopeSaveResult'
  27353. ApiResponseOpsTeamCreate:
  27354. type: object
  27355. title: 新建运维团队响应
  27356. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27357. required:
  27358. - code
  27359. - message
  27360. properties:
  27361. code:
  27362. type: integer
  27363. title: 业务码
  27364. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27365. example: 10000
  27366. message:
  27367. type: string
  27368. title: 响应消息
  27369. description: 成功或错误说明。
  27370. example: ok
  27371. error_code:
  27372. type: string
  27373. title: 稳定错误码
  27374. description: 失败时的 KLT-* 字符串;成功时不下发。
  27375. nullable: true
  27376. data:
  27377. $ref: '#/components/schemas/OpsTeamCreateResult'
  27378. ApiResponseOpsTeamUpdate:
  27379. type: object
  27380. title: 编辑运维团队响应
  27381. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27382. required:
  27383. - code
  27384. - message
  27385. properties:
  27386. code:
  27387. type: integer
  27388. title: 业务码
  27389. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27390. example: 10000
  27391. message:
  27392. type: string
  27393. title: 响应消息
  27394. description: 成功或错误说明。
  27395. example: ok
  27396. error_code:
  27397. type: string
  27398. title: 稳定错误码
  27399. description: 失败时的 KLT-* 字符串;成功时不下发。
  27400. nullable: true
  27401. data:
  27402. $ref: '#/components/schemas/OpsTeamUpdateResult'
  27403. ApiResponseOpsTeamDelete:
  27404. type: object
  27405. title: 删除运维团队响应
  27406. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27407. required:
  27408. - code
  27409. - message
  27410. properties:
  27411. code:
  27412. type: integer
  27413. title: 业务码
  27414. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27415. example: 10000
  27416. message:
  27417. type: string
  27418. title: 响应消息
  27419. description: 成功或错误说明。
  27420. example: ok
  27421. error_code:
  27422. type: string
  27423. title: 稳定错误码
  27424. description: 失败时的 KLT-* 字符串;成功时不下发。
  27425. nullable: true
  27426. data:
  27427. $ref: '#/components/schemas/OpsTeamDeleteResult'
  27428. ApiResponseOpsTeamScopeSave:
  27429. type: object
  27430. title: 保存运维团队负责范围响应
  27431. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27432. required:
  27433. - code
  27434. - message
  27435. properties:
  27436. code:
  27437. type: integer
  27438. title: 业务码
  27439. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27440. example: 10000
  27441. message:
  27442. type: string
  27443. title: 响应消息
  27444. description: 成功或错误说明。
  27445. example: ok
  27446. error_code:
  27447. type: string
  27448. title: 稳定错误码
  27449. description: 失败时的 KLT-* 字符串;成功时不下发。
  27450. nullable: true
  27451. data:
  27452. $ref: '#/components/schemas/OpsTeamScopeSaveResult'
  27453. ApiResponseOpsTeamMemberAdd:
  27454. type: object
  27455. title: 添加运维成员响应
  27456. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27457. required:
  27458. - code
  27459. - message
  27460. properties:
  27461. code:
  27462. type: integer
  27463. title: 业务码
  27464. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27465. example: 10000
  27466. message:
  27467. type: string
  27468. title: 响应消息
  27469. description: 成功或错误说明。
  27470. example: ok
  27471. error_code:
  27472. type: string
  27473. title: 稳定错误码
  27474. description: 失败时的 KLT-* 字符串;成功时不下发。
  27475. nullable: true
  27476. data:
  27477. $ref: '#/components/schemas/OpsMemberAddResult'
  27478. ApiResponseOpsTeamMemberUpdate:
  27479. type: object
  27480. title: 更新运维成员响应
  27481. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27482. required:
  27483. - code
  27484. - message
  27485. properties:
  27486. code:
  27487. type: integer
  27488. title: 业务码
  27489. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27490. example: 10000
  27491. message:
  27492. type: string
  27493. title: 响应消息
  27494. description: 成功或错误说明。
  27495. example: ok
  27496. error_code:
  27497. type: string
  27498. title: 稳定错误码
  27499. description: 失败时的 KLT-* 字符串;成功时不下发。
  27500. nullable: true
  27501. data:
  27502. $ref: '#/components/schemas/OpsMemberUpdateResult'
  27503. ApiResponseOpsTeamTransferPrimary:
  27504. type: object
  27505. title: 转交运维团队主账号响应
  27506. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27507. required:
  27508. - code
  27509. - message
  27510. properties:
  27511. code:
  27512. type: integer
  27513. title: 业务码
  27514. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27515. example: 10000
  27516. message:
  27517. type: string
  27518. title: 响应消息
  27519. description: 成功或错误说明。
  27520. example: ok
  27521. error_code:
  27522. type: string
  27523. title: 稳定错误码
  27524. description: 失败时的 KLT-* 字符串;成功时不下发。
  27525. nullable: true
  27526. data:
  27527. $ref: '#/components/schemas/OpsTeamTransferPrimaryResult'
  27528. ApiResponseOpsTeamMemberRemove:
  27529. type: object
  27530. title: 移除运维成员响应
  27531. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27532. required:
  27533. - code
  27534. - message
  27535. properties:
  27536. code:
  27537. type: integer
  27538. title: 业务码
  27539. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27540. example: 10000
  27541. message:
  27542. type: string
  27543. title: 响应消息
  27544. description: 成功或错误说明。
  27545. example: ok
  27546. error_code:
  27547. type: string
  27548. title: 稳定错误码
  27549. description: 失败时的 KLT-* 字符串;成功时不下发。
  27550. nullable: true
  27551. data:
  27552. $ref: '#/components/schemas/OpsMemberRemoveResult'
  27553. ApiResponseOpsMemberScopeSave:
  27554. type: object
  27555. title: 保存运维成员负责范围响应
  27556. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27557. required:
  27558. - code
  27559. - message
  27560. properties:
  27561. code:
  27562. type: integer
  27563. title: 业务码
  27564. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27565. example: 10000
  27566. message:
  27567. type: string
  27568. title: 响应消息
  27569. description: 成功或错误说明。
  27570. example: ok
  27571. error_code:
  27572. type: string
  27573. title: 稳定错误码
  27574. description: 失败时的 KLT-* 字符串;成功时不下发。
  27575. nullable: true
  27576. data:
  27577. $ref: '#/components/schemas/OpsMemberScopeSaveResult'
  27578. ApiResponseOpsTeamDispatchModeUpdate:
  27579. type: object
  27580. title: 更新分派方式响应
  27581. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27582. required:
  27583. - code
  27584. - message
  27585. properties:
  27586. code:
  27587. type: integer
  27588. title: 业务码
  27589. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27590. example: 10000
  27591. message:
  27592. type: string
  27593. title: 响应消息
  27594. description: 成功或错误说明。
  27595. example: ok
  27596. error_code:
  27597. type: string
  27598. title: 稳定错误码
  27599. description: 失败时的 KLT-* 字符串;成功时不下发。
  27600. nullable: true
  27601. data:
  27602. $ref: '#/components/schemas/OpsTeamDispatchResult'
  27603. ApiResponseOpsTeamCoverageGet:
  27604. type: object
  27605. title: 运维团队覆盖客户响应
  27606. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27607. required:
  27608. - code
  27609. - message
  27610. properties:
  27611. code:
  27612. type: integer
  27613. title: 业务码
  27614. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27615. example: 10000
  27616. message:
  27617. type: string
  27618. title: 响应消息
  27619. description: 成功或错误说明。
  27620. example: ok
  27621. error_code:
  27622. type: string
  27623. title: 稳定错误码
  27624. description: 失败时的 KLT-* 字符串;成功时不下发。
  27625. nullable: true
  27626. data:
  27627. $ref: '#/components/schemas/OpsTeamCoverage'
  27628. ApiResponseCustomerCreate:
  27629. type: object
  27630. title: 新建客户响应
  27631. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27632. required:
  27633. - code
  27634. - message
  27635. properties:
  27636. code:
  27637. type: integer
  27638. title: 业务码
  27639. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27640. example: 10000
  27641. message:
  27642. type: string
  27643. title: 响应消息
  27644. description: 成功或错误说明。
  27645. example: ok
  27646. error_code:
  27647. type: string
  27648. title: 稳定错误码
  27649. description: 失败时的 KLT-* 字符串;成功时不下发。
  27650. nullable: true
  27651. data:
  27652. $ref: '#/components/schemas/CustomerCreateResult'
  27653. ApiResponseCustomerGetList:
  27654. type: object
  27655. title: 客户列表响应
  27656. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27657. required:
  27658. - code
  27659. - message
  27660. properties:
  27661. code:
  27662. type: integer
  27663. title: 业务码
  27664. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27665. example: 10000
  27666. message:
  27667. type: string
  27668. title: 响应消息
  27669. description: 成功或错误说明。
  27670. example: ok
  27671. error_code:
  27672. type: string
  27673. title: 稳定错误码
  27674. description: 失败时的 KLT-* 字符串;成功时不下发。
  27675. nullable: true
  27676. data:
  27677. $ref: '#/components/schemas/CustomerListResult'
  27678. ApiResponseCustomerGet:
  27679. type: object
  27680. title: 客户详情响应
  27681. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27682. required:
  27683. - code
  27684. - message
  27685. properties:
  27686. code:
  27687. type: integer
  27688. title: 业务码
  27689. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27690. example: 10000
  27691. message:
  27692. type: string
  27693. title: 响应消息
  27694. description: 成功或错误说明。
  27695. example: ok
  27696. error_code:
  27697. type: string
  27698. title: 稳定错误码
  27699. description: 失败时的 KLT-* 字符串;成功时不下发。
  27700. nullable: true
  27701. data:
  27702. $ref: '#/components/schemas/CustomerDetail'
  27703. ApiResponseCustomerUpdate:
  27704. type: object
  27705. title: 编辑客户响应
  27706. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27707. required:
  27708. - code
  27709. - message
  27710. properties:
  27711. code:
  27712. type: integer
  27713. title: 业务码
  27714. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27715. example: 10000
  27716. message:
  27717. type: string
  27718. title: 响应消息
  27719. description: 成功或错误说明。
  27720. example: ok
  27721. error_code:
  27722. type: string
  27723. title: 稳定错误码
  27724. description: 失败时的 KLT-* 字符串;成功时不下发。
  27725. nullable: true
  27726. data:
  27727. $ref: '#/components/schemas/CustomerUpdateResult'
  27728. ApiResponseCustomerDeletePrecheck:
  27729. type: object
  27730. title: 客户删除前置检查响应
  27731. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27732. required:
  27733. - code
  27734. - message
  27735. properties:
  27736. code:
  27737. type: integer
  27738. title: 业务码
  27739. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27740. example: 10000
  27741. message:
  27742. type: string
  27743. title: 响应消息
  27744. description: 成功或错误说明。
  27745. example: ok
  27746. error_code:
  27747. type: string
  27748. title: 稳定错误码
  27749. description: 失败时的 KLT-* 字符串;成功时不下发。
  27750. nullable: true
  27751. data:
  27752. $ref: '#/components/schemas/CustomerDeletePrecheck'
  27753. ApiResponseCustomerDelete:
  27754. type: object
  27755. title: 删除客户响应
  27756. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27757. required:
  27758. - code
  27759. - message
  27760. properties:
  27761. code:
  27762. type: integer
  27763. title: 业务码
  27764. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27765. example: 10000
  27766. message:
  27767. type: string
  27768. title: 响应消息
  27769. description: 成功或错误说明。
  27770. example: ok
  27771. error_code:
  27772. type: string
  27773. title: 稳定错误码
  27774. description: 失败时的 KLT-* 字符串;成功时不下发。
  27775. nullable: true
  27776. data:
  27777. $ref: '#/components/schemas/CustomerDeleteResult'
  27778. ApiResponseCustomerHistory:
  27779. type: object
  27780. title: 客户变更历史响应
  27781. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27782. required:
  27783. - code
  27784. - message
  27785. properties:
  27786. code:
  27787. type: integer
  27788. title: 业务码
  27789. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27790. example: 10000
  27791. message:
  27792. type: string
  27793. title: 响应消息
  27794. description: 成功或错误说明。
  27795. example: ok
  27796. error_code:
  27797. type: string
  27798. title: 稳定错误码
  27799. description: 失败时的 KLT-* 字符串;成功时不下发。
  27800. nullable: true
  27801. data:
  27802. $ref: '#/components/schemas/CustomerHistoryResult'
  27803. ApiResponseCustomerMountCandidates:
  27804. type: object
  27805. title: 改挂候选客户响应
  27806. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27807. required:
  27808. - code
  27809. - message
  27810. properties:
  27811. code:
  27812. type: integer
  27813. title: 业务码
  27814. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27815. example: 10000
  27816. message:
  27817. type: string
  27818. title: 响应消息
  27819. description: 成功或错误说明。
  27820. example: ok
  27821. error_code:
  27822. type: string
  27823. title: 稳定错误码
  27824. description: 失败时的 KLT-* 字符串;成功时不下发。
  27825. nullable: true
  27826. data:
  27827. $ref: '#/components/schemas/MountCandidatesResult'
  27828. ApiResponseCustomerInfluence:
  27829. type: object
  27830. title: 改挂影响面响应
  27831. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27832. required:
  27833. - code
  27834. - message
  27835. properties:
  27836. code:
  27837. type: integer
  27838. title: 业务码
  27839. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27840. example: 10000
  27841. message:
  27842. type: string
  27843. title: 响应消息
  27844. description: 成功或错误说明。
  27845. example: ok
  27846. error_code:
  27847. type: string
  27848. title: 稳定错误码
  27849. description: 失败时的 KLT-* 字符串;成功时不下发。
  27850. nullable: true
  27851. data:
  27852. $ref: '#/components/schemas/InfluenceItem'
  27853. ApiResponseCustomerMoveRegion:
  27854. type: object
  27855. title: 客户改挂区域响应
  27856. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27857. required:
  27858. - code
  27859. - message
  27860. properties:
  27861. code:
  27862. type: integer
  27863. title: 业务码
  27864. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27865. example: 10000
  27866. message:
  27867. type: string
  27868. title: 响应消息
  27869. description: 成功或错误说明。
  27870. example: ok
  27871. error_code:
  27872. type: string
  27873. title: 稳定错误码
  27874. description: 失败时的 KLT-* 字符串;成功时不下发。
  27875. nullable: true
  27876. data:
  27877. $ref: '#/components/schemas/CustomerMoveRegionResult'
  27878. ApiResponseCustomerAttributionUpdate:
  27879. type: object
  27880. title: 更新客户归属响应
  27881. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27882. required:
  27883. - code
  27884. - message
  27885. properties:
  27886. code:
  27887. type: integer
  27888. title: 业务码
  27889. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27890. example: 10000
  27891. message:
  27892. type: string
  27893. title: 响应消息
  27894. description: 成功或错误说明。
  27895. example: ok
  27896. error_code:
  27897. type: string
  27898. title: 稳定错误码
  27899. description: 失败时的 KLT-* 字符串;成功时不下发。
  27900. nullable: true
  27901. data:
  27902. $ref: '#/components/schemas/CustomerAttributionResult'
  27903. ApiResponseImportBatchTemplateDownload:
  27904. type: object
  27905. title: 下载导入模板响应
  27906. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27907. required:
  27908. - code
  27909. - message
  27910. properties:
  27911. code:
  27912. type: integer
  27913. title: 业务码
  27914. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27915. example: 10000
  27916. message:
  27917. type: string
  27918. title: 响应消息
  27919. description: 成功或错误说明。
  27920. example: ok
  27921. error_code:
  27922. type: string
  27923. title: 稳定错误码
  27924. description: 失败时的 KLT-* 字符串;成功时不下发。
  27925. nullable: true
  27926. data:
  27927. $ref: '#/components/schemas/ImportTemplateDownloadResult'
  27928. ApiResponseImportBatchTemplateDownloadPost:
  27929. type: object
  27930. title: 下载导入模板(POST 兼容)响应
  27931. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27932. required:
  27933. - code
  27934. - message
  27935. properties:
  27936. code:
  27937. type: integer
  27938. title: 业务码
  27939. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27940. example: 10000
  27941. message:
  27942. type: string
  27943. title: 响应消息
  27944. description: 成功或错误说明。
  27945. example: ok
  27946. error_code:
  27947. type: string
  27948. title: 稳定错误码
  27949. description: 失败时的 KLT-* 字符串;成功时不下发。
  27950. nullable: true
  27951. data:
  27952. $ref: '#/components/schemas/ImportTemplateSpec'
  27953. ApiResponseCustomerImportConfirm:
  27954. type: object
  27955. title: 确认导入(逐行建档)响应
  27956. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27957. required:
  27958. - code
  27959. - message
  27960. properties:
  27961. code:
  27962. type: integer
  27963. title: 业务码
  27964. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27965. example: 10000
  27966. message:
  27967. type: string
  27968. title: 响应消息
  27969. description: 成功或错误说明。
  27970. example: ok
  27971. error_code:
  27972. type: string
  27973. title: 稳定错误码
  27974. description: 失败时的 KLT-* 字符串;成功时不下发。
  27975. nullable: true
  27976. data:
  27977. $ref: '#/components/schemas/ImportConfirmResult'
  27978. ApiResponseImportBatchSubmit:
  27979. type: object
  27980. title: 提交客户批量导入响应
  27981. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  27982. required:
  27983. - code
  27984. - message
  27985. properties:
  27986. code:
  27987. type: integer
  27988. title: 业务码
  27989. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  27990. example: 10000
  27991. message:
  27992. type: string
  27993. title: 响应消息
  27994. description: 成功或错误说明。
  27995. example: ok
  27996. error_code:
  27997. type: string
  27998. title: 稳定错误码
  27999. description: 失败时的 KLT-* 字符串;成功时不下发。
  28000. nullable: true
  28001. data:
  28002. $ref: '#/components/schemas/ImportSubmitResult'
  28003. ApiResponseImportBatchGetList:
  28004. type: object
  28005. title: 导入批次列表响应
  28006. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28007. required:
  28008. - code
  28009. - message
  28010. properties:
  28011. code:
  28012. type: integer
  28013. title: 业务码
  28014. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28015. example: 10000
  28016. message:
  28017. type: string
  28018. title: 响应消息
  28019. description: 成功或错误说明。
  28020. example: ok
  28021. error_code:
  28022. type: string
  28023. title: 稳定错误码
  28024. description: 失败时的 KLT-* 字符串;成功时不下发。
  28025. nullable: true
  28026. data:
  28027. $ref: '#/components/schemas/ImportBatchListResult'
  28028. ApiResponseImportBatchGet:
  28029. type: object
  28030. title: 导入批次详情响应
  28031. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28032. required:
  28033. - code
  28034. - message
  28035. properties:
  28036. code:
  28037. type: integer
  28038. title: 业务码
  28039. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28040. example: 10000
  28041. message:
  28042. type: string
  28043. title: 响应消息
  28044. description: 成功或错误说明。
  28045. example: ok
  28046. error_code:
  28047. type: string
  28048. title: 稳定错误码
  28049. description: 失败时的 KLT-* 字符串;成功时不下发。
  28050. nullable: true
  28051. data:
  28052. $ref: '#/components/schemas/ImportBatchDetail'
  28053. ApiResponseImportBatchResume:
  28054. type: object
  28055. title: 失败行续传响应
  28056. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28057. required:
  28058. - code
  28059. - message
  28060. properties:
  28061. code:
  28062. type: integer
  28063. title: 业务码
  28064. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28065. example: 10000
  28066. message:
  28067. type: string
  28068. title: 响应消息
  28069. description: 成功或错误说明。
  28070. example: ok
  28071. error_code:
  28072. type: string
  28073. title: 稳定错误码
  28074. description: 失败时的 KLT-* 字符串;成功时不下发。
  28075. nullable: true
  28076. data:
  28077. $ref: '#/components/schemas/ImportResumeResult'
  28078. ApiResponseImportBatchExportCodes:
  28079. type: object
  28080. title: 按批次导出激活码响应
  28081. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28082. required:
  28083. - code
  28084. - message
  28085. properties:
  28086. code:
  28087. type: integer
  28088. title: 业务码
  28089. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28090. example: 10000
  28091. message:
  28092. type: string
  28093. title: 响应消息
  28094. description: 成功或错误说明。
  28095. example: ok
  28096. error_code:
  28097. type: string
  28098. title: 稳定错误码
  28099. description: 失败时的 KLT-* 字符串;成功时不下发。
  28100. nullable: true
  28101. data:
  28102. $ref: '#/components/schemas/ActivationCodeExportData'
  28103. ApiResponseImportBatchExportCustomers:
  28104. type: object
  28105. title: 按批次导出客户响应
  28106. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28107. required:
  28108. - code
  28109. - message
  28110. properties:
  28111. code:
  28112. type: integer
  28113. title: 业务码
  28114. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28115. example: 10000
  28116. message:
  28117. type: string
  28118. title: 响应消息
  28119. description: 成功或错误说明。
  28120. example: ok
  28121. error_code:
  28122. type: string
  28123. title: 稳定错误码
  28124. description: 失败时的 KLT-* 字符串;成功时不下发。
  28125. nullable: true
  28126. data:
  28127. $ref: '#/components/schemas/DeliveryExportResult'
  28128. ApiResponseSubAccountGetList:
  28129. type: object
  28130. title: 分账号列表响应
  28131. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28132. required:
  28133. - code
  28134. - message
  28135. properties:
  28136. code:
  28137. type: integer
  28138. title: 业务码
  28139. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28140. example: 10000
  28141. message:
  28142. type: string
  28143. title: 响应消息
  28144. description: 成功或错误说明。
  28145. example: ok
  28146. error_code:
  28147. type: string
  28148. title: 稳定错误码
  28149. description: 失败时的 KLT-* 字符串;成功时不下发。
  28150. nullable: true
  28151. data:
  28152. $ref: '#/components/schemas/SubAccountListResult'
  28153. ApiResponseSubAccountUpdate:
  28154. type: object
  28155. title: 更新分账号响应
  28156. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28157. required:
  28158. - code
  28159. - message
  28160. properties:
  28161. code:
  28162. type: integer
  28163. title: 业务码
  28164. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28165. example: 10000
  28166. message:
  28167. type: string
  28168. title: 响应消息
  28169. description: 成功或错误说明。
  28170. example: ok
  28171. error_code:
  28172. type: string
  28173. title: 稳定错误码
  28174. description: 失败时的 KLT-* 字符串;成功时不下发。
  28175. nullable: true
  28176. data:
  28177. $ref: '#/components/schemas/SubAccountUpdateResult'
  28178. ApiResponseDeliveryList:
  28179. type: object
  28180. title: 交付现状(在册资源一览)响应
  28181. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28182. required:
  28183. - code
  28184. - message
  28185. properties:
  28186. code:
  28187. type: integer
  28188. title: 业务码
  28189. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28190. example: 10000
  28191. message:
  28192. type: string
  28193. title: 响应消息
  28194. description: 成功或错误说明。
  28195. example: ok
  28196. error_code:
  28197. type: string
  28198. title: 稳定错误码
  28199. description: 失败时的 KLT-* 字符串;成功时不下发。
  28200. nullable: true
  28201. data:
  28202. $ref: '#/components/schemas/DeliveryListResult'
  28203. ApiResponseDeliveryExport:
  28204. type: object
  28205. title: 交付现状导出响应
  28206. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28207. required:
  28208. - code
  28209. - message
  28210. properties:
  28211. code:
  28212. type: integer
  28213. title: 业务码
  28214. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28215. example: 10000
  28216. message:
  28217. type: string
  28218. title: 响应消息
  28219. description: 成功或错误说明。
  28220. example: ok
  28221. error_code:
  28222. type: string
  28223. title: 稳定错误码
  28224. description: 失败时的 KLT-* 字符串;成功时不下发。
  28225. nullable: true
  28226. data:
  28227. $ref: '#/components/schemas/DeliveryExportResult'
  28228. ApiResponseLineExitGetList:
  28229. type: object
  28230. title: 线路出口目录列表响应
  28231. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28232. required:
  28233. - code
  28234. - message
  28235. properties:
  28236. code:
  28237. type: integer
  28238. title: 业务码
  28239. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28240. example: 10000
  28241. message:
  28242. type: string
  28243. title: 响应消息
  28244. description: 成功或错误说明。
  28245. example: ok
  28246. error_code:
  28247. type: string
  28248. title: 稳定错误码
  28249. description: 失败时的 KLT-* 字符串;成功时不下发。
  28250. nullable: true
  28251. data:
  28252. $ref: '#/components/schemas/LineExitListResult'
  28253. ApiResponseLineExitSave:
  28254. type: object
  28255. title: 线路出口目录整段全量替换响应
  28256. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28257. required:
  28258. - code
  28259. - message
  28260. properties:
  28261. code:
  28262. type: integer
  28263. title: 业务码
  28264. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28265. example: 10000
  28266. message:
  28267. type: string
  28268. title: 响应消息
  28269. description: 成功或错误说明。
  28270. example: ok
  28271. error_code:
  28272. type: string
  28273. title: 稳定错误码
  28274. description: 失败时的 KLT-* 字符串;成功时不下发。
  28275. nullable: true
  28276. data:
  28277. $ref: '#/components/schemas/LineExitSaveResult'
  28278. ApiResponseIpBandwidthTierGetList:
  28279. type: object
  28280. title: 带宽档位目录列表响应
  28281. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28282. required:
  28283. - code
  28284. - message
  28285. properties:
  28286. code:
  28287. type: integer
  28288. title: 业务码
  28289. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28290. example: 10000
  28291. message:
  28292. type: string
  28293. title: 响应消息
  28294. description: 成功或错误说明。
  28295. example: ok
  28296. error_code:
  28297. type: string
  28298. title: 稳定错误码
  28299. description: 失败时的 KLT-* 字符串;成功时不下发。
  28300. nullable: true
  28301. data:
  28302. $ref: '#/components/schemas/IpBandwidthTierListResult'
  28303. ApiResponseIpBandwidthTierSave:
  28304. type: object
  28305. title: 带宽档位目录整段全量替换响应
  28306. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28307. required:
  28308. - code
  28309. - message
  28310. properties:
  28311. code:
  28312. type: integer
  28313. title: 业务码
  28314. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28315. example: 10000
  28316. message:
  28317. type: string
  28318. title: 响应消息
  28319. description: 成功或错误说明。
  28320. example: ok
  28321. error_code:
  28322. type: string
  28323. title: 稳定错误码
  28324. description: 失败时的 KLT-* 字符串;成功时不下发。
  28325. nullable: true
  28326. data:
  28327. $ref: '#/components/schemas/IpBandwidthTierSaveResult'
  28328. ApiResponsePortalPlanBoard:
  28329. type: object
  28330. title: 客户侧「我的套餐」看板响应
  28331. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28332. required:
  28333. - code
  28334. - message
  28335. properties:
  28336. code:
  28337. type: integer
  28338. title: 业务码
  28339. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28340. example: 10000
  28341. message:
  28342. type: string
  28343. title: 响应消息
  28344. description: 成功或错误说明。
  28345. example: ok
  28346. error_code:
  28347. type: string
  28348. title: 稳定错误码
  28349. description: 失败时的 KLT-* 字符串;成功时不下发。
  28350. nullable: true
  28351. data:
  28352. $ref: '#/components/schemas/PortalPlanBoardResult'
  28353. ApiResponseCatalogCreate:
  28354. type: object
  28355. title: 新建套餐档位响应
  28356. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28357. required:
  28358. - code
  28359. - message
  28360. properties:
  28361. code:
  28362. type: integer
  28363. title: 业务码
  28364. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28365. example: 10000
  28366. message:
  28367. type: string
  28368. title: 响应消息
  28369. description: 成功或错误说明。
  28370. example: ok
  28371. error_code:
  28372. type: string
  28373. title: 稳定错误码
  28374. description: 失败时的 KLT-* 字符串;成功时不下发。
  28375. nullable: true
  28376. data:
  28377. $ref: '#/components/schemas/CatalogCreateResult'
  28378. ApiResponseCatalogUpdate:
  28379. type: object
  28380. title: 编辑套餐档位响应
  28381. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28382. required:
  28383. - code
  28384. - message
  28385. properties:
  28386. code:
  28387. type: integer
  28388. title: 业务码
  28389. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28390. example: 10000
  28391. message:
  28392. type: string
  28393. title: 响应消息
  28394. description: 成功或错误说明。
  28395. example: ok
  28396. error_code:
  28397. type: string
  28398. title: 稳定错误码
  28399. description: 失败时的 KLT-* 字符串;成功时不下发。
  28400. nullable: true
  28401. data:
  28402. $ref: '#/components/schemas/CatalogUpdateResult'
  28403. ApiResponseCatalogGetList:
  28404. type: object
  28405. title: 套餐档位列表响应
  28406. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28407. required:
  28408. - code
  28409. - message
  28410. properties:
  28411. code:
  28412. type: integer
  28413. title: 业务码
  28414. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28415. example: 10000
  28416. message:
  28417. type: string
  28418. title: 响应消息
  28419. description: 成功或错误说明。
  28420. example: ok
  28421. error_code:
  28422. type: string
  28423. title: 稳定错误码
  28424. description: 失败时的 KLT-* 字符串;成功时不下发。
  28425. nullable: true
  28426. data:
  28427. $ref: '#/components/schemas/CatalogListResult'
  28428. ApiResponseCatalogGet:
  28429. type: object
  28430. title: 套餐档位详情响应
  28431. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28432. required:
  28433. - code
  28434. - message
  28435. properties:
  28436. code:
  28437. type: integer
  28438. title: 业务码
  28439. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28440. example: 10000
  28441. message:
  28442. type: string
  28443. title: 响应消息
  28444. description: 成功或错误说明。
  28445. example: ok
  28446. error_code:
  28447. type: string
  28448. title: 稳定错误码
  28449. description: 失败时的 KLT-* 字符串;成功时不下发。
  28450. nullable: true
  28451. data:
  28452. $ref: '#/components/schemas/CatalogGetResult'
  28453. ApiResponseCatalogDelete:
  28454. type: object
  28455. title: 套餐档位条件删除响应
  28456. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28457. required:
  28458. - code
  28459. - message
  28460. properties:
  28461. code:
  28462. type: integer
  28463. title: 业务码
  28464. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28465. example: 10000
  28466. message:
  28467. type: string
  28468. title: 响应消息
  28469. description: 成功或错误说明。
  28470. example: ok
  28471. error_code:
  28472. type: string
  28473. title: 稳定错误码
  28474. description: 失败时的 KLT-* 字符串;成功时不下发。
  28475. nullable: true
  28476. data:
  28477. $ref: '#/components/schemas/CatalogDeleteResult'
  28478. ApiResponseCatalogCustomerOptions:
  28479. type: object
  28480. title: 归属客户下拉响应
  28481. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28482. required:
  28483. - code
  28484. - message
  28485. properties:
  28486. code:
  28487. type: integer
  28488. title: 业务码
  28489. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28490. example: 10000
  28491. message:
  28492. type: string
  28493. title: 响应消息
  28494. description: 成功或错误说明。
  28495. example: ok
  28496. error_code:
  28497. type: string
  28498. title: 稳定错误码
  28499. description: 失败时的 KLT-* 字符串;成功时不下发。
  28500. nullable: true
  28501. data:
  28502. $ref: '#/components/schemas/CustomerOption'
  28503. ApiResponsePlanCostItemGetList:
  28504. type: object
  28505. title: 档位随附成本项列表响应
  28506. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28507. required:
  28508. - code
  28509. - message
  28510. properties:
  28511. code:
  28512. type: integer
  28513. title: 业务码
  28514. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28515. example: 10000
  28516. message:
  28517. type: string
  28518. title: 响应消息
  28519. description: 成功或错误说明。
  28520. example: ok
  28521. error_code:
  28522. type: string
  28523. title: 稳定错误码
  28524. description: 失败时的 KLT-* 字符串;成功时不下发。
  28525. nullable: true
  28526. data:
  28527. $ref: '#/components/schemas/PlanCostItemListResult'
  28528. ApiResponsePlanCostItemSave:
  28529. type: object
  28530. title: 档位随附成本项整段全量替换响应
  28531. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28532. required:
  28533. - code
  28534. - message
  28535. properties:
  28536. code:
  28537. type: integer
  28538. title: 业务码
  28539. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28540. example: 10000
  28541. message:
  28542. type: string
  28543. title: 响应消息
  28544. description: 成功或错误说明。
  28545. example: ok
  28546. error_code:
  28547. type: string
  28548. title: 稳定错误码
  28549. description: 失败时的 KLT-* 字符串;成功时不下发。
  28550. nullable: true
  28551. data:
  28552. $ref: '#/components/schemas/PlanCostItemSaveResult'
  28553. ApiResponseContractCreate:
  28554. type: object
  28555. title: 新建合同响应
  28556. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28557. required:
  28558. - code
  28559. - message
  28560. properties:
  28561. code:
  28562. type: integer
  28563. title: 业务码
  28564. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28565. example: 10000
  28566. message:
  28567. type: string
  28568. title: 响应消息
  28569. description: 成功或错误说明。
  28570. example: ok
  28571. error_code:
  28572. type: string
  28573. title: 稳定错误码
  28574. description: 失败时的 KLT-* 字符串;成功时不下发。
  28575. nullable: true
  28576. data:
  28577. $ref: '#/components/schemas/ContractReplacementResult'
  28578. ApiResponseContractUpdate:
  28579. type: object
  28580. title: 编辑合同响应
  28581. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28582. required:
  28583. - code
  28584. - message
  28585. properties:
  28586. code:
  28587. type: integer
  28588. title: 业务码
  28589. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28590. example: 10000
  28591. message:
  28592. type: string
  28593. title: 响应消息
  28594. description: 成功或错误说明。
  28595. example: ok
  28596. error_code:
  28597. type: string
  28598. title: 稳定错误码
  28599. description: 失败时的 KLT-* 字符串;成功时不下发。
  28600. nullable: true
  28601. data:
  28602. $ref: '#/components/schemas/ContractUpdateResult'
  28603. ApiResponseContractGetList:
  28604. type: object
  28605. title: 合同列表响应
  28606. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28607. required:
  28608. - code
  28609. - message
  28610. properties:
  28611. code:
  28612. type: integer
  28613. title: 业务码
  28614. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28615. example: 10000
  28616. message:
  28617. type: string
  28618. title: 响应消息
  28619. description: 成功或错误说明。
  28620. example: ok
  28621. error_code:
  28622. type: string
  28623. title: 稳定错误码
  28624. description: 失败时的 KLT-* 字符串;成功时不下发。
  28625. nullable: true
  28626. data:
  28627. $ref: '#/components/schemas/ContractListResult'
  28628. ApiResponseContractChangeLog:
  28629. type: object
  28630. title: 合同修改记录响应
  28631. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28632. required:
  28633. - code
  28634. - message
  28635. properties:
  28636. code:
  28637. type: integer
  28638. title: 业务码
  28639. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28640. example: 10000
  28641. message:
  28642. type: string
  28643. title: 响应消息
  28644. description: 成功或错误说明。
  28645. example: ok
  28646. error_code:
  28647. type: string
  28648. title: 稳定错误码
  28649. description: 失败时的 KLT-* 字符串;成功时不下发。
  28650. nullable: true
  28651. data:
  28652. $ref: '#/components/schemas/ContractChangeLogItem'
  28653. ApiResponseContractGet:
  28654. type: object
  28655. title: 合同详情响应
  28656. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28657. required:
  28658. - code
  28659. - message
  28660. properties:
  28661. code:
  28662. type: integer
  28663. title: 业务码
  28664. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28665. example: 10000
  28666. message:
  28667. type: string
  28668. title: 响应消息
  28669. description: 成功或错误说明。
  28670. example: ok
  28671. error_code:
  28672. type: string
  28673. title: 稳定错误码
  28674. description: 失败时的 KLT-* 字符串;成功时不下发。
  28675. nullable: true
  28676. data:
  28677. $ref: '#/components/schemas/ContractEditScope'
  28678. ApiResponseContractCustomerLookup:
  28679. type: object
  28680. title: 合同客户身份解析响应
  28681. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28682. required:
  28683. - code
  28684. - message
  28685. properties:
  28686. code:
  28687. type: integer
  28688. title: 业务码
  28689. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28690. example: 10000
  28691. message:
  28692. type: string
  28693. title: 响应消息
  28694. description: 成功或错误说明。
  28695. example: ok
  28696. error_code:
  28697. type: string
  28698. title: 稳定错误码
  28699. description: 失败时的 KLT-* 字符串;成功时不下发。
  28700. nullable: true
  28701. data:
  28702. $ref: '#/components/schemas/ContractLookupResult'
  28703. ApiResponseContractDelete:
  28704. type: object
  28705. title: 合同条件删除响应
  28706. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28707. required:
  28708. - code
  28709. - message
  28710. properties:
  28711. code:
  28712. type: integer
  28713. title: 业务码
  28714. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28715. example: 10000
  28716. message:
  28717. type: string
  28718. title: 响应消息
  28719. description: 成功或错误说明。
  28720. example: ok
  28721. error_code:
  28722. type: string
  28723. title: 稳定错误码
  28724. description: 失败时的 KLT-* 字符串;成功时不下发。
  28725. nullable: true
  28726. data:
  28727. $ref: '#/components/schemas/ContractDeleteResult'
  28728. ApiResponseContractAttachmentDiscard:
  28729. type: object
  28730. title: 回收无人引用的上传附件(孤儿对象)响应
  28731. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28732. required:
  28733. - code
  28734. - message
  28735. properties:
  28736. code:
  28737. type: integer
  28738. title: 业务码
  28739. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28740. example: 10000
  28741. message:
  28742. type: string
  28743. title: 响应消息
  28744. description: 成功或错误说明。
  28745. example: ok
  28746. error_code:
  28747. type: string
  28748. title: 稳定错误码
  28749. description: 失败时的 KLT-* 字符串;成功时不下发。
  28750. nullable: true
  28751. data:
  28752. $ref: '#/components/schemas/ContractAttachmentDiscardResult'
  28753. ApiResponseSubscriptionCreate:
  28754. type: object
  28755. title: 新建订阅响应
  28756. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28757. required:
  28758. - code
  28759. - message
  28760. properties:
  28761. code:
  28762. type: integer
  28763. title: 业务码
  28764. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28765. example: 10000
  28766. message:
  28767. type: string
  28768. title: 响应消息
  28769. description: 成功或错误说明。
  28770. example: ok
  28771. error_code:
  28772. type: string
  28773. title: 稳定错误码
  28774. description: 失败时的 KLT-* 字符串;成功时不下发。
  28775. nullable: true
  28776. data:
  28777. $ref: '#/components/schemas/OrderCreateResult'
  28778. ApiResponseSubscriptionChange:
  28779. type: object
  28780. title: 订阅升降配响应
  28781. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28782. required:
  28783. - code
  28784. - message
  28785. properties:
  28786. code:
  28787. type: integer
  28788. title: 业务码
  28789. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28790. example: 10000
  28791. message:
  28792. type: string
  28793. title: 响应消息
  28794. description: 成功或错误说明。
  28795. example: ok
  28796. error_code:
  28797. type: string
  28798. title: 稳定错误码
  28799. description: 失败时的 KLT-* 字符串;成功时不下发。
  28800. nullable: true
  28801. data:
  28802. $ref: '#/components/schemas/OrderChangeResult'
  28803. ApiResponseSubscriptionReplacementCandidates:
  28804. type: object
  28805. title: 替换候选探测(只读)响应
  28806. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28807. required:
  28808. - code
  28809. - message
  28810. properties:
  28811. code:
  28812. type: integer
  28813. title: 业务码
  28814. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28815. example: 10000
  28816. message:
  28817. type: string
  28818. title: 响应消息
  28819. description: 成功或错误说明。
  28820. example: ok
  28821. error_code:
  28822. type: string
  28823. title: 稳定错误码
  28824. description: 失败时的 KLT-* 字符串;成功时不下发。
  28825. nullable: true
  28826. data:
  28827. $ref: '#/components/schemas/ReplacementProbeReq'
  28828. ApiResponseSubscriptionStack:
  28829. type: object
  28830. title: 订阅叠加(已停用 · 请改走 create)响应
  28831. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28832. required:
  28833. - code
  28834. - message
  28835. properties:
  28836. code:
  28837. type: integer
  28838. title: 业务码
  28839. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28840. example: 10000
  28841. message:
  28842. type: string
  28843. title: 响应消息
  28844. description: 成功或错误说明。
  28845. example: ok
  28846. error_code:
  28847. type: string
  28848. title: 稳定错误码
  28849. description: 失败时的 KLT-* 字符串;成功时不下发。
  28850. nullable: true
  28851. data:
  28852. $ref: '#/components/schemas/OrderStackResult'
  28853. ApiResponseSubscriptionGetList:
  28854. type: object
  28855. title: 订阅列表响应
  28856. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28857. required:
  28858. - code
  28859. - message
  28860. properties:
  28861. code:
  28862. type: integer
  28863. title: 业务码
  28864. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28865. example: 10000
  28866. message:
  28867. type: string
  28868. title: 响应消息
  28869. description: 成功或错误说明。
  28870. example: ok
  28871. error_code:
  28872. type: string
  28873. title: 稳定错误码
  28874. description: 失败时的 KLT-* 字符串;成功时不下发。
  28875. nullable: true
  28876. data:
  28877. $ref: '#/components/schemas/OrderListResult'
  28878. ApiResponseSubscriptionGet:
  28879. type: object
  28880. title: 订阅详情响应
  28881. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28882. required:
  28883. - code
  28884. - message
  28885. properties:
  28886. code:
  28887. type: integer
  28888. title: 业务码
  28889. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28890. example: 10000
  28891. message:
  28892. type: string
  28893. title: 响应消息
  28894. description: 成功或错误说明。
  28895. example: ok
  28896. error_code:
  28897. type: string
  28898. title: 稳定错误码
  28899. description: 失败时的 KLT-* 字符串;成功时不下发。
  28900. nullable: true
  28901. data:
  28902. $ref: '#/components/schemas/OrderGetResult'
  28903. ApiResponseSubscriptionPlanOptions:
  28904. type: object
  28905. title: 订阅档位候选响应
  28906. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28907. required:
  28908. - code
  28909. - message
  28910. properties:
  28911. code:
  28912. type: integer
  28913. title: 业务码
  28914. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28915. example: 10000
  28916. message:
  28917. type: string
  28918. title: 响应消息
  28919. description: 成功或错误说明。
  28920. example: ok
  28921. error_code:
  28922. type: string
  28923. title: 稳定错误码
  28924. description: 失败时的 KLT-* 字符串;成功时不下发。
  28925. nullable: true
  28926. data:
  28927. $ref: '#/components/schemas/OrderPlanOption'
  28928. ApiResponseSubscriptionContractOptions:
  28929. type: object
  28930. title: 未开通合同与服务条目候选响应
  28931. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28932. required:
  28933. - code
  28934. - message
  28935. properties:
  28936. code:
  28937. type: integer
  28938. title: 业务码
  28939. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28940. example: 10000
  28941. message:
  28942. type: string
  28943. title: 响应消息
  28944. description: 成功或错误说明。
  28945. example: ok
  28946. error_code:
  28947. type: string
  28948. title: 稳定错误码
  28949. description: 失败时的 KLT-* 字符串;成功时不下发。
  28950. nullable: true
  28951. data:
  28952. $ref: '#/components/schemas/OrderContractItemOption'
  28953. ApiResponseSubscriptionUpdate:
  28954. type: object
  28955. title: 订阅修改(白名单)响应
  28956. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28957. required:
  28958. - code
  28959. - message
  28960. properties:
  28961. code:
  28962. type: integer
  28963. title: 业务码
  28964. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28965. example: 10000
  28966. message:
  28967. type: string
  28968. title: 响应消息
  28969. description: 成功或错误说明。
  28970. example: ok
  28971. error_code:
  28972. type: string
  28973. title: 稳定错误码
  28974. description: 失败时的 KLT-* 字符串;成功时不下发。
  28975. nullable: true
  28976. data:
  28977. $ref: '#/components/schemas/OrderUpdateResult'
  28978. ApiResponseSubscriptionDeleteCheck:
  28979. type: object
  28980. title: 订阅删除前阻塞检查响应
  28981. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  28982. required:
  28983. - code
  28984. - message
  28985. properties:
  28986. code:
  28987. type: integer
  28988. title: 业务码
  28989. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  28990. example: 10000
  28991. message:
  28992. type: string
  28993. title: 响应消息
  28994. description: 成功或错误说明。
  28995. example: ok
  28996. error_code:
  28997. type: string
  28998. title: 稳定错误码
  28999. description: 失败时的 KLT-* 字符串;成功时不下发。
  29000. nullable: true
  29001. data:
  29002. $ref: '#/components/schemas/OrderDeleteCheckResult'
  29003. ApiResponseSubscriptionDelete:
  29004. type: object
  29005. title: 删除订阅并回退额度响应
  29006. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29007. required:
  29008. - code
  29009. - message
  29010. properties:
  29011. code:
  29012. type: integer
  29013. title: 业务码
  29014. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29015. example: 10000
  29016. message:
  29017. type: string
  29018. title: 响应消息
  29019. description: 成功或错误说明。
  29020. example: ok
  29021. error_code:
  29022. type: string
  29023. title: 稳定错误码
  29024. description: 失败时的 KLT-* 字符串;成功时不下发。
  29025. nullable: true
  29026. data:
  29027. $ref: '#/components/schemas/OrderDeleteResult'
  29028. ApiResponseSubscriptionListAll:
  29029. type: object
  29030. title: 全部订阅(跨客户)响应
  29031. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29032. required:
  29033. - code
  29034. - message
  29035. properties:
  29036. code:
  29037. type: integer
  29038. title: 业务码
  29039. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29040. example: 10000
  29041. message:
  29042. type: string
  29043. title: 响应消息
  29044. description: 成功或错误说明。
  29045. example: ok
  29046. error_code:
  29047. type: string
  29048. title: 稳定错误码
  29049. description: 失败时的 KLT-* 字符串;成功时不下发。
  29050. nullable: true
  29051. data:
  29052. $ref: '#/components/schemas/OrderListResult'
  29053. ApiResponseCostItemSave:
  29054. type: object
  29055. title: 保存成本项定义响应
  29056. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29057. required:
  29058. - code
  29059. - message
  29060. properties:
  29061. code:
  29062. type: integer
  29063. title: 业务码
  29064. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29065. example: 10000
  29066. message:
  29067. type: string
  29068. title: 响应消息
  29069. description: 成功或错误说明。
  29070. example: ok
  29071. error_code:
  29072. type: string
  29073. title: 稳定错误码
  29074. description: 失败时的 KLT-* 字符串;成功时不下发。
  29075. nullable: true
  29076. data:
  29077. $ref: '#/components/schemas/CostItemSaveResult'
  29078. ApiResponseCostItemDelete:
  29079. type: object
  29080. title: 删除成本项定义响应
  29081. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29082. required:
  29083. - code
  29084. - message
  29085. properties:
  29086. code:
  29087. type: integer
  29088. title: 业务码
  29089. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29090. example: 10000
  29091. message:
  29092. type: string
  29093. title: 响应消息
  29094. description: 成功或错误说明。
  29095. example: ok
  29096. error_code:
  29097. type: string
  29098. title: 稳定错误码
  29099. description: 失败时的 KLT-* 字符串;成功时不下发。
  29100. nullable: true
  29101. data:
  29102. $ref: '#/components/schemas/CostItemDeleteResult'
  29103. ApiResponseCostItemGetList:
  29104. type: object
  29105. title: 成本项列表响应
  29106. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29107. required:
  29108. - code
  29109. - message
  29110. properties:
  29111. code:
  29112. type: integer
  29113. title: 业务码
  29114. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29115. example: 10000
  29116. message:
  29117. type: string
  29118. title: 响应消息
  29119. description: 成功或错误说明。
  29120. example: ok
  29121. error_code:
  29122. type: string
  29123. title: 稳定错误码
  29124. description: 失败时的 KLT-* 字符串;成功时不下发。
  29125. nullable: true
  29126. data:
  29127. $ref: '#/components/schemas/CostItemListResult'
  29128. ApiResponseCostAmountSave:
  29129. type: object
  29130. title: 保存成本金额响应
  29131. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29132. required:
  29133. - code
  29134. - message
  29135. properties:
  29136. code:
  29137. type: integer
  29138. title: 业务码
  29139. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29140. example: 10000
  29141. message:
  29142. type: string
  29143. title: 响应消息
  29144. description: 成功或错误说明。
  29145. example: ok
  29146. error_code:
  29147. type: string
  29148. title: 稳定错误码
  29149. description: 失败时的 KLT-* 字符串;成功时不下发。
  29150. nullable: true
  29151. data:
  29152. $ref: '#/components/schemas/CostAmountSaveResult'
  29153. ApiResponseCostAmountGetList:
  29154. type: object
  29155. title: 成本金额一览响应
  29156. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29157. required:
  29158. - code
  29159. - message
  29160. properties:
  29161. code:
  29162. type: integer
  29163. title: 业务码
  29164. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29165. example: 10000
  29166. message:
  29167. type: string
  29168. title: 响应消息
  29169. description: 成功或错误说明。
  29170. example: ok
  29171. error_code:
  29172. type: string
  29173. title: 稳定错误码
  29174. description: 失败时的 KLT-* 字符串;成功时不下发。
  29175. nullable: true
  29176. data:
  29177. $ref: '#/components/schemas/CostAmountListResult'
  29178. ApiResponseShareRuleSave:
  29179. type: object
  29180. title: 保存分成规则响应
  29181. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29182. required:
  29183. - code
  29184. - message
  29185. properties:
  29186. code:
  29187. type: integer
  29188. title: 业务码
  29189. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29190. example: 10000
  29191. message:
  29192. type: string
  29193. title: 响应消息
  29194. description: 成功或错误说明。
  29195. example: ok
  29196. error_code:
  29197. type: string
  29198. title: 稳定错误码
  29199. description: 失败时的 KLT-* 字符串;成功时不下发。
  29200. nullable: true
  29201. data:
  29202. $ref: '#/components/schemas/ShareRuleSaveResult'
  29203. ApiResponseShareRuleGetList:
  29204. type: object
  29205. title: 分成规则列表响应
  29206. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29207. required:
  29208. - code
  29209. - message
  29210. properties:
  29211. code:
  29212. type: integer
  29213. title: 业务码
  29214. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29215. example: 10000
  29216. message:
  29217. type: string
  29218. title: 响应消息
  29219. description: 成功或错误说明。
  29220. example: ok
  29221. error_code:
  29222. type: string
  29223. title: 稳定错误码
  29224. description: 失败时的 KLT-* 字符串;成功时不下发。
  29225. nullable: true
  29226. data:
  29227. $ref: '#/components/schemas/ShareRuleListResult'
  29228. ApiResponseShareRuleGet:
  29229. type: object
  29230. title: 分成规则详情响应
  29231. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29232. required:
  29233. - code
  29234. - message
  29235. properties:
  29236. code:
  29237. type: integer
  29238. title: 业务码
  29239. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29240. example: 10000
  29241. message:
  29242. type: string
  29243. title: 响应消息
  29244. description: 成功或错误说明。
  29245. example: ok
  29246. error_code:
  29247. type: string
  29248. title: 稳定错误码
  29249. description: 失败时的 KLT-* 字符串;成功时不下发。
  29250. nullable: true
  29251. data:
  29252. $ref: '#/components/schemas/ShareRuleDetail'
  29253. ApiResponseShareRuleDelete:
  29254. type: object
  29255. title: 删除分成规则响应
  29256. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29257. required:
  29258. - code
  29259. - message
  29260. properties:
  29261. code:
  29262. type: integer
  29263. title: 业务码
  29264. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29265. example: 10000
  29266. message:
  29267. type: string
  29268. title: 响应消息
  29269. description: 成功或错误说明。
  29270. example: ok
  29271. error_code:
  29272. type: string
  29273. title: 稳定错误码
  29274. description: 失败时的 KLT-* 字符串;成功时不下发。
  29275. nullable: true
  29276. data:
  29277. $ref: '#/components/schemas/ShareRuleDeleteResult'
  29278. ApiResponseOpsviewHome:
  29279. type: object
  29280. title: 运维只读首页响应
  29281. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29282. required:
  29283. - code
  29284. - message
  29285. properties:
  29286. code:
  29287. type: integer
  29288. title: 业务码
  29289. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29290. example: 10000
  29291. message:
  29292. type: string
  29293. title: 响应消息
  29294. description: 成功或错误说明。
  29295. example: ok
  29296. error_code:
  29297. type: string
  29298. title: 稳定错误码
  29299. description: 失败时的 KLT-* 字符串;成功时不下发。
  29300. nullable: true
  29301. data:
  29302. $ref: '#/components/schemas/OverviewStat'
  29303. ApiResponseJobsGetList:
  29304. type: object
  29305. title: 定时作业清单响应
  29306. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29307. required:
  29308. - code
  29309. - message
  29310. properties:
  29311. code:
  29312. type: integer
  29313. title: 业务码
  29314. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29315. example: 10000
  29316. message:
  29317. type: string
  29318. title: 响应消息
  29319. description: 成功或错误说明。
  29320. example: ok
  29321. error_code:
  29322. type: string
  29323. title: 稳定错误码
  29324. description: 失败时的 KLT-* 字符串;成功时不下发。
  29325. nullable: true
  29326. data:
  29327. $ref: '#/components/schemas/JobSpecRow'
  29328. ApiResponseJobsToggle:
  29329. type: object
  29330. title: 启停定时作业响应
  29331. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29332. required:
  29333. - code
  29334. - message
  29335. properties:
  29336. code:
  29337. type: integer
  29338. title: 业务码
  29339. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29340. example: 10000
  29341. message:
  29342. type: string
  29343. title: 响应消息
  29344. description: 成功或错误说明。
  29345. example: ok
  29346. error_code:
  29347. type: string
  29348. title: 稳定错误码
  29349. description: 失败时的 KLT-* 字符串;成功时不下发。
  29350. nullable: true
  29351. data:
  29352. $ref: '#/components/schemas/JobToggleResult'
  29353. ApiResponseJobsRuns:
  29354. type: object
  29355. title: 作业执行记录响应
  29356. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29357. required:
  29358. - code
  29359. - message
  29360. properties:
  29361. code:
  29362. type: integer
  29363. title: 业务码
  29364. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29365. example: 10000
  29366. message:
  29367. type: string
  29368. title: 响应消息
  29369. description: 成功或错误说明。
  29370. example: ok
  29371. error_code:
  29372. type: string
  29373. title: 稳定错误码
  29374. description: 失败时的 KLT-* 字符串;成功时不下发。
  29375. nullable: true
  29376. data:
  29377. $ref: '#/components/schemas/JobRunRow'
  29378. ApiResponseJobsRunOnce:
  29379. type: object
  29380. title: 补跑作业一次响应
  29381. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29382. required:
  29383. - code
  29384. - message
  29385. properties:
  29386. code:
  29387. type: integer
  29388. title: 业务码
  29389. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29390. example: 10000
  29391. message:
  29392. type: string
  29393. title: 响应消息
  29394. description: 成功或错误说明。
  29395. example: ok
  29396. error_code:
  29397. type: string
  29398. title: 稳定错误码
  29399. description: 失败时的 KLT-* 字符串;成功时不下发。
  29400. nullable: true
  29401. data:
  29402. $ref: '#/components/schemas/JobRunReport'
  29403. ApiResponseShareRuleParamSummary:
  29404. type: object
  29405. title: 分成参数摘要响应
  29406. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29407. required:
  29408. - code
  29409. - message
  29410. properties:
  29411. code:
  29412. type: integer
  29413. title: 业务码
  29414. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29415. example: 10000
  29416. message:
  29417. type: string
  29418. title: 响应消息
  29419. description: 成功或错误说明。
  29420. example: ok
  29421. error_code:
  29422. type: string
  29423. title: 稳定错误码
  29424. description: 失败时的 KLT-* 字符串;成功时不下发。
  29425. nullable: true
  29426. data:
  29427. $ref: '#/components/schemas/ShareParamSummaryRequest'
  29428. ApiResponseBillingConfigGet:
  29429. type: object
  29430. title: 出账配置读响应
  29431. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29432. required:
  29433. - code
  29434. - message
  29435. properties:
  29436. code:
  29437. type: integer
  29438. title: 业务码
  29439. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29440. example: 10000
  29441. message:
  29442. type: string
  29443. title: 响应消息
  29444. description: 成功或错误说明。
  29445. example: ok
  29446. error_code:
  29447. type: string
  29448. title: 稳定错误码
  29449. description: 失败时的 KLT-* 字符串;成功时不下发。
  29450. nullable: true
  29451. data:
  29452. $ref: '#/components/schemas/BillingConfigResult'
  29453. ApiResponseBillingConfigUpdate:
  29454. type: object
  29455. title: 出账配置写响应
  29456. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29457. required:
  29458. - code
  29459. - message
  29460. properties:
  29461. code:
  29462. type: integer
  29463. title: 业务码
  29464. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29465. example: 10000
  29466. message:
  29467. type: string
  29468. title: 响应消息
  29469. description: 成功或错误说明。
  29470. example: ok
  29471. error_code:
  29472. type: string
  29473. title: 稳定错误码
  29474. description: 失败时的 KLT-* 字符串;成功时不下发。
  29475. nullable: true
  29476. data:
  29477. $ref: '#/components/schemas/BillingConfigUpdateResult'
  29478. ApiResponseReconPeriods:
  29479. type: object
  29480. title: 对账期次下拉响应
  29481. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29482. required:
  29483. - code
  29484. - message
  29485. properties:
  29486. code:
  29487. type: integer
  29488. title: 业务码
  29489. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29490. example: 10000
  29491. message:
  29492. type: string
  29493. title: 响应消息
  29494. description: 成功或错误说明。
  29495. example: ok
  29496. error_code:
  29497. type: string
  29498. title: 稳定错误码
  29499. description: 失败时的 KLT-* 字符串;成功时不下发。
  29500. nullable: true
  29501. data:
  29502. $ref: '#/components/schemas/ReconPeriodsResult'
  29503. ApiResponseReconGetList:
  29504. type: object
  29505. title: 对账批次清单响应
  29506. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29507. required:
  29508. - code
  29509. - message
  29510. properties:
  29511. code:
  29512. type: integer
  29513. title: 业务码
  29514. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29515. example: 10000
  29516. message:
  29517. type: string
  29518. title: 响应消息
  29519. description: 成功或错误说明。
  29520. example: ok
  29521. error_code:
  29522. type: string
  29523. title: 稳定错误码
  29524. description: 失败时的 KLT-* 字符串;成功时不下发。
  29525. nullable: true
  29526. data:
  29527. $ref: '#/components/schemas/ReconBatchRow'
  29528. ApiResponseReconDetail:
  29529. type: object
  29530. title: 对账批次详情响应
  29531. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29532. required:
  29533. - code
  29534. - message
  29535. properties:
  29536. code:
  29537. type: integer
  29538. title: 业务码
  29539. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29540. example: 10000
  29541. message:
  29542. type: string
  29543. title: 响应消息
  29544. description: 成功或错误说明。
  29545. example: ok
  29546. error_code:
  29547. type: string
  29548. title: 稳定错误码
  29549. description: 失败时的 KLT-* 字符串;成功时不下发。
  29550. nullable: true
  29551. data:
  29552. $ref: '#/components/schemas/ReconDetailResult'
  29553. ApiResponseReconRerun:
  29554. type: object
  29555. title: 人工补跑出账响应
  29556. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29557. required:
  29558. - code
  29559. - message
  29560. properties:
  29561. code:
  29562. type: integer
  29563. title: 业务码
  29564. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29565. example: 10000
  29566. message:
  29567. type: string
  29568. title: 响应消息
  29569. description: 成功或错误说明。
  29570. example: ok
  29571. error_code:
  29572. type: string
  29573. title: 稳定错误码
  29574. description: 失败时的 KLT-* 字符串;成功时不下发。
  29575. nullable: true
  29576. data:
  29577. $ref: '#/components/schemas/ReconRerunResult'
  29578. ApiResponseReconExportList:
  29579. type: object
  29580. title: 导出对账清单(B 表)响应
  29581. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29582. required:
  29583. - code
  29584. - message
  29585. properties:
  29586. code:
  29587. type: integer
  29588. title: 业务码
  29589. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29590. example: 10000
  29591. message:
  29592. type: string
  29593. title: 响应消息
  29594. description: 成功或错误说明。
  29595. example: ok
  29596. error_code:
  29597. type: string
  29598. title: 稳定错误码
  29599. description: 失败时的 KLT-* 字符串;成功时不下发。
  29600. nullable: true
  29601. data:
  29602. $ref: '#/components/schemas/ReconExportResult'
  29603. ApiResponseReconExportDetail:
  29604. type: object
  29605. title: 导出账单明细(A 表)响应
  29606. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29607. required:
  29608. - code
  29609. - message
  29610. properties:
  29611. code:
  29612. type: integer
  29613. title: 业务码
  29614. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29615. example: 10000
  29616. message:
  29617. type: string
  29618. title: 响应消息
  29619. description: 成功或错误说明。
  29620. example: ok
  29621. error_code:
  29622. type: string
  29623. title: 稳定错误码
  29624. description: 失败时的 KLT-* 字符串;成功时不下发。
  29625. nullable: true
  29626. data:
  29627. $ref: '#/components/schemas/ReconExportResult'
  29628. ApiResponseViewPartnerRecon:
  29629. type: object
  29630. title: 合伙人与运维团队本方对账合并页响应
  29631. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29632. required:
  29633. - code
  29634. - message
  29635. properties:
  29636. code:
  29637. type: integer
  29638. title: 业务码
  29639. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29640. example: 10000
  29641. message:
  29642. type: string
  29643. title: 响应消息
  29644. description: 成功或错误说明。
  29645. example: ok
  29646. error_code:
  29647. type: string
  29648. title: 稳定错误码
  29649. description: 失败时的 KLT-* 字符串;成功时不下发。
  29650. nullable: true
  29651. data:
  29652. $ref: '#/components/schemas/ViewPartnerReconResult'
  29653. ApiResponseBillGetList:
  29654. type: object
  29655. title: 账单明细清单响应
  29656. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29657. required:
  29658. - code
  29659. - message
  29660. properties:
  29661. code:
  29662. type: integer
  29663. title: 业务码
  29664. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29665. example: 10000
  29666. message:
  29667. type: string
  29668. title: 响应消息
  29669. description: 成功或错误说明。
  29670. example: ok
  29671. error_code:
  29672. type: string
  29673. title: 稳定错误码
  29674. description: 失败时的 KLT-* 字符串;成功时不下发。
  29675. nullable: true
  29676. data:
  29677. $ref: '#/components/schemas/BillLineRow'
  29678. ApiResponseBillDetail:
  29679. type: object
  29680. title: 账单明细详情响应
  29681. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29682. required:
  29683. - code
  29684. - message
  29685. properties:
  29686. code:
  29687. type: integer
  29688. title: 业务码
  29689. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29690. example: 10000
  29691. message:
  29692. type: string
  29693. title: 响应消息
  29694. description: 成功或错误说明。
  29695. example: ok
  29696. error_code:
  29697. type: string
  29698. title: 稳定错误码
  29699. description: 失败时的 KLT-* 字符串;成功时不下发。
  29700. nullable: true
  29701. data:
  29702. $ref: '#/components/schemas/BillDetailResult'
  29703. ApiResponseCorrectionCreate:
  29704. type: object
  29705. title: 登记出账更正响应
  29706. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29707. required:
  29708. - code
  29709. - message
  29710. properties:
  29711. code:
  29712. type: integer
  29713. title: 业务码
  29714. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29715. example: 10000
  29716. message:
  29717. type: string
  29718. title: 响应消息
  29719. description: 成功或错误说明。
  29720. example: ok
  29721. error_code:
  29722. type: string
  29723. title: 稳定错误码
  29724. description: 失败时的 KLT-* 字符串;成功时不下发。
  29725. nullable: true
  29726. data:
  29727. $ref: '#/components/schemas/CorrectionCreateResult'
  29728. ApiResponseCorrectionGetList:
  29729. type: object
  29730. title: 出账更正列表响应
  29731. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29732. required:
  29733. - code
  29734. - message
  29735. properties:
  29736. code:
  29737. type: integer
  29738. title: 业务码
  29739. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29740. example: 10000
  29741. message:
  29742. type: string
  29743. title: 响应消息
  29744. description: 成功或错误说明。
  29745. example: ok
  29746. error_code:
  29747. type: string
  29748. title: 稳定错误码
  29749. description: 失败时的 KLT-* 字符串;成功时不下发。
  29750. nullable: true
  29751. data:
  29752. $ref: '#/components/schemas/CorrectionRow'
  29753. ApiResponseCorrectionDetail:
  29754. type: object
  29755. title: 出账更正详情响应
  29756. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29757. required:
  29758. - code
  29759. - message
  29760. properties:
  29761. code:
  29762. type: integer
  29763. title: 业务码
  29764. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29765. example: 10000
  29766. message:
  29767. type: string
  29768. title: 响应消息
  29769. description: 成功或错误说明。
  29770. example: ok
  29771. error_code:
  29772. type: string
  29773. title: 稳定错误码
  29774. description: 失败时的 KLT-* 字符串;成功时不下发。
  29775. nullable: true
  29776. data:
  29777. $ref: '#/components/schemas/CorrectionDetailResult'
  29778. ApiResponseCorrectionDraftSave:
  29779. type: object
  29780. title: 保存更正草稿响应
  29781. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29782. required:
  29783. - code
  29784. - message
  29785. properties:
  29786. code:
  29787. type: integer
  29788. title: 业务码
  29789. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29790. example: 10000
  29791. message:
  29792. type: string
  29793. title: 响应消息
  29794. description: 成功或错误说明。
  29795. example: ok
  29796. error_code:
  29797. type: string
  29798. title: 稳定错误码
  29799. description: 失败时的 KLT-* 字符串;成功时不下发。
  29800. nullable: true
  29801. data:
  29802. $ref: '#/components/schemas/CorrectionDraftSaveResult'
  29803. ApiResponseCorrectionDraftGet:
  29804. type: object
  29805. title: 读取更正草稿响应
  29806. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29807. required:
  29808. - code
  29809. - message
  29810. properties:
  29811. code:
  29812. type: integer
  29813. title: 业务码
  29814. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29815. example: 10000
  29816. message:
  29817. type: string
  29818. title: 响应消息
  29819. description: 成功或错误说明。
  29820. example: ok
  29821. error_code:
  29822. type: string
  29823. title: 稳定错误码
  29824. description: 失败时的 KLT-* 字符串;成功时不下发。
  29825. nullable: true
  29826. data:
  29827. $ref: '#/components/schemas/CorrectionDraftResult'
  29828. ApiResponseTicketList:
  29829. type: object
  29830. title: 工单列表查询响应
  29831. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29832. required:
  29833. - code
  29834. - message
  29835. properties:
  29836. code:
  29837. type: integer
  29838. title: 业务码
  29839. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29840. example: 10000
  29841. message:
  29842. type: string
  29843. title: 响应消息
  29844. description: 成功或错误说明。
  29845. example: ok
  29846. error_code:
  29847. type: string
  29848. title: 稳定错误码
  29849. description: 失败时的 KLT-* 字符串;成功时不下发。
  29850. nullable: true
  29851. data:
  29852. $ref: '#/components/schemas/TicketListResult'
  29853. ApiResponseTicketDetail:
  29854. type: object
  29855. title: 工单详情查询响应
  29856. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29857. required:
  29858. - code
  29859. - message
  29860. properties:
  29861. code:
  29862. type: integer
  29863. title: 业务码
  29864. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29865. example: 10000
  29866. message:
  29867. type: string
  29868. title: 响应消息
  29869. description: 成功或错误说明。
  29870. example: ok
  29871. error_code:
  29872. type: string
  29873. title: 稳定错误码
  29874. description: 失败时的 KLT-* 字符串;成功时不下发。
  29875. nullable: true
  29876. data:
  29877. $ref: '#/components/schemas/TicketDetail'
  29878. ApiResponseTicketPendingQueue:
  29879. type: object
  29880. title: 待分派队列查询响应
  29881. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29882. required:
  29883. - code
  29884. - message
  29885. properties:
  29886. code:
  29887. type: integer
  29888. title: 业务码
  29889. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29890. example: 10000
  29891. message:
  29892. type: string
  29893. title: 响应消息
  29894. description: 成功或错误说明。
  29895. example: ok
  29896. error_code:
  29897. type: string
  29898. title: 稳定错误码
  29899. description: 失败时的 KLT-* 字符串;成功时不下发。
  29900. nullable: true
  29901. data:
  29902. $ref: '#/components/schemas/PendingQueueResult'
  29903. ApiResponseTicketTodoCounts:
  29904. type: object
  29905. title: 待办计数查询响应
  29906. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29907. required:
  29908. - code
  29909. - message
  29910. properties:
  29911. code:
  29912. type: integer
  29913. title: 业务码
  29914. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29915. example: 10000
  29916. message:
  29917. type: string
  29918. title: 响应消息
  29919. description: 成功或错误说明。
  29920. example: ok
  29921. error_code:
  29922. type: string
  29923. title: 稳定错误码
  29924. description: 失败时的 KLT-* 字符串;成功时不下发。
  29925. nullable: true
  29926. data:
  29927. $ref: '#/components/schemas/TodoCounts'
  29928. ApiResponseTicketTrace:
  29929. type: object
  29930. title: 跨主体追溯查询响应
  29931. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29932. required:
  29933. - code
  29934. - message
  29935. properties:
  29936. code:
  29937. type: integer
  29938. title: 业务码
  29939. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29940. example: 10000
  29941. message:
  29942. type: string
  29943. title: 响应消息
  29944. description: 成功或错误说明。
  29945. example: ok
  29946. error_code:
  29947. type: string
  29948. title: 稳定错误码
  29949. description: 失败时的 KLT-* 字符串;成功时不下发。
  29950. nullable: true
  29951. data:
  29952. $ref: '#/components/schemas/TraceResult'
  29953. ApiResponseMessagePending:
  29954. type: object
  29955. title: 报文待处置队列查询响应
  29956. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29957. required:
  29958. - code
  29959. - message
  29960. properties:
  29961. code:
  29962. type: integer
  29963. title: 业务码
  29964. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29965. example: 10000
  29966. message:
  29967. type: string
  29968. title: 响应消息
  29969. description: 成功或错误说明。
  29970. example: ok
  29971. error_code:
  29972. type: string
  29973. title: 稳定错误码
  29974. description: 失败时的 KLT-* 字符串;成功时不下发。
  29975. nullable: true
  29976. data:
  29977. $ref: '#/components/schemas/MessagePendingResult'
  29978. ApiResponseTicketCreate:
  29979. type: object
  29980. title: 新建工单响应
  29981. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  29982. required:
  29983. - code
  29984. - message
  29985. properties:
  29986. code:
  29987. type: integer
  29988. title: 业务码
  29989. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  29990. example: 10000
  29991. message:
  29992. type: string
  29993. title: 响应消息
  29994. description: 成功或错误说明。
  29995. example: ok
  29996. error_code:
  29997. type: string
  29998. title: 稳定错误码
  29999. description: 失败时的 KLT-* 字符串;成功时不下发。
  30000. nullable: true
  30001. data:
  30002. $ref: '#/components/schemas/TicketCreateResult'
  30003. ApiResponseTicketAssign:
  30004. type: object
  30005. title: 手动分派工单响应
  30006. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30007. required:
  30008. - code
  30009. - message
  30010. properties:
  30011. code:
  30012. type: integer
  30013. title: 业务码
  30014. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30015. example: 10000
  30016. message:
  30017. type: string
  30018. title: 响应消息
  30019. description: 成功或错误说明。
  30020. example: ok
  30021. error_code:
  30022. type: string
  30023. title: 稳定错误码
  30024. description: 失败时的 KLT-* 字符串;成功时不下发。
  30025. nullable: true
  30026. data:
  30027. $ref: '#/components/schemas/AssignResult'
  30028. ApiResponseTicketDispatchAuto:
  30029. type: object
  30030. title: 自动分派(整批)响应
  30031. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30032. required:
  30033. - code
  30034. - message
  30035. properties:
  30036. code:
  30037. type: integer
  30038. title: 业务码
  30039. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30040. example: 10000
  30041. message:
  30042. type: string
  30043. title: 响应消息
  30044. description: 成功或错误说明。
  30045. example: ok
  30046. error_code:
  30047. type: string
  30048. title: 稳定错误码
  30049. description: 失败时的 KLT-* 字符串;成功时不下发。
  30050. nullable: true
  30051. data:
  30052. $ref: '#/components/schemas/DispatchResult'
  30053. ApiResponseTicketDeliveryReissue:
  30054. type: object
  30055. title: 按订阅补发交付工单响应
  30056. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30057. required:
  30058. - code
  30059. - message
  30060. properties:
  30061. code:
  30062. type: integer
  30063. title: 业务码
  30064. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30065. example: 10000
  30066. message:
  30067. type: string
  30068. title: 响应消息
  30069. description: 成功或错误说明。
  30070. example: ok
  30071. error_code:
  30072. type: string
  30073. title: 稳定错误码
  30074. description: 失败时的 KLT-* 字符串;成功时不下发。
  30075. nullable: true
  30076. data:
  30077. $ref: '#/components/schemas/TicketCreateResult'
  30078. ApiResponseTicketDelegate:
  30079. type: object
  30080. title: 交接转派响应
  30081. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30082. required:
  30083. - code
  30084. - message
  30085. properties:
  30086. code:
  30087. type: integer
  30088. title: 业务码
  30089. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30090. example: 10000
  30091. message:
  30092. type: string
  30093. title: 响应消息
  30094. description: 成功或错误说明。
  30095. example: ok
  30096. error_code:
  30097. type: string
  30098. title: 稳定错误码
  30099. description: 失败时的 KLT-* 字符串;成功时不下发。
  30100. nullable: true
  30101. data:
  30102. $ref: '#/components/schemas/DelegateResult'
  30103. ApiResponseTicketStart:
  30104. type: object
  30105. title: 进入处理中(阅读推进)响应
  30106. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30107. required:
  30108. - code
  30109. - message
  30110. properties:
  30111. code:
  30112. type: integer
  30113. title: 业务码
  30114. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30115. example: 10000
  30116. message:
  30117. type: string
  30118. title: 响应消息
  30119. description: 成功或错误说明。
  30120. example: ok
  30121. error_code:
  30122. type: string
  30123. title: 稳定错误码
  30124. description: 失败时的 KLT-* 字符串;成功时不下发。
  30125. nullable: true
  30126. data:
  30127. $ref: '#/components/schemas/StartResult'
  30128. ApiResponseTicketBackfill:
  30129. type: object
  30130. title: 回填竣工信息响应
  30131. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30132. required:
  30133. - code
  30134. - message
  30135. properties:
  30136. code:
  30137. type: integer
  30138. title: 业务码
  30139. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30140. example: 10000
  30141. message:
  30142. type: string
  30143. title: 响应消息
  30144. description: 成功或错误说明。
  30145. example: ok
  30146. error_code:
  30147. type: string
  30148. title: 稳定错误码
  30149. description: 失败时的 KLT-* 字符串;成功时不下发。
  30150. nullable: true
  30151. data:
  30152. $ref: '#/components/schemas/BackfillResult'
  30153. ApiResponseTicketBackfillDraft:
  30154. type: object
  30155. title: 暂存施工回填草稿响应
  30156. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30157. required:
  30158. - code
  30159. - message
  30160. properties:
  30161. code:
  30162. type: integer
  30163. title: 业务码
  30164. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30165. example: 10000
  30166. message:
  30167. type: string
  30168. title: 响应消息
  30169. description: 成功或错误说明。
  30170. example: ok
  30171. error_code:
  30172. type: string
  30173. title: 稳定错误码
  30174. description: 失败时的 KLT-* 字符串;成功时不下发。
  30175. nullable: true
  30176. data:
  30177. $ref: '#/components/schemas/BackfillDraft'
  30178. ApiResponseTicketCheckDone:
  30179. type: object
  30180. title: 服务项完成直接闭环响应
  30181. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30182. required:
  30183. - code
  30184. - message
  30185. properties:
  30186. code:
  30187. type: integer
  30188. title: 业务码
  30189. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30190. example: 10000
  30191. message:
  30192. type: string
  30193. title: 响应消息
  30194. description: 成功或错误说明。
  30195. example: ok
  30196. error_code:
  30197. type: string
  30198. title: 稳定错误码
  30199. description: 失败时的 KLT-* 字符串;成功时不下发。
  30200. nullable: true
  30201. data:
  30202. $ref: '#/components/schemas/CheckDoneResult'
  30203. ApiResponseTicketMarkDone:
  30204. type: object
  30205. title: 标记已处理(仅服务开通)响应
  30206. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30207. required:
  30208. - code
  30209. - message
  30210. properties:
  30211. code:
  30212. type: integer
  30213. title: 业务码
  30214. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30215. example: 10000
  30216. message:
  30217. type: string
  30218. title: 响应消息
  30219. description: 成功或错误说明。
  30220. example: ok
  30221. error_code:
  30222. type: string
  30223. title: 稳定错误码
  30224. description: 失败时的 KLT-* 字符串;成功时不下发。
  30225. nullable: true
  30226. data:
  30227. $ref: '#/components/schemas/MarkDoneResult'
  30228. ApiResponseTicketClose:
  30229. type: object
  30230. title: 关闭工单响应
  30231. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30232. required:
  30233. - code
  30234. - message
  30235. properties:
  30236. code:
  30237. type: integer
  30238. title: 业务码
  30239. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30240. example: 10000
  30241. message:
  30242. type: string
  30243. title: 响应消息
  30244. description: 成功或错误说明。
  30245. example: ok
  30246. error_code:
  30247. type: string
  30248. title: 稳定错误码
  30249. description: 失败时的 KLT-* 字符串;成功时不下发。
  30250. nullable: true
  30251. data:
  30252. $ref: '#/components/schemas/FinalizeResult'
  30253. ApiResponseTicketWithdraw:
  30254. type: object
  30255. title: 撤回工单响应
  30256. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30257. required:
  30258. - code
  30259. - message
  30260. properties:
  30261. code:
  30262. type: integer
  30263. title: 业务码
  30264. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30265. example: 10000
  30266. message:
  30267. type: string
  30268. title: 响应消息
  30269. description: 成功或错误说明。
  30270. example: ok
  30271. error_code:
  30272. type: string
  30273. title: 稳定错误码
  30274. description: 失败时的 KLT-* 字符串;成功时不下发。
  30275. nullable: true
  30276. data:
  30277. $ref: '#/components/schemas/FinalizeResult'
  30278. ApiResponseTicketConfirmClose:
  30279. type: object
  30280. title: 确认闭环响应
  30281. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30282. required:
  30283. - code
  30284. - message
  30285. properties:
  30286. code:
  30287. type: integer
  30288. title: 业务码
  30289. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30290. example: 10000
  30291. message:
  30292. type: string
  30293. title: 响应消息
  30294. description: 成功或错误说明。
  30295. example: ok
  30296. error_code:
  30297. type: string
  30298. title: 稳定错误码
  30299. description: 失败时的 KLT-* 字符串;成功时不下发。
  30300. nullable: true
  30301. data:
  30302. $ref: '#/components/schemas/FinalizeResult'
  30303. ApiResponseTicketDefer:
  30304. type: object
  30305. title: 临时延期(延后提醒)响应
  30306. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30307. required:
  30308. - code
  30309. - message
  30310. properties:
  30311. code:
  30312. type: integer
  30313. title: 业务码
  30314. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30315. example: 10000
  30316. message:
  30317. type: string
  30318. title: 响应消息
  30319. description: 成功或错误说明。
  30320. example: ok
  30321. error_code:
  30322. type: string
  30323. title: 稳定错误码
  30324. description: 失败时的 KLT-* 字符串;成功时不下发。
  30325. nullable: true
  30326. data:
  30327. $ref: '#/components/schemas/FinalizeResult'
  30328. ApiResponseTicketUrge:
  30329. type: object
  30330. title: 站内催办(向「卡在别人手里」的对家发催办信)响应
  30331. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30332. required:
  30333. - code
  30334. - message
  30335. properties:
  30336. code:
  30337. type: integer
  30338. title: 业务码
  30339. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30340. example: 10000
  30341. message:
  30342. type: string
  30343. title: 响应消息
  30344. description: 成功或错误说明。
  30345. example: ok
  30346. error_code:
  30347. type: string
  30348. title: 稳定错误码
  30349. description: 失败时的 KLT-* 字符串;成功时不下发。
  30350. nullable: true
  30351. data:
  30352. $ref: '#/components/schemas/TicketUrgeResult'
  30353. ApiResponseTicketRevert:
  30354. type: object
  30355. title: 退回重办响应
  30356. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30357. required:
  30358. - code
  30359. - message
  30360. properties:
  30361. code:
  30362. type: integer
  30363. title: 业务码
  30364. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30365. example: 10000
  30366. message:
  30367. type: string
  30368. title: 响应消息
  30369. description: 成功或错误说明。
  30370. example: ok
  30371. error_code:
  30372. type: string
  30373. title: 稳定错误码
  30374. description: 失败时的 KLT-* 字符串;成功时不下发。
  30375. nullable: true
  30376. data:
  30377. $ref: '#/components/schemas/FinalizeResult'
  30378. ApiResponseCompletionGenerate:
  30379. type: object
  30380. title: 生成竣工回传文件响应
  30381. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30382. required:
  30383. - code
  30384. - message
  30385. properties:
  30386. code:
  30387. type: integer
  30388. title: 业务码
  30389. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30390. example: 10000
  30391. message:
  30392. type: string
  30393. title: 响应消息
  30394. description: 成功或错误说明。
  30395. example: ok
  30396. error_code:
  30397. type: string
  30398. title: 稳定错误码
  30399. description: 失败时的 KLT-* 字符串;成功时不下发。
  30400. nullable: true
  30401. data:
  30402. $ref: '#/components/schemas/CompletionGenerateResult'
  30403. ApiResponseCompletionReceipt:
  30404. type: object
  30405. title: 录入运营商回执响应
  30406. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30407. required:
  30408. - code
  30409. - message
  30410. properties:
  30411. code:
  30412. type: integer
  30413. title: 业务码
  30414. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30415. example: 10000
  30416. message:
  30417. type: string
  30418. title: 响应消息
  30419. description: 成功或错误说明。
  30420. example: ok
  30421. error_code:
  30422. type: string
  30423. title: 稳定错误码
  30424. description: 失败时的 KLT-* 字符串;成功时不下发。
  30425. nullable: true
  30426. data:
  30427. $ref: '#/components/schemas/CompletionReceiptResult'
  30428. ApiResponseCompletionReject:
  30429. type: object
  30430. title: 登记竣工驳回响应
  30431. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30432. required:
  30433. - code
  30434. - message
  30435. properties:
  30436. code:
  30437. type: integer
  30438. title: 业务码
  30439. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30440. example: 10000
  30441. message:
  30442. type: string
  30443. title: 响应消息
  30444. description: 成功或错误说明。
  30445. example: ok
  30446. error_code:
  30447. type: string
  30448. title: 稳定错误码
  30449. description: 失败时的 KLT-* 字符串;成功时不下发。
  30450. nullable: true
  30451. data:
  30452. $ref: '#/components/schemas/CompletionRejectResult'
  30453. ApiResponseMessageAttach:
  30454. type: object
  30455. title: 挂接并生效响应
  30456. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30457. required:
  30458. - code
  30459. - message
  30460. properties:
  30461. code:
  30462. type: integer
  30463. title: 业务码
  30464. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30465. example: 10000
  30466. message:
  30467. type: string
  30468. title: 响应消息
  30469. description: 成功或错误说明。
  30470. example: ok
  30471. error_code:
  30472. type: string
  30473. title: 稳定错误码
  30474. description: 失败时的 KLT-* 字符串;成功时不下发。
  30475. nullable: true
  30476. data:
  30477. $ref: '#/components/schemas/MessageActionResult'
  30478. ApiResponseMessageVoid:
  30479. type: object
  30480. title: 作废报文响应
  30481. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30482. required:
  30483. - code
  30484. - message
  30485. properties:
  30486. code:
  30487. type: integer
  30488. title: 业务码
  30489. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30490. example: 10000
  30491. message:
  30492. type: string
  30493. title: 响应消息
  30494. description: 成功或错误说明。
  30495. example: ok
  30496. error_code:
  30497. type: string
  30498. title: 稳定错误码
  30499. description: 失败时的 KLT-* 字符串;成功时不下发。
  30500. nullable: true
  30501. data:
  30502. $ref: '#/components/schemas/MessageActionResult'
  30503. ApiResponseMessageConfirmConflict:
  30504. type: object
  30505. title: 冲突确认响应
  30506. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30507. required:
  30508. - code
  30509. - message
  30510. properties:
  30511. code:
  30512. type: integer
  30513. title: 业务码
  30514. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30515. example: 10000
  30516. message:
  30517. type: string
  30518. title: 响应消息
  30519. description: 成功或错误说明。
  30520. example: ok
  30521. error_code:
  30522. type: string
  30523. title: 稳定错误码
  30524. description: 失败时的 KLT-* 字符串;成功时不下发。
  30525. nullable: true
  30526. data:
  30527. $ref: '#/components/schemas/MessageActionResult'
  30528. ApiResponseMessageRematch:
  30529. type: object
  30530. title: 改挂归属工单响应
  30531. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30532. required:
  30533. - code
  30534. - message
  30535. properties:
  30536. code:
  30537. type: integer
  30538. title: 业务码
  30539. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30540. example: 10000
  30541. message:
  30542. type: string
  30543. title: 响应消息
  30544. description: 成功或错误说明。
  30545. example: ok
  30546. error_code:
  30547. type: string
  30548. title: 稳定错误码
  30549. description: 失败时的 KLT-* 字符串;成功时不下发。
  30550. nullable: true
  30551. data:
  30552. $ref: '#/components/schemas/MessageActionResult'
  30553. ApiResponseTicketMaterialGrant:
  30554. type: object
  30555. title: 材料上传/下载凭证响应
  30556. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30557. required:
  30558. - code
  30559. - message
  30560. properties:
  30561. code:
  30562. type: integer
  30563. title: 业务码
  30564. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30565. example: 10000
  30566. message:
  30567. type: string
  30568. title: 响应消息
  30569. description: 成功或错误说明。
  30570. example: ok
  30571. error_code:
  30572. type: string
  30573. title: 稳定错误码
  30574. description: 失败时的 KLT-* 字符串;成功时不下发。
  30575. nullable: true
  30576. data:
  30577. $ref: '#/components/schemas/MaterialGrantResult'
  30578. ApiResponseTicketMaterialAttach:
  30579. type: object
  30580. title: 登记材料元信息响应
  30581. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30582. required:
  30583. - code
  30584. - message
  30585. properties:
  30586. code:
  30587. type: integer
  30588. title: 业务码
  30589. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30590. example: 10000
  30591. message:
  30592. type: string
  30593. title: 响应消息
  30594. description: 成功或错误说明。
  30595. example: ok
  30596. error_code:
  30597. type: string
  30598. title: 稳定错误码
  30599. description: 失败时的 KLT-* 字符串;成功时不下发。
  30600. nullable: true
  30601. data:
  30602. $ref: '#/components/schemas/MaterialAttachResult'
  30603. ApiResponseTicketConfigGet:
  30604. type: object
  30605. title: 域配置查询(闭环方式)响应
  30606. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30607. required:
  30608. - code
  30609. - message
  30610. properties:
  30611. code:
  30612. type: integer
  30613. title: 业务码
  30614. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30615. example: 10000
  30616. message:
  30617. type: string
  30618. title: 响应消息
  30619. description: 成功或错误说明。
  30620. example: ok
  30621. error_code:
  30622. type: string
  30623. title: 稳定错误码
  30624. description: 失败时的 KLT-* 字符串;成功时不下发。
  30625. nullable: true
  30626. data:
  30627. $ref: '#/components/schemas/ClosureConfig'
  30628. ApiResponseTicketConfigUpdate:
  30629. type: object
  30630. title: 域配置修改(闭环方式)响应
  30631. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30632. required:
  30633. - code
  30634. - message
  30635. properties:
  30636. code:
  30637. type: integer
  30638. title: 业务码
  30639. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30640. example: 10000
  30641. message:
  30642. type: string
  30643. title: 响应消息
  30644. description: 成功或错误说明。
  30645. example: ok
  30646. error_code:
  30647. type: string
  30648. title: 稳定错误码
  30649. description: 失败时的 KLT-* 字符串;成功时不下发。
  30650. nullable: true
  30651. data:
  30652. $ref: '#/components/schemas/ClosureConfigUpdateResult'
  30653. ApiResponseTicketFormTemplateGet:
  30654. type: object
  30655. title: 施工回填扩展模板查询响应
  30656. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30657. required:
  30658. - code
  30659. - message
  30660. properties:
  30661. code:
  30662. type: integer
  30663. title: 业务码
  30664. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30665. example: 10000
  30666. message:
  30667. type: string
  30668. title: 响应消息
  30669. description: 成功或错误说明。
  30670. example: ok
  30671. error_code:
  30672. type: string
  30673. title: 稳定错误码
  30674. description: 失败时的 KLT-* 字符串;成功时不下发。
  30675. nullable: true
  30676. data:
  30677. $ref: '#/components/schemas/FormTemplateBundle'
  30678. ApiResponseTicketFormTemplateSave:
  30679. type: object
  30680. title: 施工回填扩展模板保存草稿响应
  30681. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30682. required:
  30683. - code
  30684. - message
  30685. properties:
  30686. code:
  30687. type: integer
  30688. title: 业务码
  30689. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30690. example: 10000
  30691. message:
  30692. type: string
  30693. title: 响应消息
  30694. description: 成功或错误说明。
  30695. example: ok
  30696. error_code:
  30697. type: string
  30698. title: 稳定错误码
  30699. description: 失败时的 KLT-* 字符串;成功时不下发。
  30700. nullable: true
  30701. data:
  30702. $ref: '#/components/schemas/FormTemplateBundle'
  30703. ApiResponseTicketFormTemplatePublish:
  30704. type: object
  30705. title: 施工回填扩展模板发布响应
  30706. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30707. required:
  30708. - code
  30709. - message
  30710. properties:
  30711. code:
  30712. type: integer
  30713. title: 业务码
  30714. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30715. example: 10000
  30716. message:
  30717. type: string
  30718. title: 响应消息
  30719. description: 成功或错误说明。
  30720. example: ok
  30721. error_code:
  30722. type: string
  30723. title: 稳定错误码
  30724. description: 失败时的 KLT-* 字符串;成功时不下发。
  30725. nullable: true
  30726. data:
  30727. $ref: '#/components/schemas/FormTemplateBundle'
  30728. ApiResponseContractRenewalConfigGet:
  30729. type: object
  30730. title: 合同续签提醒配置查询(GET)响应
  30731. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30732. required:
  30733. - code
  30734. - message
  30735. properties:
  30736. code:
  30737. type: integer
  30738. title: 业务码
  30739. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30740. example: 10000
  30741. message:
  30742. type: string
  30743. title: 响应消息
  30744. description: 成功或错误说明。
  30745. example: ok
  30746. error_code:
  30747. type: string
  30748. title: 稳定错误码
  30749. description: 失败时的 KLT-* 字符串;成功时不下发。
  30750. nullable: true
  30751. data:
  30752. $ref: '#/components/schemas/ContractRenewalConfig'
  30753. ApiResponseContractRenewalConfig:
  30754. type: object
  30755. title: 合同续签提醒配置查询响应
  30756. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30757. required:
  30758. - code
  30759. - message
  30760. properties:
  30761. code:
  30762. type: integer
  30763. title: 业务码
  30764. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30765. example: 10000
  30766. message:
  30767. type: string
  30768. title: 响应消息
  30769. description: 成功或错误说明。
  30770. example: ok
  30771. error_code:
  30772. type: string
  30773. title: 稳定错误码
  30774. description: 失败时的 KLT-* 字符串;成功时不下发。
  30775. nullable: true
  30776. data:
  30777. $ref: '#/components/schemas/ContractRenewalConfig'
  30778. ApiResponseContractRenewalConfigUpdate:
  30779. type: object
  30780. title: 合同续签提醒配置修改响应
  30781. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30782. required:
  30783. - code
  30784. - message
  30785. properties:
  30786. code:
  30787. type: integer
  30788. title: 业务码
  30789. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30790. example: 10000
  30791. message:
  30792. type: string
  30793. title: 响应消息
  30794. description: 成功或错误说明。
  30795. example: ok
  30796. error_code:
  30797. type: string
  30798. title: 稳定错误码
  30799. description: 失败时的 KLT-* 字符串;成功时不下发。
  30800. nullable: true
  30801. data:
  30802. $ref: '#/components/schemas/ContractRenewalConfigUpdateResult'
  30803. ApiResponseInboxList:
  30804. type: object
  30805. title: 本人站内提醒箱响应
  30806. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30807. required:
  30808. - code
  30809. - message
  30810. properties:
  30811. code:
  30812. type: integer
  30813. title: 业务码
  30814. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30815. example: 10000
  30816. message:
  30817. type: string
  30818. title: 响应消息
  30819. description: 成功或错误说明。
  30820. example: ok
  30821. error_code:
  30822. type: string
  30823. title: 稳定错误码
  30824. description: 失败时的 KLT-* 字符串;成功时不下发。
  30825. nullable: true
  30826. data:
  30827. $ref: '#/components/schemas/InboxListResult'
  30828. ApiResponseInboxRead:
  30829. type: object
  30830. title: 标记站内提醒已读响应
  30831. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30832. required:
  30833. - code
  30834. - message
  30835. properties:
  30836. code:
  30837. type: integer
  30838. title: 业务码
  30839. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30840. example: 10000
  30841. message:
  30842. type: string
  30843. title: 响应消息
  30844. description: 成功或错误说明。
  30845. example: ok
  30846. error_code:
  30847. type: string
  30848. title: 稳定错误码
  30849. description: 失败时的 KLT-* 字符串;成功时不下发。
  30850. nullable: true
  30851. data:
  30852. $ref: '#/components/schemas/InboxReadResult'
  30853. ApiResponseInboxRenewalCandidates:
  30854. type: object
  30855. title: 续签工单可指派人员响应
  30856. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30857. required:
  30858. - code
  30859. - message
  30860. properties:
  30861. code:
  30862. type: integer
  30863. title: 业务码
  30864. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30865. example: 10000
  30866. message:
  30867. type: string
  30868. title: 响应消息
  30869. description: 成功或错误说明。
  30870. example: ok
  30871. error_code:
  30872. type: string
  30873. title: 稳定错误码
  30874. description: 失败时的 KLT-* 字符串;成功时不下发。
  30875. nullable: true
  30876. data:
  30877. $ref: '#/components/schemas/RenewalCandidatesResult'
  30878. ApiResponseInboxRenewalTicket:
  30879. type: object
  30880. title: 读信人生成续签工单并指派响应
  30881. description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。
  30882. required:
  30883. - code
  30884. - message
  30885. properties:
  30886. code:
  30887. type: integer
  30888. title: 业务码
  30889. description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。
  30890. example: 10000
  30891. message:
  30892. type: string
  30893. title: 响应消息
  30894. description: 成功或错误说明。
  30895. example: ok
  30896. error_code:
  30897. type: string
  30898. title: 稳定错误码
  30899. description: 失败时的 KLT-* 字符串;成功时不下发。
  30900. nullable: true
  30901. data:
  30902. $ref: '#/components/schemas/RenewalTicketResult'