xcims_testing.json 726 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257
  1. {
  2. "info": {
  3. "_postman_id": "33155e02-e4bd-73df-5e38-ba96a7873e04",
  4. "name": "xcims_pc",
  5. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6. },
  7. "item": [
  8. {
  9. "name": "formal",
  10. "item": [
  11. {
  12. "name": "post_login",
  13. "event": [
  14. {
  15. "listen": "test",
  16. "script": {
  17. "id": "a90d6b07-0570-491e-875d-04cf17526461",
  18. "exec": [
  19. "pm.test(\"Status code is 200\", function () {",
  20. " pm.response.to.have.status(200);",
  21. "});"
  22. ],
  23. "type": "text/javascript"
  24. }
  25. }
  26. ],
  27. "request": {
  28. "method": "POST",
  29. "header": [
  30. {
  31. "key": "Content-Type",
  32. "name": "Content-Type",
  33. "value": "application/json",
  34. "type": "text"
  35. }
  36. ],
  37. "body": {
  38. "mode": "raw",
  39. "raw": "{\r\n\t\"password\": \"13500008888\",\r\n\t\"phone\": \"13500008888\",\r\n\t\"region\": \"86\"\r\n}"
  40. },
  41. "url": {
  42. "raw": "http://ims.linkerplus.com/im/user/login",
  43. "protocol": "http",
  44. "host": [
  45. "ims",
  46. "linkerplus",
  47. "com"
  48. ],
  49. "path": [
  50. "im",
  51. "user",
  52. "login"
  53. ]
  54. }
  55. },
  56. "response": []
  57. }
  58. ]
  59. },
  60. {
  61. "name": "SuperManageLogin",
  62. "item": [
  63. {
  64. "name": "post_sm_login",
  65. "event": [
  66. {
  67. "listen": "test",
  68. "script": {
  69. "id": "5e6b446e-7ee5-4234-8861-955b752dde77",
  70. "exec": [
  71. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  72. "",
  73. "if(tests[\"Status code is 200\"] ){",
  74. " var jsonData = JSON.parse(responseBody);",
  75. " ",
  76. " postman.setEnvironmentVariable(\"Rongtoken\", jsonData.result.token);",
  77. "}"
  78. ],
  79. "type": "text/javascript"
  80. }
  81. }
  82. ],
  83. "request": {
  84. "method": "POST",
  85. "header": [
  86. {
  87. "key": "Content-Type",
  88. "value": "application/json"
  89. }
  90. ],
  91. "body": {
  92. "mode": "raw",
  93. "raw": "{\r\n\t\"password\": \"13500008888\",\r\n\t\"phone\": \"13500008888\",\r\n\t\"region\": \"86\"\r\n}"
  94. },
  95. "url": {
  96. "raw": "{{imurl}}/user/login/",
  97. "host": [
  98. "{{imurl}}"
  99. ],
  100. "path": [
  101. "user",
  102. "login",
  103. ""
  104. ]
  105. }
  106. },
  107. "response": []
  108. }
  109. ]
  110. },
  111. {
  112. "name": "cloud",
  113. "item": [
  114. {
  115. "name": "01_get_basic_carlevel",
  116. "event": [
  117. {
  118. "listen": "test",
  119. "script": {
  120. "id": "963930b9-4ca8-4edb-80b1-6309989954c0",
  121. "exec": [
  122. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  123. "Date.prototype.Format = function (fmt) { //author: meizz ",
  124. " var o = {",
  125. " \"M+\": this.getMonth() + 1, //月份 ",
  126. " \"d+\": this.getDate(), //日 ",
  127. " \"h+\": this.getHours(), //小时 ",
  128. " \"m+\": this.getMinutes(), //分 ",
  129. " \"s+\": this.getSeconds(), //秒 ",
  130. " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ",
  131. " \"S\": this.getMilliseconds() //毫秒 ",
  132. " };",
  133. " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));",
  134. " for (var k in o)",
  135. " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));",
  136. " return fmt;",
  137. "}",
  138. "",
  139. "",
  140. "postman.setGlobalVariable(\"date\", new Date().toISOString());",
  141. "postman.setGlobalVariable(\"ymd-date\", new Date().Format(\"yyyy-MM-dd\"));",
  142. "",
  143. "postman.setGlobalVariable(\"localdate\", new Date().toLocaleString());"
  144. ],
  145. "type": "text/javascript"
  146. }
  147. }
  148. ],
  149. "request": {
  150. "method": "GET",
  151. "header": [
  152. {
  153. "key": "Authorization",
  154. "value": "Rong {{Rongtoken}}"
  155. }
  156. ],
  157. "body": {
  158. "mode": "raw",
  159. "raw": ""
  160. },
  161. "url": {
  162. "raw": "{{url}}/api/basic/carlevel/",
  163. "host": [
  164. "{{url}}"
  165. ],
  166. "path": [
  167. "api",
  168. "basic",
  169. "carlevel",
  170. ""
  171. ]
  172. }
  173. },
  174. "response": []
  175. },
  176. {
  177. "name": "02_get_basic_carcategorystyle",
  178. "event": [
  179. {
  180. "listen": "test",
  181. "script": {
  182. "id": "d54ab461-9d1d-4a1f-ada3-5a462cdab8f1",
  183. "exec": [
  184. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  185. "",
  186. "",
  187. " // var jsonData = JSON.parse(responseBody);",
  188. " ",
  189. " // postman.setEnvironmentVariable(\"carcategory_id01\", jsonData.results[0].id);",
  190. " ",
  191. " // postman.setEnvironmentVariable(\"carcategory_name01\", jsonData.results[0].category_name);",
  192. " ",
  193. " // postman.setEnvironmentVariable(\"carcategory_category01\", jsonData.results[0].category);",
  194. ""
  195. ],
  196. "type": "text/javascript"
  197. }
  198. }
  199. ],
  200. "request": {
  201. "method": "GET",
  202. "header": [
  203. {
  204. "key": "Authorization",
  205. "value": "Rong {{Rongtoken}}"
  206. }
  207. ],
  208. "body": {
  209. "mode": "raw",
  210. "raw": ""
  211. },
  212. "url": {
  213. "raw": "{{url}}/api/basic/carcategorystyle/",
  214. "host": [
  215. "{{url}}"
  216. ],
  217. "path": [
  218. "api",
  219. "basic",
  220. "carcategorystyle",
  221. ""
  222. ]
  223. }
  224. },
  225. "response": []
  226. },
  227. {
  228. "name": "03_get_basic_beautycategory",
  229. "event": [
  230. {
  231. "listen": "test",
  232. "script": {
  233. "type": "text/javascript",
  234. "exec": [
  235. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  236. "",
  237. ""
  238. ]
  239. }
  240. }
  241. ],
  242. "request": {
  243. "method": "GET",
  244. "header": [
  245. {
  246. "key": "Authorization",
  247. "value": "Rong {{Rongtoken}}"
  248. }
  249. ],
  250. "body": {
  251. "mode": "raw",
  252. "raw": ""
  253. },
  254. "url": {
  255. "raw": "{{url}}/api/basic/beautycategory/",
  256. "host": [
  257. "{{url}}"
  258. ],
  259. "path": [
  260. "api",
  261. "basic",
  262. "beautycategory",
  263. ""
  264. ]
  265. }
  266. },
  267. "response": []
  268. },
  269. {
  270. "name": "04_get_basic_repairecategory",
  271. "event": [
  272. {
  273. "listen": "test",
  274. "script": {
  275. "id": "d7de5b88-c5a8-4abf-9173-694b8df4d83a",
  276. "exec": [
  277. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  278. "",
  279. ""
  280. ],
  281. "type": "text/javascript"
  282. }
  283. }
  284. ],
  285. "request": {
  286. "method": "GET",
  287. "header": [
  288. {
  289. "key": "Authorization",
  290. "value": "Rong {{Rongtoken}}"
  291. }
  292. ],
  293. "body": {
  294. "mode": "raw",
  295. "raw": ""
  296. },
  297. "url": {
  298. "raw": "{{url}}/api/basic/repaircategory/",
  299. "host": [
  300. "{{url}}"
  301. ],
  302. "path": [
  303. "api",
  304. "basic",
  305. "repaircategory",
  306. ""
  307. ]
  308. }
  309. },
  310. "response": []
  311. },
  312. {
  313. "name": "05_get_basic_vipmemberinteresttemplate",
  314. "event": [
  315. {
  316. "listen": "test",
  317. "script": {
  318. "id": "8792c958-95ae-4362-b49e-52a5b79d67a4",
  319. "exec": [
  320. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  321. "if (tests[\"Status code is 200\"]) {",
  322. " var jsonData = JSON.parse(responseBody);",
  323. "",
  324. " postman.setEnvironmentVariable(\"interest_id01\", jsonData[0].id);",
  325. " postman.setEnvironmentVariable(\"interest_id02\", jsonData[1].id);",
  326. " postman.setEnvironmentVariable(\"interest_id03\", jsonData[2].id);",
  327. "",
  328. "}"
  329. ],
  330. "type": "text/javascript"
  331. }
  332. }
  333. ],
  334. "request": {
  335. "method": "GET",
  336. "header": [
  337. {
  338. "key": "Authorization",
  339. "value": "Rong {{Rongtoken}}"
  340. }
  341. ],
  342. "body": {
  343. "mode": "raw",
  344. "raw": ""
  345. },
  346. "url": {
  347. "raw": "{{url}}/api/basic/vipmemberinteresttemplate/",
  348. "host": [
  349. "{{url}}"
  350. ],
  351. "path": [
  352. "api",
  353. "basic",
  354. "vipmemberinteresttemplate",
  355. ""
  356. ]
  357. }
  358. },
  359. "response": []
  360. },
  361. {
  362. "name": "06_get_vipmember_vipmemberscoretype",
  363. "event": [
  364. {
  365. "listen": "test",
  366. "script": {
  367. "id": "deafddf2-514b-4b3b-8406-10005deeb358",
  368. "exec": [
  369. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  370. "",
  371. " var jsonData = JSON.parse(responseBody);",
  372. " ",
  373. " postman.setEnvironmentVariable(\"scoretype_id01\", jsonData[0].id);"
  374. ],
  375. "type": "text/javascript"
  376. }
  377. }
  378. ],
  379. "request": {
  380. "method": "GET",
  381. "header": [
  382. {
  383. "key": "Authorization",
  384. "value": "Rong {{Rongtoken}}"
  385. }
  386. ],
  387. "body": {
  388. "mode": "raw",
  389. "raw": ""
  390. },
  391. "url": {
  392. "raw": "{{url}}/api/vipmember/vipmemberscoretype/",
  393. "host": [
  394. "{{url}}"
  395. ],
  396. "path": [
  397. "api",
  398. "vipmember",
  399. "vipmemberscoretype",
  400. ""
  401. ]
  402. }
  403. },
  404. "response": []
  405. },
  406. {
  407. "name": "07_get_vipmember_vipmemberscorerule",
  408. "event": [
  409. {
  410. "listen": "test",
  411. "script": {
  412. "id": "c201afe1-db22-4a48-ada5-9b909dc25419",
  413. "exec": [
  414. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  415. ],
  416. "type": "text/javascript"
  417. }
  418. }
  419. ],
  420. "request": {
  421. "method": "GET",
  422. "header": [
  423. {
  424. "key": "Authorization",
  425. "value": "Rong {{Rongtoken}}"
  426. }
  427. ],
  428. "body": {
  429. "mode": "raw",
  430. "raw": ""
  431. },
  432. "url": {
  433. "raw": "{{url}}/api/vipmember/vipmemberscorerule/",
  434. "host": [
  435. "{{url}}"
  436. ],
  437. "path": [
  438. "api",
  439. "vipmember",
  440. "vipmemberscorerule",
  441. ""
  442. ]
  443. }
  444. },
  445. "response": []
  446. },
  447. {
  448. "name": "08_get_basic_department",
  449. "event": [
  450. {
  451. "listen": "test",
  452. "script": {
  453. "id": "85434870-a913-4d23-8e74-00431286f0b6",
  454. "exec": [
  455. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  456. "",
  457. "// if(tests[\"Status code is 200\"] ){",
  458. "// var jsonData = JSON.parse(responseBody);",
  459. " ",
  460. "// postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);",
  461. "// postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);",
  462. "// }"
  463. ],
  464. "type": "text/javascript"
  465. }
  466. }
  467. ],
  468. "request": {
  469. "method": "GET",
  470. "header": [
  471. {
  472. "key": "Authorization",
  473. "value": "Rong {{Rongtoken}}"
  474. }
  475. ],
  476. "body": {
  477. "mode": "raw",
  478. "raw": ""
  479. },
  480. "url": {
  481. "raw": "{{url}}/api/basic/clouddept/",
  482. "host": [
  483. "{{url}}"
  484. ],
  485. "path": [
  486. "api",
  487. "basic",
  488. "clouddept",
  489. ""
  490. ]
  491. }
  492. },
  493. "response": []
  494. },
  495. {
  496. "name": "09_get_basic_cloudaccount",
  497. "event": [
  498. {
  499. "listen": "test",
  500. "script": {
  501. "id": "d72c131d-1693-41d0-923f-05b62b88fedf",
  502. "exec": [
  503. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  504. "",
  505. "// if(tests[\"Status code is 200\"] ){",
  506. "// var jsonData = JSON.parse(responseBody);",
  507. " ",
  508. "// postman.setEnvironmentVariable(\"account_id01\", jsonData[2].id);",
  509. " ",
  510. " ",
  511. "// }"
  512. ],
  513. "type": "text/javascript"
  514. }
  515. }
  516. ],
  517. "request": {
  518. "method": "GET",
  519. "header": [
  520. {
  521. "key": "Authorization",
  522. "value": "Rong {{Rongtoken}}"
  523. }
  524. ],
  525. "body": {
  526. "mode": "raw",
  527. "raw": ""
  528. },
  529. "url": {
  530. "raw": "{{url}}/api/basic/cloudaccount/",
  531. "host": [
  532. "{{url}}"
  533. ],
  534. "path": [
  535. "api",
  536. "basic",
  537. "cloudaccount",
  538. ""
  539. ]
  540. }
  541. },
  542. "response": []
  543. },
  544. {
  545. "name": "10_get_basic_storehouse",
  546. "event": [
  547. {
  548. "listen": "test",
  549. "script": {
  550. "type": "text/javascript",
  551. "exec": [
  552. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  553. "",
  554. "// if(tests[\"Status code is 200\"] ){",
  555. "// var jsonData = JSON.parse(responseBody);",
  556. " ",
  557. "// postman.setEnvironmentVariable(\"storehouse_id03\", jsonData.results[3].id);",
  558. "// postman.setEnvironmentVariable(\"storehouse_id02\", jsonData.results[2].id);",
  559. "// postman.setEnvironmentVariable(\"storehouse_id01\", jsonData.results[1].id);",
  560. " ",
  561. "// }"
  562. ]
  563. }
  564. }
  565. ],
  566. "request": {
  567. "method": "GET",
  568. "header": [
  569. {
  570. "key": "Authorization",
  571. "value": "Rong {{Rongtoken}}"
  572. }
  573. ],
  574. "body": {
  575. "mode": "raw",
  576. "raw": ""
  577. },
  578. "url": {
  579. "raw": "{{url}}/api/basic/storehouse/",
  580. "host": [
  581. "{{url}}"
  582. ],
  583. "path": [
  584. "api",
  585. "basic",
  586. "storehouse",
  587. ""
  588. ]
  589. }
  590. },
  591. "response": []
  592. },
  593. {
  594. "name": "11_get_basic_inventoryadjustmentcategory",
  595. "event": [
  596. {
  597. "listen": "test",
  598. "script": {
  599. "id": "68f70339-380f-44d9-b61b-b2e916ca33b1",
  600. "exec": [
  601. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  602. "",
  603. " var jsonData = JSON.parse(responseBody);",
  604. " ",
  605. " postman.setEnvironmentVariable(\"category_id01\", jsonData.results[0].id);",
  606. ""
  607. ],
  608. "type": "text/javascript"
  609. }
  610. }
  611. ],
  612. "request": {
  613. "method": "GET",
  614. "header": [
  615. {
  616. "key": "Authorization",
  617. "value": "Rong {{Rongtoken}}"
  618. }
  619. ],
  620. "body": {
  621. "mode": "raw",
  622. "raw": ""
  623. },
  624. "url": {
  625. "raw": "{{url}}/api/basic/inventoryadjustmentcategory/",
  626. "host": [
  627. "{{url}}"
  628. ],
  629. "path": [
  630. "api",
  631. "basic",
  632. "inventoryadjustmentcategory",
  633. ""
  634. ]
  635. }
  636. },
  637. "response": []
  638. },
  639. {
  640. "name": "12_get_basic_receiptcategory",
  641. "event": [
  642. {
  643. "listen": "test",
  644. "script": {
  645. "id": "f87f9685-1a33-44a7-b438-46cda127cf69",
  646. "exec": [
  647. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  648. " var jsonData = JSON.parse(responseBody);",
  649. " ",
  650. " postman.setEnvironmentVariable(\"receipt_category01\", jsonData.results[4].id);"
  651. ],
  652. "type": "text/javascript"
  653. }
  654. }
  655. ],
  656. "request": {
  657. "method": "GET",
  658. "header": [
  659. {
  660. "key": "Authorization",
  661. "value": "Rong {{Rongtoken}}"
  662. }
  663. ],
  664. "body": {
  665. "mode": "raw",
  666. "raw": ""
  667. },
  668. "url": {
  669. "raw": "{{url}}/api/receivepayment/receiptcategory/",
  670. "host": [
  671. "{{url}}"
  672. ],
  673. "path": [
  674. "api",
  675. "receivepayment",
  676. "receiptcategory",
  677. ""
  678. ]
  679. }
  680. },
  681. "response": []
  682. },
  683. {
  684. "name": "13_get_basic_paycategory",
  685. "event": [
  686. {
  687. "listen": "test",
  688. "script": {
  689. "id": "f5d71fdf-0c29-4593-a146-319d45d9d5b8",
  690. "exec": [
  691. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  692. "",
  693. "var jsonData = JSON.parse(responseBody);",
  694. " ",
  695. " postman.setEnvironmentVariable(\"paycategory_id01\", jsonData.results[1].id);"
  696. ],
  697. "type": "text/javascript"
  698. }
  699. }
  700. ],
  701. "request": {
  702. "method": "GET",
  703. "header": [
  704. {
  705. "key": "Authorization",
  706. "value": "Rong {{Rongtoken}}"
  707. }
  708. ],
  709. "body": {
  710. "mode": "raw",
  711. "raw": ""
  712. },
  713. "url": {
  714. "raw": "{{url}}/api/receivepayment/paycategory/",
  715. "host": [
  716. "{{url}}"
  717. ],
  718. "path": [
  719. "api",
  720. "receivepayment",
  721. "paycategory",
  722. ""
  723. ]
  724. }
  725. },
  726. "response": []
  727. },
  728. {
  729. "name": "14_get_basic_payeecategory",
  730. "event": [
  731. {
  732. "listen": "test",
  733. "script": {
  734. "type": "text/javascript",
  735. "exec": [
  736. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  737. ]
  738. }
  739. }
  740. ],
  741. "request": {
  742. "method": "GET",
  743. "header": [
  744. {
  745. "key": "Authorization",
  746. "value": "Rong {{Rongtoken}}"
  747. }
  748. ],
  749. "body": {
  750. "mode": "raw",
  751. "raw": ""
  752. },
  753. "url": {
  754. "raw": "{{url}}/api/receivepayment/payeecategory/",
  755. "host": [
  756. "{{url}}"
  757. ],
  758. "path": [
  759. "api",
  760. "receivepayment",
  761. "payeecategory",
  762. ""
  763. ]
  764. }
  765. },
  766. "response": []
  767. },
  768. {
  769. "name": "15_get_basic_attendanceabnormalcategory",
  770. "event": [
  771. {
  772. "listen": "test",
  773. "script": {
  774. "type": "text/javascript",
  775. "exec": [
  776. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  777. ]
  778. }
  779. }
  780. ],
  781. "request": {
  782. "method": "GET",
  783. "header": [
  784. {
  785. "key": "Authorization",
  786. "value": "Rong {{Rongtoken}}"
  787. }
  788. ],
  789. "body": {
  790. "mode": "raw",
  791. "raw": ""
  792. },
  793. "url": {
  794. "raw": "{{url}}/api/staff/attendanceabnormalcategory/",
  795. "host": [
  796. "{{url}}"
  797. ],
  798. "path": [
  799. "api",
  800. "staff",
  801. "attendanceabnormalcategory",
  802. ""
  803. ]
  804. }
  805. },
  806. "response": []
  807. },
  808. {
  809. "name": "16_get_staff_adjustmentcategory",
  810. "event": [
  811. {
  812. "listen": "test",
  813. "script": {
  814. "type": "text/javascript",
  815. "exec": [
  816. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  817. ]
  818. }
  819. }
  820. ],
  821. "request": {
  822. "method": "GET",
  823. "header": [
  824. {
  825. "key": "Authorization",
  826. "value": "Rong {{Rongtoken}}"
  827. }
  828. ],
  829. "body": {
  830. "mode": "raw",
  831. "raw": ""
  832. },
  833. "url": {
  834. "raw": "{{url}}/api/staff/adjustmentcategory/",
  835. "host": [
  836. "{{url}}"
  837. ],
  838. "path": [
  839. "api",
  840. "staff",
  841. "adjustmentcategory",
  842. ""
  843. ]
  844. }
  845. },
  846. "response": []
  847. },
  848. {
  849. "name": "17_get_staff_performancecategory",
  850. "event": [
  851. {
  852. "listen": "test",
  853. "script": {
  854. "id": "028847a6-5d94-4c97-bedd-1408eca38248",
  855. "exec": [
  856. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  857. ],
  858. "type": "text/javascript"
  859. }
  860. }
  861. ],
  862. "request": {
  863. "method": "GET",
  864. "header": [
  865. {
  866. "key": "Authorization",
  867. "value": "Rong {{Rongtoken}}"
  868. }
  869. ],
  870. "body": {
  871. "mode": "raw",
  872. "raw": ""
  873. },
  874. "url": {
  875. "raw": "{{url}}/api/staff/performancecategory/",
  876. "host": [
  877. "{{url}}"
  878. ],
  879. "path": [
  880. "api",
  881. "staff",
  882. "performancecategory",
  883. ""
  884. ]
  885. }
  886. },
  887. "response": []
  888. },
  889. {
  890. "name": "18_get_staff_commissionrulesetting",
  891. "event": [
  892. {
  893. "listen": "test",
  894. "script": {
  895. "id": "026161ac-946c-4a6b-8f16-138d3d52b056",
  896. "exec": [
  897. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  898. ],
  899. "type": "text/javascript"
  900. }
  901. }
  902. ],
  903. "request": {
  904. "method": "GET",
  905. "header": [
  906. {
  907. "key": "Authorization",
  908. "value": "Rong {{Rongtoken}}"
  909. }
  910. ],
  911. "body": {
  912. "mode": "raw",
  913. "raw": ""
  914. },
  915. "url": {
  916. "raw": "{{url}}/api/staff/commissionrulesetting/",
  917. "host": [
  918. "{{url}}"
  919. ],
  920. "path": [
  921. "api",
  922. "staff",
  923. "commissionrulesetting",
  924. ""
  925. ]
  926. }
  927. },
  928. "response": []
  929. },
  930. {
  931. "name": "19_get_staff_monthrestdays",
  932. "event": [
  933. {
  934. "listen": "test",
  935. "script": {
  936. "id": "11fcbb63-1547-4e87-8bdf-37bff02407d2",
  937. "exec": [
  938. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  939. ],
  940. "type": "text/javascript"
  941. }
  942. }
  943. ],
  944. "request": {
  945. "method": "GET",
  946. "header": [
  947. {
  948. "key": "Authorization",
  949. "value": "Rong {{Rongtoken}}"
  950. }
  951. ],
  952. "body": {
  953. "mode": "raw",
  954. "raw": ""
  955. },
  956. "url": {
  957. "raw": "{{url}}/api/staff/monthrestdays/",
  958. "host": [
  959. "{{url}}"
  960. ],
  961. "path": [
  962. "api",
  963. "staff",
  964. "monthrestdays",
  965. ""
  966. ]
  967. }
  968. },
  969. "response": []
  970. },
  971. {
  972. "name": "20_get_vipmember_vipmembergradeadmin",
  973. "event": [
  974. {
  975. "listen": "test",
  976. "script": {
  977. "type": "text/javascript",
  978. "exec": [
  979. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  980. "// if(tests[\"Status code is 200\"] ){",
  981. "// var jsonData = JSON.parse(responseBody);",
  982. " ",
  983. "// postman.setEnvironmentVariable(\"grade_id01\", jsonData.results[0].id);",
  984. "// postman.setEnvironmentVariable(\"grade_id02\", jsonData.results[1].id);",
  985. "// postman.setEnvironmentVariable(\"grade_id03\", jsonData.results[2].id);",
  986. "// postman.setEnvironmentVariable(\"grade_id04\", jsonData.results[3].id);",
  987. "// postman.setEnvironmentVariable(\"grade_id05\", jsonData.results[4].id);",
  988. "// }"
  989. ]
  990. }
  991. }
  992. ],
  993. "request": {
  994. "method": "GET",
  995. "header": [
  996. {
  997. "key": "Authorization",
  998. "value": "Rong {{Rongtoken}}"
  999. }
  1000. ],
  1001. "body": {
  1002. "mode": "raw",
  1003. "raw": ""
  1004. },
  1005. "url": {
  1006. "raw": "{{url}}/api/vipmember/vipmembergradeadmin/",
  1007. "host": [
  1008. "{{url}}"
  1009. ],
  1010. "path": [
  1011. "api",
  1012. "vipmember",
  1013. "vipmembergradeadmin",
  1014. ""
  1015. ]
  1016. }
  1017. },
  1018. "response": []
  1019. },
  1020. {
  1021. "name": "21_get_basic_carproductscategory",
  1022. "event": [
  1023. {
  1024. "listen": "test",
  1025. "script": {
  1026. "id": "cbc5dc67-b40d-4ac8-8f36-9658bc92c745",
  1027. "exec": [
  1028. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1029. "",
  1030. ""
  1031. ],
  1032. "type": "text/javascript"
  1033. }
  1034. }
  1035. ],
  1036. "request": {
  1037. "method": "GET",
  1038. "header": [
  1039. {
  1040. "key": "Authorization",
  1041. "value": "Rong {{Rongtoken}}"
  1042. }
  1043. ],
  1044. "body": {
  1045. "mode": "raw",
  1046. "raw": ""
  1047. },
  1048. "url": {
  1049. "raw": "{{url}}/api/basic/carproductscategory/",
  1050. "host": [
  1051. "{{url}}"
  1052. ],
  1053. "path": [
  1054. "api",
  1055. "basic",
  1056. "carproductscategory",
  1057. ""
  1058. ]
  1059. }
  1060. },
  1061. "response": []
  1062. },
  1063. {
  1064. "name": "22_get_role",
  1065. "event": [
  1066. {
  1067. "listen": "test",
  1068. "script": {
  1069. "id": "b9b5ff72-c343-48c2-a03f-7c9d4dc27c78",
  1070. "exec": [
  1071. "pm.test(\"Status code is 200\", function () {",
  1072. " pm.response.to.have.status(200);",
  1073. "});"
  1074. ],
  1075. "type": "text/javascript"
  1076. }
  1077. }
  1078. ],
  1079. "request": {
  1080. "method": "GET",
  1081. "header": [
  1082. {
  1083. "key": "Authorization",
  1084. "value": "Rong {{Rongtoken}}",
  1085. "type": "text"
  1086. }
  1087. ],
  1088. "body": {
  1089. "mode": "raw",
  1090. "raw": ""
  1091. },
  1092. "url": {
  1093. "raw": "{{url}}/api/permissions/role/",
  1094. "host": [
  1095. "{{url}}"
  1096. ],
  1097. "path": [
  1098. "api",
  1099. "permissions",
  1100. "role",
  1101. ""
  1102. ]
  1103. }
  1104. },
  1105. "response": []
  1106. },
  1107. {
  1108. "name": "23_get_permission",
  1109. "event": [
  1110. {
  1111. "listen": "test",
  1112. "script": {
  1113. "id": "b9b5ff72-c343-48c2-a03f-7c9d4dc27c78",
  1114. "exec": [
  1115. "pm.test(\"Status code is 200\", function () {",
  1116. " pm.response.to.have.status(200);",
  1117. "});"
  1118. ],
  1119. "type": "text/javascript"
  1120. }
  1121. }
  1122. ],
  1123. "request": {
  1124. "method": "GET",
  1125. "header": [
  1126. {
  1127. "key": "Authorization",
  1128. "value": "Rong {{Rongtoken}}",
  1129. "type": "text"
  1130. }
  1131. ],
  1132. "body": {
  1133. "mode": "raw",
  1134. "raw": ""
  1135. },
  1136. "url": {
  1137. "raw": "{{url}}/api/permissions/permission/",
  1138. "host": [
  1139. "{{url}}"
  1140. ],
  1141. "path": [
  1142. "api",
  1143. "permissions",
  1144. "permission",
  1145. ""
  1146. ]
  1147. }
  1148. },
  1149. "response": []
  1150. },
  1151. {
  1152. "name": "24_get_shopmenu",
  1153. "event": [
  1154. {
  1155. "listen": "test",
  1156. "script": {
  1157. "id": "b9b5ff72-c343-48c2-a03f-7c9d4dc27c78",
  1158. "exec": [
  1159. "pm.test(\"Status code is 200\", function () {",
  1160. " pm.response.to.have.status(200);",
  1161. "});"
  1162. ],
  1163. "type": "text/javascript"
  1164. }
  1165. }
  1166. ],
  1167. "request": {
  1168. "method": "GET",
  1169. "header": [
  1170. {
  1171. "key": "Authorization",
  1172. "value": "Rong {{Rongtoken}}",
  1173. "type": "text"
  1174. }
  1175. ],
  1176. "body": {
  1177. "mode": "raw",
  1178. "raw": ""
  1179. },
  1180. "url": {
  1181. "raw": "{{url}}/api/permissions/shopmenu/",
  1182. "host": [
  1183. "{{url}}"
  1184. ],
  1185. "path": [
  1186. "api",
  1187. "permissions",
  1188. "shopmenu",
  1189. ""
  1190. ]
  1191. }
  1192. },
  1193. "response": []
  1194. }
  1195. ]
  1196. },
  1197. {
  1198. "name": "usually_basic",
  1199. "item": [
  1200. {
  1201. "name": "01_get_basic_beautyservices",
  1202. "event": [
  1203. {
  1204. "listen": "test",
  1205. "script": {
  1206. "id": "41715030-892e-4d1f-81b1-adb748f2773c",
  1207. "exec": [
  1208. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1209. ],
  1210. "type": "text/javascript"
  1211. }
  1212. }
  1213. ],
  1214. "request": {
  1215. "method": "GET",
  1216. "header": [
  1217. {
  1218. "key": "Authorization",
  1219. "value": "Rong {{Rongtoken}}"
  1220. }
  1221. ],
  1222. "body": {
  1223. "mode": "raw",
  1224. "raw": ""
  1225. },
  1226. "url": {
  1227. "raw": "{{url}}/api/basic/beautyservices/",
  1228. "host": [
  1229. "{{url}}"
  1230. ],
  1231. "path": [
  1232. "api",
  1233. "basic",
  1234. "beautyservices",
  1235. ""
  1236. ]
  1237. }
  1238. },
  1239. "response": []
  1240. },
  1241. {
  1242. "name": "02_get_basic_repairservice",
  1243. "event": [
  1244. {
  1245. "listen": "test",
  1246. "script": {
  1247. "type": "text/javascript",
  1248. "exec": [
  1249. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1250. ]
  1251. }
  1252. }
  1253. ],
  1254. "request": {
  1255. "method": "GET",
  1256. "header": [
  1257. {
  1258. "key": "Authorization",
  1259. "value": "Rong {{Rongtoken}}"
  1260. }
  1261. ],
  1262. "body": {
  1263. "mode": "raw",
  1264. "raw": ""
  1265. },
  1266. "url": {
  1267. "raw": "{{url}}/api/basic/repairservice/",
  1268. "host": [
  1269. "{{url}}"
  1270. ],
  1271. "path": [
  1272. "api",
  1273. "basic",
  1274. "repairservice",
  1275. ""
  1276. ]
  1277. }
  1278. },
  1279. "response": []
  1280. },
  1281. {
  1282. "name": "03_get_basic_rootrepairfee",
  1283. "event": [
  1284. {
  1285. "listen": "test",
  1286. "script": {
  1287. "type": "text/javascript",
  1288. "exec": [
  1289. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1290. ]
  1291. }
  1292. }
  1293. ],
  1294. "request": {
  1295. "method": "GET",
  1296. "header": [
  1297. {
  1298. "key": "Authorization",
  1299. "value": "Rong {{Rongtoken}}"
  1300. }
  1301. ],
  1302. "body": {
  1303. "mode": "raw",
  1304. "raw": ""
  1305. },
  1306. "url": {
  1307. "raw": "{{url}}/api/basic/rootrepairfee/",
  1308. "host": [
  1309. "{{url}}"
  1310. ],
  1311. "path": [
  1312. "api",
  1313. "basic",
  1314. "rootrepairfee",
  1315. ""
  1316. ]
  1317. }
  1318. },
  1319. "response": []
  1320. },
  1321. {
  1322. "name": "04_get_basic_brands",
  1323. "event": [
  1324. {
  1325. "listen": "test",
  1326. "script": {
  1327. "id": "50e53700-f12c-41e3-ae48-d582fdcbba42",
  1328. "exec": [
  1329. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1330. "",
  1331. " var jsonData = JSON.parse(responseBody);",
  1332. " ",
  1333. " postman.setEnvironmentVariable(\"brand_name01\", jsonData.results[0].name);"
  1334. ],
  1335. "type": "text/javascript"
  1336. }
  1337. }
  1338. ],
  1339. "request": {
  1340. "method": "GET",
  1341. "header": [
  1342. {
  1343. "key": "Authorization",
  1344. "value": "Rong {{Rongtoken}}"
  1345. }
  1346. ],
  1347. "body": {
  1348. "mode": "raw",
  1349. "raw": ""
  1350. },
  1351. "url": {
  1352. "raw": "{{url}}/api/basic/brands/",
  1353. "host": [
  1354. "{{url}}"
  1355. ],
  1356. "path": [
  1357. "api",
  1358. "basic",
  1359. "brands",
  1360. ""
  1361. ]
  1362. }
  1363. },
  1364. "response": []
  1365. },
  1366. {
  1367. "name": "05_get_basic_carproducts",
  1368. "event": [
  1369. {
  1370. "listen": "test",
  1371. "script": {
  1372. "type": "text/javascript",
  1373. "exec": [
  1374. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1375. ]
  1376. }
  1377. }
  1378. ],
  1379. "request": {
  1380. "method": "GET",
  1381. "header": [
  1382. {
  1383. "key": "Authorization",
  1384. "value": "Rong {{Rongtoken}}"
  1385. }
  1386. ],
  1387. "body": {
  1388. "mode": "raw",
  1389. "raw": ""
  1390. },
  1391. "url": {
  1392. "raw": "{{url}}/api/basic/carproducts/?page=2",
  1393. "host": [
  1394. "{{url}}"
  1395. ],
  1396. "path": [
  1397. "api",
  1398. "basic",
  1399. "carproducts",
  1400. ""
  1401. ],
  1402. "query": [
  1403. {
  1404. "key": "page",
  1405. "value": "2"
  1406. }
  1407. ]
  1408. }
  1409. },
  1410. "response": []
  1411. },
  1412. {
  1413. "name": "06_get_vipmember_vipmemberrechargepackagecloud",
  1414. "event": [
  1415. {
  1416. "listen": "test",
  1417. "script": {
  1418. "id": "066e4d20-1487-4261-92f1-576a210e4ca9",
  1419. "exec": [
  1420. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1421. "",
  1422. "",
  1423. " var jsonData = JSON.parse(responseBody);",
  1424. " ",
  1425. " postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].id);",
  1426. " // postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].amount_package);",
  1427. " // postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].real_payment);",
  1428. " // postman.setEnvironmentVariable(\"packagecloud_id01\", jsonData.results[0].validity_period);",
  1429. " ",
  1430. " postman.setEnvironmentVariable(\"packagecloud_id02\", jsonData.results[1].id);",
  1431. ""
  1432. ],
  1433. "type": "text/javascript"
  1434. }
  1435. }
  1436. ],
  1437. "request": {
  1438. "method": "GET",
  1439. "header": [
  1440. {
  1441. "key": "Authorization",
  1442. "value": "Rong {{Rongtoken}}"
  1443. }
  1444. ],
  1445. "body": {
  1446. "mode": "raw",
  1447. "raw": ""
  1448. },
  1449. "url": {
  1450. "raw": "{{url}}/api/vipmember/vipmemberrechargepackagecloud/",
  1451. "host": [
  1452. "{{url}}"
  1453. ],
  1454. "path": [
  1455. "api",
  1456. "vipmember",
  1457. "vipmemberrechargepackagecloud",
  1458. ""
  1459. ]
  1460. }
  1461. },
  1462. "response": []
  1463. },
  1464. {
  1465. "name": "07_get_cloudebeautypackages",
  1466. "event": [
  1467. {
  1468. "listen": "test",
  1469. "script": {
  1470. "id": "b3c50a93-bb27-4996-8500-25f6536aab3c",
  1471. "exec": [
  1472. "pm.test(\"Status code is 200\", function () {",
  1473. " pm.response.to.have.status(200);",
  1474. "});"
  1475. ],
  1476. "type": "text/javascript"
  1477. }
  1478. }
  1479. ],
  1480. "request": {
  1481. "method": "GET",
  1482. "header": [
  1483. {
  1484. "key": "Authorization",
  1485. "value": "Rong {{shoptoken}}",
  1486. "type": "text"
  1487. }
  1488. ],
  1489. "body": {
  1490. "mode": "raw",
  1491. "raw": ""
  1492. },
  1493. "url": {
  1494. "raw": "{{url}}/api/basic/cloudebeautypackages/",
  1495. "host": [
  1496. "{{url}}"
  1497. ],
  1498. "path": [
  1499. "api",
  1500. "basic",
  1501. "cloudebeautypackages",
  1502. ""
  1503. ]
  1504. }
  1505. },
  1506. "response": []
  1507. }
  1508. ]
  1509. },
  1510. {
  1511. "name": "systemcustomermanage",
  1512. "item": [
  1513. {
  1514. "name": "01_get_scm_customertype",
  1515. "event": [
  1516. {
  1517. "listen": "test",
  1518. "script": {
  1519. "type": "text/javascript",
  1520. "exec": [
  1521. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1522. "",
  1523. "if(tests[\"Status code is 200\"] ){",
  1524. " var jsonData = JSON.parse(responseBody);",
  1525. " ",
  1526. " postman.setEnvironmentVariable(\"customer_typeid\", jsonData[0].id);",
  1527. " postman.setEnvironmentVariable(\"customer_typeid02\", jsonData[2].id);",
  1528. " ",
  1529. "}"
  1530. ]
  1531. }
  1532. }
  1533. ],
  1534. "request": {
  1535. "method": "GET",
  1536. "header": [
  1537. {
  1538. "key": "Authorization",
  1539. "value": "Rong {{Rongtoken}}"
  1540. }
  1541. ],
  1542. "body": {
  1543. "mode": "raw",
  1544. "raw": ""
  1545. },
  1546. "url": {
  1547. "raw": "{{url}}/api/scm/customertype/",
  1548. "host": [
  1549. "{{url}}"
  1550. ],
  1551. "path": [
  1552. "api",
  1553. "scm",
  1554. "customertype",
  1555. ""
  1556. ]
  1557. }
  1558. },
  1559. "response": []
  1560. },
  1561. {
  1562. "name": "02_get_scm_customertypebusiness",
  1563. "event": [
  1564. {
  1565. "listen": "test",
  1566. "script": {
  1567. "type": "text/javascript",
  1568. "exec": [
  1569. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1570. "",
  1571. "if(tests[\"Status code is 200\"] ){",
  1572. " var jsonData = JSON.parse(responseBody);",
  1573. " ",
  1574. " postman.setEnvironmentVariable(\"customer_business1\", jsonData[1].id);",
  1575. " ",
  1576. " postman.setEnvironmentVariable(\"customer_business2\", jsonData[2].id);",
  1577. " ",
  1578. " postman.setEnvironmentVariable(\"customer_business3\", jsonData[3].id);",
  1579. " ",
  1580. " postman.setEnvironmentVariable(\"customer_business4\", jsonData[4].id);",
  1581. " ",
  1582. " postman.setEnvironmentVariable(\"customer_business5\", jsonData[5].id);",
  1583. " ",
  1584. " postman.setEnvironmentVariable(\"customer_business6\", jsonData[6].id);",
  1585. "",
  1586. " ",
  1587. " postman.setEnvironmentVariable(\"customer_business7\", jsonData[0].id);",
  1588. "}"
  1589. ]
  1590. }
  1591. }
  1592. ],
  1593. "request": {
  1594. "method": "GET",
  1595. "header": [
  1596. {
  1597. "key": "Authorization",
  1598. "value": "Rong {{Rongtoken}}"
  1599. }
  1600. ],
  1601. "body": {
  1602. "mode": "raw",
  1603. "raw": ""
  1604. },
  1605. "url": {
  1606. "raw": "{{url}}/api/scm/customertypebusiness/",
  1607. "host": [
  1608. "{{url}}"
  1609. ],
  1610. "path": [
  1611. "api",
  1612. "scm",
  1613. "customertypebusiness",
  1614. ""
  1615. ]
  1616. }
  1617. },
  1618. "response": []
  1619. },
  1620. {
  1621. "name": "03_get_scm_customertypebusiness _typeid",
  1622. "event": [
  1623. {
  1624. "listen": "test",
  1625. "script": {
  1626. "id": "ebd6c3f5-7199-42fb-a2f2-cd7134dca037",
  1627. "exec": [
  1628. "",
  1629. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1630. "if(tests[\"Status code is 200\"] ){",
  1631. " var jsonData = JSON.parse(responseBody);",
  1632. " ",
  1633. " postman.setEnvironmentVariable(\"customer_typeid01\", jsonData[0].id);",
  1634. " ",
  1635. " postman.setEnvironmentVariable(\"customer_typeid03\", jsonData[2].id);",
  1636. " postman.setEnvironmentVariable(\"customer_typeid04\", jsonData[3].id);",
  1637. "}"
  1638. ],
  1639. "type": "text/javascript"
  1640. }
  1641. }
  1642. ],
  1643. "request": {
  1644. "method": "GET",
  1645. "header": [
  1646. {
  1647. "key": "Authorization",
  1648. "value": "Rong {{Rongtoken}}"
  1649. }
  1650. ],
  1651. "body": {
  1652. "mode": "raw",
  1653. "raw": ""
  1654. },
  1655. "url": {
  1656. "raw": "{{url}}/api/scm/customertypebusiness/?customerTypeId={{customer_typeid}}",
  1657. "host": [
  1658. "{{url}}"
  1659. ],
  1660. "path": [
  1661. "api",
  1662. "scm",
  1663. "customertypebusiness",
  1664. ""
  1665. ],
  1666. "query": [
  1667. {
  1668. "key": "customerTypeId",
  1669. "value": "{{customer_typeid}}"
  1670. }
  1671. ]
  1672. }
  1673. },
  1674. "response": []
  1675. },
  1676. {
  1677. "name": "04_get_scm_customertypebusiness _typeid2",
  1678. "event": [
  1679. {
  1680. "listen": "test",
  1681. "script": {
  1682. "type": "text/javascript",
  1683. "exec": [
  1684. "",
  1685. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1686. "if(tests[\"Status code is 200\"] ){",
  1687. " var jsonData = JSON.parse(responseBody);",
  1688. " ",
  1689. " postman.setEnvironmentVariable(\"customer_typeid0202\", jsonData[0].id);",
  1690. " postman.setEnvironmentVariable(\"customer_typeid0203\", jsonData[1].id);",
  1691. " postman.setEnvironmentVariable(\"customer_typeid0204\", jsonData[2].id);",
  1692. "}"
  1693. ]
  1694. }
  1695. }
  1696. ],
  1697. "request": {
  1698. "method": "GET",
  1699. "header": [
  1700. {
  1701. "key": "Authorization",
  1702. "value": "Rong {{Rongtoken}}"
  1703. }
  1704. ],
  1705. "body": {
  1706. "mode": "raw",
  1707. "raw": ""
  1708. },
  1709. "url": {
  1710. "raw": "{{url}}/api/scm/customertypebusiness/?customerTypeId={{customer_typeid02}}",
  1711. "host": [
  1712. "{{url}}"
  1713. ],
  1714. "path": [
  1715. "api",
  1716. "scm",
  1717. "customertypebusiness",
  1718. ""
  1719. ],
  1720. "query": [
  1721. {
  1722. "key": "customerTypeId",
  1723. "value": "{{customer_typeid02}}"
  1724. }
  1725. ]
  1726. }
  1727. },
  1728. "response": []
  1729. },
  1730. {
  1731. "name": "05_get_scm_trialperiod",
  1732. "event": [
  1733. {
  1734. "listen": "test",
  1735. "script": {
  1736. "type": "text/javascript",
  1737. "exec": [
  1738. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1739. "if(tests[\"Status code is 200\"] ){",
  1740. " var jsonData = JSON.parse(responseBody);",
  1741. " ",
  1742. " postman.setEnvironmentVariable(\"trial_period\", jsonData[3].id);",
  1743. "}"
  1744. ]
  1745. }
  1746. }
  1747. ],
  1748. "request": {
  1749. "method": "GET",
  1750. "header": [
  1751. {
  1752. "key": "Authorization",
  1753. "value": "Rong {{Rongtoken}}"
  1754. }
  1755. ],
  1756. "body": {
  1757. "mode": "raw",
  1758. "raw": ""
  1759. },
  1760. "url": {
  1761. "raw": "{{url}}/api/scm/trialperiod/",
  1762. "host": [
  1763. "{{url}}"
  1764. ],
  1765. "path": [
  1766. "api",
  1767. "scm",
  1768. "trialperiod",
  1769. ""
  1770. ]
  1771. }
  1772. },
  1773. "response": []
  1774. },
  1775. {
  1776. "name": "06_get_scm_customersource",
  1777. "event": [
  1778. {
  1779. "listen": "test",
  1780. "script": {
  1781. "id": "af708240-ce51-4220-8845-56b26063cdfc",
  1782. "exec": [
  1783. "",
  1784. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1785. "if(tests[\"Status code is 200\"] ){",
  1786. " var jsonData = JSON.parse(responseBody);",
  1787. " ",
  1788. " postman.setEnvironmentVariable(\"customer_source\", jsonData[0].id);",
  1789. "}"
  1790. ],
  1791. "type": "text/javascript"
  1792. }
  1793. }
  1794. ],
  1795. "request": {
  1796. "method": "GET",
  1797. "header": [
  1798. {
  1799. "key": "Authorization",
  1800. "value": "Rong {{Rongtoken}}"
  1801. }
  1802. ],
  1803. "body": {
  1804. "mode": "raw",
  1805. "raw": ""
  1806. },
  1807. "url": {
  1808. "raw": "{{url}}/api/scm/customersource/",
  1809. "host": [
  1810. "{{url}}"
  1811. ],
  1812. "path": [
  1813. "api",
  1814. "scm",
  1815. "customersource",
  1816. ""
  1817. ]
  1818. }
  1819. },
  1820. "response": []
  1821. },
  1822. {
  1823. "name": "07_post_scm_customeradmin",
  1824. "event": [
  1825. {
  1826. "listen": "test",
  1827. "script": {
  1828. "id": "9593c642-9ba7-44ea-9e11-852ee60b519e",
  1829. "exec": [
  1830. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  1831. ],
  1832. "type": "text/javascript"
  1833. }
  1834. }
  1835. ],
  1836. "request": {
  1837. "method": "POST",
  1838. "header": [
  1839. {
  1840. "key": "Content-Type",
  1841. "value": "application/json"
  1842. },
  1843. {
  1844. "key": "Authorization",
  1845. "value": "Rong {{Rongtoken}}"
  1846. }
  1847. ],
  1848. "body": {
  1849. "mode": "raw",
  1850. "raw": "{\r\n\t\"id\": null,\r\n\t\"code\": null,\r\n\t\"register_date\": \"{{date}}\",\r\n\t\"name\": \"明发园汽车修理厂\",\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"customer_source\": {{customer_source}},\r\n\t\"trial_period\": {{trial_period}},\r\n\t\"expired_date\": \"{{date}}\",\r\n\t\"contract_expired_date\": null,\r\n\t\"boss_name\": \"张智慧\",\r\n\t\"boss_mobile\": \"18159852124\",\r\n\t\"boss_email\": \"18159852124@qq.com\",\r\n\t\"affiliated_group\": null,\r\n\t\"state\": 1,\r\n\t\"customer_business\": [ {{customer_business1}}, {{customer_business2}}, {{customer_business3}},{{customer_business4}}, {{customer_business5}}, {{customer_business6}}, {{customer_business7}}],\r\n\t\"customer_maintenance\": null,\r\n\t\"unified_credit_code\": null,\r\n\t\"address\": null,\r\n\t\"longitude\": null,\r\n\t\"latitude\": null,\r\n\t\"contact_name\": null,\r\n\t\"contact_mobile\": null,\r\n\t\"description\": null\r\n}"
  1851. },
  1852. "url": {
  1853. "raw": "{{url}}/api/scm/customeradmin/",
  1854. "host": [
  1855. "{{url}}"
  1856. ],
  1857. "path": [
  1858. "api",
  1859. "scm",
  1860. "customeradmin",
  1861. ""
  1862. ]
  1863. }
  1864. },
  1865. "response": []
  1866. },
  1867. {
  1868. "name": "08_get_scm_customeradmin",
  1869. "event": [
  1870. {
  1871. "listen": "test",
  1872. "script": {
  1873. "id": "134f530f-5ec5-4958-ad2c-32b914a29eef",
  1874. "exec": [
  1875. "",
  1876. "",
  1877. "//tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;",
  1878. "",
  1879. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1880. "if(tests[\"Status code is 200\"] ){",
  1881. " var jsonData = JSON.parse(responseBody);",
  1882. " ",
  1883. " postman.setEnvironmentVariable(\"customer_id\", jsonData.results[0].shop_id);",
  1884. "}"
  1885. ],
  1886. "type": "text/javascript"
  1887. }
  1888. }
  1889. ],
  1890. "request": {
  1891. "method": "GET",
  1892. "header": [
  1893. {
  1894. "key": "Content-Type",
  1895. "value": "application/json"
  1896. },
  1897. {
  1898. "key": "Authorization",
  1899. "value": "Rong {{Rongtoken}}"
  1900. }
  1901. ],
  1902. "body": {
  1903. "mode": "raw",
  1904. "raw": ""
  1905. },
  1906. "url": {
  1907. "raw": "{{url}}/api/scm/customeradmin/",
  1908. "host": [
  1909. "{{url}}"
  1910. ],
  1911. "path": [
  1912. "api",
  1913. "scm",
  1914. "customeradmin",
  1915. ""
  1916. ]
  1917. }
  1918. },
  1919. "response": []
  1920. },
  1921. {
  1922. "name": "09_get_scm_customeradmin_id",
  1923. "event": [
  1924. {
  1925. "listen": "test",
  1926. "script": {
  1927. "type": "text/javascript",
  1928. "exec": [
  1929. "",
  1930. "",
  1931. "//tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;",
  1932. "",
  1933. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1934. "// if(tests[\"Status code is 200\"] ){",
  1935. "// var jsonData = JSON.parse(responseBody);",
  1936. " ",
  1937. "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);",
  1938. "// }"
  1939. ]
  1940. }
  1941. }
  1942. ],
  1943. "request": {
  1944. "method": "GET",
  1945. "header": [
  1946. {
  1947. "key": "Content-Type",
  1948. "value": "application/json"
  1949. },
  1950. {
  1951. "key": "Authorization",
  1952. "value": "Rong {{Rongtoken}}"
  1953. }
  1954. ],
  1955. "body": {
  1956. "mode": "raw",
  1957. "raw": ""
  1958. },
  1959. "url": {
  1960. "raw": "{{url}}/api/scm/customeradmin/{{customer_id}}/",
  1961. "host": [
  1962. "{{url}}"
  1963. ],
  1964. "path": [
  1965. "api",
  1966. "scm",
  1967. "customeradmin",
  1968. "{{customer_id}}",
  1969. ""
  1970. ]
  1971. }
  1972. },
  1973. "response": []
  1974. },
  1975. {
  1976. "name": "10_get_scm_subsystem",
  1977. "event": [
  1978. {
  1979. "listen": "test",
  1980. "script": {
  1981. "id": "6bf54825-e658-4181-bc93-7ee38d26a2d6",
  1982. "exec": [
  1983. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1984. "",
  1985. "if(tests[\"Status code is 200\"] ){",
  1986. " var jsonData = JSON.parse(responseBody);",
  1987. " ",
  1988. " postman.setEnvironmentVariable(\"sub_systemid\", jsonData.results[0].id);",
  1989. " ",
  1990. " // postman.setEnvironmentVariable(\"subsystem_code\", jsonData.results[0].code);",
  1991. " ",
  1992. " // postman.setEnvironmentVariable(\"subsystem_name\", jsonData.results[0].name);",
  1993. " ",
  1994. " // postman.setEnvironmentVariable(\"customer_type_id\", jsonData.results[0].customer_type);",
  1995. "}"
  1996. ],
  1997. "type": "text/javascript"
  1998. }
  1999. }
  2000. ],
  2001. "request": {
  2002. "method": "GET",
  2003. "header": [
  2004. {
  2005. "key": "Authorization",
  2006. "value": "Rong {{Rongtoken}}"
  2007. }
  2008. ],
  2009. "body": {
  2010. "mode": "raw",
  2011. "raw": ""
  2012. },
  2013. "url": {
  2014. "raw": "{{url}}/api/scm/subsystem/",
  2015. "host": [
  2016. "{{url}}"
  2017. ],
  2018. "path": [
  2019. "api",
  2020. "scm",
  2021. "subsystem",
  2022. ""
  2023. ]
  2024. }
  2025. },
  2026. "response": []
  2027. },
  2028. {
  2029. "name": "11_get_scm_subsystem _id",
  2030. "event": [
  2031. {
  2032. "listen": "test",
  2033. "script": {
  2034. "type": "text/javascript",
  2035. "exec": [
  2036. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2037. "",
  2038. "if(tests[\"Status code is 200\"] ){",
  2039. " var jsonData = JSON.parse(responseBody);",
  2040. " ",
  2041. " // postman.setEnvironmentVariable(\"sub_systemid\", jsonData.results[0].id);",
  2042. " ",
  2043. " postman.setEnvironmentVariable(\"subsystem_version_module\", jsonData.version_module);",
  2044. " ",
  2045. " postman.setEnvironmentVariable(\"subsystem_code\", jsonData.code);",
  2046. " ",
  2047. " postman.setEnvironmentVariable(\"subsystem_name\", jsonData.name);",
  2048. " ",
  2049. " postman.setEnvironmentVariable(\"subsystem_customer_type\", jsonData.customer_type);",
  2050. "}"
  2051. ]
  2052. }
  2053. }
  2054. ],
  2055. "request": {
  2056. "method": "GET",
  2057. "header": [
  2058. {
  2059. "key": "Authorization",
  2060. "value": "Rong {{Rongtoken}}"
  2061. }
  2062. ],
  2063. "body": {
  2064. "mode": "raw",
  2065. "raw": ""
  2066. },
  2067. "url": {
  2068. "raw": "{{url}}/api/scm/subsystem/{{sub_systemid}}/",
  2069. "host": [
  2070. "{{url}}"
  2071. ],
  2072. "path": [
  2073. "api",
  2074. "scm",
  2075. "subsystem",
  2076. "{{sub_systemid}}",
  2077. ""
  2078. ]
  2079. }
  2080. },
  2081. "response": []
  2082. },
  2083. {
  2084. "name": "12_get_scm_systemmodule",
  2085. "event": [
  2086. {
  2087. "listen": "test",
  2088. "script": {
  2089. "id": "c40f3e8f-1944-4f7c-94b3-f7a7100501d4",
  2090. "exec": [
  2091. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2092. "if(tests[\"Status code is 200\"] ){",
  2093. " var jsonData = JSON.parse(responseBody);",
  2094. " ",
  2095. " postman.setEnvironmentVariable(\"module1\", jsonData[0].id);",
  2096. " ",
  2097. " postman.setEnvironmentVariable(\"module2\", jsonData[1].id);",
  2098. " ",
  2099. " postman.setEnvironmentVariable(\"module3\", jsonData[2].id);",
  2100. "",
  2101. " postman.setEnvironmentVariable(\"module4\", jsonData[3].id);",
  2102. " ",
  2103. " postman.setEnvironmentVariable(\"module5\", jsonData[4].id);",
  2104. " ",
  2105. " postman.setEnvironmentVariable(\"module6\", jsonData[5].id);",
  2106. " ",
  2107. " postman.setEnvironmentVariable(\"module7\", jsonData[6].id);",
  2108. " ",
  2109. " postman.setEnvironmentVariable(\"module8\", jsonData[7].id);",
  2110. " ",
  2111. " ",
  2112. "}",
  2113. "",
  2114. ""
  2115. ],
  2116. "type": "text/javascript"
  2117. }
  2118. }
  2119. ],
  2120. "request": {
  2121. "method": "GET",
  2122. "header": [
  2123. {
  2124. "key": "Authorization",
  2125. "value": "Rong {{Rongtoken}}"
  2126. }
  2127. ],
  2128. "body": {
  2129. "mode": "raw",
  2130. "raw": ""
  2131. },
  2132. "url": {
  2133. "raw": "{{url}}/api/scm/systemmodule/",
  2134. "host": [
  2135. "{{url}}"
  2136. ],
  2137. "path": [
  2138. "api",
  2139. "scm",
  2140. "systemmodule",
  2141. ""
  2142. ]
  2143. }
  2144. },
  2145. "response": []
  2146. },
  2147. {
  2148. "name": "13_post_scm_systemmodule",
  2149. "event": [
  2150. {
  2151. "listen": "test",
  2152. "script": {
  2153. "id": "93933fb6-152e-4a3a-86e2-b7f72d05ecbd",
  2154. "exec": [
  2155. "",
  2156. "tests[\"Successful POST request\"] = responseCode.code === 201;",
  2157. "",
  2158. " var jsonData = JSON.parse(responseBody);",
  2159. " ",
  2160. " postman.setEnvironmentVariable(\"systemmodule_id\", jsonData.id);",
  2161. "",
  2162. ""
  2163. ],
  2164. "type": "text/javascript"
  2165. }
  2166. }
  2167. ],
  2168. "request": {
  2169. "method": "POST",
  2170. "header": [
  2171. {
  2172. "key": "Authorization",
  2173. "value": "Rong {{Rongtoken}}"
  2174. },
  2175. {
  2176. "key": "Content-Type",
  2177. "value": "application/json"
  2178. }
  2179. ],
  2180. "body": {
  2181. "mode": "raw",
  2182. "raw": "{\r\n\t\"id\": null,\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"code\": \"990\",\r\n\t\"name\": \"汽车专业服务标准版\",\r\n\t\"version_module\": [{{module1}}, {{module2}}, {{module3}}, {{module4}}, {{module6}},{{module7}}]\r\n}"
  2183. },
  2184. "url": {
  2185. "raw": "{{url}}/api/scm/systemmodule/",
  2186. "host": [
  2187. "{{url}}"
  2188. ],
  2189. "path": [
  2190. "api",
  2191. "scm",
  2192. "systemmodule",
  2193. ""
  2194. ]
  2195. }
  2196. },
  2197. "response": []
  2198. },
  2199. {
  2200. "name": "14_deletet_scm_systemmodule",
  2201. "event": [
  2202. {
  2203. "listen": "test",
  2204. "script": {
  2205. "id": "6c2d048f-a3c8-4eec-bd14-3f9e33fe59ca",
  2206. "exec": [
  2207. "",
  2208. "tests[\"Status code is 204\"] = responseCode.code === 204 ;"
  2209. ],
  2210. "type": "text/javascript"
  2211. }
  2212. }
  2213. ],
  2214. "request": {
  2215. "method": "DELETE",
  2216. "header": [
  2217. {
  2218. "key": "Authorization",
  2219. "value": "Rong {{Rongtoken}}"
  2220. },
  2221. {
  2222. "key": "Content-Type",
  2223. "value": "application/json"
  2224. }
  2225. ],
  2226. "body": {
  2227. "mode": "raw",
  2228. "raw": "{\r\n\t\"id\": null,\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"code\": \"990\",\r\n\t\"name\": \"汽车专业服务标准版\",\r\n\t\"version_module\": [{{module1}}, {{module2}}, {{module3}}, {{module4}}, {{module6}},{{module7}}]\r\n}"
  2229. },
  2230. "url": {
  2231. "raw": "{{url}}/api/scm/systemmodule/{{systemmodule_id}}/",
  2232. "host": [
  2233. "{{url}}"
  2234. ],
  2235. "path": [
  2236. "api",
  2237. "scm",
  2238. "systemmodule",
  2239. "{{systemmodule_id}}",
  2240. ""
  2241. ]
  2242. }
  2243. },
  2244. "response": []
  2245. },
  2246. {
  2247. "name": "15_get_scm_concurrentuser",
  2248. "event": [
  2249. {
  2250. "listen": "test",
  2251. "script": {
  2252. "type": "text/javascript",
  2253. "exec": [
  2254. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2255. "",
  2256. "if(tests[\"Status code is 200\"] ){",
  2257. " var jsonData = JSON.parse(responseBody);",
  2258. " ",
  2259. " postman.setEnvironmentVariable(\"concurrent_user\", jsonData[1].quantity);",
  2260. "}"
  2261. ]
  2262. }
  2263. }
  2264. ],
  2265. "request": {
  2266. "method": "GET",
  2267. "header": [
  2268. {
  2269. "key": "Authorization",
  2270. "value": "Rong {{Rongtoken}}"
  2271. }
  2272. ],
  2273. "body": {
  2274. "mode": "raw",
  2275. "raw": ""
  2276. },
  2277. "url": {
  2278. "raw": "{{url}}/api/scm/concurrentuser/",
  2279. "host": [
  2280. "{{url}}"
  2281. ],
  2282. "path": [
  2283. "api",
  2284. "scm",
  2285. "concurrentuser",
  2286. ""
  2287. ]
  2288. }
  2289. },
  2290. "response": []
  2291. },
  2292. {
  2293. "name": "16_post_scm_systemversion",
  2294. "event": [
  2295. {
  2296. "listen": "test",
  2297. "script": {
  2298. "type": "text/javascript",
  2299. "exec": [
  2300. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;",
  2301. "",
  2302. "",
  2303. " var jsonData = JSON.parse(responseBody);",
  2304. " ",
  2305. " postman.setEnvironmentVariable(\"systemversion_id\", jsonData.id);",
  2306. ""
  2307. ]
  2308. }
  2309. }
  2310. ],
  2311. "request": {
  2312. "method": "POST",
  2313. "header": [
  2314. {
  2315. "key": "Authorization",
  2316. "value": "Rong {{Rongtoken}}"
  2317. },
  2318. {
  2319. "key": "Content-Type",
  2320. "value": "application/json"
  2321. }
  2322. ],
  2323. "body": {
  2324. "mode": "raw",
  2325. "raw": "{\r\n\t\"id\": null,\r\n\t\"sub_system\": {{sub_systemid}},\r\n\t\"customer_type\":{{subsystem_customer_type}},\r\n\t\"code\": \"{{subsystem_code}}\",\r\n\t\"name\": \"{{subsystem_name}}\",\r\n\t\"concurrent_user\": {{concurrent_user}},\r\n\t\"price\": \"2000\",\r\n\t\"version_module\": [{{subsystem_version_module}}]\r\n}"
  2326. },
  2327. "url": {
  2328. "raw": "{{url}}/api/scm/systemversion/",
  2329. "host": [
  2330. "{{url}}"
  2331. ],
  2332. "path": [
  2333. "api",
  2334. "scm",
  2335. "systemversion",
  2336. ""
  2337. ]
  2338. }
  2339. },
  2340. "response": []
  2341. },
  2342. {
  2343. "name": "17_get_scm_systemversion",
  2344. "event": [
  2345. {
  2346. "listen": "test",
  2347. "script": {
  2348. "id": "042c0422-6fb7-41fc-b3a7-eb8c31ca6ae8",
  2349. "exec": [
  2350. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2351. "",
  2352. "if(tests[\"Status code is 200\"] ){",
  2353. " var jsonData = JSON.parse(responseBody);",
  2354. " ",
  2355. " postman.setEnvironmentVariable(\"version_id\", jsonData.results[0].id);",
  2356. "}"
  2357. ],
  2358. "type": "text/javascript"
  2359. }
  2360. }
  2361. ],
  2362. "request": {
  2363. "method": "GET",
  2364. "header": [
  2365. {
  2366. "key": "Authorization",
  2367. "value": "Rong {{Rongtoken}}"
  2368. }
  2369. ],
  2370. "body": {
  2371. "mode": "raw",
  2372. "raw": ""
  2373. },
  2374. "url": {
  2375. "raw": "{{url}}/api/scm/systemversion/",
  2376. "host": [
  2377. "{{url}}"
  2378. ],
  2379. "path": [
  2380. "api",
  2381. "scm",
  2382. "systemversion",
  2383. ""
  2384. ]
  2385. }
  2386. },
  2387. "response": []
  2388. },
  2389. {
  2390. "name": "18_delete_scm_systemversion",
  2391. "event": [
  2392. {
  2393. "listen": "test",
  2394. "script": {
  2395. "type": "text/javascript",
  2396. "exec": [
  2397. "tests[\"Status code is 204\"] = responseCode.code === 204 ;"
  2398. ]
  2399. }
  2400. }
  2401. ],
  2402. "request": {
  2403. "method": "DELETE",
  2404. "header": [
  2405. {
  2406. "key": "Authorization",
  2407. "value": "Rong {{Rongtoken}}"
  2408. }
  2409. ],
  2410. "body": {},
  2411. "url": {
  2412. "raw": "{{url}}/api/scm/systemversion/{{systemversion_id}}/",
  2413. "host": [
  2414. "{{url}}"
  2415. ],
  2416. "path": [
  2417. "api",
  2418. "scm",
  2419. "systemversion",
  2420. "{{systemversion_id}}",
  2421. ""
  2422. ]
  2423. }
  2424. },
  2425. "response": []
  2426. },
  2427. {
  2428. "name": "19_post_scm_customermaintenanceadmin",
  2429. "event": [
  2430. {
  2431. "listen": "test",
  2432. "script": {
  2433. "id": "bf484a30-321b-418f-9092-27c7df8209a9",
  2434. "exec": [
  2435. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;",
  2436. "// var jsonData = JSON.parse(responseBody);",
  2437. " ",
  2438. "// postman.setEnvironmentVariable(\"maintenance_id\", jsonData.id);"
  2439. ],
  2440. "type": "text/javascript"
  2441. }
  2442. }
  2443. ],
  2444. "request": {
  2445. "method": "POST",
  2446. "header": [
  2447. {
  2448. "key": "Authorization",
  2449. "value": "Rong {{Rongtoken}}"
  2450. },
  2451. {
  2452. "key": "Content-Type",
  2453. "value": "application/json"
  2454. }
  2455. ],
  2456. "body": {
  2457. "mode": "raw",
  2458. "raw": "{\r\n\t\"id\": null,\r\n\t\"code\": null,\r\n\t\"name\": \"厦门心思科技邮箱公司\",\r\n\t\"customer_type\": {{customer_typeid}},\r\n\t\"head_name\": \"张宇\",\r\n\t\"head_mobile\": \"19900009999\",\r\n\t\"head_email\": \"19900009999@163.com\",\r\n\t\"note\": null\r\n}"
  2459. },
  2460. "url": {
  2461. "raw": "{{url}}/api/scm/customermaintenanceadmin/",
  2462. "host": [
  2463. "{{url}}"
  2464. ],
  2465. "path": [
  2466. "api",
  2467. "scm",
  2468. "customermaintenanceadmin",
  2469. ""
  2470. ]
  2471. }
  2472. },
  2473. "response": []
  2474. },
  2475. {
  2476. "name": "20_get_scm_customermaintenanceadmin",
  2477. "event": [
  2478. {
  2479. "listen": "test",
  2480. "script": {
  2481. "id": "d7ff6caa-c9f5-4b1c-a585-09b278394a26",
  2482. "exec": [
  2483. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2484. "if(tests[\"Status code is 200\"] ){",
  2485. " var jsonData = JSON.parse(responseBody);",
  2486. " ",
  2487. " postman.setEnvironmentVariable(\"maintenance_id\", jsonData.results[1].id);",
  2488. " ",
  2489. " postman.setEnvironmentVariable(\"maintenance_id01\", jsonData.results[2].id);",
  2490. "}"
  2491. ],
  2492. "type": "text/javascript"
  2493. }
  2494. }
  2495. ],
  2496. "request": {
  2497. "method": "GET",
  2498. "header": [
  2499. {
  2500. "key": "Authorization",
  2501. "value": "Rong {{Rongtoken}}"
  2502. }
  2503. ],
  2504. "body": {
  2505. "mode": "raw",
  2506. "raw": ""
  2507. },
  2508. "url": {
  2509. "raw": "{{url}}/api/scm/customermaintenanceadmin/",
  2510. "host": [
  2511. "{{url}}"
  2512. ],
  2513. "path": [
  2514. "api",
  2515. "scm",
  2516. "customermaintenanceadmin",
  2517. ""
  2518. ]
  2519. }
  2520. },
  2521. "response": []
  2522. },
  2523. {
  2524. "name": "21_delete_scm_customermaintenanceadmin",
  2525. "event": [
  2526. {
  2527. "listen": "test",
  2528. "script": {
  2529. "id": "d7ff6caa-c9f5-4b1c-a585-09b278394a26",
  2530. "exec": [
  2531. "pm.test(\"Status code is 204\", function () {",
  2532. " pm.response.to.have.status(204);",
  2533. "});"
  2534. ],
  2535. "type": "text/javascript"
  2536. }
  2537. }
  2538. ],
  2539. "request": {
  2540. "method": "DELETE",
  2541. "header": [
  2542. {
  2543. "key": "Authorization",
  2544. "value": "Rong {{Rongtoken}}"
  2545. }
  2546. ],
  2547. "body": {
  2548. "mode": "raw",
  2549. "raw": ""
  2550. },
  2551. "url": {
  2552. "raw": "{{url}}/api/scm/customermaintenanceadmin/{{maintenance_id01}}/",
  2553. "host": [
  2554. "{{url}}"
  2555. ],
  2556. "path": [
  2557. "api",
  2558. "scm",
  2559. "customermaintenanceadmin",
  2560. "{{maintenance_id01}}",
  2561. ""
  2562. ]
  2563. }
  2564. },
  2565. "response": []
  2566. },
  2567. {
  2568. "name": "22_post_scm_contract",
  2569. "event": [
  2570. {
  2571. "listen": "test",
  2572. "script": {
  2573. "id": "c2ab4717-2a23-477e-967a-d9ae66e58e56",
  2574. "exec": [
  2575. "",
  2576. "",
  2577. "",
  2578. "",
  2579. "",
  2580. "// if(tests[\"Status code is 200\"] ){",
  2581. "// var jsonData = JSON.parse(responseBody);",
  2582. " ",
  2583. "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);",
  2584. "// }",
  2585. "",
  2586. "",
  2587. "",
  2588. "tests[\"Successful POST request\"] = responseCode.code === 201 ;",
  2589. "var jsonData = JSON.parse(responseBody);",
  2590. " ",
  2591. "postman.setEnvironmentVariable(\"contract_id\", jsonData.id);"
  2592. ],
  2593. "type": "text/javascript"
  2594. }
  2595. }
  2596. ],
  2597. "request": {
  2598. "method": "POST",
  2599. "header": [
  2600. {
  2601. "key": "Content-Type",
  2602. "value": "application/json"
  2603. },
  2604. {
  2605. "key": "Authorization",
  2606. "value": "Rong {{Rongtoken}}"
  2607. }
  2608. ],
  2609. "body": {
  2610. "mode": "raw",
  2611. "raw": "{\r\n\t\"id\": null,\r\n\t\"customer\": {{customer_id}},\r\n\t\"sign_date\": \"{{date}}\",\r\n\t\"code\": null,\r\n\t\"version\": {{version_id}},\r\n\t\"single_discount\": 0.95,\r\n\t\"complex_discount\": 0.9,\r\n\t\"customer_maintenance\": {{maintenance_id}},\r\n\t\"expired_date\": \"2019-09-11T08:55:50.000Z\",\r\n\t\"rem\": null\r\n}"
  2612. },
  2613. "url": {
  2614. "raw": "{{url}}/api/scm/contract/",
  2615. "host": [
  2616. "{{url}}"
  2617. ],
  2618. "path": [
  2619. "api",
  2620. "scm",
  2621. "contract",
  2622. ""
  2623. ]
  2624. }
  2625. },
  2626. "response": []
  2627. },
  2628. {
  2629. "name": "23_get_scm_contract",
  2630. "event": [
  2631. {
  2632. "listen": "test",
  2633. "script": {
  2634. "type": "text/javascript",
  2635. "exec": [
  2636. "",
  2637. "",
  2638. "",
  2639. "",
  2640. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2641. "// if(tests[\"Status code is 200\"] ){",
  2642. "// var jsonData = JSON.parse(responseBody);",
  2643. " ",
  2644. "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);",
  2645. "// }"
  2646. ]
  2647. }
  2648. }
  2649. ],
  2650. "request": {
  2651. "method": "GET",
  2652. "header": [
  2653. {
  2654. "key": "Authorization",
  2655. "value": "Rong {{Rongtoken}}"
  2656. }
  2657. ],
  2658. "body": {
  2659. "mode": "raw",
  2660. "raw": ""
  2661. },
  2662. "url": {
  2663. "raw": "{{url}}/api/scm/contract/",
  2664. "host": [
  2665. "{{url}}"
  2666. ],
  2667. "path": [
  2668. "api",
  2669. "scm",
  2670. "contract",
  2671. ""
  2672. ]
  2673. }
  2674. },
  2675. "response": []
  2676. },
  2677. {
  2678. "name": "24_delete_scm_contract",
  2679. "event": [
  2680. {
  2681. "listen": "test",
  2682. "script": {
  2683. "type": "text/javascript",
  2684. "exec": [
  2685. "",
  2686. "",
  2687. "",
  2688. "",
  2689. "",
  2690. "// if(tests[\"Status code is 200\"] ){",
  2691. "// var jsonData = JSON.parse(responseBody);",
  2692. " ",
  2693. "// postman.setEnvironmentVariable(\"customer_id\", jsonData[17].id);",
  2694. "// }",
  2695. "",
  2696. "",
  2697. "",
  2698. "",
  2699. "",
  2700. "tests[\"Status code is 204\"] = responseCode.code === 204;"
  2701. ]
  2702. }
  2703. }
  2704. ],
  2705. "request": {
  2706. "method": "DELETE",
  2707. "header": [
  2708. {
  2709. "key": "Content-Type",
  2710. "value": "application/json"
  2711. },
  2712. {
  2713. "key": "Authorization",
  2714. "value": "Rong {{Rongtoken}}"
  2715. }
  2716. ],
  2717. "body": {
  2718. "mode": "raw",
  2719. "raw": "{\r\n\t\"id\": null,\r\n\t\"customer\": {{customer_id}},\r\n\t\"sign_date\": \"2018-09-11T08:55:50.766Z\",\r\n\t\"code\": null,\r\n\t\"version\": {{version_id}},\r\n\t\"single_discount\": 0.95,\r\n\t\"complex_discount\": 0.9,\r\n\t\"customer_maintenance\": {{maintenance_id}},\r\n\t\"expired_date\": \"2019-09-11T08:55:50.000Z\",\r\n\t\"rem\": null\r\n}"
  2720. },
  2721. "url": {
  2722. "raw": "{{url}}/api/scm/contract/{{contract_id}}/",
  2723. "host": [
  2724. "{{url}}"
  2725. ],
  2726. "path": [
  2727. "api",
  2728. "scm",
  2729. "contract",
  2730. "{{contract_id}}",
  2731. ""
  2732. ]
  2733. }
  2734. },
  2735. "response": []
  2736. }
  2737. ]
  2738. },
  2739. {
  2740. "name": "LoginShop",
  2741. "item": [
  2742. {
  2743. "name": "01_post_shop_login",
  2744. "event": [
  2745. {
  2746. "listen": "test",
  2747. "script": {
  2748. "id": "a3726355-c57b-45a0-9d91-9ccecd8ffed0",
  2749. "exec": [
  2750. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2751. "",
  2752. "if(tests[\"Status code is 200\"] ){",
  2753. " var jsonData = JSON.parse(responseBody);",
  2754. " ",
  2755. " postman.setEnvironmentVariable(\"shoptoken\", jsonData.result.token);",
  2756. "}"
  2757. ],
  2758. "type": "text/javascript"
  2759. }
  2760. }
  2761. ],
  2762. "request": {
  2763. "method": "POST",
  2764. "header": [
  2765. {
  2766. "key": "Content-Type",
  2767. "value": "application/json"
  2768. }
  2769. ],
  2770. "body": {
  2771. "mode": "raw",
  2772. "raw": "{\r\n\t\"phone\": \"18159853333\",\r\n\t\"password\": \"18159853333\",\r\n\t\"region\": \"86\"\r\n}"
  2773. },
  2774. "url": {
  2775. "raw": "{{imurl}}/user/login/",
  2776. "host": [
  2777. "{{imurl}}"
  2778. ],
  2779. "path": [
  2780. "user",
  2781. "login",
  2782. ""
  2783. ]
  2784. }
  2785. },
  2786. "response": []
  2787. },
  2788. {
  2789. "name": "02_get_shop_info",
  2790. "event": [
  2791. {
  2792. "listen": "test",
  2793. "script": {
  2794. "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb",
  2795. "exec": [
  2796. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2797. "",
  2798. "if(tests[\"Status code is 200\"] ){",
  2799. " var jsonData = JSON.parse(responseBody);",
  2800. " ",
  2801. " postman.setEnvironmentVariable(\"shop_id\", jsonData.results[0].id);",
  2802. " postman.setEnvironmentVariable(\"shopshop_code\", jsonData.results[0].shop_code);",
  2803. " postman.setEnvironmentVariable(\"shop_name\", jsonData.results[0].name);",
  2804. " postman.setEnvironmentVariable(\"shopboss_name\", jsonData.results[0].boss_name);",
  2805. " postman.setEnvironmentVariable(\"shopboss_mobile\", jsonData.results[0].boss_mobile);",
  2806. " // postman.setEnvironmentVariable(\"shopboss_email\", jsonData.results[0].boss_email);",
  2807. " postman.setEnvironmentVariable(\"shop_create_date\", jsonData.results[0].create_date);",
  2808. "",
  2809. "}"
  2810. ],
  2811. "type": "text/javascript"
  2812. }
  2813. }
  2814. ],
  2815. "request": {
  2816. "method": "GET",
  2817. "header": [
  2818. {
  2819. "key": "Content-Type",
  2820. "value": "application/json"
  2821. },
  2822. {
  2823. "key": "Authorization",
  2824. "value": "Rong {{shoptoken}}"
  2825. }
  2826. ],
  2827. "body": {
  2828. "mode": "raw",
  2829. "raw": ""
  2830. },
  2831. "url": {
  2832. "raw": "{{url}}/api/basic/shopadmin/",
  2833. "host": [
  2834. "{{url}}"
  2835. ],
  2836. "path": [
  2837. "api",
  2838. "basic",
  2839. "shopadmin",
  2840. ""
  2841. ]
  2842. }
  2843. },
  2844. "response": []
  2845. },
  2846. {
  2847. "name": "03_get_basic_areashort",
  2848. "event": [
  2849. {
  2850. "listen": "test",
  2851. "script": {
  2852. "id": "eb169cf5-a1bd-49be-8d0f-7da7fac87607",
  2853. "exec": [
  2854. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2855. "",
  2856. "if(tests[\"Status code is 200\"] ){",
  2857. " var jsonData = JSON.parse(responseBody);",
  2858. " ",
  2859. " postman.setEnvironmentVariable(\"areashort_id01\", jsonData[0].id);",
  2860. " ",
  2861. " postman.setEnvironmentVariable(\"areashort_name01\", jsonData[0].name);",
  2862. " postman.setEnvironmentVariable(\"areashort_id13\", jsonData[12].id);",
  2863. " postman.setEnvironmentVariable(\"areashort_name13\", jsonData[12].name);",
  2864. "}"
  2865. ],
  2866. "type": "text/javascript"
  2867. }
  2868. },
  2869. {
  2870. "listen": "prerequest",
  2871. "script": {
  2872. "id": "7a6c182b-c29f-4050-b7e3-c6535988ae8d",
  2873. "exec": [
  2874. "Date.prototype.Format = function (fmt) { //author: meizz ",
  2875. " var o = {",
  2876. " \"M+\": this.getMonth() + 1, //月份 ",
  2877. " \"d+\": this.getDate(), //日 ",
  2878. " \"h+\": this.getHours(), //小时 ",
  2879. " \"m+\": this.getMinutes(), //分 ",
  2880. " \"s+\": this.getSeconds(), //秒 ",
  2881. " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ",
  2882. " \"S\": this.getMilliseconds() //毫秒 ",
  2883. " };",
  2884. " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));",
  2885. " for (var k in o)",
  2886. " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));",
  2887. " return fmt;",
  2888. "}",
  2889. "postman.setGlobalVariable(\"ymd-date\", new Date().Format(\"yyyy-MM-dd\"));"
  2890. ],
  2891. "type": "text/javascript"
  2892. }
  2893. }
  2894. ],
  2895. "request": {
  2896. "method": "GET",
  2897. "header": [
  2898. {
  2899. "key": "Authorization",
  2900. "value": "Rong {{shoptoken}}"
  2901. }
  2902. ],
  2903. "body": {
  2904. "mode": "raw",
  2905. "raw": ""
  2906. },
  2907. "url": {
  2908. "raw": "{{url}}/api/basic/areashort/",
  2909. "host": [
  2910. "{{url}}"
  2911. ],
  2912. "path": [
  2913. "api",
  2914. "basic",
  2915. "areashort",
  2916. ""
  2917. ]
  2918. }
  2919. },
  2920. "response": []
  2921. },
  2922. {
  2923. "name": "04_put_shop_info",
  2924. "event": [
  2925. {
  2926. "listen": "test",
  2927. "script": {
  2928. "id": "b023693d-9f73-45f6-b124-492d7a538604",
  2929. "exec": [
  2930. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  2931. ],
  2932. "type": "text/javascript"
  2933. }
  2934. }
  2935. ],
  2936. "request": {
  2937. "method": "PUT",
  2938. "header": [
  2939. {
  2940. "key": "Content-Type",
  2941. "value": "application/json"
  2942. },
  2943. {
  2944. "key": "Authorization",
  2945. "value": "Rong {{shoptoken}}"
  2946. }
  2947. ],
  2948. "body": {
  2949. "mode": "raw",
  2950. "raw": "{\r\n \"id\": {{shop_id}},\r\n \"shop_code\": \"{{shopshop_code}}\",\r\n \"name\": \"{{shop_name}}\",\r\n \"area_name\": \"\",\r\n \"address\": \"软件园二期\",\r\n \"boss_name\": \"{{shopboss_name}}\",\r\n \"boss_mobile\": \"{{shopboss_mobile}}\",\r\n \"boss_email\": \"992099380@qq.com\",\r\n \"contact_name\": \"张宇其\",\r\n \"contace_mobile\": \"18800006666\",\r\n \"telephone\": \"05925128921\",\r\n \"email\": \"18800006666@163.com\",\r\n \"description\": \"全心全意打造专业服务团队,\",\r\n \"style\": \"\",\r\n \"wiff_usr\": \"Linker\",\r\n \"wiff_pwd\":\"Linker\" ,\r\n \"state\": true,\r\n \"create_date\": \"{{shop_create_date}}\",\r\n \"areashort\": {{areashort_id13}},\r\n \"qrcode\": \"https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQHs8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAybUVNa0lHXzFmbGgxQW1WVTFyY0gAAgQW7JBbAwQAjScA\",\r\n \"mainbussiness\":[{{customer_typeid01}},{{customer_typeid04}},{{customer_typeid03}}]\r\n}"
  2951. },
  2952. "url": {
  2953. "raw": "{{url}}/api/basic/shopadmin/{{shop_id}}/?id={{shop_id}}",
  2954. "host": [
  2955. "{{url}}"
  2956. ],
  2957. "path": [
  2958. "api",
  2959. "basic",
  2960. "shopadmin",
  2961. "{{shop_id}}",
  2962. ""
  2963. ],
  2964. "query": [
  2965. {
  2966. "key": "id",
  2967. "value": "{{shop_id}}"
  2968. }
  2969. ]
  2970. }
  2971. },
  2972. "response": []
  2973. },
  2974. {
  2975. "name": "05_get_shop_useinfo",
  2976. "event": [
  2977. {
  2978. "listen": "test",
  2979. "script": {
  2980. "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb",
  2981. "exec": [
  2982. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2983. "",
  2984. "",
  2985. " var jsonData = JSON.parse(responseBody);",
  2986. " ",
  2987. " postman.setEnvironmentVariable(\"shopuse_id\", jsonData.id);"
  2988. ],
  2989. "type": "text/javascript"
  2990. }
  2991. }
  2992. ],
  2993. "request": {
  2994. "method": "GET",
  2995. "header": [
  2996. {
  2997. "key": "Content-Type",
  2998. "value": "application/json"
  2999. },
  3000. {
  3001. "key": "Authorization",
  3002. "value": "Rong {{shoptoken}}"
  3003. }
  3004. ],
  3005. "body": {
  3006. "mode": "raw",
  3007. "raw": ""
  3008. },
  3009. "url": {
  3010. "raw": "{{url}}/api/oauth2/userinfo/",
  3011. "host": [
  3012. "{{url}}"
  3013. ],
  3014. "path": [
  3015. "api",
  3016. "oauth2",
  3017. "userinfo",
  3018. ""
  3019. ]
  3020. }
  3021. },
  3022. "response": []
  3023. },
  3024. {
  3025. "name": "06_get_usermsg",
  3026. "event": [
  3027. {
  3028. "listen": "test",
  3029. "script": {
  3030. "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb",
  3031. "exec": [
  3032. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3033. "",
  3034. ""
  3035. ],
  3036. "type": "text/javascript"
  3037. }
  3038. }
  3039. ],
  3040. "request": {
  3041. "method": "GET",
  3042. "header": [
  3043. {
  3044. "key": "Content-Type",
  3045. "value": "application/json"
  3046. },
  3047. {
  3048. "key": "Authorization",
  3049. "value": "Rong {{shoptoken}}"
  3050. }
  3051. ],
  3052. "body": {
  3053. "mode": "raw",
  3054. "raw": ""
  3055. },
  3056. "url": {
  3057. "raw": "{{url}}/api/basic/usermsg/{{shopuse_id}}/",
  3058. "host": [
  3059. "{{url}}"
  3060. ],
  3061. "path": [
  3062. "api",
  3063. "basic",
  3064. "usermsg",
  3065. "{{shopuse_id}}",
  3066. ""
  3067. ]
  3068. }
  3069. },
  3070. "response": []
  3071. },
  3072. {
  3073. "name": "07_put_changeemloyeemsg",
  3074. "event": [
  3075. {
  3076. "listen": "test",
  3077. "script": {
  3078. "id": "a4ecf846-13a4-4e73-a8b6-9831305010eb",
  3079. "exec": [
  3080. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3081. "",
  3082. ""
  3083. ],
  3084. "type": "text/javascript"
  3085. }
  3086. }
  3087. ],
  3088. "request": {
  3089. "method": "PUT",
  3090. "header": [
  3091. {
  3092. "key": "Content-Type",
  3093. "name": "Content-Type",
  3094. "type": "text",
  3095. "value": "application/json"
  3096. },
  3097. {
  3098. "key": "Authorization",
  3099. "value": "Rong {{shoptoken}}"
  3100. }
  3101. ],
  3102. "body": {
  3103. "mode": "raw",
  3104. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"portraituri\": \"http://apple.test.linkerplus.com/media/User/file.png\",\r\n\t\"username\": \"{{shopboss_name}}\",\r\n\t\"email\": \"992099480@qq.com\",\r\n\t\"degree\": \"boss\",\r\n\t\"cellphone\": \"{{shopboss_mobile}}\",\r\n\t\"id_card\": null,\r\n\t\"user\": {{shopuse_id}},\r\n\t\"oldpassword\": null,\r\n\t\"passwordOne\": null,\r\n\t\"passwordTwo\": null,\r\n\t\"new_password\": null\r\n}"
  3105. },
  3106. "url": {
  3107. "raw": "{{url}}/api/basic/changeemloyeemsg/{{shopuse_id}}/",
  3108. "host": [
  3109. "{{url}}"
  3110. ],
  3111. "path": [
  3112. "api",
  3113. "basic",
  3114. "changeemloyeemsg",
  3115. "{{shopuse_id}}",
  3116. ""
  3117. ]
  3118. }
  3119. },
  3120. "response": []
  3121. }
  3122. ]
  3123. },
  3124. {
  3125. "name": "shopbasic",
  3126. "item": [
  3127. {
  3128. "name": "01_get_vipmember_shopgrade",
  3129. "event": [
  3130. {
  3131. "listen": "test",
  3132. "script": {
  3133. "id": "86c174d6-84d6-402a-b0a8-08edc1637fa6",
  3134. "exec": [
  3135. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3136. "",
  3137. "if(tests[\"Status code is 200\"] ){",
  3138. " var jsonData = JSON.parse(responseBody);",
  3139. " ",
  3140. " postman.setEnvironmentVariable(\"grade_id01\", jsonData.results[0].id);",
  3141. " postman.setEnvironmentVariable(\"grade_id02\", jsonData.results[1].id);",
  3142. " postman.setEnvironmentVariable(\"grade_id03\", jsonData.results[2].id);",
  3143. " postman.setEnvironmentVariable(\"grade_id04\", jsonData.results[3].id);",
  3144. " postman.setEnvironmentVariable(\"grade_id05\", jsonData.results[4].id);",
  3145. "}"
  3146. ],
  3147. "type": "text/javascript"
  3148. }
  3149. }
  3150. ],
  3151. "request": {
  3152. "method": "GET",
  3153. "header": [
  3154. {
  3155. "key": "Authorization",
  3156. "value": "Rong {{shoptoken}}"
  3157. }
  3158. ],
  3159. "body": {
  3160. "mode": "raw",
  3161. "raw": ""
  3162. },
  3163. "url": {
  3164. "raw": "{{url}}/api/vipmember/vipmembergradeadmin/",
  3165. "host": [
  3166. "{{url}}"
  3167. ],
  3168. "path": [
  3169. "api",
  3170. "vipmember",
  3171. "vipmembergradeadmin",
  3172. ""
  3173. ]
  3174. }
  3175. },
  3176. "response": []
  3177. },
  3178. {
  3179. "name": "00_post_vipmemberscorerule",
  3180. "event": [
  3181. {
  3182. "listen": "test",
  3183. "script": {
  3184. "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d",
  3185. "exec": [
  3186. "",
  3187. "pm.test(\"Successful POST request\", function () {",
  3188. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  3189. "});// if(tests[\"Status code is 200\"] ){",
  3190. "// var jsonData = JSON.parse(responseBody);",
  3191. " ",
  3192. "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);",
  3193. " ",
  3194. "// }"
  3195. ],
  3196. "type": "text/javascript"
  3197. }
  3198. }
  3199. ],
  3200. "request": {
  3201. "method": "POST",
  3202. "header": [
  3203. {
  3204. "key": "Authorization",
  3205. "value": "Rong {{shoptoken}}"
  3206. },
  3207. {
  3208. "key": "Content-Type",
  3209. "name": "Content-Type",
  3210. "value": "application/json",
  3211. "type": "text"
  3212. }
  3213. ],
  3214. "body": {
  3215. "mode": "raw",
  3216. "raw": "{\r\n\t\"id\": null,\r\n\t\"rule_attr\":2 ,\r\n\t\"mem_level\": {{grade_id05}},\r\n\t\"score_type\":{{scoretype_id01}},\r\n\t\"amount\": 100,\r\n\t\"ratio\": 5,\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2018-12-19\",\r\n\t\"rem\": null,\r\n\t\"state\": 1,\r\n\t\"src\": null\r\n}"
  3217. },
  3218. "url": {
  3219. "raw": "{{url}}/api/vipmember/vipmemberscorerule/",
  3220. "host": [
  3221. "{{url}}"
  3222. ],
  3223. "path": [
  3224. "api",
  3225. "vipmember",
  3226. "vipmemberscorerule",
  3227. ""
  3228. ]
  3229. }
  3230. },
  3231. "response": []
  3232. },
  3233. {
  3234. "name": "02_get_basic_account",
  3235. "event": [
  3236. {
  3237. "listen": "test",
  3238. "script": {
  3239. "id": "d7313943-730e-442b-94f4-1b50f1cbe370",
  3240. "exec": [
  3241. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3242. "",
  3243. "if(tests[\"Status code is 200\"] ){",
  3244. " var jsonData = JSON.parse(responseBody);",
  3245. " ",
  3246. " postman.setEnvironmentVariable(\"account_id01\", jsonData.results[2].id);",
  3247. " postman.setEnvironmentVariable(\"account_id02\", jsonData.results[1].id);",
  3248. " postman.setEnvironmentVariable(\"account_id03\", jsonData.results[2].id);",
  3249. " ",
  3250. "}"
  3251. ],
  3252. "type": "text/javascript"
  3253. }
  3254. }
  3255. ],
  3256. "request": {
  3257. "method": "GET",
  3258. "header": [
  3259. {
  3260. "key": "Authorization",
  3261. "value": "Rong {{shoptoken}}"
  3262. }
  3263. ],
  3264. "body": {
  3265. "mode": "raw",
  3266. "raw": ""
  3267. },
  3268. "url": {
  3269. "raw": "{{url}}/api/basic/shopaccount/",
  3270. "host": [
  3271. "{{url}}"
  3272. ],
  3273. "path": [
  3274. "api",
  3275. "basic",
  3276. "shopaccount",
  3277. ""
  3278. ]
  3279. }
  3280. },
  3281. "response": []
  3282. },
  3283. {
  3284. "name": "03_post_basic_selectclouddept",
  3285. "event": [
  3286. {
  3287. "listen": "test",
  3288. "script": {
  3289. "id": "696f7639-8f76-4783-9f14-16f78ef98eca",
  3290. "exec": [
  3291. "tests[\"Status code is 200\"] = responseCode.code === 200 || responseCode.code === 400;",
  3292. "",
  3293. "// if(tests[\"Status code is 200\"] ){",
  3294. "// var jsonData = JSON.parse(responseBody);",
  3295. " ",
  3296. "// postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);",
  3297. "// postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);",
  3298. "// }"
  3299. ],
  3300. "type": "text/javascript"
  3301. }
  3302. }
  3303. ],
  3304. "request": {
  3305. "method": "POST",
  3306. "header": [
  3307. {
  3308. "key": "Authorization",
  3309. "value": "Rong {{shoptoken}}"
  3310. },
  3311. {
  3312. "key": "Content-Type",
  3313. "name": "Content-Type",
  3314. "value": "application/json",
  3315. "type": "text"
  3316. }
  3317. ],
  3318. "body": {
  3319. "mode": "raw",
  3320. "raw": "[{\r\n\t\"id\": 2,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D002\",\r\n\t\"name\": \"客服部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 2,\r\n\t\"rght\": 3,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}, {\r\n\t\"id\": 4,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D004\",\r\n\t\"name\": \"美容部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 6,\r\n\t\"rght\": 7,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}, {\r\n\t\"id\": 5,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D005\",\r\n\t\"name\": \"财务部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 8,\r\n\t\"rght\": 9,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}, {\r\n\t\"id\": 7,\r\n\t\"parent_name\": \"总部\",\r\n\t\"checked\": true,\r\n\t\"disable\": false,\r\n\t\"code\": \"D007\",\r\n\t\"name\": \"行政部\",\r\n\t\"description\": null,\r\n\t\"hide\": 0,\r\n\t\"lft\": 12,\r\n\t\"rght\": 13,\r\n\t\"tree_id\": 1,\r\n\t\"level\": 1,\r\n\t\"parent\": 1\r\n}]"
  3321. },
  3322. "url": {
  3323. "raw": "{{url}}/api/basic/selectclouddept/",
  3324. "host": [
  3325. "{{url}}"
  3326. ],
  3327. "path": [
  3328. "api",
  3329. "basic",
  3330. "selectclouddept",
  3331. ""
  3332. ]
  3333. }
  3334. },
  3335. "response": []
  3336. },
  3337. {
  3338. "name": "04_get_basic_department",
  3339. "event": [
  3340. {
  3341. "listen": "test",
  3342. "script": {
  3343. "id": "696f7639-8f76-4783-9f14-16f78ef98eca",
  3344. "exec": [
  3345. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3346. "",
  3347. "",
  3348. " var jsonData = JSON.parse(responseBody);",
  3349. " ",
  3350. " postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);",
  3351. " postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);",
  3352. ""
  3353. ],
  3354. "type": "text/javascript"
  3355. }
  3356. }
  3357. ],
  3358. "request": {
  3359. "method": "GET",
  3360. "header": [
  3361. {
  3362. "key": "Authorization",
  3363. "value": "Rong {{shoptoken}}"
  3364. }
  3365. ],
  3366. "body": {
  3367. "mode": "raw",
  3368. "raw": ""
  3369. },
  3370. "url": {
  3371. "raw": "{{url}}/api/basic/department/",
  3372. "host": [
  3373. "{{url}}"
  3374. ],
  3375. "path": [
  3376. "api",
  3377. "basic",
  3378. "department",
  3379. ""
  3380. ]
  3381. }
  3382. },
  3383. "response": []
  3384. },
  3385. {
  3386. "name": "05_get_basic_storehouse",
  3387. "event": [
  3388. {
  3389. "listen": "test",
  3390. "script": {
  3391. "id": "454f038b-b454-489f-b37f-4b1f47c22631",
  3392. "exec": [
  3393. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3394. "",
  3395. "if(tests[\"Status code is 200\"] ){",
  3396. " var jsonData = JSON.parse(responseBody);",
  3397. " ",
  3398. " postman.setEnvironmentVariable(\"storehouse_id03\", jsonData.results[3].id);",
  3399. " postman.setEnvironmentVariable(\"storehouse_id02\", jsonData.results[2].id);",
  3400. " postman.setEnvironmentVariable(\"storehouse_id01\", jsonData.results[1].id);",
  3401. " ",
  3402. "}"
  3403. ],
  3404. "type": "text/javascript"
  3405. }
  3406. }
  3407. ],
  3408. "request": {
  3409. "method": "GET",
  3410. "header": [
  3411. {
  3412. "key": "Authorization",
  3413. "value": "Rong {{shoptoken}}"
  3414. }
  3415. ],
  3416. "body": {
  3417. "mode": "raw",
  3418. "raw": ""
  3419. },
  3420. "url": {
  3421. "raw": "{{url}}/api/basic/storehouse/",
  3422. "host": [
  3423. "{{url}}"
  3424. ],
  3425. "path": [
  3426. "api",
  3427. "basic",
  3428. "storehouse",
  3429. ""
  3430. ]
  3431. }
  3432. },
  3433. "response": []
  3434. },
  3435. {
  3436. "name": "06_get_basic_carcategorystyle",
  3437. "event": [
  3438. {
  3439. "listen": "test",
  3440. "script": {
  3441. "id": "2c69ea9e-8929-452b-86f0-01f0b4627a91",
  3442. "exec": [
  3443. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3444. "",
  3445. "if(tests[\"Status code is 200\"] ){",
  3446. " var jsonData = JSON.parse(responseBody);",
  3447. " ",
  3448. " postman.setEnvironmentVariable(\"carcategory_id01\", jsonData.results[0].id);",
  3449. " ",
  3450. " postman.setEnvironmentVariable(\"carcategory_name01\", jsonData.results[0].category_name);",
  3451. " ",
  3452. " postman.setEnvironmentVariable(\"carcategory_category01\", jsonData.results[0].category);",
  3453. " ",
  3454. " postman.setEnvironmentVariable(\"carcategory_id02\", jsonData.results[1].id);",
  3455. " ",
  3456. " postman.setEnvironmentVariable(\"carcategory_name02\", jsonData.results[1].category_name);",
  3457. " ",
  3458. " postman.setEnvironmentVariable(\"carcategory_category02\", jsonData.results[1].category);",
  3459. "}"
  3460. ],
  3461. "type": "text/javascript"
  3462. }
  3463. }
  3464. ],
  3465. "request": {
  3466. "method": "GET",
  3467. "header": [
  3468. {
  3469. "key": "Authorization",
  3470. "value": "Rong {{shoptoken}}"
  3471. }
  3472. ],
  3473. "body": {
  3474. "mode": "raw",
  3475. "raw": ""
  3476. },
  3477. "url": {
  3478. "raw": "{{url}}/api/basic/carcategorystyle/",
  3479. "host": [
  3480. "{{url}}"
  3481. ],
  3482. "path": [
  3483. "api",
  3484. "basic",
  3485. "carcategorystyle",
  3486. ""
  3487. ]
  3488. }
  3489. },
  3490. "response": []
  3491. },
  3492. {
  3493. "name": "07_get_basic_selectbeautyservices",
  3494. "event": [
  3495. {
  3496. "listen": "test",
  3497. "script": {
  3498. "type": "text/javascript",
  3499. "exec": [
  3500. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  3501. ]
  3502. }
  3503. }
  3504. ],
  3505. "request": {
  3506. "method": "GET",
  3507. "header": [
  3508. {
  3509. "key": "Authorization",
  3510. "value": "Rong {{shoptoken}}"
  3511. }
  3512. ],
  3513. "body": {
  3514. "mode": "raw",
  3515. "raw": ""
  3516. },
  3517. "url": {
  3518. "raw": "{{url}}/api/basic/selectbeautyservices/",
  3519. "host": [
  3520. "{{url}}"
  3521. ],
  3522. "path": [
  3523. "api",
  3524. "basic",
  3525. "selectbeautyservices",
  3526. ""
  3527. ]
  3528. }
  3529. },
  3530. "response": []
  3531. },
  3532. {
  3533. "name": "08_get_basic_beautycategory",
  3534. "event": [
  3535. {
  3536. "listen": "test",
  3537. "script": {
  3538. "id": "3bdeb871-2e30-40cd-a065-bab0ec9ae370",
  3539. "exec": [
  3540. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3541. "",
  3542. "if(tests[\"Status code is 200\"] ){",
  3543. " var jsonData = JSON.parse(responseBody);",
  3544. " ",
  3545. " postman.setEnvironmentVariable(\"beauty_category01\", jsonData[1].id);",
  3546. " postman.setEnvironmentVariable(\"beauty_category02\", jsonData[2].id);",
  3547. "}"
  3548. ],
  3549. "type": "text/javascript"
  3550. }
  3551. }
  3552. ],
  3553. "request": {
  3554. "method": "GET",
  3555. "header": [
  3556. {
  3557. "key": "Authorization",
  3558. "value": "Rong {{shoptoken}}"
  3559. }
  3560. ],
  3561. "body": {
  3562. "mode": "raw",
  3563. "raw": ""
  3564. },
  3565. "url": {
  3566. "raw": "{{url}}/api/basic/beautycategory/",
  3567. "host": [
  3568. "{{url}}"
  3569. ],
  3570. "path": [
  3571. "api",
  3572. "basic",
  3573. "beautycategory",
  3574. ""
  3575. ]
  3576. }
  3577. },
  3578. "response": []
  3579. },
  3580. {
  3581. "name": "09_get_basic_repairecategory",
  3582. "event": [
  3583. {
  3584. "listen": "test",
  3585. "script": {
  3586. "id": "3de19bca-56c7-4965-9fe2-a0fcf85b1eb1",
  3587. "exec": [
  3588. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3589. "",
  3590. "if(tests[\"Status code is 200\"] ){",
  3591. " var jsonData = JSON.parse(responseBody);",
  3592. " ",
  3593. " postman.setEnvironmentVariable(\"repaire_category01\", jsonData[0].id);",
  3594. " postman.setEnvironmentVariable(\"repaire_name01\", jsonData[0].name);",
  3595. " postman.setEnvironmentVariable(\"repaire_category02\", jsonData[1].id);",
  3596. " postman.setEnvironmentVariable(\"repaire_category03\", jsonData[2].id);",
  3597. " postman.setEnvironmentVariable(\"repaire_category04\", jsonData[3].id);",
  3598. "}"
  3599. ],
  3600. "type": "text/javascript"
  3601. }
  3602. }
  3603. ],
  3604. "request": {
  3605. "method": "GET",
  3606. "header": [
  3607. {
  3608. "key": "Authorization",
  3609. "value": "Rong {{shoptoken}}"
  3610. }
  3611. ],
  3612. "body": {
  3613. "mode": "raw",
  3614. "raw": ""
  3615. },
  3616. "url": {
  3617. "raw": "{{url}}/api/basic/repaircategory/",
  3618. "host": [
  3619. "{{url}}"
  3620. ],
  3621. "path": [
  3622. "api",
  3623. "basic",
  3624. "repaircategory",
  3625. ""
  3626. ]
  3627. }
  3628. },
  3629. "response": []
  3630. },
  3631. {
  3632. "name": "10_get_basic_carproductscategory",
  3633. "event": [
  3634. {
  3635. "listen": "test",
  3636. "script": {
  3637. "id": "379f6aeb-522b-4030-ae67-250ae4f67203",
  3638. "exec": [
  3639. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3640. "",
  3641. "if(tests[\"Status code is 200\"] ){",
  3642. " var jsonData = JSON.parse(responseBody);",
  3643. " ",
  3644. " postman.setEnvironmentVariable(\"carproduct_category01\", jsonData[7].id);",
  3645. " postman.setEnvironmentVariable(\"product_name01\", jsonData[7].name);",
  3646. " ",
  3647. " postman.setEnvironmentVariable(\"carproduct_category02\", jsonData[5].id);",
  3648. " postman.setEnvironmentVariable(\"product_name02\", jsonData[5].name);",
  3649. " ",
  3650. " postman.setEnvironmentVariable(\"carproduct_category03\", jsonData[4].id);",
  3651. " postman.setEnvironmentVariable(\"product_name03\", jsonData[4].name);",
  3652. " ",
  3653. " postman.setEnvironmentVariable(\"carproduct_category04\", jsonData[3].id);",
  3654. " postman.setEnvironmentVariable(\"product_name04\", jsonData[3].name);",
  3655. "}"
  3656. ],
  3657. "type": "text/javascript"
  3658. }
  3659. }
  3660. ],
  3661. "request": {
  3662. "method": "GET",
  3663. "header": [
  3664. {
  3665. "key": "Authorization",
  3666. "value": "Rong {{shoptoken}}"
  3667. }
  3668. ],
  3669. "body": {
  3670. "mode": "raw",
  3671. "raw": ""
  3672. },
  3673. "url": {
  3674. "raw": "{{url}}/api/basic/carproductscategory/",
  3675. "host": [
  3676. "{{url}}"
  3677. ],
  3678. "path": [
  3679. "api",
  3680. "basic",
  3681. "carproductscategory",
  3682. ""
  3683. ]
  3684. }
  3685. },
  3686. "response": []
  3687. },
  3688. {
  3689. "name": "11_get_staff_adjustmentcategory",
  3690. "event": [
  3691. {
  3692. "listen": "test",
  3693. "script": {
  3694. "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d",
  3695. "exec": [
  3696. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3697. "if(tests[\"Status code is 200\"] ){",
  3698. " var jsonData = JSON.parse(responseBody);",
  3699. " ",
  3700. " postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);",
  3701. " ",
  3702. "}"
  3703. ],
  3704. "type": "text/javascript"
  3705. }
  3706. }
  3707. ],
  3708. "request": {
  3709. "method": "GET",
  3710. "header": [
  3711. {
  3712. "key": "Authorization",
  3713. "value": "Rong {{shoptoken}}"
  3714. }
  3715. ],
  3716. "body": {
  3717. "mode": "raw",
  3718. "raw": ""
  3719. },
  3720. "url": {
  3721. "raw": "{{url}}/api/staff/adjustmentcategory/",
  3722. "host": [
  3723. "{{url}}"
  3724. ],
  3725. "path": [
  3726. "api",
  3727. "staff",
  3728. "adjustmentcategory",
  3729. ""
  3730. ]
  3731. }
  3732. },
  3733. "response": []
  3734. },
  3735. {
  3736. "name": "12_post_repairfee",
  3737. "event": [
  3738. {
  3739. "listen": "test",
  3740. "script": {
  3741. "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d",
  3742. "exec": [
  3743. "pm.test(\"Successful POST request\", function () {",
  3744. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  3745. "});"
  3746. ],
  3747. "type": "text/javascript"
  3748. }
  3749. }
  3750. ],
  3751. "request": {
  3752. "method": "POST",
  3753. "header": [
  3754. {
  3755. "key": "Authorization",
  3756. "value": "Rong {{shoptoken}}"
  3757. },
  3758. {
  3759. "key": "Content-Type",
  3760. "name": "Content-Type",
  3761. "value": "application/json",
  3762. "type": "text"
  3763. }
  3764. ],
  3765. "body": {
  3766. "mode": "raw",
  3767. "raw": "{\r\n\t\"repair_service\": {{repaire_category01}},\r\n\t\"category_name\": \"{{repaire_name01}}\",\r\n\t\"type\": 1,\r\n\t\"carlevel\": null,\r\n\t\"carcategoryArray\": [{{carcategory_category02}}],\r\n\t\"carcategory\": {{carcategory_category02}},\r\n\t\"standard_fee\": \"100\",\r\n\t\"note\": null,\r\n\t\"status\": true\r\n}"
  3768. },
  3769. "url": {
  3770. "raw": "{{url}}/api/basic/repairfee/",
  3771. "host": [
  3772. "{{url}}"
  3773. ],
  3774. "path": [
  3775. "api",
  3776. "basic",
  3777. "repairfee",
  3778. ""
  3779. ]
  3780. }
  3781. },
  3782. "response": []
  3783. },
  3784. {
  3785. "name": "13_get_repairfee",
  3786. "event": [
  3787. {
  3788. "listen": "test",
  3789. "script": {
  3790. "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d",
  3791. "exec": [
  3792. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3793. "// if(tests[\"Status code is 200\"] ){",
  3794. "// var jsonData = JSON.parse(responseBody);",
  3795. " ",
  3796. "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);",
  3797. " ",
  3798. "// }"
  3799. ],
  3800. "type": "text/javascript"
  3801. }
  3802. }
  3803. ],
  3804. "request": {
  3805. "method": "GET",
  3806. "header": [
  3807. {
  3808. "key": "Authorization",
  3809. "value": "Rong {{shoptoken}}"
  3810. }
  3811. ],
  3812. "body": {
  3813. "mode": "raw",
  3814. "raw": ""
  3815. },
  3816. "url": {
  3817. "raw": "{{url}}/api/basic/repairfee/",
  3818. "host": [
  3819. "{{url}}"
  3820. ],
  3821. "path": [
  3822. "api",
  3823. "basic",
  3824. "repairfee",
  3825. ""
  3826. ]
  3827. }
  3828. },
  3829. "response": []
  3830. },
  3831. {
  3832. "name": "14_get_repairparts",
  3833. "event": [
  3834. {
  3835. "listen": "test",
  3836. "script": {
  3837. "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d",
  3838. "exec": [
  3839. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3840. "// if(tests[\"Status code is 200\"] ){",
  3841. "// var jsonData = JSON.parse(responseBody);",
  3842. " ",
  3843. "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);",
  3844. " ",
  3845. "// }"
  3846. ],
  3847. "type": "text/javascript"
  3848. }
  3849. }
  3850. ],
  3851. "request": {
  3852. "method": "GET",
  3853. "header": [
  3854. {
  3855. "key": "Authorization",
  3856. "value": "Rong {{shoptoken}}"
  3857. }
  3858. ],
  3859. "body": {
  3860. "mode": "raw",
  3861. "raw": ""
  3862. },
  3863. "url": {
  3864. "raw": "{{url}}/api/basic/repairparts/",
  3865. "host": [
  3866. "{{url}}"
  3867. ],
  3868. "path": [
  3869. "api",
  3870. "basic",
  3871. "repairparts",
  3872. ""
  3873. ]
  3874. }
  3875. },
  3876. "response": []
  3877. },
  3878. {
  3879. "name": "15_get_basic_car",
  3880. "event": [
  3881. {
  3882. "listen": "test",
  3883. "script": {
  3884. "id": "afd6a8c3-bf61-4cd8-a8e7-7157eb768d1d",
  3885. "exec": [
  3886. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  3887. "// if(tests[\"Status code is 200\"] ){",
  3888. "// var jsonData = JSON.parse(responseBody);",
  3889. " ",
  3890. "// postman.setEnvironmentVariable(\"adjusttype_id01\", jsonData.results[5].id);",
  3891. " ",
  3892. "// }"
  3893. ],
  3894. "type": "text/javascript"
  3895. }
  3896. }
  3897. ],
  3898. "request": {
  3899. "method": "GET",
  3900. "header": [
  3901. {
  3902. "key": "Authorization",
  3903. "value": "Rong {{shoptoken}}"
  3904. }
  3905. ],
  3906. "body": {
  3907. "mode": "raw",
  3908. "raw": ""
  3909. },
  3910. "url": {
  3911. "raw": "{{url}}/api/basic/car/",
  3912. "host": [
  3913. "{{url}}"
  3914. ],
  3915. "path": [
  3916. "api",
  3917. "basic",
  3918. "car",
  3919. ""
  3920. ]
  3921. }
  3922. },
  3923. "response": []
  3924. }
  3925. ]
  3926. },
  3927. {
  3928. "name": "employee",
  3929. "item": [
  3930. {
  3931. "name": "01_post_employee_1",
  3932. "event": [
  3933. {
  3934. "listen": "test",
  3935. "script": {
  3936. "id": "ca25d685-344f-412c-a907-362148038381",
  3937. "exec": [
  3938. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200 ;"
  3939. ],
  3940. "type": "text/javascript"
  3941. }
  3942. }
  3943. ],
  3944. "request": {
  3945. "method": "POST",
  3946. "header": [
  3947. {
  3948. "key": "Authorization",
  3949. "value": "Rong {{shoptoken}}"
  3950. },
  3951. {
  3952. "key": "Content-Type",
  3953. "value": "application/json"
  3954. }
  3955. ],
  3956. "body": {
  3957. "mode": "raw",
  3958. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"code\": \"18159859999\",\r\n\t\"user_name\": \"张豪\",\r\n\t\"dept\":{{depart_id03}},\r\n\t\"email\": \"18159859999@163.com\",\r\n\t\"degree\": \"客服人员\",\r\n\t\"cellphone\": \"18159859999\",\r\n\t\"id_card\": \"231351998709098899\",\r\n\t\"description\": null,\r\n\t\"is_staff\": 1,\r\n\t\"dimission_date\": null,\r\n\t\"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n}"
  3959. },
  3960. "url": {
  3961. "raw": "{{url}}/api/basic/employee/",
  3962. "host": [
  3963. "{{url}}"
  3964. ],
  3965. "path": [
  3966. "api",
  3967. "basic",
  3968. "employee",
  3969. ""
  3970. ]
  3971. }
  3972. },
  3973. "response": []
  3974. },
  3975. {
  3976. "name": "02_post_employee_2",
  3977. "event": [
  3978. {
  3979. "listen": "test",
  3980. "script": {
  3981. "id": "ca25d685-344f-412c-a907-362148038381",
  3982. "exec": [
  3983. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200 ;"
  3984. ],
  3985. "type": "text/javascript"
  3986. }
  3987. }
  3988. ],
  3989. "request": {
  3990. "method": "POST",
  3991. "header": [
  3992. {
  3993. "key": "Authorization",
  3994. "value": "Rong {{shoptoken}}"
  3995. },
  3996. {
  3997. "key": "Content-Type",
  3998. "value": "application/json"
  3999. }
  4000. ],
  4001. "body": {
  4002. "mode": "raw",
  4003. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"code\": \"18159854444\",\r\n\t\"user_name\": \"张明月\",\r\n\t\"dept\":{{depart_id03}},\r\n\t\"email\": \"18159854444@163.com\",\r\n\t\"degree\": \"客服人员\",\r\n\t\"cellphone\": \"18159854444\",\r\n\t\"id_card\": \"231351998709091199\",\r\n\t\"description\": null,\r\n\t\"is_staff\": 1,\r\n\t\"dimission_date\": null,\r\n\t\"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n}"
  4004. },
  4005. "url": {
  4006. "raw": "{{url}}/api/basic/employee/",
  4007. "host": [
  4008. "{{url}}"
  4009. ],
  4010. "path": [
  4011. "api",
  4012. "basic",
  4013. "employee",
  4014. ""
  4015. ]
  4016. }
  4017. },
  4018. "response": []
  4019. },
  4020. {
  4021. "name": "03_get_basic_employee",
  4022. "event": [
  4023. {
  4024. "listen": "test",
  4025. "script": {
  4026. "id": "e4da3d3d-627a-45af-b851-30ac3929d9c9",
  4027. "exec": [
  4028. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  4029. "",
  4030. " var jsonData = JSON.parse(responseBody);",
  4031. "",
  4032. " postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4033. " postman.setEnvironmentVariable(\"agent_name01\", jsonData.results[0].user_name);",
  4034. " // postman.setEnvironmentVariable(\"agent_dept01\", jsonData.results[0].dept);",
  4035. " postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4036. " postman.setEnvironmentVariable(\"agent_name02\", jsonData.results[1].user_name);",
  4037. " ",
  4038. " postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4039. "",
  4040. "//postman.setEnvironmentVariable(\"agent01_all\", JSON.stringify(jsonData.results[0]));",
  4041. ""
  4042. ],
  4043. "type": "text/javascript"
  4044. }
  4045. }
  4046. ],
  4047. "request": {
  4048. "method": "GET",
  4049. "header": [
  4050. {
  4051. "key": "Authorization",
  4052. "value": "Rong {{shoptoken}}"
  4053. }
  4054. ],
  4055. "body": {
  4056. "mode": "raw",
  4057. "raw": ""
  4058. },
  4059. "url": {
  4060. "raw": "{{url}}/api/basic/employee/",
  4061. "host": [
  4062. "{{url}}"
  4063. ],
  4064. "path": [
  4065. "api",
  4066. "basic",
  4067. "employee",
  4068. ""
  4069. ]
  4070. }
  4071. },
  4072. "response": []
  4073. },
  4074. {
  4075. "name": "04_put_employee _1",
  4076. "event": [
  4077. {
  4078. "listen": "test",
  4079. "script": {
  4080. "id": "ca25d685-344f-412c-a907-362148038381",
  4081. "exec": [
  4082. "pm.test(\"Status code is 200\", function () {",
  4083. " pm.response.to.have.status(200);",
  4084. "});"
  4085. ],
  4086. "type": "text/javascript"
  4087. }
  4088. }
  4089. ],
  4090. "request": {
  4091. "method": "PUT",
  4092. "header": [
  4093. {
  4094. "key": "Authorization",
  4095. "value": "Rong {{shoptoken}}"
  4096. },
  4097. {
  4098. "key": "Content-Type",
  4099. "value": "application/json"
  4100. }
  4101. ],
  4102. "body": {
  4103. "mode": "raw",
  4104. "raw": "{\r\n \"user\": {{agent_id01}},\r\n \"user_name\": \"黄灿灿\",\r\n \"cellphone\": \"18159854444\",\r\n \"email\": \"18159854444@163.com\",\r\n \"is_staff\": 1,\r\n \"code\": \"18159854444\",\r\n \"degree\": \"客服人员\",\r\n \"id_card\": \"231351998709091199\",\r\n\t\"id_address\": null,\r\n\t\"birthday\": null,\r\n\t\"contact_address\": null,\r\n\t\"dimission_date\": null,\r\n\t\"description\": null,\r\n\t\"shop\": {{shop_id}},\r\n\t\"dept\": {{depart_id01}},\r\n\t\"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n}"
  4105. },
  4106. "url": {
  4107. "raw": "{{url}}/api/basic/employee/{{agent_id01}}/",
  4108. "host": [
  4109. "{{url}}"
  4110. ],
  4111. "path": [
  4112. "api",
  4113. "basic",
  4114. "employee",
  4115. "{{agent_id01}}",
  4116. ""
  4117. ]
  4118. }
  4119. },
  4120. "response": []
  4121. },
  4122. {
  4123. "name": "05_put_employee _2",
  4124. "event": [
  4125. {
  4126. "listen": "test",
  4127. "script": {
  4128. "id": "ca25d685-344f-412c-a907-362148038381",
  4129. "exec": [
  4130. "pm.test(\"Status code is 200\", function () {",
  4131. " pm.response.to.have.status(200);",
  4132. "});"
  4133. ],
  4134. "type": "text/javascript"
  4135. }
  4136. }
  4137. ],
  4138. "request": {
  4139. "method": "PUT",
  4140. "header": [
  4141. {
  4142. "key": "Authorization",
  4143. "value": "Rong {{shoptoken}}"
  4144. },
  4145. {
  4146. "key": "Content-Type",
  4147. "value": "application/json"
  4148. }
  4149. ],
  4150. "body": {
  4151. "mode": "raw",
  4152. "raw": "{\r\n \"user\": {{agent_id02}},\r\n \"user_name\": \"张明月\",\r\n \"cellphone\": \"18159859999\",\r\n \"email\": \"18159859999@163.com\",\r\n \"is_staff\": \"True\",\r\n \"code\": \"18159859999\",\r\n \"degree\": \"客服人员\",\r\n \"id_card\": \"231351998709098899\",\r\n \"id_address\": null,\r\n \"birthday\": null,\r\n \"contact_address\": null,\r\n \"dimission_date\": null,\r\n \"description\": null,\r\n \"shop\": {{shop_id}},\r\n \"dept\": {{depart_id03}},\r\n \"roleData\": [{\r\n\t\t\"id\": 2,\r\n\t\t\"name\": \"shop_staff\",\r\n\t\t\"type\": \"default\",\r\n\t\t\"checked\": true\r\n\t}]\r\n\t}"
  4153. },
  4154. "url": {
  4155. "raw": "{{url}}/api/basic/employee/{{agent_id02}}/",
  4156. "host": [
  4157. "{{url}}"
  4158. ],
  4159. "path": [
  4160. "api",
  4161. "basic",
  4162. "employee",
  4163. "{{agent_id02}}",
  4164. ""
  4165. ]
  4166. }
  4167. },
  4168. "response": []
  4169. },
  4170. {
  4171. "name": "06_get_staff_selectdept",
  4172. "event": [
  4173. {
  4174. "listen": "test",
  4175. "script": {
  4176. "id": "fa228d65-a91a-40a9-91c6-38e4c7ba2739",
  4177. "exec": [
  4178. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  4179. "// if (tests[\"Status code is 200\"]) {",
  4180. "// var jsonData = JSON.parse(responseBody);",
  4181. "",
  4182. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4183. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4184. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4185. "",
  4186. "// }",
  4187. "if(tests[\"Status code is 200\"] ){",
  4188. " var jsonData = JSON.parse(responseBody);",
  4189. " ",
  4190. " postman.setEnvironmentVariable(\"depart_id01\", jsonData[1].id);",
  4191. " postman.setEnvironmentVariable(\"depart_id03\", jsonData[3].id);",
  4192. "}"
  4193. ],
  4194. "type": "text/javascript"
  4195. }
  4196. }
  4197. ],
  4198. "request": {
  4199. "method": "GET",
  4200. "header": [
  4201. {
  4202. "key": "Authorization",
  4203. "value": "Rong {{shoptoken}}"
  4204. }
  4205. ],
  4206. "body": {
  4207. "mode": "raw",
  4208. "raw": ""
  4209. },
  4210. "url": {
  4211. "raw": "{{url}}/api/basic/selectdept/",
  4212. "host": [
  4213. "{{url}}"
  4214. ],
  4215. "path": [
  4216. "api",
  4217. "basic",
  4218. "selectdept",
  4219. ""
  4220. ]
  4221. }
  4222. },
  4223. "response": []
  4224. },
  4225. {
  4226. "name": "07_get_basic_department_id",
  4227. "event": [
  4228. {
  4229. "listen": "test",
  4230. "script": {
  4231. "id": "518b80e8-9cda-4885-b850-be65f6d66df9",
  4232. "exec": [
  4233. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  4234. "",
  4235. "// if(tests[\"Status code is 200\"] ){",
  4236. "// var jsonData = JSON.parse(responseBody);",
  4237. " ",
  4238. "// postman.setEnvironmentVariable(\"depart_id01\", jsonData.results[1].id);",
  4239. "// postman.setEnvironmentVariable(\"depart_id03\", jsonData.results[3].id);",
  4240. "// }"
  4241. ],
  4242. "type": "text/javascript"
  4243. }
  4244. }
  4245. ],
  4246. "request": {
  4247. "method": "GET",
  4248. "header": [
  4249. {
  4250. "key": "Authorization",
  4251. "value": "Rong {{shoptoken}}"
  4252. }
  4253. ],
  4254. "body": {
  4255. "mode": "raw",
  4256. "raw": ""
  4257. },
  4258. "url": {
  4259. "raw": "{{url}}/api/basic/department/{{depart_id01}}/",
  4260. "host": [
  4261. "{{url}}"
  4262. ],
  4263. "path": [
  4264. "api",
  4265. "basic",
  4266. "department",
  4267. "{{depart_id01}}",
  4268. ""
  4269. ]
  4270. }
  4271. },
  4272. "response": []
  4273. },
  4274. {
  4275. "name": "08_post_staff_monthrestdays",
  4276. "event": [
  4277. {
  4278. "listen": "test",
  4279. "script": {
  4280. "id": "69e5e9c3-42ec-4aca-83cc-e48028dead74",
  4281. "exec": [
  4282. "",
  4283. "// if (tests[\"Status code is 200\"]) {",
  4284. "// var jsonData = JSON.parse(responseBody);",
  4285. "",
  4286. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4287. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4288. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4289. "",
  4290. "// }",
  4291. "",
  4292. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  4293. ],
  4294. "type": "text/javascript"
  4295. }
  4296. }
  4297. ],
  4298. "request": {
  4299. "method": "POST",
  4300. "header": [
  4301. {
  4302. "key": "Authorization",
  4303. "value": "Rong {{shoptoken}}"
  4304. },
  4305. {
  4306. "key": "Content-Type",
  4307. "value": "application/json"
  4308. }
  4309. ],
  4310. "body": {
  4311. "mode": "raw",
  4312. "raw": "{\r\n \"id\": null,\r\n \"rule_attribute\": 1,\r\n \"dept\": {{depart_id01}},\r\n \"employee\":{{agent_id01}},\r\n \"locate_month\": [\"2018-12-01\"],\r\n \"rest_days\": 8,\r\n \"rem\": null\r\n}"
  4313. },
  4314. "url": {
  4315. "raw": "{{url}}/api/staff/monthrestdays/",
  4316. "host": [
  4317. "{{url}}"
  4318. ],
  4319. "path": [
  4320. "api",
  4321. "staff",
  4322. "monthrestdays",
  4323. ""
  4324. ]
  4325. }
  4326. },
  4327. "response": []
  4328. },
  4329. {
  4330. "name": "09_get_staff_monthrestdays",
  4331. "event": [
  4332. {
  4333. "listen": "test",
  4334. "script": {
  4335. "id": "e53133b7-79eb-42e3-84d3-806388f694b4",
  4336. "exec": [
  4337. "",
  4338. "// if (tests[\"Status code is 200\"]) {",
  4339. "// var jsonData = JSON.parse(responseBody);",
  4340. "",
  4341. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4342. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4343. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4344. "",
  4345. "// }",
  4346. "",
  4347. "",
  4348. "",
  4349. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4350. ],
  4351. "type": "text/javascript"
  4352. }
  4353. }
  4354. ],
  4355. "request": {
  4356. "method": "GET",
  4357. "header": [
  4358. {
  4359. "key": "Authorization",
  4360. "value": "Rong {{shoptoken}}"
  4361. }
  4362. ],
  4363. "body": {
  4364. "mode": "raw",
  4365. "raw": ""
  4366. },
  4367. "url": {
  4368. "raw": "{{url}}/api/staff/monthrestdays/",
  4369. "host": [
  4370. "{{url}}"
  4371. ],
  4372. "path": [
  4373. "api",
  4374. "staff",
  4375. "monthrestdays",
  4376. ""
  4377. ]
  4378. }
  4379. },
  4380. "response": []
  4381. },
  4382. {
  4383. "name": "10_get_staff_commissionrulesetting",
  4384. "event": [
  4385. {
  4386. "listen": "test",
  4387. "script": {
  4388. "id": "936684f5-0b5a-4a54-bb50-9da417e604e2",
  4389. "exec": [
  4390. "",
  4391. "// if (tests[\"Status code is 200\"]) {",
  4392. "// var jsonData = JSON.parse(responseBody);",
  4393. "",
  4394. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4395. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4396. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4397. "",
  4398. "// }",
  4399. "",
  4400. "",
  4401. "",
  4402. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4403. ],
  4404. "type": "text/javascript"
  4405. }
  4406. }
  4407. ],
  4408. "request": {
  4409. "method": "GET",
  4410. "header": [
  4411. {
  4412. "key": "Authorization",
  4413. "value": "Rong {{shoptoken}}"
  4414. }
  4415. ],
  4416. "body": {
  4417. "mode": "raw",
  4418. "raw": ""
  4419. },
  4420. "url": {
  4421. "raw": "{{url}}/api/staff/commissionrulesetting/",
  4422. "host": [
  4423. "{{url}}"
  4424. ],
  4425. "path": [
  4426. "api",
  4427. "staff",
  4428. "commissionrulesetting",
  4429. ""
  4430. ]
  4431. }
  4432. },
  4433. "response": []
  4434. },
  4435. {
  4436. "name": "11_post_staff_salarysetting",
  4437. "event": [
  4438. {
  4439. "listen": "prerequest",
  4440. "script": {
  4441. "id": "f560cc5b-9017-4d96-8e75-f277ea080fb3",
  4442. "exec": [
  4443. "// var ymd_date = postman.getEnvironmentVariable(\"ymd-date\");",
  4444. "Date.prototype.Format = function (fmt) { //author: meizz ",
  4445. " var o = {",
  4446. " \"M+\": this.getMonth() + 1, //月份 ",
  4447. " \"d+\": this.getDate(), //日 ",
  4448. " \"h+\": this.getHours(), //小时 ",
  4449. " \"m+\": this.getMinutes(), //分 ",
  4450. " \"s+\": this.getSeconds(), //秒 ",
  4451. " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ",
  4452. " \"S\": this.getMilliseconds() //毫秒 ",
  4453. " };",
  4454. " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));",
  4455. " for (var k in o)",
  4456. " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));",
  4457. " return fmt;",
  4458. "}",
  4459. "",
  4460. "var agent_id01 = postman.getEnvironmentVariable(\"agent_id01\");",
  4461. "var data= {",
  4462. "\t\"date\": new Date().Format(\"yyyy-MM-dd\"),",
  4463. "\t\"code\": null,",
  4464. "\t\"employee\":agent_id01 ,",
  4465. "\t\"post_salary\": \"4000\",",
  4466. "\t\"skill_salary\": \"200\",",
  4467. "\t\"seniority_salary\": \"100\",",
  4468. "\t\"stay_subsidy\": \"100\",",
  4469. "\t\"meal_subsidy\": \"100\",",
  4470. "\t\"other_subsidy\": \"200\",",
  4471. "\t\"total_payroll\": 0,",
  4472. "\t\"description\": null,",
  4473. "\t\"agent\": 12",
  4474. "}",
  4475. " data.total_payroll = parseFloat(data.post_salary) + parseFloat(data.skill_salary) +parseFloat( data.seniority_salary) + parseFloat(data.stay_subsidy) + parseFloat(data.meal_subsidy)+ parseFloat(data.other_subsidy);",
  4476. " postman.setEnvironmentVariable(\"salary_setting\",JSON.stringify(data));"
  4477. ],
  4478. "type": "text/javascript"
  4479. }
  4480. },
  4481. {
  4482. "listen": "test",
  4483. "script": {
  4484. "id": "dcc857df-e1cd-499b-9f51-94fe36fd2da4",
  4485. "exec": [
  4486. "",
  4487. "// if (tests[\"Status code is 200\"]) {",
  4488. "// var jsonData = JSON.parse(responseBody);",
  4489. "",
  4490. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4491. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4492. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4493. "",
  4494. "// }",
  4495. "",
  4496. "",
  4497. "",
  4498. "// tests[\"Status code is 200\"] = responseCode.code === 200;",
  4499. "",
  4500. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  4501. ],
  4502. "type": "text/javascript"
  4503. }
  4504. }
  4505. ],
  4506. "request": {
  4507. "method": "POST",
  4508. "header": [
  4509. {
  4510. "key": "Authorization",
  4511. "value": "Rong {{shoptoken}}"
  4512. },
  4513. {
  4514. "key": "",
  4515. "value": ""
  4516. },
  4517. {
  4518. "key": "Content-Type",
  4519. "value": "application/json"
  4520. }
  4521. ],
  4522. "body": {
  4523. "mode": "raw",
  4524. "raw": "{{salary_setting}}"
  4525. },
  4526. "url": {
  4527. "raw": "{{url}}/api/staff/salarysetting/",
  4528. "host": [
  4529. "{{url}}"
  4530. ],
  4531. "path": [
  4532. "api",
  4533. "staff",
  4534. "salarysetting",
  4535. ""
  4536. ]
  4537. }
  4538. },
  4539. "response": []
  4540. },
  4541. {
  4542. "name": "12_get_staff_salarysetting",
  4543. "event": [
  4544. {
  4545. "listen": "test",
  4546. "script": {
  4547. "id": "9e63f139-de93-44a9-b8f4-a3f1ee812ddd",
  4548. "exec": [
  4549. "",
  4550. "// if (tests[\"Status code is 200\"]) {",
  4551. "// var jsonData = JSON.parse(responseBody);",
  4552. "",
  4553. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4554. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4555. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4556. "",
  4557. "// }",
  4558. "",
  4559. "",
  4560. "",
  4561. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4562. ],
  4563. "type": "text/javascript"
  4564. }
  4565. }
  4566. ],
  4567. "request": {
  4568. "method": "GET",
  4569. "header": [
  4570. {
  4571. "key": "Authorization",
  4572. "value": "Rong {{shoptoken}}"
  4573. },
  4574. {
  4575. "key": "",
  4576. "value": "",
  4577. "disabled": true
  4578. }
  4579. ],
  4580. "body": {
  4581. "mode": "raw",
  4582. "raw": ""
  4583. },
  4584. "url": {
  4585. "raw": "{{url}}/api/staff/salarysetting/",
  4586. "host": [
  4587. "{{url}}"
  4588. ],
  4589. "path": [
  4590. "api",
  4591. "staff",
  4592. "salarysetting",
  4593. ""
  4594. ]
  4595. }
  4596. },
  4597. "response": []
  4598. },
  4599. {
  4600. "name": "13_post_staff_payrolladjustment",
  4601. "event": [
  4602. {
  4603. "listen": "test",
  4604. "script": {
  4605. "id": "21b13e24-c640-4a9d-bacf-2c2cc641312b",
  4606. "exec": [
  4607. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4608. ],
  4609. "type": "text/javascript"
  4610. }
  4611. }
  4612. ],
  4613. "request": {
  4614. "method": "POST",
  4615. "header": [
  4616. {
  4617. "key": "Authorization",
  4618. "value": "Rong {{shoptoken}}"
  4619. },
  4620. {
  4621. "key": "Content-Type",
  4622. "value": "application/json"
  4623. }
  4624. ],
  4625. "body": {
  4626. "mode": "raw",
  4627. "raw": "{\r\n\t\"date\":\"{{ymd-date}}\",\r\n\t\"code\":null,\r\n\t\"employee\":{{agent_id01}},\r\n\t\"action\":0,\r\n\t\"adjustment_category\":{{adjusttype_id01}},\r\n\t\"wage_adjustment\": \"100\",\r\n\t\"agent\": {{agent_id02}},\r\n\t\"description\": null\r\n}"
  4628. },
  4629. "url": {
  4630. "raw": "{{url}}/api/staff/payrolladjustment/",
  4631. "host": [
  4632. "{{url}}"
  4633. ],
  4634. "path": [
  4635. "api",
  4636. "staff",
  4637. "payrolladjustment",
  4638. ""
  4639. ]
  4640. }
  4641. },
  4642. "response": [
  4643. {
  4644. "name": "post_staff_payrolladjustment",
  4645. "originalRequest": {
  4646. "method": "POST",
  4647. "header": [
  4648. {
  4649. "key": "Authorization",
  4650. "value": "Rong {{shoptoken}}"
  4651. },
  4652. {
  4653. "key": "Content-Type",
  4654. "value": "application/json"
  4655. }
  4656. ],
  4657. "body": {
  4658. "mode": "raw",
  4659. "raw": "{\r\n\t\"date\": \"{{ymd-date}}\",\r\n\t\"code\": null,\r\n\t\"employee\": {{agent_id01}},\r\n\t\"action\": 0,\r\n\t\"adjustment_category\": {{adjusttype_id01}},\r\n\t\"wage_adjustment\": \"100\",\r\n\t\"agent\": {{agent_id02}},\r\n\t\"description\": null\r\n}"
  4660. },
  4661. "url": {
  4662. "raw": "{{url}}/api/staff/payrolladjustment/?year=2018&month=10",
  4663. "host": [
  4664. "{{url}}"
  4665. ],
  4666. "path": [
  4667. "api",
  4668. "staff",
  4669. "payrolladjustment",
  4670. ""
  4671. ],
  4672. "query": [
  4673. {
  4674. "key": "year",
  4675. "value": "2018"
  4676. },
  4677. {
  4678. "key": "month",
  4679. "value": "10"
  4680. }
  4681. ]
  4682. }
  4683. },
  4684. "status": "OK",
  4685. "code": 200,
  4686. "_postman_previewlanguage": "json",
  4687. "header": [
  4688. {
  4689. "key": "Server",
  4690. "value": "nginx/1.13.1"
  4691. },
  4692. {
  4693. "key": "Date",
  4694. "value": "Wed, 17 Oct 2018 10:03:27 GMT"
  4695. },
  4696. {
  4697. "key": "Content-Type",
  4698. "value": "application/json"
  4699. },
  4700. {
  4701. "key": "Content-Length",
  4702. "value": "144"
  4703. },
  4704. {
  4705. "key": "Connection",
  4706. "value": "keep-alive"
  4707. },
  4708. {
  4709. "key": "Vary",
  4710. "value": "Accept, Authorization, Cookie"
  4711. },
  4712. {
  4713. "key": "Allow",
  4714. "value": "GET, POST, HEAD, OPTIONS"
  4715. },
  4716. {
  4717. "key": "X-Frame-Options",
  4718. "value": "SAMEORIGIN"
  4719. }
  4720. ],
  4721. "cookie": [],
  4722. "body": "{\n \"date\": \"2018-10-17\",\n \"code\": null,\n \"employee\": 481548,\n \"action\": 0,\n \"adjustment_category\": 2,\n \"wage_adjustment\": \"100\",\n \"agent\": 481546,\n \"description\": null\n}"
  4723. }
  4724. ]
  4725. },
  4726. {
  4727. "name": "14_get_staff_payrolladjustment",
  4728. "event": [
  4729. {
  4730. "listen": "test",
  4731. "script": {
  4732. "type": "text/javascript",
  4733. "exec": [
  4734. "",
  4735. "",
  4736. "",
  4737. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4738. ]
  4739. }
  4740. }
  4741. ],
  4742. "request": {
  4743. "method": "GET",
  4744. "header": [
  4745. {
  4746. "key": "Authorization",
  4747. "value": "Rong {{shoptoken}}"
  4748. }
  4749. ],
  4750. "body": {
  4751. "mode": "raw",
  4752. "raw": ""
  4753. },
  4754. "url": {
  4755. "raw": "{{url}}/api/staff/payrolladjustment/?year=2018&month=10",
  4756. "host": [
  4757. "{{url}}"
  4758. ],
  4759. "path": [
  4760. "api",
  4761. "staff",
  4762. "payrolladjustment",
  4763. ""
  4764. ],
  4765. "query": [
  4766. {
  4767. "key": "year",
  4768. "value": "2018"
  4769. },
  4770. {
  4771. "key": "month",
  4772. "value": "10"
  4773. }
  4774. ]
  4775. }
  4776. },
  4777. "response": []
  4778. },
  4779. {
  4780. "name": "15_post_staff_attendanceabnormal",
  4781. "event": [
  4782. {
  4783. "listen": "test",
  4784. "script": {
  4785. "type": "text/javascript",
  4786. "exec": [
  4787. "",
  4788. "",
  4789. "",
  4790. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4791. ]
  4792. }
  4793. }
  4794. ],
  4795. "request": {
  4796. "method": "POST",
  4797. "header": [
  4798. {
  4799. "key": "Authorization",
  4800. "value": "Rong {{shoptoken}}"
  4801. },
  4802. {
  4803. "key": "Content-Type",
  4804. "value": "application/json"
  4805. }
  4806. ],
  4807. "body": {
  4808. "mode": "raw",
  4809. "raw": "{\r\n\t\"abnormal_date\": \"{{ymd-date}}\",\r\n\t\"code\": null,\r\n\t\"employee\": {{agent_id01}},\r\n\t\"abnormal_genre\": 1,\r\n\t\"abnormal_value\": \"30分钟\",\r\n\t\"deduct_money\": \"30\",\r\n\t\"agent\": {{agent_id03}},\r\n\t\"description\": null\r\n}"
  4810. },
  4811. "url": {
  4812. "raw": "{{url}}/api/staff/attendanceabnormal/?year=2018&month=10",
  4813. "host": [
  4814. "{{url}}"
  4815. ],
  4816. "path": [
  4817. "api",
  4818. "staff",
  4819. "attendanceabnormal",
  4820. ""
  4821. ],
  4822. "query": [
  4823. {
  4824. "key": "year",
  4825. "value": "2018"
  4826. },
  4827. {
  4828. "key": "month",
  4829. "value": "10"
  4830. }
  4831. ]
  4832. }
  4833. },
  4834. "response": []
  4835. },
  4836. {
  4837. "name": "16_get_staff_attendanceabnormal",
  4838. "event": [
  4839. {
  4840. "listen": "test",
  4841. "script": {
  4842. "type": "text/javascript",
  4843. "exec": [
  4844. "",
  4845. "",
  4846. "",
  4847. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4848. ]
  4849. }
  4850. }
  4851. ],
  4852. "request": {
  4853. "method": "GET",
  4854. "header": [
  4855. {
  4856. "key": "Authorization",
  4857. "value": "Rong {{shoptoken}}"
  4858. }
  4859. ],
  4860. "body": {
  4861. "mode": "raw",
  4862. "raw": ""
  4863. },
  4864. "url": {
  4865. "raw": "{{url}}/api/staff/attendanceabnormal/?year=2018&month=10",
  4866. "host": [
  4867. "{{url}}"
  4868. ],
  4869. "path": [
  4870. "api",
  4871. "staff",
  4872. "attendanceabnormal",
  4873. ""
  4874. ],
  4875. "query": [
  4876. {
  4877. "key": "year",
  4878. "value": "2018"
  4879. },
  4880. {
  4881. "key": "month",
  4882. "value": "10"
  4883. }
  4884. ]
  4885. }
  4886. },
  4887. "response": []
  4888. },
  4889. {
  4890. "name": "17_get_staff_stafffurloughsituation",
  4891. "event": [
  4892. {
  4893. "listen": "test",
  4894. "script": {
  4895. "type": "text/javascript",
  4896. "exec": [
  4897. "",
  4898. "// if (tests[\"Status code is 200\"]) {",
  4899. "// var jsonData = JSON.parse(responseBody);",
  4900. "",
  4901. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4902. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4903. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4904. "",
  4905. "// }",
  4906. "",
  4907. "",
  4908. "",
  4909. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4910. ]
  4911. }
  4912. }
  4913. ],
  4914. "request": {
  4915. "method": "GET",
  4916. "header": [
  4917. {
  4918. "key": "Authorization",
  4919. "value": "Rong {{shoptoken}}"
  4920. }
  4921. ],
  4922. "body": {
  4923. "mode": "raw",
  4924. "raw": ""
  4925. },
  4926. "url": {
  4927. "raw": "{{url}}/api/staff/stafffurloughsituation/?date=2018-10-01",
  4928. "host": [
  4929. "{{url}}"
  4930. ],
  4931. "path": [
  4932. "api",
  4933. "staff",
  4934. "stafffurloughsituation",
  4935. ""
  4936. ],
  4937. "query": [
  4938. {
  4939. "key": "date",
  4940. "value": "2018-10-01"
  4941. }
  4942. ]
  4943. }
  4944. },
  4945. "response": []
  4946. },
  4947. {
  4948. "name": "18_get_staff_calendardata",
  4949. "event": [
  4950. {
  4951. "listen": "test",
  4952. "script": {
  4953. "type": "text/javascript",
  4954. "exec": [
  4955. "",
  4956. "// if (tests[\"Status code is 200\"]) {",
  4957. "// var jsonData = JSON.parse(responseBody);",
  4958. "",
  4959. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  4960. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  4961. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  4962. "",
  4963. "// }",
  4964. "",
  4965. "",
  4966. "",
  4967. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  4968. ]
  4969. }
  4970. }
  4971. ],
  4972. "request": {
  4973. "method": "GET",
  4974. "header": [
  4975. {
  4976. "key": "Authorization",
  4977. "value": "Rong {{shoptoken}}"
  4978. }
  4979. ],
  4980. "body": {
  4981. "mode": "raw",
  4982. "raw": ""
  4983. },
  4984. "url": {
  4985. "raw": "{{url}}/api/staff/calendardata/?date=2018-10-01",
  4986. "host": [
  4987. "{{url}}"
  4988. ],
  4989. "path": [
  4990. "api",
  4991. "staff",
  4992. "calendardata",
  4993. ""
  4994. ],
  4995. "query": [
  4996. {
  4997. "key": "date",
  4998. "value": "2018-10-01"
  4999. }
  5000. ]
  5001. }
  5002. },
  5003. "response": []
  5004. },
  5005. {
  5006. "name": "19_post_staff_stafffurlough",
  5007. "event": [
  5008. {
  5009. "listen": "test",
  5010. "script": {
  5011. "type": "text/javascript",
  5012. "exec": [
  5013. "",
  5014. "// if (tests[\"Status code is 200\"]) {",
  5015. "// var jsonData = JSON.parse(responseBody);",
  5016. "",
  5017. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  5018. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  5019. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  5020. "",
  5021. "// }",
  5022. "",
  5023. "",
  5024. "",
  5025. "",
  5026. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  5027. ]
  5028. }
  5029. }
  5030. ],
  5031. "request": {
  5032. "method": "POST",
  5033. "header": [
  5034. {
  5035. "key": "Authorization",
  5036. "value": "Rong {{shoptoken}}"
  5037. },
  5038. {
  5039. "key": "Content-Type",
  5040. "value": "application/json"
  5041. }
  5042. ],
  5043. "body": {
  5044. "mode": "raw",
  5045. "raw": "{\r\n\t\"id\": null,\r\n\t\"employee\": {{agent_id02}},\r\n\t\"start_date\": \"2018-10-14\",\r\n\t\"start_timeslot\": 0,\r\n\t\"end_date\": \"2018-10-15\",\r\n\t\"end_timeslot\": 0,\r\n\t\"days\": 2,\r\n\t\"rem\": \"请假两天\"\r\n}"
  5046. },
  5047. "url": {
  5048. "raw": "{{url}}/api/staff/stafffurlough/",
  5049. "host": [
  5050. "{{url}}"
  5051. ],
  5052. "path": [
  5053. "api",
  5054. "staff",
  5055. "stafffurlough",
  5056. ""
  5057. ]
  5058. }
  5059. },
  5060. "response": []
  5061. },
  5062. {
  5063. "name": "20_get_staff_stafffurlough",
  5064. "event": [
  5065. {
  5066. "listen": "test",
  5067. "script": {
  5068. "type": "text/javascript",
  5069. "exec": [
  5070. "",
  5071. "// if (tests[\"Status code is 200\"]) {",
  5072. "// var jsonData = JSON.parse(responseBody);",
  5073. "",
  5074. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  5075. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  5076. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  5077. "",
  5078. "// }",
  5079. "",
  5080. "",
  5081. "",
  5082. "",
  5083. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  5084. ]
  5085. }
  5086. }
  5087. ],
  5088. "request": {
  5089. "method": "GET",
  5090. "header": [
  5091. {
  5092. "key": "Authorization",
  5093. "value": "Rong {{shoptoken}}"
  5094. }
  5095. ],
  5096. "body": {
  5097. "mode": "raw",
  5098. "raw": ""
  5099. },
  5100. "url": {
  5101. "raw": "{{url}}/api/staff/stafffurlough/",
  5102. "host": [
  5103. "{{url}}"
  5104. ],
  5105. "path": [
  5106. "api",
  5107. "staff",
  5108. "stafffurlough",
  5109. ""
  5110. ]
  5111. }
  5112. },
  5113. "response": []
  5114. },
  5115. {
  5116. "name": "21_get_staff_getfurloughdetail",
  5117. "event": [
  5118. {
  5119. "listen": "test",
  5120. "script": {
  5121. "type": "text/javascript",
  5122. "exec": [
  5123. "",
  5124. "// if (tests[\"Status code is 200\"]) {",
  5125. "// var jsonData = JSON.parse(responseBody);",
  5126. "",
  5127. "// postman.setEnvironmentVariable(\"agent_id01\", jsonData.results[0].user);",
  5128. "// postman.setEnvironmentVariable(\"agent_id02\", jsonData.results[1].user);",
  5129. "// postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  5130. "",
  5131. "// }",
  5132. "",
  5133. "",
  5134. "",
  5135. "",
  5136. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  5137. ]
  5138. }
  5139. }
  5140. ],
  5141. "request": {
  5142. "method": "GET",
  5143. "header": [
  5144. {
  5145. "key": "Authorization",
  5146. "value": "Rong {{shoptoken}}"
  5147. }
  5148. ],
  5149. "body": {
  5150. "mode": "raw",
  5151. "raw": ""
  5152. },
  5153. "url": {
  5154. "raw": "{{url}}/api/staff/getfurloughdetail/?date=2018-10-14",
  5155. "host": [
  5156. "{{url}}"
  5157. ],
  5158. "path": [
  5159. "api",
  5160. "staff",
  5161. "getfurloughdetail",
  5162. ""
  5163. ],
  5164. "query": [
  5165. {
  5166. "key": "date",
  5167. "value": "2018-10-14"
  5168. }
  5169. ]
  5170. }
  5171. },
  5172. "response": []
  5173. }
  5174. ]
  5175. },
  5176. {
  5177. "name": "supplier",
  5178. "item": [
  5179. {
  5180. "name": "01_post_basic_supplier",
  5181. "event": [
  5182. {
  5183. "listen": "test",
  5184. "script": {
  5185. "id": "e3621b27-697a-4df1-8913-8619d6d1eabb",
  5186. "exec": [
  5187. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  5188. ],
  5189. "type": "text/javascript"
  5190. }
  5191. }
  5192. ],
  5193. "request": {
  5194. "method": "POST",
  5195. "header": [
  5196. {
  5197. "key": "Authorization",
  5198. "value": "Rong {{shoptoken}}"
  5199. },
  5200. {
  5201. "key": "Content-Type",
  5202. "value": "application/json"
  5203. }
  5204. ],
  5205. "body": {
  5206. "mode": "raw",
  5207. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"name\": \"车猪猪车配供应商\",\r\n\t\"abbreviation\": \"车猪猪车配\",\r\n\t\"supplier_code\": \"3839\",\r\n\t\"customer_type\": {{customer_typeid02}},\r\n\t\"credit_code\": \"CZ001\",\r\n\t\"style\": 1,\r\n\t\"settlement_day\": 15,\r\n\t\"pic\": \"石悦\",\r\n\t\"pic_telephone\": \"18159857890\",\r\n\t\"contacts\": \"石新\",\r\n\t\"contacts_telephone\": \"18159850987\",\r\n\t\"unit_area\": \"思明区\",\r\n\t\"address\": \"厦门软件园二期望海路\",\r\n\t\"note\": null,\r\n\t\"scope_item_ids\":[{{customer_typeid01}}, {{customer_typeid03}},{{customer_typeid04}}],\r\n\t\"customer\": null\r\n\t\r\n}"
  5208. },
  5209. "url": {
  5210. "raw": "{{url}}/api/basic/supplier/",
  5211. "host": [
  5212. "{{url}}"
  5213. ],
  5214. "path": [
  5215. "api",
  5216. "basic",
  5217. "supplier",
  5218. ""
  5219. ]
  5220. }
  5221. },
  5222. "response": []
  5223. },
  5224. {
  5225. "name": "02_get_basic_supplier",
  5226. "event": [
  5227. {
  5228. "listen": "test",
  5229. "script": {
  5230. "id": "178fce42-3fa6-47eb-8c46-56236823697c",
  5231. "exec": [
  5232. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5233. "",
  5234. "if(tests[\"Status code is 200\"] ){",
  5235. " var jsonData = JSON.parse(responseBody);",
  5236. " ",
  5237. " postman.setEnvironmentVariable(\"supplier_id01\", jsonData.results[0].id);",
  5238. " postman.setEnvironmentVariable(\"supplier_name01\", jsonData.results[0].name);",
  5239. "}"
  5240. ],
  5241. "type": "text/javascript"
  5242. }
  5243. }
  5244. ],
  5245. "request": {
  5246. "method": "GET",
  5247. "header": [
  5248. {
  5249. "key": "Authorization",
  5250. "value": "Rong {{shoptoken}}"
  5251. }
  5252. ],
  5253. "body": {
  5254. "mode": "raw",
  5255. "raw": ""
  5256. },
  5257. "url": {
  5258. "raw": "{{url}}/api/basic/supplier/",
  5259. "host": [
  5260. "{{url}}"
  5261. ],
  5262. "path": [
  5263. "api",
  5264. "basic",
  5265. "supplier",
  5266. ""
  5267. ]
  5268. }
  5269. },
  5270. "response": []
  5271. }
  5272. ]
  5273. },
  5274. {
  5275. "name": "choose material",
  5276. "item": [
  5277. {
  5278. "name": "01_get_basic_selectcloudcarproduct_category01",
  5279. "event": [
  5280. {
  5281. "listen": "test",
  5282. "script": {
  5283. "id": "d744385c-3b54-4dae-ba55-b0d6bb45ec3f",
  5284. "exec": [
  5285. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5286. "",
  5287. "",
  5288. " var jsonData = JSON.parse(responseBody);",
  5289. " ",
  5290. " postman.setEnvironmentVariable(\"carproduct_item01\", jsonData[0].id);",
  5291. " postman.setEnvironmentVariable(\"carproduct_name01\", jsonData[0].name);",
  5292. " ",
  5293. " postman.setEnvironmentVariable(\"carproduct_item02\", jsonData[1].id);",
  5294. " postman.setEnvironmentVariable(\"carproduct_name02\", jsonData[1].name);",
  5295. " ",
  5296. " postman.setEnvironmentVariable(\"carproduct_item03\", jsonData[2].id);",
  5297. " postman.setEnvironmentVariable(\"carproduct_name03\", jsonData[2].name);",
  5298. " ",
  5299. " postman.setEnvironmentVariable(\"carproduct_item04\", jsonData[3].id);",
  5300. " postman.setEnvironmentVariable(\"carproduct_name04\", jsonData[3].name);",
  5301. ""
  5302. ],
  5303. "type": "text/javascript"
  5304. }
  5305. }
  5306. ],
  5307. "request": {
  5308. "method": "GET",
  5309. "header": [
  5310. {
  5311. "key": "Authorization",
  5312. "value": "Rong {{shoptoken}}"
  5313. }
  5314. ],
  5315. "body": {
  5316. "mode": "raw",
  5317. "raw": ""
  5318. },
  5319. "url": {
  5320. "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category01}}",
  5321. "host": [
  5322. "{{url}}"
  5323. ],
  5324. "path": [
  5325. "api",
  5326. "basic",
  5327. "selectcloudcarproduct",
  5328. ""
  5329. ],
  5330. "query": [
  5331. {
  5332. "key": "category",
  5333. "value": "{{carproduct_category01}}"
  5334. }
  5335. ]
  5336. }
  5337. },
  5338. "response": []
  5339. },
  5340. {
  5341. "name": "02_get_basic_selectcloudcarproduct_category02",
  5342. "event": [
  5343. {
  5344. "listen": "test",
  5345. "script": {
  5346. "type": "text/javascript",
  5347. "exec": [
  5348. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5349. "if(tests[\"Status code is 200\"] ){",
  5350. " var jsonData = JSON.parse(responseBody);",
  5351. " ",
  5352. " postman.setEnvironmentVariable(\"carproduct_item05\", jsonData[0].id);",
  5353. " postman.setEnvironmentVariable(\"carproduct_name05\", jsonData[0].name);",
  5354. " postman.setEnvironmentVariable(\"carproduct_brands05\", jsonData[0].brands_name);",
  5355. " ",
  5356. " postman.setEnvironmentVariable(\"carproduct_item06\", jsonData[1].id);",
  5357. " postman.setEnvironmentVariable(\"carproduct_name06\", jsonData[1].name);",
  5358. " postman.setEnvironmentVariable(\"carproduct_brands06\", jsonData[1].brands_name);",
  5359. " ",
  5360. "}"
  5361. ]
  5362. }
  5363. }
  5364. ],
  5365. "request": {
  5366. "method": "GET",
  5367. "header": [
  5368. {
  5369. "key": "Authorization",
  5370. "value": "Rong {{shoptoken}}"
  5371. }
  5372. ],
  5373. "body": {
  5374. "mode": "raw",
  5375. "raw": ""
  5376. },
  5377. "url": {
  5378. "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category02}}",
  5379. "host": [
  5380. "{{url}}"
  5381. ],
  5382. "path": [
  5383. "api",
  5384. "basic",
  5385. "selectcloudcarproduct",
  5386. ""
  5387. ],
  5388. "query": [
  5389. {
  5390. "key": "category",
  5391. "value": "{{carproduct_category02}}"
  5392. }
  5393. ]
  5394. }
  5395. },
  5396. "response": []
  5397. },
  5398. {
  5399. "name": "03_get_basic_selectcloudcarproduct_category03",
  5400. "event": [
  5401. {
  5402. "listen": "test",
  5403. "script": {
  5404. "type": "text/javascript",
  5405. "exec": [
  5406. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5407. "if(tests[\"Status code is 200\"] ){",
  5408. " var jsonData = JSON.parse(responseBody);",
  5409. " ",
  5410. " postman.setEnvironmentVariable(\"carproduct_item07\", jsonData[0].id);",
  5411. " postman.setEnvironmentVariable(\"carproduct_name07\", jsonData[0].name);",
  5412. " postman.setEnvironmentVariable(\"carproduct_brands07\", jsonData[0].brands_name);",
  5413. " ",
  5414. " postman.setEnvironmentVariable(\"carproduct_item08\", jsonData[1].id);",
  5415. " postman.setEnvironmentVariable(\"carproduct_name08\", jsonData[1].name);",
  5416. " postman.setEnvironmentVariable(\"carproduct_brands08\", jsonData[1].brands_name);",
  5417. " ",
  5418. "}"
  5419. ]
  5420. }
  5421. }
  5422. ],
  5423. "request": {
  5424. "method": "GET",
  5425. "header": [
  5426. {
  5427. "key": "Authorization",
  5428. "value": "Rong {{shoptoken}}"
  5429. }
  5430. ],
  5431. "body": {
  5432. "mode": "raw",
  5433. "raw": ""
  5434. },
  5435. "url": {
  5436. "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category03}}",
  5437. "host": [
  5438. "{{url}}"
  5439. ],
  5440. "path": [
  5441. "api",
  5442. "basic",
  5443. "selectcloudcarproduct",
  5444. ""
  5445. ],
  5446. "query": [
  5447. {
  5448. "key": "category",
  5449. "value": "{{carproduct_category03}}"
  5450. }
  5451. ]
  5452. }
  5453. },
  5454. "response": []
  5455. },
  5456. {
  5457. "name": "04_get_basic_selectcloudcarproduct_category04",
  5458. "event": [
  5459. {
  5460. "listen": "test",
  5461. "script": {
  5462. "id": "d0a57979-a1f5-406e-b959-8bc98c11d3a5",
  5463. "exec": [
  5464. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5465. "if(tests[\"Status code is 200\"] ){",
  5466. " var jsonData = JSON.parse(responseBody);",
  5467. " ",
  5468. " postman.setEnvironmentVariable(\"carproduct_item09\", jsonData[0].id);",
  5469. " postman.setEnvironmentVariable(\"carproduct_name09\", jsonData[0].name);",
  5470. " //postman.setEnvironmentVariable(\"carproduct_brands09\", jsonData[0].brands_name);",
  5471. " ",
  5472. " postman.setEnvironmentVariable(\"carproduct_item10\", jsonData[1].id);",
  5473. " postman.setEnvironmentVariable(\"carproduct_name10\", jsonData[1].name);",
  5474. " // postman.setEnvironmentVariable(\"carproduct_brands10\", jsonData[1].brands_name);",
  5475. " ",
  5476. "}"
  5477. ],
  5478. "type": "text/javascript"
  5479. }
  5480. }
  5481. ],
  5482. "request": {
  5483. "method": "GET",
  5484. "header": [
  5485. {
  5486. "key": "Authorization",
  5487. "value": "Rong {{shoptoken}}"
  5488. }
  5489. ],
  5490. "body": {
  5491. "mode": "raw",
  5492. "raw": ""
  5493. },
  5494. "url": {
  5495. "raw": "{{url}}/api/basic/selectcloudcarproduct/?category={{carproduct_category04}}",
  5496. "host": [
  5497. "{{url}}"
  5498. ],
  5499. "path": [
  5500. "api",
  5501. "basic",
  5502. "selectcloudcarproduct",
  5503. ""
  5504. ],
  5505. "query": [
  5506. {
  5507. "key": "category",
  5508. "value": "{{carproduct_category04}}"
  5509. }
  5510. ]
  5511. }
  5512. },
  5513. "response": []
  5514. },
  5515. {
  5516. "name": "05_post_basic_carproductex",
  5517. "event": [
  5518. {
  5519. "listen": "test",
  5520. "script": {
  5521. "type": "text/javascript",
  5522. "exec": [
  5523. "",
  5524. "",
  5525. "",
  5526. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  5527. ]
  5528. }
  5529. }
  5530. ],
  5531. "request": {
  5532. "method": "POST",
  5533. "header": [
  5534. {
  5535. "key": "Authorization",
  5536. "value": "Rong {{shoptoken}}"
  5537. },
  5538. {
  5539. "key": "Content-Type",
  5540. "value": "application/json"
  5541. }
  5542. ],
  5543. "body": {
  5544. "mode": "raw",
  5545. "raw": "{\n\n\t\"items\":[{{carproduct_item01}},{{carproduct_item02}},{{carproduct_item03}},{{carproduct_item04}},{{carproduct_item05}},{{carproduct_item06}},{{carproduct_item07}},{{carproduct_item08}},{{carproduct_item09}},{{carproduct_item10}}]\n\t\n}"
  5546. },
  5547. "url": {
  5548. "raw": "{{url}}/api/basic/carproductex/",
  5549. "host": [
  5550. "{{url}}"
  5551. ],
  5552. "path": [
  5553. "api",
  5554. "basic",
  5555. "carproductex",
  5556. ""
  5557. ]
  5558. }
  5559. },
  5560. "response": []
  5561. },
  5562. {
  5563. "name": "06_get_basic_carproducts",
  5564. "event": [
  5565. {
  5566. "listen": "prerequest",
  5567. "script": {
  5568. "id": "0f8fc882-6405-492a-b7d9-8af08b88c6cf",
  5569. "exec": [
  5570. ""
  5571. ],
  5572. "type": "text/javascript"
  5573. }
  5574. },
  5575. {
  5576. "listen": "test",
  5577. "script": {
  5578. "id": "363d4ef3-f4d5-44e2-a421-b89b1ac914c0",
  5579. "exec": [
  5580. "",
  5581. "",
  5582. "",
  5583. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5584. "",
  5585. " var jsonData = JSON.parse(responseBody);",
  5586. " ",
  5587. " ",
  5588. " postman.setEnvironmentVariable(\"car_products_id02\", jsonData.results[1].id);",
  5589. " postman.setEnvironmentVariable(\"car_products_price02\", jsonData.results[1].price);",
  5590. " postman.setEnvironmentVariable(\"car_products_name02\", jsonData.results[1].name);",
  5591. " postman.setEnvironmentVariable(\"car_products_category02\", jsonData.results[1].category);",
  5592. " ",
  5593. " postman.setEnvironmentVariable(\"car_products_id03\", jsonData.results[2].id);",
  5594. " postman.setEnvironmentVariable(\"car_products_price03\", jsonData.results[2].price);",
  5595. " postman.setEnvironmentVariable(\"car_products_name03\", jsonData.results[2].name);",
  5596. " postman.setEnvironmentVariable(\"car_products_category03\", jsonData.results[2].category);",
  5597. " ",
  5598. " postman.setEnvironmentVariable(\"car_products_id04\", jsonData.results[3].id);",
  5599. " postman.setEnvironmentVariable(\"car_products_price04\", jsonData.results[3].price);",
  5600. " postman.setEnvironmentVariable(\"car_products_id05\", jsonData.results[4].id);",
  5601. " ",
  5602. " // postman.setEnvironmentVariable(\"product01\", JSON.stringify(jsonData.results[1]));",
  5603. " // postman.setEnvironmentVariable(\"product02\", JSON.stringify(jsonData.results[2]));",
  5604. " // postman.setEnvironmentVariable(\"product03\", JSON.stringify(jsonData.results[3]));",
  5605. " // postman.setEnvironmentVariable(\"product04\", JSON.stringify(jsonData.results[4]));"
  5606. ],
  5607. "type": "text/javascript"
  5608. }
  5609. }
  5610. ],
  5611. "request": {
  5612. "method": "GET",
  5613. "header": [
  5614. {
  5615. "key": "Authorization",
  5616. "value": "Rong {{shoptoken}}"
  5617. }
  5618. ],
  5619. "body": {
  5620. "mode": "raw",
  5621. "raw": ""
  5622. },
  5623. "url": {
  5624. "raw": "{{url}}/api/basic/carproducts/",
  5625. "host": [
  5626. "{{url}}"
  5627. ],
  5628. "path": [
  5629. "api",
  5630. "basic",
  5631. "carproducts",
  5632. ""
  5633. ]
  5634. }
  5635. },
  5636. "response": []
  5637. },
  5638. {
  5639. "name": "07_get_basic_selectcloudbeauty_category01",
  5640. "event": [
  5641. {
  5642. "listen": "test",
  5643. "script": {
  5644. "type": "text/javascript",
  5645. "exec": [
  5646. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5647. "",
  5648. "",
  5649. "if(tests[\"Status code is 200\"] ){",
  5650. " var jsonData = JSON.parse(responseBody);",
  5651. " ",
  5652. " postman.setEnvironmentVariable(\"beauty_item01\", jsonData[0].id);",
  5653. " postman.setEnvironmentVariable(\"beauty_name01\", jsonData[0].name);",
  5654. " postman.setEnvironmentVariable(\"beauty_price01\", jsonData[0].price);",
  5655. " ",
  5656. " postman.setEnvironmentVariable(\"beauty_item02\", jsonData[1].id);",
  5657. " postman.setEnvironmentVariable(\"beauty_name02\", jsonData[1].name);",
  5658. " postman.setEnvironmentVariable(\"beauty_price02\", jsonData[1].price);",
  5659. " ",
  5660. " postman.setEnvironmentVariable(\"beauty_item03\", jsonData[2].id);",
  5661. " postman.setEnvironmentVariable(\"beauty_name03\", jsonData[2].name);",
  5662. " postman.setEnvironmentVariable(\"beauty_price03\", jsonData[2].price);",
  5663. " ",
  5664. " postman.setEnvironmentVariable(\"beauty_item04\", jsonData[3].id);",
  5665. " postman.setEnvironmentVariable(\"beauty_name04\", jsonData[3].name);",
  5666. " postman.setEnvironmentVariable(\"beauty_price04\", jsonData[3].price);",
  5667. " ",
  5668. "}"
  5669. ]
  5670. }
  5671. }
  5672. ],
  5673. "request": {
  5674. "method": "GET",
  5675. "header": [
  5676. {
  5677. "key": "Authorization",
  5678. "value": "Rong {{shoptoken}}"
  5679. }
  5680. ],
  5681. "body": {
  5682. "mode": "raw",
  5683. "raw": ""
  5684. },
  5685. "url": {
  5686. "raw": "{{url}}/api/basic/selectcloudbeautyservice/?category={{beauty_category01}}",
  5687. "host": [
  5688. "{{url}}"
  5689. ],
  5690. "path": [
  5691. "api",
  5692. "basic",
  5693. "selectcloudbeautyservice",
  5694. ""
  5695. ],
  5696. "query": [
  5697. {
  5698. "key": "category",
  5699. "value": "{{beauty_category01}}"
  5700. }
  5701. ]
  5702. }
  5703. },
  5704. "response": []
  5705. },
  5706. {
  5707. "name": "08_get_basic_selectcloudbeauty_category02",
  5708. "event": [
  5709. {
  5710. "listen": "test",
  5711. "script": {
  5712. "type": "text/javascript",
  5713. "exec": [
  5714. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5715. "",
  5716. "if(tests[\"Status code is 200\"] ){",
  5717. " var jsonData = JSON.parse(responseBody);",
  5718. " ",
  5719. " postman.setEnvironmentVariable(\"beauty_item05\", jsonData[0].id);",
  5720. " postman.setEnvironmentVariable(\"beauty_name05\", jsonData[0].name);",
  5721. " postman.setEnvironmentVariable(\"beauty_price05\", jsonData[0].price);",
  5722. " ",
  5723. " postman.setEnvironmentVariable(\"beauty_item06\", jsonData[1].id);",
  5724. " postman.setEnvironmentVariable(\"beauty_name6\", jsonData[1].name);",
  5725. " postman.setEnvironmentVariable(\"beauty_price06\", jsonData[1].price);",
  5726. "}"
  5727. ]
  5728. }
  5729. }
  5730. ],
  5731. "request": {
  5732. "method": "GET",
  5733. "header": [
  5734. {
  5735. "key": "Authorization",
  5736. "value": "Rong {{shoptoken}}"
  5737. }
  5738. ],
  5739. "body": {
  5740. "mode": "raw",
  5741. "raw": ""
  5742. },
  5743. "url": {
  5744. "raw": "{{url}}/api/basic/selectcloudbeautyservice/?category={{beauty_category02}}",
  5745. "host": [
  5746. "{{url}}"
  5747. ],
  5748. "path": [
  5749. "api",
  5750. "basic",
  5751. "selectcloudbeautyservice",
  5752. ""
  5753. ],
  5754. "query": [
  5755. {
  5756. "key": "category",
  5757. "value": "{{beauty_category02}}"
  5758. }
  5759. ]
  5760. }
  5761. },
  5762. "response": []
  5763. },
  5764. {
  5765. "name": "09_post_basic_beautyservicesex",
  5766. "event": [
  5767. {
  5768. "listen": "test",
  5769. "script": {
  5770. "type": "text/javascript",
  5771. "exec": [
  5772. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  5773. ]
  5774. }
  5775. }
  5776. ],
  5777. "request": {
  5778. "method": "POST",
  5779. "header": [
  5780. {
  5781. "key": "Authorization",
  5782. "value": "Rong {{shoptoken}}"
  5783. },
  5784. {
  5785. "key": "Content-Type",
  5786. "value": "application/json"
  5787. }
  5788. ],
  5789. "body": {
  5790. "mode": "raw",
  5791. "raw": "{\n\n\t\"items\":[{{beauty_item01}},{{beauty_item02}},{{beauty_item03}},{{beauty_item04}},{{beauty_item05}},{{beauty_item06}}]\n\t\n}"
  5792. },
  5793. "url": {
  5794. "raw": "{{url}}/api/basic/beautyservicesex/",
  5795. "host": [
  5796. "{{url}}"
  5797. ],
  5798. "path": [
  5799. "api",
  5800. "basic",
  5801. "beautyservicesex",
  5802. ""
  5803. ]
  5804. }
  5805. },
  5806. "response": []
  5807. },
  5808. {
  5809. "name": "10_get_basic_beautyservices",
  5810. "event": [
  5811. {
  5812. "listen": "test",
  5813. "script": {
  5814. "id": "a37dbaae-6a15-4421-8b9b-4a2eb8d90d01",
  5815. "exec": [
  5816. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5817. "",
  5818. "if (tests[\"Status code is 200\"]) {",
  5819. " var jsonData = JSON.parse(responseBody);",
  5820. "",
  5821. " postman.setEnvironmentVariable(\"beauty_services_id01\", jsonData.results[0].id);",
  5822. " postman.setEnvironmentVariable(\"beauty_services_price01\", jsonData.results[0].price);",
  5823. " postman.setEnvironmentVariable(\"beauty_services_name01\", jsonData.results[0].name);",
  5824. " //postman.setEnvironmentVariable(\"agent_id03\", jsonData.results[2].user);",
  5825. " postman.setEnvironmentVariable(\"beauty_services_id02\", jsonData.results[1].id);",
  5826. " postman.setEnvironmentVariable(\"beauty_services_price02\", jsonData.results[1].price);",
  5827. " postman.setEnvironmentVariable(\"beauty_services_name02\", jsonData.results[1].name);",
  5828. " postman.setEnvironmentVariable(\"beauty_services_categoryname02\", jsonData.results[1].category_name);",
  5829. " postman.setEnvironmentVariable(\"beauty_services_category02\", jsonData.results[1].category);",
  5830. " ",
  5831. " postman.setEnvironmentVariable(\"beauty_services_id03\", jsonData.results[2].id);",
  5832. " postman.setEnvironmentVariable(\"beauty_services_name03\", jsonData.results[2].name);",
  5833. " postman.setEnvironmentVariable(\"beauty_services_price03\", jsonData.results[2].price);",
  5834. " // postman.setEnvironmentVariable(\"beauty_services_category03\", jsonData.results[1].category_name);",
  5835. " postman.setEnvironmentVariable(\"beauty_services_category03\", jsonData.results[2].category);",
  5836. " ",
  5837. " // postman.setEnvironmentVariable(\"beauty_all\", JSON.stringify(jsonData.results[0]));",
  5838. "}"
  5839. ],
  5840. "type": "text/javascript"
  5841. }
  5842. }
  5843. ],
  5844. "request": {
  5845. "method": "GET",
  5846. "header": [
  5847. {
  5848. "key": "Authorization",
  5849. "value": "Rong {{shoptoken}}"
  5850. }
  5851. ],
  5852. "body": {
  5853. "mode": "raw",
  5854. "raw": ""
  5855. },
  5856. "url": {
  5857. "raw": "{{url}}/api/basic/beautyservices/",
  5858. "host": [
  5859. "{{url}}"
  5860. ],
  5861. "path": [
  5862. "api",
  5863. "basic",
  5864. "beautyservices",
  5865. ""
  5866. ]
  5867. }
  5868. },
  5869. "response": []
  5870. },
  5871. {
  5872. "name": "11_get_basic_selectcloudrepairservice_category01",
  5873. "event": [
  5874. {
  5875. "listen": "test",
  5876. "script": {
  5877. "type": "text/javascript",
  5878. "exec": [
  5879. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5880. "",
  5881. "if(tests[\"Status code is 200\"] ){",
  5882. " var jsonData = JSON.parse(responseBody);",
  5883. " ",
  5884. " postman.setEnvironmentVariable(\"repair_item01\", jsonData[0].id);",
  5885. " postman.setEnvironmentVariable(\"repair_item02\", jsonData[1].id);",
  5886. " postman.setEnvironmentVariable(\"repair_item03\", jsonData[2].id);",
  5887. " postman.setEnvironmentVariable(\"repair_item04\", jsonData[3].id);",
  5888. "}"
  5889. ]
  5890. }
  5891. }
  5892. ],
  5893. "request": {
  5894. "method": "GET",
  5895. "header": [
  5896. {
  5897. "key": "Authorization",
  5898. "value": "Rong {{shoptoken}}"
  5899. }
  5900. ],
  5901. "body": {
  5902. "mode": "raw",
  5903. "raw": ""
  5904. },
  5905. "url": {
  5906. "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category01}}",
  5907. "host": [
  5908. "{{url}}"
  5909. ],
  5910. "path": [
  5911. "api",
  5912. "basic",
  5913. "selectcloudrepairservice",
  5914. ""
  5915. ],
  5916. "query": [
  5917. {
  5918. "key": "category",
  5919. "value": "{{repaire_category01}}"
  5920. }
  5921. ]
  5922. }
  5923. },
  5924. "response": []
  5925. },
  5926. {
  5927. "name": "12_get_basic_selectcloudrepairservice_category02",
  5928. "event": [
  5929. {
  5930. "listen": "test",
  5931. "script": {
  5932. "id": "94ff349c-30c3-4dc5-b079-7f9092c6a64c",
  5933. "exec": [
  5934. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5935. "",
  5936. "if(tests[\"Status code is 200\"] ){",
  5937. " var jsonData = JSON.parse(responseBody);",
  5938. " ",
  5939. " postman.setEnvironmentVariable(\"repair_item05\", jsonData[0].id);",
  5940. " postman.setEnvironmentVariable(\"repair_item06\", jsonData[1].id);",
  5941. "}"
  5942. ],
  5943. "type": "text/javascript"
  5944. }
  5945. }
  5946. ],
  5947. "request": {
  5948. "method": "GET",
  5949. "header": [
  5950. {
  5951. "key": "Authorization",
  5952. "value": "Rong {{shoptoken}}"
  5953. }
  5954. ],
  5955. "body": {
  5956. "mode": "raw",
  5957. "raw": ""
  5958. },
  5959. "url": {
  5960. "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category02}}",
  5961. "host": [
  5962. "{{url}}"
  5963. ],
  5964. "path": [
  5965. "api",
  5966. "basic",
  5967. "selectcloudrepairservice",
  5968. ""
  5969. ],
  5970. "query": [
  5971. {
  5972. "key": "category",
  5973. "value": "{{repaire_category02}}"
  5974. }
  5975. ]
  5976. }
  5977. },
  5978. "response": []
  5979. },
  5980. {
  5981. "name": "13_get_basic_selectcloudrepairservice_category03",
  5982. "event": [
  5983. {
  5984. "listen": "test",
  5985. "script": {
  5986. "id": "bd8e8ad5-f0a0-47a8-ab89-087b27bcc470",
  5987. "exec": [
  5988. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  5989. "",
  5990. "if(tests[\"Status code is 200\"] ){",
  5991. " var jsonData = JSON.parse(responseBody);",
  5992. " ",
  5993. " postman.setEnvironmentVariable(\"repair_item07\", jsonData[0].id);",
  5994. " postman.setEnvironmentVariable(\"repair_item08\", jsonData[1].id);",
  5995. "}"
  5996. ],
  5997. "type": "text/javascript"
  5998. }
  5999. }
  6000. ],
  6001. "request": {
  6002. "method": "GET",
  6003. "header": [
  6004. {
  6005. "key": "Authorization",
  6006. "value": "Rong {{shoptoken}}"
  6007. }
  6008. ],
  6009. "body": {
  6010. "mode": "raw",
  6011. "raw": ""
  6012. },
  6013. "url": {
  6014. "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category03}}",
  6015. "host": [
  6016. "{{url}}"
  6017. ],
  6018. "path": [
  6019. "api",
  6020. "basic",
  6021. "selectcloudrepairservice",
  6022. ""
  6023. ],
  6024. "query": [
  6025. {
  6026. "key": "category",
  6027. "value": "{{repaire_category03}}"
  6028. }
  6029. ]
  6030. }
  6031. },
  6032. "response": []
  6033. },
  6034. {
  6035. "name": "14_get_basic_selectcloudrepairservice_category04",
  6036. "event": [
  6037. {
  6038. "listen": "test",
  6039. "script": {
  6040. "id": "cb9f5e0e-4acc-4a2b-97c8-87539a579827",
  6041. "exec": [
  6042. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6043. "",
  6044. "if(tests[\"Status code is 200\"] ){",
  6045. " var jsonData = JSON.parse(responseBody);",
  6046. " ",
  6047. " postman.setEnvironmentVariable(\"repair_item09\", jsonData[0].id);",
  6048. " postman.setEnvironmentVariable(\"repair_item10\", jsonData[1].id);",
  6049. "}"
  6050. ],
  6051. "type": "text/javascript"
  6052. }
  6053. }
  6054. ],
  6055. "request": {
  6056. "method": "GET",
  6057. "header": [
  6058. {
  6059. "key": "Authorization",
  6060. "value": "Rong {{shoptoken}}"
  6061. }
  6062. ],
  6063. "body": {
  6064. "mode": "raw",
  6065. "raw": ""
  6066. },
  6067. "url": {
  6068. "raw": "{{url}}/api/basic/selectcloudrepairservice/?category={{repaire_category04}}",
  6069. "host": [
  6070. "{{url}}"
  6071. ],
  6072. "path": [
  6073. "api",
  6074. "basic",
  6075. "selectcloudrepairservice",
  6076. ""
  6077. ],
  6078. "query": [
  6079. {
  6080. "key": "category",
  6081. "value": "{{repaire_category04}}"
  6082. }
  6083. ]
  6084. }
  6085. },
  6086. "response": []
  6087. },
  6088. {
  6089. "name": "15_post_basic_repairserviceex",
  6090. "event": [
  6091. {
  6092. "listen": "test",
  6093. "script": {
  6094. "id": "71aceefd-a128-409f-b24a-09157a94e4d7",
  6095. "exec": [
  6096. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6097. "",
  6098. ""
  6099. ],
  6100. "type": "text/javascript"
  6101. }
  6102. }
  6103. ],
  6104. "request": {
  6105. "method": "POST",
  6106. "header": [
  6107. {
  6108. "key": "Authorization",
  6109. "value": "Rong {{shoptoken}}"
  6110. },
  6111. {
  6112. "key": "Content-Type",
  6113. "value": "application/json"
  6114. }
  6115. ],
  6116. "body": {
  6117. "mode": "raw",
  6118. "raw": "{\n\t\"items\":[{{repair_item01}},{{repair_item02}},{{repair_item03}},{{repair_item04}},{{repair_item05}},{{repair_item06}},{{repair_item07}},{{repair_item08}},{{repair_item09}},{{repair_item10}}]\n}"
  6119. },
  6120. "url": {
  6121. "raw": "{{url}}/api/basic/repairserviceex/",
  6122. "host": [
  6123. "{{url}}"
  6124. ],
  6125. "path": [
  6126. "api",
  6127. "basic",
  6128. "repairserviceex",
  6129. ""
  6130. ]
  6131. }
  6132. },
  6133. "response": []
  6134. },
  6135. {
  6136. "name": "15_post_basic_repairservice",
  6137. "event": [
  6138. {
  6139. "listen": "test",
  6140. "script": {
  6141. "id": "b7e46417-aa71-442c-80b3-027708c55eee",
  6142. "exec": [
  6143. "",
  6144. "pm.test(\"Successful POST request\", function () {",
  6145. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  6146. "});",
  6147. ""
  6148. ],
  6149. "type": "text/javascript"
  6150. }
  6151. }
  6152. ],
  6153. "request": {
  6154. "method": "POST",
  6155. "header": [
  6156. {
  6157. "key": "Authorization",
  6158. "value": "Rong {{shoptoken}}"
  6159. },
  6160. {
  6161. "key": "Content-Type",
  6162. "value": "application/json"
  6163. }
  6164. ],
  6165. "body": {
  6166. "mode": "raw",
  6167. "raw": "{\r\n\t\"name\": \"高能车座椅\",\r\n\t\"category\": {{repaire_category01}},\r\n\t\"standard_fee\": \"150\",\r\n\t\"note\": null\r\n}"
  6168. },
  6169. "url": {
  6170. "raw": "{{url}}/api/basic/repairservice/",
  6171. "host": [
  6172. "{{url}}"
  6173. ],
  6174. "path": [
  6175. "api",
  6176. "basic",
  6177. "repairservice",
  6178. ""
  6179. ]
  6180. }
  6181. },
  6182. "response": []
  6183. },
  6184. {
  6185. "name": "16_get_basic_repairservice",
  6186. "event": [
  6187. {
  6188. "listen": "test",
  6189. "script": {
  6190. "id": "8821b6f6-b545-4d5c-b067-96576f7c32d8",
  6191. "exec": [
  6192. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6193. "",
  6194. "if(tests[\"Status code is 200\"] ){",
  6195. " var jsonData = JSON.parse(responseBody);",
  6196. " ",
  6197. " postman.setEnvironmentVariable(\"repair_service_id01\", jsonData.results[0].id);",
  6198. " postman.setEnvironmentVariable(\"repair_service_name01\", jsonData.results[0].name);",
  6199. " postman.setEnvironmentVariable(\"repair_service_price01\", jsonData.results[0].standard_fee);",
  6200. " postman.setEnvironmentVariable(\"repair_service_category01\", jsonData.results[0].category);",
  6201. " ",
  6202. " postman.setEnvironmentVariable(\"repair_service_id02\", jsonData.results[1].id);",
  6203. " postman.setEnvironmentVariable(\"repair_service_name02\", jsonData.results[1].name);",
  6204. " postman.setEnvironmentVariable(\"repair_service_price02\", jsonData.results[1].standard_fee);",
  6205. " postman.setEnvironmentVariable(\"repair_service_category02\", jsonData.results[1].category);",
  6206. " ",
  6207. "}"
  6208. ],
  6209. "type": "text/javascript"
  6210. }
  6211. }
  6212. ],
  6213. "request": {
  6214. "method": "GET",
  6215. "header": [
  6216. {
  6217. "key": "Authorization",
  6218. "value": "Rong {{shoptoken}}"
  6219. }
  6220. ],
  6221. "body": {
  6222. "mode": "raw",
  6223. "raw": ""
  6224. },
  6225. "url": {
  6226. "raw": "{{url}}/api/basic/repairservice/",
  6227. "host": [
  6228. "{{url}}"
  6229. ],
  6230. "path": [
  6231. "api",
  6232. "basic",
  6233. "repairservice",
  6234. ""
  6235. ]
  6236. }
  6237. },
  6238. "response": []
  6239. },
  6240. {
  6241. "name": "17_post_package_chose",
  6242. "event": [
  6243. {
  6244. "listen": "test",
  6245. "script": {
  6246. "id": "b3f44f21-a526-41bb-8fe5-90efbfe799c7",
  6247. "exec": [
  6248. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6249. "",
  6250. ""
  6251. ],
  6252. "type": "text/javascript"
  6253. }
  6254. }
  6255. ],
  6256. "request": {
  6257. "method": "POST",
  6258. "header": [
  6259. {
  6260. "key": "Authorization",
  6261. "value": "Rong {{shoptoken}}"
  6262. },
  6263. {
  6264. "key": "Content-Type",
  6265. "value": "application/json"
  6266. }
  6267. ],
  6268. "body": {
  6269. "mode": "raw",
  6270. "raw": "{\n\t\"items\":[{{packagecloud_id01}},{{packagecloud_id02}}]\n}"
  6271. },
  6272. "url": {
  6273. "raw": "{{url}}/api/vipmember/vipmemberrechargepackageex/",
  6274. "host": [
  6275. "{{url}}"
  6276. ],
  6277. "path": [
  6278. "api",
  6279. "vipmember",
  6280. "vipmemberrechargepackageex",
  6281. ""
  6282. ]
  6283. }
  6284. },
  6285. "response": []
  6286. },
  6287. {
  6288. "name": "18_get_packages",
  6289. "event": [
  6290. {
  6291. "listen": "test",
  6292. "script": {
  6293. "id": "51ea7b8a-1e5b-48f3-b297-4223f9845cf2",
  6294. "exec": [
  6295. "",
  6296. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6297. "",
  6298. "",
  6299. " ",
  6300. " ",
  6301. " var jsonData = JSON.parse(responseBody);",
  6302. " ",
  6303. " postman.setEnvironmentVariable(\"package_id01\", jsonData.results[0].id);",
  6304. " postman.setEnvironmentVariable(\"package_amout01\", jsonData.results[0].amount_package);",
  6305. " postman.setEnvironmentVariable(\"package_realpay01\", jsonData.results[0].real_payment);",
  6306. " postman.setEnvironmentVariable(\"package_validity01\", jsonData.results[0].validity_period);",
  6307. ""
  6308. ],
  6309. "type": "text/javascript"
  6310. }
  6311. }
  6312. ],
  6313. "request": {
  6314. "method": "GET",
  6315. "header": [
  6316. {
  6317. "key": "Authorization",
  6318. "value": "Rong {{shoptoken}}"
  6319. },
  6320. {
  6321. "key": "Content-Type",
  6322. "name": "Content-Type",
  6323. "value": "application/json",
  6324. "type": "text"
  6325. }
  6326. ],
  6327. "body": {
  6328. "mode": "raw",
  6329. "raw": ""
  6330. },
  6331. "url": {
  6332. "raw": "{{url}}/api/vipmember/vipmemberrechargepackage/",
  6333. "host": [
  6334. "{{url}}"
  6335. ],
  6336. "path": [
  6337. "api",
  6338. "vipmember",
  6339. "vipmemberrechargepackage",
  6340. ""
  6341. ]
  6342. }
  6343. },
  6344. "response": []
  6345. },
  6346. {
  6347. "name": "19_post_basic_beautypackages",
  6348. "event": [
  6349. {
  6350. "listen": "test",
  6351. "script": {
  6352. "id": "d49b365a-fab4-408d-9e46-ad7a48f301dd",
  6353. "exec": [
  6354. "",
  6355. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  6356. ],
  6357. "type": "text/javascript"
  6358. }
  6359. }
  6360. ],
  6361. "request": {
  6362. "method": "POST",
  6363. "header": [
  6364. {
  6365. "key": "Authorization",
  6366. "value": "Rong {{shoptoken}}"
  6367. },
  6368. {
  6369. "key": "Content-Type",
  6370. "value": "application/json"
  6371. }
  6372. ],
  6373. "body": {
  6374. "mode": "raw",
  6375. "raw": "{\r\n\t\"name\": \"尊享美容套餐\",\r\n\t\"price\": \"599\",\r\n\t\"deadline\": \"6\",\r\n\t\"available\": true,\r\n\t\"release_date\": \"2018-09-18\",\r\n\t\"service_details\": [{\r\n\t\t\"amount\": 2,\r\n\t\t\"beauty_services_id\": {{beauty_item01}},\r\n\t\t\"name\": \"{{beauty_name01}}\",\r\n\t\t\"price\": \"{{beauty_price01}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 2,\r\n\t\t\"beauty_services_id\":{{beauty_item02}} ,\r\n\t\t\"name\": \"{{beauty_name02}}\",\r\n\t\t\"price\": \"{{beauty_price02}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 1,\r\n\t\t\"beauty_services_id\": {{beauty_item03}},\r\n\t\t\"name\": \"{{beauty_name03}}\",\r\n\t\t\"price\": \"{{beauty_price03}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 1,\r\n\t\t\"beauty_services_id\": {{beauty_item05}},\r\n\t\t\"name\": \"{{beauty_name05}}\",\r\n\t\t\"price\": \"{{beauty_price05}}\",\r\n\t\t\"unit\": 0\r\n\t}, {\r\n\t\t\"amount\": 1,\r\n\t\t\"beauty_services_id\": {{beauty_item04}},\r\n\t\t\"name\": \"{{beauty_name04}}\",\r\n\t\t\"price\": \"{{beauty_price04}}\",\r\n\t\t\"unit\": 0\r\n\t}]\r\n}"
  6376. },
  6377. "url": {
  6378. "raw": "{{url}}/api/basic/beautypackages/",
  6379. "host": [
  6380. "{{url}}"
  6381. ],
  6382. "path": [
  6383. "api",
  6384. "basic",
  6385. "beautypackages",
  6386. ""
  6387. ]
  6388. }
  6389. },
  6390. "response": []
  6391. },
  6392. {
  6393. "name": "20_get_basic_beautypackages",
  6394. "event": [
  6395. {
  6396. "listen": "test",
  6397. "script": {
  6398. "id": "51ea7b8a-1e5b-48f3-b297-4223f9845cf2",
  6399. "exec": [
  6400. "",
  6401. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6402. "",
  6403. "if(tests[\"Status code is 200\"] ){",
  6404. " ",
  6405. " var jsonData = JSON.parse(responseBody);",
  6406. " ",
  6407. " postman.setEnvironmentVariable(\"beautypackage_id01\", JSON.stringify(jsonData.results[0].service_details));",
  6408. " postman.setEnvironmentVariable(\"bp_id01\",jsonData.results[0].id);",
  6409. " postman.setEnvironmentVariable(\"bp_name01\",jsonData.results[0].name);",
  6410. " postman.setEnvironmentVariable(\"bp_price01\",jsonData.results[0].price);",
  6411. "}"
  6412. ],
  6413. "type": "text/javascript"
  6414. }
  6415. }
  6416. ],
  6417. "request": {
  6418. "method": "GET",
  6419. "header": [
  6420. {
  6421. "key": "Authorization",
  6422. "value": "Rong {{shoptoken}}"
  6423. }
  6424. ],
  6425. "body": {
  6426. "mode": "raw",
  6427. "raw": ""
  6428. },
  6429. "url": {
  6430. "raw": "{{url}}/api/basic/beautypackages/",
  6431. "host": [
  6432. "{{url}}"
  6433. ],
  6434. "path": [
  6435. "api",
  6436. "basic",
  6437. "beautypackages",
  6438. ""
  6439. ]
  6440. }
  6441. },
  6442. "response": []
  6443. }
  6444. ]
  6445. },
  6446. {
  6447. "name": "stock",
  6448. "item": [
  6449. {
  6450. "name": "01_post_invoicing_inventorycheck",
  6451. "event": [
  6452. {
  6453. "listen": "test",
  6454. "script": {
  6455. "id": "0f22c8e9-ce59-4ee9-98f8-aa596ecd8ca9",
  6456. "exec": [
  6457. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  6458. ],
  6459. "type": "text/javascript"
  6460. }
  6461. }
  6462. ],
  6463. "request": {
  6464. "method": "POST",
  6465. "header": [
  6466. {
  6467. "key": "Content-Type",
  6468. "value": "application/json"
  6469. },
  6470. {
  6471. "key": "Authorization",
  6472. "value": "Rong {{shoptoken}}"
  6473. }
  6474. ],
  6475. "body": {
  6476. "mode": "raw",
  6477. "raw": "[{\r\n\t\"id\": {{carproduct_item01}},\r\n\t\"name\": \"{{carproduct_name01}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\":{{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\":\t0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item02}},\r\n\t\"name\": \"{{carproduct_name02}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n \"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item03}},\r\n\t\"name\": \"{{carproduct_name03}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n \"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item04}},\r\n\t\"name\": \"{{carproduct_name04}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category01}},\r\n\t\"category__name\": \"{{product_name01}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item05}},\r\n\t\"name\": \"{{carproduct_name01}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category02}},\r\n\t\"category__name\": \"{{product_name02}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 10,\r\n\t\"checkamount\": 10,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item06}},\r\n\t\"name\": \"{{carproduct_name06}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category02}},\r\n\t\"category__name\": \"{{product_name02}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item07}},\r\n\t\"name\": \"{{carproduct_name07}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_category03}},\r\n\t\"category__name\": \"{{product_name03}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item08}},\r\n\t\"name\": \"{{carproduct_name08}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_item03}},\r\n\t\"category__name\": \"{{product_name03}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\":5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\":{{carproduct_item09}},\r\n\t\"name\": \"{{carproduct_name09}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_item04}},\r\n\t\"category__name\": \"{{product_name04}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}, {\r\n\t\"id\": {{carproduct_item10}},\r\n\t\"name\": \"{{carproduct_name10}}\",\r\n\t\"storehouse__name\": null,\r\n\t\"brands__name\": null,\r\n\t\"brands\": null,\r\n\t\"category\": {{carproduct_item04}},\r\n\t\"category__name\": \"{{product_name04}}\",\r\n\t\"storehouse\": {{storehouse_id01}},\r\n\t\"code\": null,\r\n\t\"unit_cost\": 0,\r\n\t\"amount\": 5,\r\n\t\"checkamount\": 5,\r\n\t\"difference\": 0,\r\n\t\"variablecosts\":0\r\n}]"
  6478. },
  6479. "url": {
  6480. "raw": "{{url}}/api/invoicing/inventorycheck/",
  6481. "host": [
  6482. "{{url}}"
  6483. ],
  6484. "path": [
  6485. "api",
  6486. "invoicing",
  6487. "inventorycheck",
  6488. ""
  6489. ]
  6490. }
  6491. },
  6492. "response": []
  6493. },
  6494. {
  6495. "name": "02_get_invoicing_inventorycheck",
  6496. "event": [
  6497. {
  6498. "listen": "test",
  6499. "script": {
  6500. "id": "0f22c8e9-ce59-4ee9-98f8-aa596ecd8ca9",
  6501. "exec": [
  6502. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  6503. ],
  6504. "type": "text/javascript"
  6505. }
  6506. }
  6507. ],
  6508. "protocolProfileBehavior": {
  6509. "disableBodyPruning": true
  6510. },
  6511. "request": {
  6512. "method": "GET",
  6513. "header": [
  6514. {
  6515. "key": "Content-Type",
  6516. "value": "application/json",
  6517. "disabled": true
  6518. },
  6519. {
  6520. "key": "Authorization",
  6521. "value": "Rong {{shoptoken}}"
  6522. }
  6523. ],
  6524. "body": {
  6525. "mode": "raw",
  6526. "raw": ""
  6527. },
  6528. "url": {
  6529. "raw": "{{url}}/api/invoicing/inventorycheck/",
  6530. "host": [
  6531. "{{url}}"
  6532. ],
  6533. "path": [
  6534. "api",
  6535. "invoicing",
  6536. "inventorycheck",
  6537. ""
  6538. ]
  6539. }
  6540. },
  6541. "response": []
  6542. }
  6543. ]
  6544. },
  6545. {
  6546. "name": "vipmember",
  6547. "item": [
  6548. {
  6549. "name": "01_post_vipmember_vipmemberinfoadmin",
  6550. "event": [
  6551. {
  6552. "listen": "test",
  6553. "script": {
  6554. "id": "80757c3e-0f8f-4df1-9b56-7dc38ecd3cd7",
  6555. "exec": [
  6556. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;",
  6557. "",
  6558. "//\"grade\":{{grade_id01}},"
  6559. ],
  6560. "type": "text/javascript"
  6561. }
  6562. }
  6563. ],
  6564. "request": {
  6565. "method": "POST",
  6566. "header": [
  6567. {
  6568. "key": "Authorization",
  6569. "value": "Rong {{shoptoken}}"
  6570. },
  6571. {
  6572. "key": "Content-Type",
  6573. "value": "application/json"
  6574. }
  6575. ],
  6576. "body": {
  6577. "mode": "raw",
  6578. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"id\": null,\r\n\t\"register_date\": \"{{ymd-date}}\",\r\n\t\"name\": \"董晓月\",\r\n\t\"phone_number\": \"18159852222\",\r\n\t\"grade\":{{grade_id01}},\r\n\t\"sex\": 0,\r\n\t\"birthday\": \"1992-01-01\",\r\n\t\"email\": null,\r\n\t\"address\": null,\r\n\t\"wechat\": null,\r\n\t\"alipay\": null,\r\n\t\"interest\":[{{interest_id02}},{{interest_id03}}],\r\n\t\"agent\":{{agent_id01}},\r\n\t\"rem\": null,\r\n\t\"number\": null,\r\n\t\"car\": [{\r\n\t\t\"id\": null,\r\n\t\t\"code\": \"B908908\",\r\n\t\t\"areashort\": {\r\n\t\t\t\"id\": {{areashort_id01}},\r\n\t\t\t\"name\": \"{{areashort_name01}}\"\r\n\t\t},\r\n\t\t\"carcategory\": [{{carcategory_category01}}],\r\n\t\t\"engine_no\":\"yic9\",\r\n\t\t\"carbody_no\": \"cj9088\",\r\n\t\t\"on_date\": \"2010-10-10\",\r\n\t\t\"body_color\": \"白色\",\r\n\t\t\"description\": null,\r\n\t\t\"carcategory_name\": \"{{carcategory_name01}}\"\r\n\t}]\r\n}"
  6579. },
  6580. "url": {
  6581. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/",
  6582. "host": [
  6583. "{{url}}"
  6584. ],
  6585. "path": [
  6586. "api",
  6587. "vipmember",
  6588. "vipmemberinfoadmin",
  6589. ""
  6590. ]
  6591. }
  6592. },
  6593. "response": []
  6594. },
  6595. {
  6596. "name": "02_get_vipmember_vipmemberinfoadmin_all",
  6597. "event": [
  6598. {
  6599. "listen": "test",
  6600. "script": {
  6601. "type": "text/javascript",
  6602. "exec": [
  6603. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6604. "",
  6605. "// if(tests[\"Status code is 200\"] ){",
  6606. "// var jsonData = JSON.parse(responseBody);",
  6607. " ",
  6608. "// postman.setEnvironmentVariable(\"vip_id01\", jsonData.results[0].id);",
  6609. " ",
  6610. "// postman.setEnvironmentVariable(\"vip_name01\", jsonData.results[0].name);",
  6611. " ",
  6612. "// postman.setEnvironmentVariable(\"vip_phone01\", jsonData.results[0].phone_number);",
  6613. "// postman.setEnvironmentVariable(\"car_code01\", jsonData.results[0].car[0].code);",
  6614. " ",
  6615. "// postman.setEnvironmentVariable(\"car_id01\", jsonData.results[0].car[0].id);",
  6616. "// postman.setEnvironmentVariable(\"areashortid01\", jsonData.results[0].car[0].areashort);",
  6617. "// postman.setEnvironmentVariable(\"vip_grade01\", jsonData.results[0].grade);",
  6618. " ",
  6619. "// postman.setEnvironmentVariable(\"vip_info01\", JSON.stringify(jsonData.results[0]));",
  6620. " ",
  6621. "// }"
  6622. ]
  6623. }
  6624. }
  6625. ],
  6626. "request": {
  6627. "method": "GET",
  6628. "header": [
  6629. {
  6630. "key": "Authorization",
  6631. "value": "Rong {{shoptoken}}"
  6632. },
  6633. {
  6634. "key": "Content-Type",
  6635. "value": "application/json"
  6636. }
  6637. ],
  6638. "body": {
  6639. "mode": "raw",
  6640. "raw": ""
  6641. },
  6642. "url": {
  6643. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/",
  6644. "host": [
  6645. "{{url}}"
  6646. ],
  6647. "path": [
  6648. "api",
  6649. "vipmember",
  6650. "vipmemberinfoadmin",
  6651. ""
  6652. ]
  6653. }
  6654. },
  6655. "response": []
  6656. },
  6657. {
  6658. "name": "03_get_vipmember_vipmemberinfoadmin _phone",
  6659. "event": [
  6660. {
  6661. "listen": "test",
  6662. "script": {
  6663. "id": "11c7f590-66d7-4fcf-ae57-fbb08cdacbf9",
  6664. "exec": [
  6665. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6666. "",
  6667. "if(tests[\"Status code is 200\"] ){",
  6668. " var jsonData = JSON.parse(responseBody);",
  6669. " ",
  6670. " postman.setEnvironmentVariable(\"vip_id01\", jsonData.results[0].id);",
  6671. " ",
  6672. " postman.setEnvironmentVariable(\"vip_name01\", jsonData.results[0].name);",
  6673. " ",
  6674. " postman.setEnvironmentVariable(\"vip_phone01\", jsonData.results[0].phone_number);",
  6675. " postman.setEnvironmentVariable(\"car_code01\", jsonData.results[0].car[0].code);",
  6676. " ",
  6677. " postman.setEnvironmentVariable(\"car_id01\", jsonData.results[0].car[0].id);",
  6678. " postman.setEnvironmentVariable(\"areashortid01\", jsonData.results[0].car[0].areashort);",
  6679. " postman.setEnvironmentVariable(\"vip_grade01\", jsonData.results[0].grade);",
  6680. " ",
  6681. " postman.setEnvironmentVariable(\"vip_info01\", JSON.stringify(jsonData.results[0]));",
  6682. " postman.setEnvironmentVariable(\"vip_carname01\", jsonData.results[0].car.carcategory_name);",
  6683. " ",
  6684. " ",
  6685. " ",
  6686. "}"
  6687. ],
  6688. "type": "text/javascript"
  6689. }
  6690. }
  6691. ],
  6692. "request": {
  6693. "method": "GET",
  6694. "header": [
  6695. {
  6696. "key": "Authorization",
  6697. "value": "Rong {{shoptoken}}"
  6698. },
  6699. {
  6700. "key": "Content-Type",
  6701. "value": "application/json"
  6702. }
  6703. ],
  6704. "body": {
  6705. "mode": "raw",
  6706. "raw": ""
  6707. },
  6708. "url": {
  6709. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?cellphone=18159852222",
  6710. "host": [
  6711. "{{url}}"
  6712. ],
  6713. "path": [
  6714. "api",
  6715. "vipmember",
  6716. "vipmemberinfoadmin",
  6717. ""
  6718. ],
  6719. "query": [
  6720. {
  6721. "key": "cellphone",
  6722. "value": "18159852222"
  6723. }
  6724. ]
  6725. }
  6726. },
  6727. "response": []
  6728. },
  6729. {
  6730. "name": "04_get_vipmember_vipmemberinfoadmin _carcode",
  6731. "event": [
  6732. {
  6733. "listen": "test",
  6734. "script": {
  6735. "type": "text/javascript",
  6736. "exec": [
  6737. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6738. "",
  6739. ""
  6740. ]
  6741. }
  6742. }
  6743. ],
  6744. "request": {
  6745. "method": "GET",
  6746. "header": [
  6747. {
  6748. "key": "Authorization",
  6749. "value": "Rong {{shoptoken}}"
  6750. },
  6751. {
  6752. "key": "Content-Type",
  6753. "value": "application/json"
  6754. }
  6755. ],
  6756. "body": {
  6757. "mode": "raw",
  6758. "raw": ""
  6759. },
  6760. "url": {
  6761. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?car_code={{car_code01}}",
  6762. "host": [
  6763. "{{url}}"
  6764. ],
  6765. "path": [
  6766. "api",
  6767. "vipmember",
  6768. "vipmemberinfoadmin",
  6769. ""
  6770. ],
  6771. "query": [
  6772. {
  6773. "key": "car_code",
  6774. "value": "{{car_code01}}"
  6775. }
  6776. ]
  6777. }
  6778. },
  6779. "response": []
  6780. },
  6781. {
  6782. "name": "05_get_vipmember_vipmemberinfoadmin _startdate",
  6783. "event": [
  6784. {
  6785. "listen": "test",
  6786. "script": {
  6787. "id": "ace01dfe-b7c9-4feb-9a0d-54aa4a68dd22",
  6788. "exec": [
  6789. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  6790. "",
  6791. ""
  6792. ],
  6793. "type": "text/javascript"
  6794. }
  6795. }
  6796. ],
  6797. "request": {
  6798. "method": "GET",
  6799. "header": [
  6800. {
  6801. "key": "Authorization",
  6802. "value": "Rong {{shoptoken}}"
  6803. },
  6804. {
  6805. "key": "Content-Type",
  6806. "value": "application/json"
  6807. }
  6808. ],
  6809. "body": {
  6810. "mode": "raw",
  6811. "raw": ""
  6812. },
  6813. "url": {
  6814. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?start_date=2018-09-29",
  6815. "host": [
  6816. "{{url}}"
  6817. ],
  6818. "path": [
  6819. "api",
  6820. "vipmember",
  6821. "vipmemberinfoadmin",
  6822. ""
  6823. ],
  6824. "query": [
  6825. {
  6826. "key": "start_date",
  6827. "value": "2018-09-29"
  6828. }
  6829. ]
  6830. }
  6831. },
  6832. "response": []
  6833. }
  6834. ]
  6835. },
  6836. {
  6837. "name": "serviceprice",
  6838. "item": [
  6839. {
  6840. "name": "01_post_vipmemberworkprice_1",
  6841. "event": [
  6842. {
  6843. "listen": "test",
  6844. "script": {
  6845. "id": "4deb0a17-5f67-4c23-bc5c-c16b10a551c0",
  6846. "exec": [
  6847. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  6848. ],
  6849. "type": "text/javascript"
  6850. }
  6851. }
  6852. ],
  6853. "request": {
  6854. "method": "POST",
  6855. "header": [
  6856. {
  6857. "key": "Content-Type",
  6858. "value": "application/json"
  6859. },
  6860. {
  6861. "key": "Authorization",
  6862. "value": "Rong {{shoptoken}}"
  6863. }
  6864. ],
  6865. "body": {
  6866. "mode": "raw",
  6867. "raw": "{\r\n\t\"grade\":{{grade_id01}},\r\n\t\"service_category\": 1,\r\n\t\"service_project\":{{beauty_services_id03}},\r\n\t\"rate\": \"99\",\r\n\t\"rem\": \"\",\r\n\t\"state\": true,\r\n\t\"page\": 1,\r\n\t\"page_size\": 10,\r\n\t\"total\": 10,\r\n\t\"name\": \"{{beauty_services_name03}}\",\r\n\t\"car_products_category\": null,\r\n\t\"category\": {{beauty_services_category03}},\r\n\t\"work_project\": null\r\n}"
  6868. },
  6869. "url": {
  6870. "raw": "{{url}}/api/vipmember/vipmemberworkprice/",
  6871. "host": [
  6872. "{{url}}"
  6873. ],
  6874. "path": [
  6875. "api",
  6876. "vipmember",
  6877. "vipmemberworkprice",
  6878. ""
  6879. ]
  6880. }
  6881. },
  6882. "response": []
  6883. },
  6884. {
  6885. "name": "02_post_vipmemberworkprice_2",
  6886. "event": [
  6887. {
  6888. "listen": "test",
  6889. "script": {
  6890. "type": "text/javascript",
  6891. "exec": [
  6892. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  6893. ]
  6894. }
  6895. }
  6896. ],
  6897. "request": {
  6898. "method": "POST",
  6899. "header": [
  6900. {
  6901. "key": "Content-Type",
  6902. "value": "application/json"
  6903. },
  6904. {
  6905. "key": "Authorization",
  6906. "value": "Rong {{shoptoken}}"
  6907. }
  6908. ],
  6909. "body": {
  6910. "mode": "raw",
  6911. "raw": "{\r\n\t\"grade\": {{grade_id01}},\r\n\t\"service_category\": 2,\r\n\t\"service_project\": {{repair_service_id02}},\r\n\t\"rate\": \"98\",\r\n\t\"rem\": \"\",\r\n\t\"state\": true,\r\n\t\"page\": 1,\r\n\t\"page_size\": 10,\r\n\t\"total\": 10,\r\n\t\"name\": \"{{repair_service_name02}}\",\r\n\t\"car_products_category\": null,\r\n\t\"category\": {{repair_service_category02}},\r\n\t\"work_project\": null\r\n}"
  6912. },
  6913. "url": {
  6914. "raw": "{{url}}/api/vipmember/vipmemberworkprice/",
  6915. "host": [
  6916. "{{url}}"
  6917. ],
  6918. "path": [
  6919. "api",
  6920. "vipmember",
  6921. "vipmemberworkprice",
  6922. ""
  6923. ]
  6924. }
  6925. },
  6926. "response": []
  6927. },
  6928. {
  6929. "name": "03_post_vipmemberworkprice_3",
  6930. "event": [
  6931. {
  6932. "listen": "test",
  6933. "script": {
  6934. "type": "text/javascript",
  6935. "exec": [
  6936. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  6937. ]
  6938. }
  6939. }
  6940. ],
  6941. "request": {
  6942. "method": "POST",
  6943. "header": [
  6944. {
  6945. "key": "Content-Type",
  6946. "value": "application/json"
  6947. },
  6948. {
  6949. "key": "Authorization",
  6950. "value": "Rong {{shoptoken}}"
  6951. }
  6952. ],
  6953. "body": {
  6954. "mode": "raw",
  6955. "raw": "{\r\n\t\"grade\": {{grade_id01}},\r\n\t\"service_category\": 3,\r\n\t\"service_project\": {{car_products_id03}},\r\n\t\"rate\": \"98\",\r\n\t\"rem\": \"\",\r\n\t\"state\": true,\r\n\t\"page\": 1,\r\n\t\"page_size\": 10,\r\n\t\"total\": 10,\r\n\t\"name\": \"{{car_products_name03}}\",\r\n\t\"car_products_category\": null,\r\n\t\"category\": {{car_products_category03}},\r\n\t\"work_project\": null\r\n}"
  6956. },
  6957. "url": {
  6958. "raw": "{{url}}/api/vipmember/vipmemberworkprice/",
  6959. "host": [
  6960. "{{url}}"
  6961. ],
  6962. "path": [
  6963. "api",
  6964. "vipmember",
  6965. "vipmemberworkprice",
  6966. ""
  6967. ]
  6968. }
  6969. },
  6970. "response": []
  6971. },
  6972. {
  6973. "name": "04_get_vipmemberworkprice",
  6974. "event": [
  6975. {
  6976. "listen": "test",
  6977. "script": {
  6978. "id": "f597428c-12df-4981-bdcf-43982d3fe2ed",
  6979. "exec": [
  6980. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  6981. ],
  6982. "type": "text/javascript"
  6983. }
  6984. }
  6985. ],
  6986. "request": {
  6987. "method": "GET",
  6988. "header": [
  6989. {
  6990. "key": "Authorization",
  6991. "value": "Rong {{shoptoken}}"
  6992. }
  6993. ],
  6994. "body": {
  6995. "mode": "raw",
  6996. "raw": ""
  6997. },
  6998. "url": {
  6999. "raw": "{{url}}/api/vipmember/vipmemberworkprice/",
  7000. "host": [
  7001. "{{url}}"
  7002. ],
  7003. "path": [
  7004. "api",
  7005. "vipmember",
  7006. "vipmemberworkprice",
  7007. ""
  7008. ]
  7009. }
  7010. },
  7011. "response": []
  7012. }
  7013. ]
  7014. },
  7015. {
  7016. "name": "card",
  7017. "item": [
  7018. {
  7019. "name": "01_post_beautypackagecar",
  7020. "event": [
  7021. {
  7022. "listen": "prerequest",
  7023. "script": {
  7024. "id": "49d494bf-3956-474b-93b7-9de03d8eed80",
  7025. "exec": [
  7026. "var beautypackage_id01 = JSON.parse(postman.getEnvironmentVariable(\"beautypackage_id01\"));",
  7027. "",
  7028. "",
  7029. "",
  7030. " postman.setEnvironmentVariable(\"service_item\",JSON.stringify(beautypackage_id01));",
  7031. ""
  7032. ],
  7033. "type": "text/javascript"
  7034. }
  7035. },
  7036. {
  7037. "listen": "test",
  7038. "script": {
  7039. "id": "eac1ca93-64d8-4136-be94-602b071ef5b8",
  7040. "exec": [
  7041. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  7042. ],
  7043. "type": "text/javascript"
  7044. }
  7045. }
  7046. ],
  7047. "request": {
  7048. "method": "POST",
  7049. "header": [
  7050. {
  7051. "key": "Authorization",
  7052. "value": "Rong {{shoptoken}}"
  7053. },
  7054. {
  7055. "key": "Content-Type",
  7056. "value": "application/json"
  7057. }
  7058. ],
  7059. "body": {
  7060. "mode": "raw",
  7061. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"id\": null,\r\n\t\"areashort\":{{areashortid01}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"cellphone\": \"{{vip_phone01}}\",\r\n\t\"car_code\": null,\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"package_name\": \"{{bp_name01}}\",\r\n\t\"package\": {{bp_id01}},\r\n\t\"opencard_amount\": \"{{bp_price01}}\",\r\n\t\"account\":{{account_id01}},\r\n\t\"end_date\": \"2019-04-09\",\r\n\t\"agent\": {{agent_id01}},\r\n\t\"rem\": null,\r\n\t\"state\": 1,\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"service_item\": {{service_item}},\r\n\t\"car\": null,\r\n\t\"number\": null\r\n}"
  7062. },
  7063. "url": {
  7064. "raw": "{{url}}/api/vipmember/packagecardadmin/",
  7065. "host": [
  7066. "{{url}}"
  7067. ],
  7068. "path": [
  7069. "api",
  7070. "vipmember",
  7071. "packagecardadmin",
  7072. ""
  7073. ]
  7074. }
  7075. },
  7076. "response": []
  7077. },
  7078. {
  7079. "name": "02_get_beautypackagecar_all",
  7080. "event": [
  7081. {
  7082. "listen": "prerequest",
  7083. "script": {
  7084. "type": "text/javascript",
  7085. "exec": [
  7086. "//var beautypackage_id01 = JSON.parse(postman.getEnvironmentVariable(\"beautypackage_id01\"));",
  7087. "",
  7088. "//var vip_info01 = JSON.parse(postman.getEnvironmentVariable(\"vip_info01\"));",
  7089. "",
  7090. " //postman.setEnvironmentVariable(\"service_item\",JSON.stringify(beautypackage_id01));",
  7091. "// var data=",
  7092. " ",
  7093. "// [",
  7094. "// {",
  7095. " ",
  7096. "// \"beauty_services_id\": beautypackage_id01[i].beauty_services_id,",
  7097. "// \"amount\": beautypackage_id01[i].amount,",
  7098. "// \"name\": beautypackage_id01[i].namet,",
  7099. "// \"unit\": beautypackage_id01[i].unit,",
  7100. "// \"price\": beautypackage_id01[i].price",
  7101. "// }",
  7102. "// ]",
  7103. ""
  7104. ]
  7105. }
  7106. },
  7107. {
  7108. "listen": "test",
  7109. "script": {
  7110. "type": "text/javascript",
  7111. "exec": [
  7112. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7113. ]
  7114. }
  7115. }
  7116. ],
  7117. "request": {
  7118. "method": "GET",
  7119. "header": [
  7120. {
  7121. "key": "Authorization",
  7122. "value": "Rong {{shoptoken}}"
  7123. },
  7124. {
  7125. "key": "Content-Type",
  7126. "value": "application/json"
  7127. }
  7128. ],
  7129. "body": {
  7130. "mode": "raw",
  7131. "raw": ""
  7132. },
  7133. "url": {
  7134. "raw": "{{url}}/api/vipmember/packagecardadmin/",
  7135. "host": [
  7136. "{{url}}"
  7137. ],
  7138. "path": [
  7139. "api",
  7140. "vipmember",
  7141. "packagecardadmin",
  7142. ""
  7143. ]
  7144. }
  7145. },
  7146. "response": []
  7147. },
  7148. {
  7149. "name": "03_get_beautypackagecar_vipphone",
  7150. "event": [
  7151. {
  7152. "listen": "prerequest",
  7153. "script": {
  7154. "type": "text/javascript",
  7155. "exec": [
  7156. "//var beautypackage_id01 = JSON.parse(postman.getEnvironmentVariable(\"beautypackage_id01\"));",
  7157. "",
  7158. "//var vip_info01 = JSON.parse(postman.getEnvironmentVariable(\"vip_info01\"));",
  7159. "",
  7160. " //postman.setEnvironmentVariable(\"service_item\",JSON.stringify(beautypackage_id01));",
  7161. "// var data=",
  7162. " ",
  7163. "// [",
  7164. "// {",
  7165. " ",
  7166. "// \"beauty_services_id\": beautypackage_id01[i].beauty_services_id,",
  7167. "// \"amount\": beautypackage_id01[i].amount,",
  7168. "// \"name\": beautypackage_id01[i].namet,",
  7169. "// \"unit\": beautypackage_id01[i].unit,",
  7170. "// \"price\": beautypackage_id01[i].price",
  7171. "// }",
  7172. "// ]",
  7173. ""
  7174. ]
  7175. }
  7176. },
  7177. {
  7178. "listen": "test",
  7179. "script": {
  7180. "type": "text/javascript",
  7181. "exec": [
  7182. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7183. ]
  7184. }
  7185. }
  7186. ],
  7187. "request": {
  7188. "method": "GET",
  7189. "header": [
  7190. {
  7191. "key": "Authorization",
  7192. "value": "Rong {{shoptoken}}"
  7193. },
  7194. {
  7195. "key": "Content-Type",
  7196. "value": "application/json"
  7197. }
  7198. ],
  7199. "body": {
  7200. "mode": "raw",
  7201. "raw": ""
  7202. },
  7203. "url": {
  7204. "raw": "{{url}}/api/vipmember/packagecardadmin/?cellphone={{vip_phone01}}",
  7205. "host": [
  7206. "{{url}}"
  7207. ],
  7208. "path": [
  7209. "api",
  7210. "vipmember",
  7211. "packagecardadmin",
  7212. ""
  7213. ],
  7214. "query": [
  7215. {
  7216. "key": "cellphone",
  7217. "value": "{{vip_phone01}}"
  7218. }
  7219. ]
  7220. }
  7221. },
  7222. "response": []
  7223. },
  7224. {
  7225. "name": "04_get_beautypackagecar_startdate",
  7226. "event": [
  7227. {
  7228. "listen": "test",
  7229. "script": {
  7230. "type": "text/javascript",
  7231. "exec": [
  7232. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7233. ]
  7234. }
  7235. }
  7236. ],
  7237. "request": {
  7238. "method": "GET",
  7239. "header": [
  7240. {
  7241. "key": "Authorization",
  7242. "value": "Rong {{shoptoken}}"
  7243. },
  7244. {
  7245. "key": "Content-Type",
  7246. "value": "application/json"
  7247. }
  7248. ],
  7249. "body": {
  7250. "mode": "raw",
  7251. "raw": ""
  7252. },
  7253. "url": {
  7254. "raw": "{{url}}/api/vipmember/packagecardadmin/?start_date=2018-10-10",
  7255. "host": [
  7256. "{{url}}"
  7257. ],
  7258. "path": [
  7259. "api",
  7260. "vipmember",
  7261. "packagecardadmin",
  7262. ""
  7263. ],
  7264. "query": [
  7265. {
  7266. "key": "start_date",
  7267. "value": "2018-10-10"
  7268. }
  7269. ]
  7270. }
  7271. },
  7272. "response": []
  7273. },
  7274. {
  7275. "name": "05_get_beautypackagecar_carcode",
  7276. "event": [
  7277. {
  7278. "listen": "test",
  7279. "script": {
  7280. "type": "text/javascript",
  7281. "exec": [
  7282. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7283. ]
  7284. }
  7285. }
  7286. ],
  7287. "request": {
  7288. "method": "GET",
  7289. "header": [
  7290. {
  7291. "key": "Authorization",
  7292. "value": "Rong {{shoptoken}}"
  7293. },
  7294. {
  7295. "key": "Content-Type",
  7296. "value": "application/json"
  7297. }
  7298. ],
  7299. "body": {
  7300. "mode": "raw",
  7301. "raw": ""
  7302. },
  7303. "url": {
  7304. "raw": "{{url}}/api/vipmember/packagecardadmin/?car_code={{car_code01}}",
  7305. "host": [
  7306. "{{url}}"
  7307. ],
  7308. "path": [
  7309. "api",
  7310. "vipmember",
  7311. "packagecardadmin",
  7312. ""
  7313. ],
  7314. "query": [
  7315. {
  7316. "key": "car_code",
  7317. "value": "{{car_code01}}"
  7318. }
  7319. ]
  7320. }
  7321. },
  7322. "response": []
  7323. },
  7324. {
  7325. "name": "06_post_storedvaluecard",
  7326. "event": [
  7327. {
  7328. "listen": "test",
  7329. "script": {
  7330. "id": "30fb0641-1530-4b20-8af2-7a5ab2d5991e",
  7331. "exec": [
  7332. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  7333. ],
  7334. "type": "text/javascript"
  7335. }
  7336. }
  7337. ],
  7338. "request": {
  7339. "method": "POST",
  7340. "header": [
  7341. {
  7342. "key": "Authorization",
  7343. "value": "Rong {{shoptoken}}"
  7344. },
  7345. {
  7346. "key": "Content-Type",
  7347. "value": "application/json"
  7348. }
  7349. ],
  7350. "body": {
  7351. "mode": "raw",
  7352. "raw": "{\r\n\t\"rem\": \"\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-11-08\",\r\n\t\"state\": 1,\r\n\t\"number\": null,\r\n\t\"amount_recharge\": \"500.00\",\r\n\t\"amount_available\": \"500.00\",\r\n\t\"real_payment\": \"490.00\",\r\n\t\"shop\": null,\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"agent\": {{agent_id01}},\r\n\t\"car_code\": \"{{car_code01}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"areashort\": {{areashortid01}},\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"account\": {{account_id01}},\r\n\t\"validity_period\": 6\r\n}"
  7353. },
  7354. "url": {
  7355. "raw": "{{url}}/api/vipmember/storedvaluecard/",
  7356. "host": [
  7357. "{{url}}"
  7358. ],
  7359. "path": [
  7360. "api",
  7361. "vipmember",
  7362. "storedvaluecard",
  7363. ""
  7364. ]
  7365. }
  7366. },
  7367. "response": []
  7368. },
  7369. {
  7370. "name": "07_get_storedvaluecard_all",
  7371. "event": [
  7372. {
  7373. "listen": "test",
  7374. "script": {
  7375. "id": "32d8b952-1b98-45b0-8563-de1c500bd40b",
  7376. "exec": [
  7377. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  7378. "",
  7379. "var jsonData = JSON.parse(responseBody);",
  7380. " ",
  7381. " postman.setEnvironmentVariable(\"srv_id01\", jsonData.results[0].id);",
  7382. " ",
  7383. " postman.setEnvironmentVariable(\"srv_id02\", jsonData.results[1].id);"
  7384. ],
  7385. "type": "text/javascript"
  7386. }
  7387. }
  7388. ],
  7389. "request": {
  7390. "method": "GET",
  7391. "header": [
  7392. {
  7393. "key": "Authorization",
  7394. "value": "Rong {{shoptoken}}"
  7395. }
  7396. ],
  7397. "body": {
  7398. "mode": "raw",
  7399. "raw": ""
  7400. },
  7401. "url": {
  7402. "raw": "{{url}}/api/vipmember/storedvaluecard/",
  7403. "host": [
  7404. "{{url}}"
  7405. ],
  7406. "path": [
  7407. "api",
  7408. "vipmember",
  7409. "storedvaluecard",
  7410. ""
  7411. ]
  7412. }
  7413. },
  7414. "response": []
  7415. },
  7416. {
  7417. "name": "02_get_storedvaluecardrecord_cardid01",
  7418. "event": [
  7419. {
  7420. "listen": "prerequest",
  7421. "script": {
  7422. "id": "4683f599-d654-4625-875c-3b594686bac6",
  7423. "exec": [
  7424. ""
  7425. ],
  7426. "type": "text/javascript"
  7427. }
  7428. },
  7429. {
  7430. "listen": "test",
  7431. "script": {
  7432. "id": "55541a63-d591-462e-a50a-fde6ca207e64",
  7433. "exec": [
  7434. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  7435. "",
  7436. " // var jsonData = JSON.parse(responseBody);",
  7437. " ",
  7438. " // postman.setEnvironmentVariable(\"carproduct_item01\", jsonData[0].id);"
  7439. ],
  7440. "type": "text/javascript"
  7441. }
  7442. }
  7443. ],
  7444. "request": {
  7445. "method": "GET",
  7446. "header": [
  7447. {
  7448. "key": "Authorization",
  7449. "value": "Rong {{shoptoken}}"
  7450. },
  7451. {
  7452. "key": "Content-Type",
  7453. "value": "application/json"
  7454. }
  7455. ],
  7456. "body": {
  7457. "mode": "raw",
  7458. "raw": ""
  7459. },
  7460. "url": {
  7461. "raw": "{{url}}/api/vipmember/storedvaluecardrecord/?sv_card_id={{srv_id01}}",
  7462. "host": [
  7463. "{{url}}"
  7464. ],
  7465. "path": [
  7466. "api",
  7467. "vipmember",
  7468. "storedvaluecardrecord",
  7469. ""
  7470. ],
  7471. "query": [
  7472. {
  7473. "key": "sv_card_id",
  7474. "value": "{{srv_id01}}"
  7475. }
  7476. ]
  7477. }
  7478. },
  7479. "response": []
  7480. },
  7481. {
  7482. "name": "08_get_storedvaluecard_vipid",
  7483. "event": [
  7484. {
  7485. "listen": "test",
  7486. "script": {
  7487. "id": "4b8676c8-9df6-46f6-999a-3d91e029f3bb",
  7488. "exec": [
  7489. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7490. ],
  7491. "type": "text/javascript"
  7492. }
  7493. }
  7494. ],
  7495. "request": {
  7496. "method": "GET",
  7497. "header": [
  7498. {
  7499. "key": "Authorization",
  7500. "value": "Rong {{shoptoken}}"
  7501. }
  7502. ],
  7503. "body": {
  7504. "mode": "raw",
  7505. "raw": ""
  7506. },
  7507. "url": {
  7508. "raw": "{{url}}/api/vipmember/storedvaluecard/?vipmember_info_id={{vip_id01}}",
  7509. "host": [
  7510. "{{url}}"
  7511. ],
  7512. "path": [
  7513. "api",
  7514. "vipmember",
  7515. "storedvaluecard",
  7516. ""
  7517. ],
  7518. "query": [
  7519. {
  7520. "key": "vipmember_info_id",
  7521. "value": "{{vip_id01}}"
  7522. }
  7523. ]
  7524. }
  7525. },
  7526. "response": []
  7527. },
  7528. {
  7529. "name": "09_get_storedvaluecard_vipphone",
  7530. "event": [
  7531. {
  7532. "listen": "test",
  7533. "script": {
  7534. "id": "f32789b9-7540-48d1-afd1-7bfe3209cb9b",
  7535. "exec": [
  7536. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  7537. "",
  7538. "if(tests[\"Status code is 200\"] ){",
  7539. " var jsonData = JSON.parse(responseBody);",
  7540. " ",
  7541. " postman.setEnvironmentVariable(\"valuecar_id01\", jsonData.results[0].id);",
  7542. " postman.setEnvironmentVariable(\"valuecar_number01\", jsonData.results[0].number);",
  7543. " ",
  7544. "",
  7545. "}"
  7546. ],
  7547. "type": "text/javascript"
  7548. }
  7549. }
  7550. ],
  7551. "request": {
  7552. "method": "GET",
  7553. "header": [
  7554. {
  7555. "key": "Authorization",
  7556. "value": "Rong {{shoptoken}}"
  7557. }
  7558. ],
  7559. "body": {
  7560. "mode": "raw",
  7561. "raw": ""
  7562. },
  7563. "url": {
  7564. "raw": "{{url}}/api/vipmember/storedvaluecard/?vipmember_info__phone_number={{vip_phone01}}",
  7565. "host": [
  7566. "{{url}}"
  7567. ],
  7568. "path": [
  7569. "api",
  7570. "vipmember",
  7571. "storedvaluecard",
  7572. ""
  7573. ],
  7574. "query": [
  7575. {
  7576. "key": "vipmember_info__phone_number",
  7577. "value": "{{vip_phone01}}"
  7578. }
  7579. ]
  7580. }
  7581. },
  7582. "response": []
  7583. },
  7584. {
  7585. "name": "10_get_storedvaluecard_begindate",
  7586. "event": [
  7587. {
  7588. "listen": "test",
  7589. "script": {
  7590. "id": "506f8713-e885-4f11-bf0f-983ba96583b0",
  7591. "exec": [
  7592. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7593. ],
  7594. "type": "text/javascript"
  7595. }
  7596. }
  7597. ],
  7598. "request": {
  7599. "method": "GET",
  7600. "header": [
  7601. {
  7602. "key": "Authorization",
  7603. "value": "Rong {{shoptoken}}"
  7604. }
  7605. ],
  7606. "body": {
  7607. "mode": "raw",
  7608. "raw": ""
  7609. },
  7610. "url": {
  7611. "raw": "{{url}}/api/vipmember/storedvaluecard/?begin_date=2018-10-10",
  7612. "host": [
  7613. "{{url}}"
  7614. ],
  7615. "path": [
  7616. "api",
  7617. "vipmember",
  7618. "storedvaluecard",
  7619. ""
  7620. ],
  7621. "query": [
  7622. {
  7623. "key": "begin_date",
  7624. "value": "2018-10-10"
  7625. }
  7626. ]
  7627. }
  7628. },
  7629. "response": []
  7630. },
  7631. {
  7632. "name": "11_post_storedvaluecard _recharge",
  7633. "event": [
  7634. {
  7635. "listen": "test",
  7636. "script": {
  7637. "id": "f090ec10-52ac-4b20-a08c-f6b90d7a4224",
  7638. "exec": [
  7639. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  7640. ],
  7641. "type": "text/javascript"
  7642. }
  7643. }
  7644. ],
  7645. "request": {
  7646. "method": "POST",
  7647. "header": [
  7648. {
  7649. "key": "Authorization",
  7650. "value": "Rong {{shoptoken}}"
  7651. },
  7652. {
  7653. "key": "Content-Type",
  7654. "value": "application/json"
  7655. }
  7656. ],
  7657. "body": {
  7658. "mode": "raw",
  7659. "raw": "{\r\n\t\"status\": \"draft\",\r\n\t\"bill_date\": \"{{ymd-date}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"sv_card\":{{valuecar_id01}},\r\n\t\"sv_card_number\": \"{{valuecar_number01}}\",\r\n\t\"amount_recharge\": 3000,\r\n\t\"real_payment\": 2900,\r\n\t\"agent\": {{agent_id02}},\r\n\t\"rem\": null,\r\n\t\"vipmember_info\":{{vip_id01}},\r\n\t\"account\": {{account_id01}},\r\n\t\"validity_period\": 6\r\n \r\n}"
  7660. },
  7661. "url": {
  7662. "raw": "{{url}}/api/vipmember/vipmemberrecharge/",
  7663. "host": [
  7664. "{{url}}"
  7665. ],
  7666. "path": [
  7667. "api",
  7668. "vipmember",
  7669. "vipmemberrecharge",
  7670. ""
  7671. ]
  7672. }
  7673. },
  7674. "response": []
  7675. },
  7676. {
  7677. "name": "12_get_storedvaluecard _recharge_all",
  7678. "event": [
  7679. {
  7680. "listen": "test",
  7681. "script": {
  7682. "id": "ad550916-778a-4c96-9162-16652b5a9e92",
  7683. "exec": [
  7684. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7685. ],
  7686. "type": "text/javascript"
  7687. }
  7688. }
  7689. ],
  7690. "request": {
  7691. "method": "GET",
  7692. "header": [
  7693. {
  7694. "key": "Authorization",
  7695. "value": "Rong {{shoptoken}}"
  7696. }
  7697. ],
  7698. "body": {
  7699. "mode": "raw",
  7700. "raw": ""
  7701. },
  7702. "url": {
  7703. "raw": "{{url}}/api/vipmember/vipmemberrecharge/",
  7704. "host": [
  7705. "{{url}}"
  7706. ],
  7707. "path": [
  7708. "api",
  7709. "vipmember",
  7710. "vipmemberrecharge",
  7711. ""
  7712. ]
  7713. }
  7714. },
  7715. "response": []
  7716. }
  7717. ]
  7718. },
  7719. {
  7720. "name": " promotion",
  7721. "item": [
  7722. {
  7723. "name": "01_post_coupon_1",
  7724. "event": [
  7725. {
  7726. "listen": "test",
  7727. "script": {
  7728. "id": "f7766c16-9447-4626-b101-f2b986e76eb9",
  7729. "exec": [
  7730. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  7731. ],
  7732. "type": "text/javascript"
  7733. }
  7734. }
  7735. ],
  7736. "request": {
  7737. "method": "POST",
  7738. "header": [
  7739. {
  7740. "key": "Authorization",
  7741. "value": "Rong {{shoptoken}}"
  7742. },
  7743. {
  7744. "key": "Content-Type",
  7745. "value": "application/json"
  7746. }
  7747. ],
  7748. "body": {
  7749. "mode": "raw",
  7750. "raw": "{\r\n\t\"document_number\": \"H001\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{repair_service_price01}}\",\r\n\t\"money\": \"5.00\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{repair_service_name01}}\"\r\n}"
  7751. },
  7752. "url": {
  7753. "raw": "{{url}}/api/basic/coupon/",
  7754. "host": [
  7755. "{{url}}"
  7756. ],
  7757. "path": [
  7758. "api",
  7759. "basic",
  7760. "coupon",
  7761. ""
  7762. ]
  7763. }
  7764. },
  7765. "response": []
  7766. },
  7767. {
  7768. "name": "02_post_coupon_2",
  7769. "event": [
  7770. {
  7771. "listen": "test",
  7772. "script": {
  7773. "id": "55ad9a7a-87bf-4b00-97be-5334c78c9606",
  7774. "exec": [
  7775. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  7776. ],
  7777. "type": "text/javascript"
  7778. }
  7779. }
  7780. ],
  7781. "request": {
  7782. "method": "POST",
  7783. "header": [
  7784. {
  7785. "key": "Authorization",
  7786. "value": "Rong {{shoptoken}}"
  7787. },
  7788. {
  7789. "key": "Content-Type",
  7790. "value": "application/json"
  7791. }
  7792. ],
  7793. "body": {
  7794. "mode": "raw",
  7795. "raw": "{\r\n\t\"document_number\": \"H002\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{beauty_services_price02}}\",\r\n\t\"money\": \"10\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{beauty_services_name02}}\"\r\n}"
  7796. },
  7797. "url": {
  7798. "raw": "{{url}}/api/basic/coupon/",
  7799. "host": [
  7800. "{{url}}"
  7801. ],
  7802. "path": [
  7803. "api",
  7804. "basic",
  7805. "coupon",
  7806. ""
  7807. ]
  7808. }
  7809. },
  7810. "response": []
  7811. },
  7812. {
  7813. "name": "03_post_coupon_3",
  7814. "event": [
  7815. {
  7816. "listen": "test",
  7817. "script": {
  7818. "id": "b4827197-77ff-40a5-89a0-bf4d930045ed",
  7819. "exec": [
  7820. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  7821. ],
  7822. "type": "text/javascript"
  7823. }
  7824. }
  7825. ],
  7826. "request": {
  7827. "method": "POST",
  7828. "header": [
  7829. {
  7830. "key": "Authorization",
  7831. "value": "Rong {{shoptoken}}"
  7832. },
  7833. {
  7834. "key": "Content-Type",
  7835. "value": "application/json"
  7836. }
  7837. ],
  7838. "body": {
  7839. "mode": "raw",
  7840. "raw": "{\r\n\t\"document_number\": \"H003\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{car_products_price02}}\",\r\n\t\"money\": \"10\",\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{car_products_name02}}\"\r\n}"
  7841. },
  7842. "url": {
  7843. "raw": "{{url}}/api/basic/coupon/",
  7844. "host": [
  7845. "{{url}}"
  7846. ],
  7847. "path": [
  7848. "api",
  7849. "basic",
  7850. "coupon",
  7851. ""
  7852. ]
  7853. }
  7854. },
  7855. "response": []
  7856. },
  7857. {
  7858. "name": "04_get_coupon_all",
  7859. "event": [
  7860. {
  7861. "listen": "test",
  7862. "script": {
  7863. "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d",
  7864. "exec": [
  7865. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7866. ],
  7867. "type": "text/javascript"
  7868. }
  7869. }
  7870. ],
  7871. "request": {
  7872. "method": "GET",
  7873. "header": [
  7874. {
  7875. "key": "Authorization",
  7876. "value": "Rong {{shoptoken}}"
  7877. }
  7878. ],
  7879. "body": {
  7880. "mode": "raw",
  7881. "raw": ""
  7882. },
  7883. "url": {
  7884. "raw": "{{url}}/api/basic/coupon/",
  7885. "host": [
  7886. "{{url}}"
  7887. ],
  7888. "path": [
  7889. "api",
  7890. "basic",
  7891. "coupon",
  7892. ""
  7893. ]
  7894. }
  7895. },
  7896. "response": []
  7897. },
  7898. {
  7899. "name": "05_get_coupon_vipphone",
  7900. "event": [
  7901. {
  7902. "listen": "test",
  7903. "script": {
  7904. "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d",
  7905. "exec": [
  7906. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  7907. ],
  7908. "type": "text/javascript"
  7909. }
  7910. }
  7911. ],
  7912. "request": {
  7913. "method": "GET",
  7914. "header": [
  7915. {
  7916. "key": "Authorization",
  7917. "value": "Rong {{shoptoken}}"
  7918. }
  7919. ],
  7920. "body": {
  7921. "mode": "raw",
  7922. "raw": ""
  7923. },
  7924. "url": {
  7925. "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}",
  7926. "host": [
  7927. "{{url}}"
  7928. ],
  7929. "path": [
  7930. "api",
  7931. "basic",
  7932. "coupon",
  7933. ""
  7934. ],
  7935. "query": [
  7936. {
  7937. "key": "vip_phone_number",
  7938. "value": "{{vip_phone01}}"
  7939. }
  7940. ]
  7941. }
  7942. },
  7943. "response": []
  7944. },
  7945. {
  7946. "name": "06_get_basic_coupon_status0",
  7947. "event": [
  7948. {
  7949. "listen": "test",
  7950. "script": {
  7951. "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d",
  7952. "exec": [
  7953. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  7954. "",
  7955. "var jsonData = JSON.parse(responseBody);",
  7956. " ",
  7957. "pm.environment.set(\"coupon_pjid01\", jsonData.results[0].project_id);",
  7958. "//pm.environment.set(\"coupon_name01\", jsonData.results[0].project_extra.name);",
  7959. "//pm.environment.set(\"coupon_price01\", jsonData.results[0].project_extra.price);",
  7960. "pm.environment.set(\"coupon_fullmoney01\", jsonData.results[0].full_money);",
  7961. "pm.environment.set(\"coupon_money01\", jsonData.results[0].money);",
  7962. "",
  7963. "pm.environment.set(\"coupon_id01\", jsonData.results[0].id);",
  7964. ""
  7965. ],
  7966. "type": "text/javascript"
  7967. }
  7968. }
  7969. ],
  7970. "request": {
  7971. "method": "GET",
  7972. "header": [
  7973. {
  7974. "key": "Authorization",
  7975. "value": "Rong {{shoptoken}}"
  7976. }
  7977. ],
  7978. "body": {
  7979. "mode": "raw",
  7980. "raw": ""
  7981. },
  7982. "url": {
  7983. "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}&status=0&project_type=2",
  7984. "host": [
  7985. "{{url}}"
  7986. ],
  7987. "path": [
  7988. "api",
  7989. "basic",
  7990. "coupon",
  7991. ""
  7992. ],
  7993. "query": [
  7994. {
  7995. "key": "vip_phone_number",
  7996. "value": "{{vip_phone01}}"
  7997. },
  7998. {
  7999. "key": "status",
  8000. "value": "0"
  8001. },
  8002. {
  8003. "key": "project_type",
  8004. "value": "2"
  8005. }
  8006. ]
  8007. }
  8008. },
  8009. "response": []
  8010. },
  8011. {
  8012. "name": "07_get_basic_coupon_status1",
  8013. "event": [
  8014. {
  8015. "listen": "test",
  8016. "script": {
  8017. "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d",
  8018. "exec": [
  8019. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  8020. ],
  8021. "type": "text/javascript"
  8022. }
  8023. }
  8024. ],
  8025. "request": {
  8026. "method": "GET",
  8027. "header": [
  8028. {
  8029. "key": "Authorization",
  8030. "value": "Rong {{shoptoken}}"
  8031. }
  8032. ],
  8033. "body": {
  8034. "mode": "raw",
  8035. "raw": ""
  8036. },
  8037. "url": {
  8038. "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}&status=1",
  8039. "host": [
  8040. "{{url}}"
  8041. ],
  8042. "path": [
  8043. "api",
  8044. "basic",
  8045. "coupon",
  8046. ""
  8047. ],
  8048. "query": [
  8049. {
  8050. "key": "vip_phone_number",
  8051. "value": "{{vip_phone01}}"
  8052. },
  8053. {
  8054. "key": "status",
  8055. "value": "1"
  8056. }
  8057. ]
  8058. }
  8059. },
  8060. "response": []
  8061. },
  8062. {
  8063. "name": "08_get_basic_coupon_status2",
  8064. "event": [
  8065. {
  8066. "listen": "test",
  8067. "script": {
  8068. "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d",
  8069. "exec": [
  8070. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  8071. ],
  8072. "type": "text/javascript"
  8073. }
  8074. }
  8075. ],
  8076. "request": {
  8077. "method": "GET",
  8078. "header": [
  8079. {
  8080. "key": "Authorization",
  8081. "value": "Rong {{shoptoken}}"
  8082. }
  8083. ],
  8084. "body": {
  8085. "mode": "raw",
  8086. "raw": ""
  8087. },
  8088. "url": {
  8089. "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}&status=2",
  8090. "host": [
  8091. "{{url}}"
  8092. ],
  8093. "path": [
  8094. "api",
  8095. "basic",
  8096. "coupon",
  8097. ""
  8098. ],
  8099. "query": [
  8100. {
  8101. "key": "vip_phone_number",
  8102. "value": "{{vip_phone01}}"
  8103. },
  8104. {
  8105. "key": "status",
  8106. "value": "2"
  8107. }
  8108. ]
  8109. }
  8110. },
  8111. "response": []
  8112. },
  8113. {
  8114. "name": "09_post_redemptionvoucher_1",
  8115. "event": [
  8116. {
  8117. "listen": "test",
  8118. "script": {
  8119. "id": "ffd13a8d-e5c5-4522-92ec-ac0775c5a9f2",
  8120. "exec": [
  8121. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8122. ],
  8123. "type": "text/javascript"
  8124. }
  8125. }
  8126. ],
  8127. "request": {
  8128. "method": "POST",
  8129. "header": [
  8130. {
  8131. "key": "Authorization",
  8132. "value": "Rong {{shoptoken}}"
  8133. },
  8134. {
  8135. "key": "Content-Type",
  8136. "value": "application/json"
  8137. }
  8138. ],
  8139. "body": {
  8140. "mode": "raw",
  8141. "raw": "{\r\n\t\"document_number\": \"D18001\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{repair_service_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}"
  8142. },
  8143. "url": {
  8144. "raw": "{{url}}/api/basic/redemptionvoucher/",
  8145. "host": [
  8146. "{{url}}"
  8147. ],
  8148. "path": [
  8149. "api",
  8150. "basic",
  8151. "redemptionvoucher",
  8152. ""
  8153. ]
  8154. }
  8155. },
  8156. "response": []
  8157. },
  8158. {
  8159. "name": "10_post_redemptionvoucher_2",
  8160. "event": [
  8161. {
  8162. "listen": "test",
  8163. "script": {
  8164. "id": "35050668-0c4f-4b8b-a594-ad4ad22294b0",
  8165. "exec": [
  8166. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8167. ],
  8168. "type": "text/javascript"
  8169. }
  8170. }
  8171. ],
  8172. "request": {
  8173. "method": "POST",
  8174. "header": [
  8175. {
  8176. "key": "Authorization",
  8177. "value": "Rong {{shoptoken}}"
  8178. },
  8179. {
  8180. "key": "Content-Type",
  8181. "value": "application/json"
  8182. }
  8183. ],
  8184. "body": {
  8185. "mode": "raw",
  8186. "raw": "{\r\n\t\"document_number\": \"D18002\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{beauty_services_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}"
  8187. },
  8188. "url": {
  8189. "raw": "{{url}}/api/basic/redemptionvoucher/",
  8190. "host": [
  8191. "{{url}}"
  8192. ],
  8193. "path": [
  8194. "api",
  8195. "basic",
  8196. "redemptionvoucher",
  8197. ""
  8198. ]
  8199. }
  8200. },
  8201. "response": []
  8202. },
  8203. {
  8204. "name": "11_post_redemptionvoucher_3",
  8205. "event": [
  8206. {
  8207. "listen": "test",
  8208. "script": {
  8209. "id": "679001a7-6ecc-43bd-8cfc-629c9972029d",
  8210. "exec": [
  8211. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8212. ],
  8213. "type": "text/javascript"
  8214. }
  8215. }
  8216. ],
  8217. "request": {
  8218. "method": "POST",
  8219. "header": [
  8220. {
  8221. "key": "Authorization",
  8222. "value": "Rong {{shoptoken}}"
  8223. },
  8224. {
  8225. "key": "Content-Type",
  8226. "value": "application/json"
  8227. }
  8228. ],
  8229. "body": {
  8230. "mode": "raw",
  8231. "raw": "{\r\n\t\"document_number\": \"D18003\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{car_products_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}"
  8232. },
  8233. "url": {
  8234. "raw": "{{url}}/api/basic/redemptionvoucher/",
  8235. "host": [
  8236. "{{url}}"
  8237. ],
  8238. "path": [
  8239. "api",
  8240. "basic",
  8241. "redemptionvoucher",
  8242. ""
  8243. ]
  8244. }
  8245. },
  8246. "response": []
  8247. },
  8248. {
  8249. "name": "12_get_redemptionvoucher_all",
  8250. "event": [
  8251. {
  8252. "listen": "test",
  8253. "script": {
  8254. "type": "text/javascript",
  8255. "exec": [
  8256. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  8257. ]
  8258. }
  8259. }
  8260. ],
  8261. "request": {
  8262. "method": "GET",
  8263. "header": [
  8264. {
  8265. "key": "Authorization",
  8266. "value": "Rong {{shoptoken}}"
  8267. }
  8268. ],
  8269. "body": {
  8270. "mode": "raw",
  8271. "raw": ""
  8272. },
  8273. "url": {
  8274. "raw": "{{url}}/api/basic/redemptionvoucher/",
  8275. "host": [
  8276. "{{url}}"
  8277. ],
  8278. "path": [
  8279. "api",
  8280. "basic",
  8281. "redemptionvoucher",
  8282. ""
  8283. ]
  8284. }
  8285. },
  8286. "response": []
  8287. },
  8288. {
  8289. "name": "13_get_basic_redemptionvoucher_vipphone",
  8290. "event": [
  8291. {
  8292. "listen": "prerequest",
  8293. "script": {
  8294. "id": "15de950d-58eb-4106-b89b-7b217ab928a3",
  8295. "exec": [
  8296. ""
  8297. ],
  8298. "type": "text/javascript"
  8299. }
  8300. },
  8301. {
  8302. "listen": "test",
  8303. "script": {
  8304. "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e",
  8305. "exec": [
  8306. "",
  8307. "pm.test(\"Status code is 200\", function () {",
  8308. " pm.response.to.have.status(200);",
  8309. "});",
  8310. "",
  8311. "// var jsonData = JSON.parse(responseBody);",
  8312. " ",
  8313. "// pm.environment.set(\"voucher_pjid01\", jsonData.results[0].project_extra.id);",
  8314. "// pm.environment.set(\"voucher_name01\", jsonData.results[0].project_extra.name);",
  8315. "// pm.environment.set(\"voucher_price01\", jsonData.results[0].project_extra.price);",
  8316. "",
  8317. "// pm.environment.set(\"voucher_id01\", jsonData.results[0].id);",
  8318. ""
  8319. ],
  8320. "type": "text/javascript"
  8321. }
  8322. }
  8323. ],
  8324. "request": {
  8325. "method": "GET",
  8326. "header": [
  8327. {
  8328. "key": "Content-Type",
  8329. "value": "application/json"
  8330. },
  8331. {
  8332. "key": "Authorization",
  8333. "value": "Rong {{shoptoken}}",
  8334. "type": "text"
  8335. }
  8336. ],
  8337. "body": {
  8338. "mode": "raw",
  8339. "raw": ""
  8340. },
  8341. "url": {
  8342. "raw": "{{url}}/api/basic/redemptionvoucher/?vip_phone_number={{vip_phone01}}",
  8343. "host": [
  8344. "{{url}}"
  8345. ],
  8346. "path": [
  8347. "api",
  8348. "basic",
  8349. "redemptionvoucher",
  8350. ""
  8351. ],
  8352. "query": [
  8353. {
  8354. "key": "vip_phone_number",
  8355. "value": "{{vip_phone01}}"
  8356. }
  8357. ]
  8358. }
  8359. },
  8360. "response": []
  8361. },
  8362. {
  8363. "name": "14_get_basic_redemptionvoucher_status0",
  8364. "event": [
  8365. {
  8366. "listen": "prerequest",
  8367. "script": {
  8368. "id": "15de950d-58eb-4106-b89b-7b217ab928a3",
  8369. "exec": [
  8370. ""
  8371. ],
  8372. "type": "text/javascript"
  8373. }
  8374. },
  8375. {
  8376. "listen": "test",
  8377. "script": {
  8378. "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e",
  8379. "exec": [
  8380. "",
  8381. "pm.test(\"Status code is 200\", function () {",
  8382. " pm.response.to.have.status(200);",
  8383. "});",
  8384. "",
  8385. " var jsonData = JSON.parse(responseBody);",
  8386. " ",
  8387. "pm.environment.set(\"voucher_pjid01\", jsonData.results[2].project_extra.id);",
  8388. "pm.environment.set(\"voucher_name01\", jsonData.results[2].project_extra.name);",
  8389. "pm.environment.set(\"voucher_price01\", jsonData.results[2].project_extra.price);",
  8390. "",
  8391. "pm.environment.set(\"voucher_id01\", jsonData.results[2].id);",
  8392. ""
  8393. ],
  8394. "type": "text/javascript"
  8395. }
  8396. }
  8397. ],
  8398. "request": {
  8399. "method": "GET",
  8400. "header": [
  8401. {
  8402. "key": "Content-Type",
  8403. "value": "application/json"
  8404. },
  8405. {
  8406. "key": "Authorization",
  8407. "type": "text",
  8408. "value": "Rong {{shoptoken}}"
  8409. }
  8410. ],
  8411. "body": {
  8412. "mode": "raw",
  8413. "raw": ""
  8414. },
  8415. "url": {
  8416. "raw": "{{url}}/api/basic/redemptionvoucher/?status=0&vip_phone_number={{vip_phone01}}&project_type=2",
  8417. "host": [
  8418. "{{url}}"
  8419. ],
  8420. "path": [
  8421. "api",
  8422. "basic",
  8423. "redemptionvoucher",
  8424. ""
  8425. ],
  8426. "query": [
  8427. {
  8428. "key": "status",
  8429. "value": "0"
  8430. },
  8431. {
  8432. "key": "vip_phone_number",
  8433. "value": "{{vip_phone01}}"
  8434. },
  8435. {
  8436. "key": "project_type",
  8437. "value": "2"
  8438. }
  8439. ]
  8440. }
  8441. },
  8442. "response": []
  8443. },
  8444. {
  8445. "name": "15_get_basic_redemptionvoucher_status1",
  8446. "event": [
  8447. {
  8448. "listen": "prerequest",
  8449. "script": {
  8450. "id": "15de950d-58eb-4106-b89b-7b217ab928a3",
  8451. "exec": [
  8452. ""
  8453. ],
  8454. "type": "text/javascript"
  8455. }
  8456. },
  8457. {
  8458. "listen": "test",
  8459. "script": {
  8460. "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e",
  8461. "exec": [
  8462. "",
  8463. "pm.test(\"Status code is 200\", function () {",
  8464. " pm.response.to.have.status(200);",
  8465. "});",
  8466. "",
  8467. "// var jsonData = JSON.parse(responseBody);",
  8468. " ",
  8469. "// pm.environment.set(\"voucher_pjid01\", jsonData.results[1].project_extra.id);",
  8470. "// pm.environment.set(\"voucher_name01\", jsonData.results[1].project_extra.name);",
  8471. "// pm.environment.set(\"voucher_price01\", jsonData.results[1].project_extra.price);",
  8472. "",
  8473. "// pm.environment.set(\"voucher_id01\", jsonData.results[1].id);",
  8474. ""
  8475. ],
  8476. "type": "text/javascript"
  8477. }
  8478. }
  8479. ],
  8480. "request": {
  8481. "method": "GET",
  8482. "header": [
  8483. {
  8484. "key": "Content-Type",
  8485. "value": "application/json"
  8486. },
  8487. {
  8488. "key": "Authorization",
  8489. "type": "text",
  8490. "value": "Rong {{shoptoken}}"
  8491. }
  8492. ],
  8493. "body": {
  8494. "mode": "raw",
  8495. "raw": ""
  8496. },
  8497. "url": {
  8498. "raw": "{{url}}/api/basic/redemptionvoucher/?status=1&vip_phone_number={{vip_phone01}}",
  8499. "host": [
  8500. "{{url}}"
  8501. ],
  8502. "path": [
  8503. "api",
  8504. "basic",
  8505. "redemptionvoucher",
  8506. ""
  8507. ],
  8508. "query": [
  8509. {
  8510. "key": "status",
  8511. "value": "1"
  8512. },
  8513. {
  8514. "key": "vip_phone_number",
  8515. "value": "{{vip_phone01}}"
  8516. }
  8517. ]
  8518. }
  8519. },
  8520. "response": []
  8521. },
  8522. {
  8523. "name": "16_get_basic_redemptionvoucher_status2",
  8524. "event": [
  8525. {
  8526. "listen": "prerequest",
  8527. "script": {
  8528. "id": "15de950d-58eb-4106-b89b-7b217ab928a3",
  8529. "exec": [
  8530. ""
  8531. ],
  8532. "type": "text/javascript"
  8533. }
  8534. },
  8535. {
  8536. "listen": "test",
  8537. "script": {
  8538. "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e",
  8539. "exec": [
  8540. "",
  8541. "pm.test(\"Status code is 200\", function () {",
  8542. " pm.response.to.have.status(200);",
  8543. "});",
  8544. "",
  8545. "// var jsonData = JSON.parse(responseBody);",
  8546. " ",
  8547. "// pm.environment.set(\"voucher_pjid01\", jsonData.results[1].project_extra.id);",
  8548. "// pm.environment.set(\"voucher_name01\", jsonData.results[1].project_extra.name);",
  8549. "// pm.environment.set(\"voucher_price01\", jsonData.results[1].project_extra.price);",
  8550. "",
  8551. "// pm.environment.set(\"voucher_id01\", jsonData.results[1].id);",
  8552. ""
  8553. ],
  8554. "type": "text/javascript"
  8555. }
  8556. }
  8557. ],
  8558. "request": {
  8559. "method": "GET",
  8560. "header": [
  8561. {
  8562. "key": "Content-Type",
  8563. "value": "application/json"
  8564. },
  8565. {
  8566. "key": "Authorization",
  8567. "type": "text",
  8568. "value": "Rong {{shoptoken}}"
  8569. }
  8570. ],
  8571. "body": {
  8572. "mode": "raw",
  8573. "raw": ""
  8574. },
  8575. "url": {
  8576. "raw": "{{url}}/api/basic/redemptionvoucher/?status=2&vip_phone_number={{vip_phone01}}",
  8577. "host": [
  8578. "{{url}}"
  8579. ],
  8580. "path": [
  8581. "api",
  8582. "basic",
  8583. "redemptionvoucher",
  8584. ""
  8585. ],
  8586. "query": [
  8587. {
  8588. "key": "status",
  8589. "value": "2"
  8590. },
  8591. {
  8592. "key": "vip_phone_number",
  8593. "value": "{{vip_phone01}}"
  8594. }
  8595. ]
  8596. }
  8597. },
  8598. "response": []
  8599. },
  8600. {
  8601. "name": "17_post_bulkcoupon_1",
  8602. "event": [
  8603. {
  8604. "listen": "test",
  8605. "script": {
  8606. "id": "19ff7293-58ca-424d-9f15-b1734ea7ad4f",
  8607. "exec": [
  8608. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8609. ],
  8610. "type": "text/javascript"
  8611. }
  8612. }
  8613. ],
  8614. "request": {
  8615. "method": "POST",
  8616. "header": [
  8617. {
  8618. "key": "Authorization",
  8619. "value": "Rong {{shoptoken}}"
  8620. },
  8621. {
  8622. "key": "Content-Type",
  8623. "value": "application/json"
  8624. }
  8625. ],
  8626. "body": {
  8627. "mode": "raw",
  8628. "raw": "{\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"create_date\": \"{{ymd-date}}\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{repair_service_price01}}\",\r\n\t\"reach_money\": \"10.00\",\r\n\t\"amount\": \"2\",\r\n\t\"vip_grade_item\": [{{grade_id01}},{{grade_id02}}, {{grade_id03}},{{grade_id04}}],\r\n\t\"project_name\": \"{{repair_service_name01}}\"\r\n}"
  8629. },
  8630. "url": {
  8631. "raw": "{{url}}/api/basic/bulkcoupon/",
  8632. "host": [
  8633. "{{url}}"
  8634. ],
  8635. "path": [
  8636. "api",
  8637. "basic",
  8638. "bulkcoupon",
  8639. ""
  8640. ]
  8641. }
  8642. },
  8643. "response": []
  8644. },
  8645. {
  8646. "name": "18_post_bulkcoupon_2",
  8647. "event": [
  8648. {
  8649. "listen": "test",
  8650. "script": {
  8651. "id": "b0690484-d956-43d6-bb72-eda12fa28c2a",
  8652. "exec": [
  8653. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8654. ],
  8655. "type": "text/javascript"
  8656. }
  8657. }
  8658. ],
  8659. "request": {
  8660. "method": "POST",
  8661. "header": [
  8662. {
  8663. "key": "Authorization",
  8664. "value": "Rong {{shoptoken}}"
  8665. },
  8666. {
  8667. "key": "Content-Type",
  8668. "value": "application/json"
  8669. }
  8670. ],
  8671. "body": {
  8672. "mode": "raw",
  8673. "raw": "{\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"create_date\": \"{{ymd-date}}\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{beauty_services_price02}}\",\r\n\t\"reach_money\": \"10.00\",\r\n\t\"amount\": \"3\",\r\n\t\"vip_grade_item\": [{{grade_id01}},{{grade_id02}}, {{grade_id03}}],\r\n\t\"project_name\": \"{{beauty_services_name02}}\"\r\n}"
  8674. },
  8675. "url": {
  8676. "raw": "{{url}}/api/basic/bulkcoupon/",
  8677. "host": [
  8678. "{{url}}"
  8679. ],
  8680. "path": [
  8681. "api",
  8682. "basic",
  8683. "bulkcoupon",
  8684. ""
  8685. ]
  8686. }
  8687. },
  8688. "response": []
  8689. },
  8690. {
  8691. "name": "19_post_bulkcoupon_3",
  8692. "event": [
  8693. {
  8694. "listen": "test",
  8695. "script": {
  8696. "id": "a48bfdde-0847-4081-8b9d-7ba549b1208f",
  8697. "exec": [
  8698. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8699. ],
  8700. "type": "text/javascript"
  8701. }
  8702. }
  8703. ],
  8704. "request": {
  8705. "method": "POST",
  8706. "header": [
  8707. {
  8708. "key": "Authorization",
  8709. "value": "Rong {{shoptoken}}"
  8710. },
  8711. {
  8712. "key": "Content-Type",
  8713. "value": "application/json"
  8714. }
  8715. ],
  8716. "body": {
  8717. "mode": "raw",
  8718. "raw": "{\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"create_date\": \"{{ymd-date}}\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{car_products_price02}}\",\r\n\t\"reach_money\": \"10.00\",\r\n\t\"amount\": \"4\",\r\n\t\"vip_grade_item\": [{{grade_id01}},{{grade_id02}}, {{grade_id03}}],\r\n\t\"project_name\": \"{{car_products_name02}}\"\r\n}"
  8719. },
  8720. "url": {
  8721. "raw": "{{url}}/api/basic/bulkcoupon/",
  8722. "host": [
  8723. "{{url}}"
  8724. ],
  8725. "path": [
  8726. "api",
  8727. "basic",
  8728. "bulkcoupon",
  8729. ""
  8730. ]
  8731. }
  8732. },
  8733. "response": []
  8734. },
  8735. {
  8736. "name": "20_get_bulkcoupon_all",
  8737. "event": [
  8738. {
  8739. "listen": "test",
  8740. "script": {
  8741. "id": "902f1512-831f-4932-806a-e96353b9eee8",
  8742. "exec": [
  8743. "",
  8744. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  8745. " var jsonData = JSON.parse(responseBody);",
  8746. " ",
  8747. " postman.setEnvironmentVariable(\"bulkcoupon_id01\", jsonData.results[0].id);",
  8748. " postman.setEnvironmentVariable(\"pj_type01\", jsonData.results[0].project_type);",
  8749. " postman.setEnvironmentVariable(\"pj_id01\", jsonData.results[0].project_id);",
  8750. " postman.setEnvironmentVariable(\"full_money01\", jsonData.results[0].full_money);",
  8751. " postman.setEnvironmentVariable(\"reach_money01\", jsonData.results[0].reach_money);",
  8752. " postman.setEnvironmentVariable(\"begin_date01\", jsonData.results[0].begin_date);",
  8753. " postman.setEnvironmentVariable(\"end_date01\", jsonData.results[0].end_date);",
  8754. " // postman.setEnvironmentVariable(\"bulkcoupon_all\", JSON.stringify(jsonData.results[0]));",
  8755. " "
  8756. ],
  8757. "type": "text/javascript"
  8758. }
  8759. }
  8760. ],
  8761. "request": {
  8762. "method": "GET",
  8763. "header": [
  8764. {
  8765. "key": "Authorization",
  8766. "value": "Rong {{shoptoken}}"
  8767. }
  8768. ],
  8769. "body": {
  8770. "mode": "raw",
  8771. "raw": ""
  8772. },
  8773. "url": {
  8774. "raw": "{{url}}/api/basic/bulkcoupon/",
  8775. "host": [
  8776. "{{url}}"
  8777. ],
  8778. "path": [
  8779. "api",
  8780. "basic",
  8781. "bulkcoupon",
  8782. ""
  8783. ]
  8784. }
  8785. },
  8786. "response": []
  8787. },
  8788. {
  8789. "name": "21_post_preferentialsalescampaign_1",
  8790. "event": [
  8791. {
  8792. "listen": "test",
  8793. "script": {
  8794. "id": "df22b598-1765-4a47-8741-56437a44ce82",
  8795. "exec": [
  8796. "tests[\"Successful POST request\"] = responseCode.code === 201 ;",
  8797. "",
  8798. "var jsonData = JSON.parse(responseBody);",
  8799. " ",
  8800. " postman.setEnvironmentVariable(\"pic_id01\", jsonData.id);"
  8801. ],
  8802. "type": "text/javascript"
  8803. }
  8804. }
  8805. ],
  8806. "request": {
  8807. "method": "POST",
  8808. "header": [
  8809. {
  8810. "key": "Authorization",
  8811. "value": "Rong {{shoptoken}}"
  8812. },
  8813. {
  8814. "key": "Content-Type",
  8815. "value": "application/json"
  8816. }
  8817. ],
  8818. "body": {
  8819. "mode": "raw",
  8820. "raw": "{\r\n\t\"id\": null,\r\n\t\"activity_name\": \"促销活动01\",\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"promotion_name\": \"{{beauty_services_name02}}\",\r\n\t\"rate\": \"99\",\r\n\t\"description\": \"快快来!\"\r\n}"
  8821. },
  8822. "url": {
  8823. "raw": "{{url}}/api/business/preferentialsalescampaign/",
  8824. "host": [
  8825. "{{url}}"
  8826. ],
  8827. "path": [
  8828. "api",
  8829. "business",
  8830. "preferentialsalescampaign",
  8831. ""
  8832. ]
  8833. }
  8834. },
  8835. "response": []
  8836. },
  8837. {
  8838. "name": "22_post_peferentialsalescampaign_2",
  8839. "event": [
  8840. {
  8841. "listen": "test",
  8842. "script": {
  8843. "id": "31ed7a78-537d-4c25-b469-662b1fa2f82c",
  8844. "exec": [
  8845. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8846. ],
  8847. "type": "text/javascript"
  8848. }
  8849. }
  8850. ],
  8851. "request": {
  8852. "method": "POST",
  8853. "header": [
  8854. {
  8855. "key": "Authorization",
  8856. "value": "Rong {{shoptoken}}"
  8857. },
  8858. {
  8859. "key": "Content-Type",
  8860. "value": "application/json"
  8861. }
  8862. ],
  8863. "body": {
  8864. "mode": "raw",
  8865. "raw": "{\r\n\t\"id\": null,\r\n\t\"activity_name\": \"优惠促销互动02\",\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"promotion_name\": \"{{repair_service_name01}}\",\r\n\t\"rate\": \"98\",\r\n\t\"description\": \"限时抢购!\"\r\n}"
  8866. },
  8867. "url": {
  8868. "raw": "{{url}}/api/business/preferentialsalescampaign/",
  8869. "host": [
  8870. "{{url}}"
  8871. ],
  8872. "path": [
  8873. "api",
  8874. "business",
  8875. "preferentialsalescampaign",
  8876. ""
  8877. ]
  8878. }
  8879. },
  8880. "response": []
  8881. },
  8882. {
  8883. "name": "23_post_preferentialsalescampaign_3",
  8884. "event": [
  8885. {
  8886. "listen": "test",
  8887. "script": {
  8888. "id": "7a765db6-1f01-4783-adc6-81be96f6af46",
  8889. "exec": [
  8890. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  8891. ],
  8892. "type": "text/javascript"
  8893. }
  8894. }
  8895. ],
  8896. "request": {
  8897. "method": "POST",
  8898. "header": [
  8899. {
  8900. "key": "Authorization",
  8901. "value": "Rong {{shoptoken}}"
  8902. },
  8903. {
  8904. "key": "Content-Type",
  8905. "value": "application/json"
  8906. }
  8907. ],
  8908. "body": {
  8909. "mode": "raw",
  8910. "raw": "{\r\n\t\"id\": null,\r\n\t\"activity_name\": \"美容服务大促销\",\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"promotion_name\": \"{{car_products_name02}}\",\r\n\t\"rate\": \"97\",\r\n\t\"description\": \"优惠有限,快来抢购啦!\"\r\n}"
  8911. },
  8912. "url": {
  8913. "raw": "{{url}}/api/business/preferentialsalescampaign/",
  8914. "host": [
  8915. "{{url}}"
  8916. ],
  8917. "path": [
  8918. "api",
  8919. "business",
  8920. "preferentialsalescampaign",
  8921. ""
  8922. ]
  8923. }
  8924. },
  8925. "response": []
  8926. },
  8927. {
  8928. "name": "24_get_preferentialsalescampaign_all",
  8929. "event": [
  8930. {
  8931. "listen": "test",
  8932. "script": {
  8933. "id": "1a7caa33-9498-4ba5-9d36-cfe1bea5c676",
  8934. "exec": [
  8935. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  8936. ],
  8937. "type": "text/javascript"
  8938. }
  8939. }
  8940. ],
  8941. "request": {
  8942. "method": "GET",
  8943. "header": [
  8944. {
  8945. "key": "Authorization",
  8946. "value": "Rong {{shoptoken}}"
  8947. }
  8948. ],
  8949. "body": {
  8950. "mode": "raw",
  8951. "raw": ""
  8952. },
  8953. "url": {
  8954. "raw": "{{url}}/api/business/preferentialsalescampaign/",
  8955. "host": [
  8956. "{{url}}"
  8957. ],
  8958. "path": [
  8959. "api",
  8960. "business",
  8961. "preferentialsalescampaign",
  8962. ""
  8963. ]
  8964. }
  8965. },
  8966. "response": []
  8967. }
  8968. ]
  8969. },
  8970. {
  8971. "name": "receive_bulkcoupon",
  8972. "item": [
  8973. {
  8974. "name": "get_userbind_uid",
  8975. "event": [
  8976. {
  8977. "listen": "test",
  8978. "script": {
  8979. "id": "ad13d24e-c854-4e03-a2c7-b76baec037dd",
  8980. "exec": [
  8981. " tests[\"Status code is 200\"] = responseCode.code === 200;",
  8982. "if(tests[\"Status code is 200\"] ){",
  8983. " ",
  8984. " var jsonData = JSON.parse(responseBody);",
  8985. " ",
  8986. " postman.setEnvironmentVariable(\"wx_uid\", jsonData.uid);",
  8987. " ",
  8988. "}"
  8989. ],
  8990. "type": "text/javascript"
  8991. }
  8992. }
  8993. ],
  8994. "request": {
  8995. "method": "GET",
  8996. "header": [],
  8997. "body": {
  8998. "mode": "raw",
  8999. "raw": ""
  9000. },
  9001. "url": {
  9002. "raw": "{{url}}/api/wx/userbind/?openid={{openid}}",
  9003. "host": [
  9004. "{{url}}"
  9005. ],
  9006. "path": [
  9007. "api",
  9008. "wx",
  9009. "userbind",
  9010. ""
  9011. ],
  9012. "query": [
  9013. {
  9014. "key": "openid",
  9015. "value": "{{openid}}"
  9016. }
  9017. ]
  9018. }
  9019. },
  9020. "response": []
  9021. },
  9022. {
  9023. "name": "post_userbind_wxbangding",
  9024. "event": [
  9025. {
  9026. "listen": "test",
  9027. "script": {
  9028. "type": "text/javascript",
  9029. "exec": [
  9030. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  9031. ]
  9032. }
  9033. }
  9034. ],
  9035. "request": {
  9036. "method": "POST",
  9037. "header": [
  9038. {
  9039. "key": "Authorization",
  9040. "value": "Rong {{shoptoken}}",
  9041. "disabled": true
  9042. }
  9043. ],
  9044. "body": {
  9045. "mode": "formdata",
  9046. "formdata": [
  9047. {
  9048. "key": "telephone",
  9049. "value": "{{vip_phone01}}",
  9050. "type": "text"
  9051. },
  9052. {
  9053. "key": "uid",
  9054. "value": "{{wx_uid}}",
  9055. "type": "text"
  9056. }
  9057. ]
  9058. },
  9059. "url": {
  9060. "raw": "{{url}}/api/wx/userbind/?",
  9061. "host": [
  9062. "{{url}}"
  9063. ],
  9064. "path": [
  9065. "api",
  9066. "wx",
  9067. "userbind",
  9068. ""
  9069. ],
  9070. "query": [
  9071. {
  9072. "key": "vipmember_info_id",
  9073. "value": "{{vip_id01}}",
  9074. "disabled": true
  9075. }
  9076. ]
  9077. }
  9078. },
  9079. "response": []
  9080. },
  9081. {
  9082. "name": "post_smsverifycode",
  9083. "event": [
  9084. {
  9085. "listen": "test",
  9086. "script": {
  9087. "type": "text/javascript",
  9088. "exec": [
  9089. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  9090. ]
  9091. }
  9092. }
  9093. ],
  9094. "request": {
  9095. "method": "POST",
  9096. "header": [
  9097. {
  9098. "key": "Authorization",
  9099. "value": "Rong {{shoptoken}}",
  9100. "disabled": true
  9101. }
  9102. ],
  9103. "body": {
  9104. "mode": "formdata",
  9105. "formdata": [
  9106. {
  9107. "key": "code",
  9108. "value": "999999",
  9109. "type": "text"
  9110. },
  9111. {
  9112. "key": "sessionId",
  9113. "value": "undifine",
  9114. "type": "text"
  9115. }
  9116. ]
  9117. },
  9118. "url": {
  9119. "raw": "{{url}}/api/core/smsverifycode/?",
  9120. "host": [
  9121. "{{url}}"
  9122. ],
  9123. "path": [
  9124. "api",
  9125. "core",
  9126. "smsverifycode",
  9127. ""
  9128. ],
  9129. "query": [
  9130. {
  9131. "key": "vipmember_info_id",
  9132. "value": "{{vip_id01}}",
  9133. "disabled": true
  9134. }
  9135. ]
  9136. }
  9137. },
  9138. "response": []
  9139. },
  9140. {
  9141. "name": "get_wx_usershops",
  9142. "event": [
  9143. {
  9144. "listen": "test",
  9145. "script": {
  9146. "type": "text/javascript",
  9147. "exec": [
  9148. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9149. ""
  9150. ]
  9151. }
  9152. }
  9153. ],
  9154. "request": {
  9155. "method": "GET",
  9156. "header": [],
  9157. "body": {
  9158. "mode": "raw",
  9159. "raw": ""
  9160. },
  9161. "url": {
  9162. "raw": "{{url}}/api/wx/usershop/?uid={{wx_uid}}&type=follow",
  9163. "host": [
  9164. "{{url}}"
  9165. ],
  9166. "path": [
  9167. "api",
  9168. "wx",
  9169. "usershop",
  9170. ""
  9171. ],
  9172. "query": [
  9173. {
  9174. "key": "uid",
  9175. "value": "{{wx_uid}}"
  9176. },
  9177. {
  9178. "key": "type",
  9179. "value": "follow"
  9180. }
  9181. ]
  9182. }
  9183. },
  9184. "response": []
  9185. },
  9186. {
  9187. "name": "post_wx_usershop",
  9188. "event": [
  9189. {
  9190. "listen": "test",
  9191. "script": {
  9192. "id": "d89f7567-fe14-4a48-ac53-86272b2f8116",
  9193. "exec": [
  9194. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9195. ""
  9196. ],
  9197. "type": "text/javascript"
  9198. }
  9199. }
  9200. ],
  9201. "request": {
  9202. "method": "POST",
  9203. "header": [
  9204. {
  9205. "key": "Content-Type",
  9206. "value": "application/json"
  9207. }
  9208. ],
  9209. "body": {
  9210. "mode": "raw",
  9211. "raw": "{\n\t\"uid\":\"{{wx_uid}}\",\n\t\"shop\":{{shop_id}}\n\t\n}\n"
  9212. },
  9213. "url": {
  9214. "raw": "{{url}}/api/wx/usershop/",
  9215. "host": [
  9216. "{{url}}"
  9217. ],
  9218. "path": [
  9219. "api",
  9220. "wx",
  9221. "usershop",
  9222. ""
  9223. ]
  9224. }
  9225. },
  9226. "response": []
  9227. },
  9228. {
  9229. "name": "get_userbind_followshop",
  9230. "event": [
  9231. {
  9232. "listen": "test",
  9233. "script": {
  9234. "type": "text/javascript",
  9235. "exec": [
  9236. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9237. ""
  9238. ]
  9239. }
  9240. }
  9241. ],
  9242. "request": {
  9243. "method": "GET",
  9244. "header": [],
  9245. "body": {
  9246. "mode": "raw",
  9247. "raw": ""
  9248. },
  9249. "url": {
  9250. "raw": "{{url}}/api/wx/userbind/?uid={{wx_uid}}",
  9251. "host": [
  9252. "{{url}}"
  9253. ],
  9254. "path": [
  9255. "api",
  9256. "wx",
  9257. "userbind",
  9258. ""
  9259. ],
  9260. "query": [
  9261. {
  9262. "key": "uid",
  9263. "value": "{{wx_uid}}"
  9264. }
  9265. ]
  9266. }
  9267. },
  9268. "response": []
  9269. },
  9270. {
  9271. "name": "get_wx_usercard",
  9272. "event": [
  9273. {
  9274. "listen": "test",
  9275. "script": {
  9276. "id": "3176c3dc-0fe0-4f99-b754-89b9e253b920",
  9277. "exec": [
  9278. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9279. "",
  9280. "var jsonData = JSON.parse(responseBody);",
  9281. "",
  9282. " postman.setEnvironmentVariable(\"wx_cardid01\", jsonData[0].card[0].id);"
  9283. ],
  9284. "type": "text/javascript"
  9285. }
  9286. }
  9287. ],
  9288. "request": {
  9289. "method": "GET",
  9290. "header": [],
  9291. "body": {
  9292. "mode": "raw",
  9293. "raw": ""
  9294. },
  9295. "url": {
  9296. "raw": "{{url}}/api/wx/usercard/?uid={{wx_uid}}",
  9297. "host": [
  9298. "{{url}}"
  9299. ],
  9300. "path": [
  9301. "api",
  9302. "wx",
  9303. "usercard",
  9304. ""
  9305. ],
  9306. "query": [
  9307. {
  9308. "key": "uid",
  9309. "value": "{{wx_uid}}"
  9310. }
  9311. ]
  9312. }
  9313. },
  9314. "response": []
  9315. },
  9316. {
  9317. "name": "get_wx_usercard_id",
  9318. "event": [
  9319. {
  9320. "listen": "test",
  9321. "script": {
  9322. "id": "3176c3dc-0fe0-4f99-b754-89b9e253b920",
  9323. "exec": [
  9324. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9325. "",
  9326. ""
  9327. ],
  9328. "type": "text/javascript"
  9329. }
  9330. }
  9331. ],
  9332. "request": {
  9333. "method": "GET",
  9334. "header": [],
  9335. "body": {
  9336. "mode": "raw",
  9337. "raw": ""
  9338. },
  9339. "url": {
  9340. "raw": "{{url}}/api/wx/usercard/{{wx_cardid01}}/?uid={{wx_uid}}&type=0",
  9341. "host": [
  9342. "{{url}}"
  9343. ],
  9344. "path": [
  9345. "api",
  9346. "wx",
  9347. "usercard",
  9348. "{{wx_cardid01}}",
  9349. ""
  9350. ],
  9351. "query": [
  9352. {
  9353. "key": "uid",
  9354. "value": "{{wx_uid}}"
  9355. },
  9356. {
  9357. "key": "type",
  9358. "value": "0"
  9359. }
  9360. ]
  9361. }
  9362. },
  9363. "response": []
  9364. },
  9365. {
  9366. "name": "get_wx_bulkcoupon",
  9367. "event": [
  9368. {
  9369. "listen": "test",
  9370. "script": {
  9371. "id": "244f0427-4c7e-49b7-807f-5b86fe06f966",
  9372. "exec": [
  9373. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9374. "// if(tests[\"Status code is 200\"] ){",
  9375. " ",
  9376. "// var jsonData = JSON.parse(responseBody);",
  9377. " ",
  9378. "// postman.setEnvironmentVariable(\"wx_uid\", jsonData.uid);",
  9379. " ",
  9380. "// }"
  9381. ],
  9382. "type": "text/javascript"
  9383. }
  9384. }
  9385. ],
  9386. "request": {
  9387. "method": "GET",
  9388. "header": [],
  9389. "body": {
  9390. "mode": "raw",
  9391. "raw": ""
  9392. },
  9393. "url": {
  9394. "raw": "{{url}}/api/wx/bulkcoupon/?uid={{wx_uid}}",
  9395. "host": [
  9396. "{{url}}"
  9397. ],
  9398. "path": [
  9399. "api",
  9400. "wx",
  9401. "bulkcoupon",
  9402. ""
  9403. ],
  9404. "query": [
  9405. {
  9406. "key": "uid",
  9407. "value": "{{wx_uid}}"
  9408. }
  9409. ]
  9410. }
  9411. },
  9412. "response": []
  9413. },
  9414. {
  9415. "name": "get_basic_coupon",
  9416. "event": [
  9417. {
  9418. "listen": "test",
  9419. "script": {
  9420. "id": "7de3700f-3fff-4289-af9b-559ce0c91d2e",
  9421. "exec": [
  9422. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  9423. ],
  9424. "type": "text/javascript"
  9425. }
  9426. }
  9427. ],
  9428. "request": {
  9429. "method": "GET",
  9430. "header": [
  9431. {
  9432. "key": "Authorization",
  9433. "value": "Rong {{shoptoken}}",
  9434. "type": "text"
  9435. }
  9436. ],
  9437. "body": {
  9438. "mode": "raw",
  9439. "raw": ""
  9440. },
  9441. "url": {
  9442. "raw": "{{url}}/api/basic/coupon/?uid={{wx_uid}}&vipmember_info_id={{vip_id01}}",
  9443. "host": [
  9444. "{{url}}"
  9445. ],
  9446. "path": [
  9447. "api",
  9448. "basic",
  9449. "coupon",
  9450. ""
  9451. ],
  9452. "query": [
  9453. {
  9454. "key": "uid",
  9455. "value": "{{wx_uid}}"
  9456. },
  9457. {
  9458. "key": "vipmember_info_id",
  9459. "value": "{{vip_id01}}"
  9460. }
  9461. ]
  9462. }
  9463. },
  9464. "response": []
  9465. },
  9466. {
  9467. "name": "get_basic_coupon_phone",
  9468. "event": [
  9469. {
  9470. "listen": "test",
  9471. "script": {
  9472. "id": "7de3700f-3fff-4289-af9b-559ce0c91d2e",
  9473. "exec": [
  9474. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  9475. ],
  9476. "type": "text/javascript"
  9477. }
  9478. }
  9479. ],
  9480. "request": {
  9481. "method": "GET",
  9482. "header": [
  9483. {
  9484. "key": "Authorization",
  9485. "type": "text",
  9486. "value": "Rong {{shoptoken}}"
  9487. }
  9488. ],
  9489. "body": {
  9490. "mode": "raw",
  9491. "raw": ""
  9492. },
  9493. "url": {
  9494. "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone01}}",
  9495. "host": [
  9496. "{{url}}"
  9497. ],
  9498. "path": [
  9499. "api",
  9500. "basic",
  9501. "coupon",
  9502. ""
  9503. ],
  9504. "query": [
  9505. {
  9506. "key": "vip_phone_number",
  9507. "value": "{{vip_phone01}}"
  9508. }
  9509. ]
  9510. }
  9511. },
  9512. "response": []
  9513. },
  9514. {
  9515. "name": "post_wx_coupon",
  9516. "event": [
  9517. {
  9518. "listen": "prerequest",
  9519. "script": {
  9520. "id": "2ee071fc-1f31-4b46-a108-6792b921145b",
  9521. "exec": [
  9522. "// var coupons01_pjname = JSON.parse(postman.getEnvironmentVariable(\"coupons01_pjname\"));\r",
  9523. " \r",
  9524. "// var data = {\r",
  9525. "// \t\t\"id\":coupons01_pjname.id,\r",
  9526. "// \t\t\"name\": coupons01_pjname.name,\r",
  9527. "// \t\t\"price\": coupons01_pjname.price,\r",
  9528. "// \t\t\"category\": coupons01_pjname.category,\r",
  9529. "// \t\t\"category__name\": coupons01_pjname.category__name\r",
  9530. "// \t}\r",
  9531. "\t\r",
  9532. "// \t postman.setEnvironmentVariable(\"project_name\",JSON.stringify(data));\r",
  9533. "\t \r",
  9534. "// //\t var coupons01_all = JSON.parse(postman.getEnvironmentVariable(\"coupons01_all\"));"
  9535. ],
  9536. "type": "text/javascript"
  9537. }
  9538. },
  9539. {
  9540. "listen": "test",
  9541. "script": {
  9542. "id": "28eb0b25-d5b7-4312-b12a-aa8dedc74324",
  9543. "exec": [
  9544. "",
  9545. "",
  9546. "",
  9547. "",
  9548. "",
  9549. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  9550. ],
  9551. "type": "text/javascript"
  9552. }
  9553. }
  9554. ],
  9555. "request": {
  9556. "method": "POST",
  9557. "header": [
  9558. {
  9559. "key": "Content-Type",
  9560. "value": "application/json"
  9561. },
  9562. {
  9563. "key": "Authorization",
  9564. "value": "Rong {{shoptoken}}",
  9565. "type": "text"
  9566. }
  9567. ],
  9568. "body": {
  9569. "mode": "raw",
  9570. "raw": "{\r\n\t\"uid\": \"{{wx_uid}}\",\r\n\t\"bulk_coupon\": {{bulkcoupon_id01}},\r\n\t\"shop\": {{shop_id}},\r\n\t\"project_type\": {{pj_type01}},\r\n\t\"project_id\": {{pj_id01}},\r\n\t\"full_money\": \"{{full_money01}}\",\r\n\t\"money\": \"{{reach_money01}}\",\r\n\t\"begin_date\": \"{{begin_date01}}\",\r\n\t\"end_date\": \"{{end_date01}}\",\r\n\t\"source_type\": 2\r\n}\r\n\r\n"
  9571. },
  9572. "url": {
  9573. "raw": "{{url}}/api/wx/coupon/",
  9574. "host": [
  9575. "{{url}}"
  9576. ],
  9577. "path": [
  9578. "api",
  9579. "wx",
  9580. "coupon",
  9581. ""
  9582. ]
  9583. }
  9584. },
  9585. "response": []
  9586. },
  9587. {
  9588. "name": "get_wx_coupon",
  9589. "event": [
  9590. {
  9591. "listen": "prerequest",
  9592. "script": {
  9593. "id": "2ee071fc-1f31-4b46-a108-6792b921145b",
  9594. "exec": [
  9595. ""
  9596. ],
  9597. "type": "text/javascript"
  9598. }
  9599. },
  9600. {
  9601. "listen": "test",
  9602. "script": {
  9603. "id": "28eb0b25-d5b7-4312-b12a-aa8dedc74324",
  9604. "exec": [
  9605. "pm.test(\"Status code is 200\", function () {",
  9606. " pm.response.to.have.status(200);",
  9607. "});"
  9608. ],
  9609. "type": "text/javascript"
  9610. }
  9611. }
  9612. ],
  9613. "protocolProfileBehavior": {
  9614. "disableBodyPruning": true
  9615. },
  9616. "request": {
  9617. "method": "GET",
  9618. "header": [],
  9619. "body": {
  9620. "mode": "raw",
  9621. "raw": ""
  9622. },
  9623. "url": {
  9624. "raw": "{{url}}/api/wx/coupon/?uid={{wx_uid}}",
  9625. "host": [
  9626. "{{url}}"
  9627. ],
  9628. "path": [
  9629. "api",
  9630. "wx",
  9631. "coupon",
  9632. ""
  9633. ],
  9634. "query": [
  9635. {
  9636. "key": "uid",
  9637. "value": "{{wx_uid}}"
  9638. }
  9639. ]
  9640. }
  9641. },
  9642. "response": []
  9643. },
  9644. {
  9645. "name": "get_wx_redemptionvoucher",
  9646. "event": [
  9647. {
  9648. "listen": "prerequest",
  9649. "script": {
  9650. "id": "2ee071fc-1f31-4b46-a108-6792b921145b",
  9651. "exec": [
  9652. ""
  9653. ],
  9654. "type": "text/javascript"
  9655. }
  9656. },
  9657. {
  9658. "listen": "test",
  9659. "script": {
  9660. "id": "28eb0b25-d5b7-4312-b12a-aa8dedc74324",
  9661. "exec": [
  9662. "pm.test(\"Status code is 200\", function () {",
  9663. " pm.response.to.have.status(200);",
  9664. "});"
  9665. ],
  9666. "type": "text/javascript"
  9667. }
  9668. }
  9669. ],
  9670. "protocolProfileBehavior": {
  9671. "disableBodyPruning": true
  9672. },
  9673. "request": {
  9674. "method": "GET",
  9675. "header": [],
  9676. "body": {
  9677. "mode": "raw",
  9678. "raw": ""
  9679. },
  9680. "url": {
  9681. "raw": "{{url}}/api/wx/redemptionvoucher/?uid={{wx_uid}}",
  9682. "host": [
  9683. "{{url}}"
  9684. ],
  9685. "path": [
  9686. "api",
  9687. "wx",
  9688. "redemptionvoucher",
  9689. ""
  9690. ],
  9691. "query": [
  9692. {
  9693. "key": "uid",
  9694. "value": "{{wx_uid}}"
  9695. }
  9696. ]
  9697. }
  9698. },
  9699. "response": []
  9700. }
  9701. ]
  9702. },
  9703. {
  9704. "name": "beatuyservice",
  9705. "item": [
  9706. {
  9707. "name": "get_vipmember_vipshortlist",
  9708. "event": [
  9709. {
  9710. "listen": "test",
  9711. "script": {
  9712. "type": "text/javascript",
  9713. "exec": [
  9714. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  9715. ]
  9716. }
  9717. }
  9718. ],
  9719. "request": {
  9720. "method": "GET",
  9721. "header": [
  9722. {
  9723. "key": "Authorization",
  9724. "value": "Rong {{shoptoken}}"
  9725. }
  9726. ],
  9727. "body": {
  9728. "mode": "raw",
  9729. "raw": ""
  9730. },
  9731. "url": {
  9732. "raw": "{{url}}/api/vipmember/vipshortlist/",
  9733. "host": [
  9734. "{{url}}"
  9735. ],
  9736. "path": [
  9737. "api",
  9738. "vipmember",
  9739. "vipshortlist",
  9740. ""
  9741. ]
  9742. }
  9743. },
  9744. "response": []
  9745. },
  9746. {
  9747. "name": "get_business_beautyordersettles",
  9748. "event": [
  9749. {
  9750. "listen": "test",
  9751. "script": {
  9752. "id": "5e4471e4-4082-4d87-ad80-14d1e46d666e",
  9753. "exec": [
  9754. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  9755. ],
  9756. "type": "text/javascript"
  9757. }
  9758. }
  9759. ],
  9760. "request": {
  9761. "method": "GET",
  9762. "header": [
  9763. {
  9764. "key": "Authorization",
  9765. "value": "Rong {{shoptoken}}"
  9766. }
  9767. ],
  9768. "body": {
  9769. "mode": "raw",
  9770. "raw": ""
  9771. },
  9772. "url": {
  9773. "raw": "{{url}}/api/business/beautyordersettles/",
  9774. "host": [
  9775. "{{url}}"
  9776. ],
  9777. "path": [
  9778. "api",
  9779. "business",
  9780. "beautyordersettles",
  9781. ""
  9782. ]
  9783. }
  9784. },
  9785. "response": []
  9786. },
  9787. {
  9788. "name": "get_business_vipservicepriceview_service1",
  9789. "event": [
  9790. {
  9791. "listen": "test",
  9792. "script": {
  9793. "id": "39dec1d8-c67b-4446-8470-58186eb91aa5",
  9794. "exec": [
  9795. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9796. " ",
  9797. " var jsonData = JSON.parse(responseBody);",
  9798. " ",
  9799. " postman.setEnvironmentVariable(\"s_discount_all\", JSON.stringify(jsonData));",
  9800. " ",
  9801. " // postman.setEnvironmentVariable(\"s_discount_price01\", jsonData.service_project__price);",
  9802. " postman.setEnvironmentVariable(\"s_discount_rate01\", jsonData.rate);",
  9803. " ",
  9804. " ",
  9805. " "
  9806. ],
  9807. "type": "text/javascript"
  9808. }
  9809. }
  9810. ],
  9811. "request": {
  9812. "method": "GET",
  9813. "header": [
  9814. {
  9815. "key": "Authorization",
  9816. "value": "Rong {{shoptoken}}"
  9817. }
  9818. ],
  9819. "body": {
  9820. "mode": "raw",
  9821. "raw": ""
  9822. },
  9823. "url": {
  9824. "raw": "{{url}}/api/business/vipservicepriceview/?car_id={{car_id01}}&service_id={{beauty_services_id02}}",
  9825. "host": [
  9826. "{{url}}"
  9827. ],
  9828. "path": [
  9829. "api",
  9830. "business",
  9831. "vipservicepriceview",
  9832. ""
  9833. ],
  9834. "query": [
  9835. {
  9836. "key": "car_id",
  9837. "value": "{{car_id01}}"
  9838. },
  9839. {
  9840. "key": "service_id",
  9841. "value": "{{beauty_services_id02}}"
  9842. }
  9843. ]
  9844. }
  9845. },
  9846. "response": []
  9847. },
  9848. {
  9849. "name": "post_business_beautyserviceorderadmin_0cash",
  9850. "event": [
  9851. {
  9852. "listen": "prerequest",
  9853. "script": {
  9854. "id": "f2ae8560-2f2e-4e7e-97e7-ec06f737098e",
  9855. "exec": [
  9856. "Date.prototype.Format = function (fmt) { //author: meizz ",
  9857. " var o = {",
  9858. " \"M+\": this.getMonth() + 1, //月份 ",
  9859. " \"d+\": this.getDate(), //日 ",
  9860. " \"h+\": this.getHours(), //小时 ",
  9861. " \"m+\": this.getMinutes(), //分 ",
  9862. " \"s+\": this.getSeconds(), //秒 ",
  9863. " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ",
  9864. " \"S\": this.getMilliseconds() //毫秒 ",
  9865. " };",
  9866. " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));",
  9867. " for (var k in o)",
  9868. " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));",
  9869. " return fmt;",
  9870. "}",
  9871. "",
  9872. "Date.prototype.addHours = function(h) { ",
  9873. " this.setTime(this.getTime() + (h*60*60*1000)); ",
  9874. " return this; ",
  9875. "};",
  9876. "",
  9877. "",
  9878. "postman.setGlobalVariable(\"date\", new Date().toISOString());",
  9879. "",
  9880. "postman.setGlobalVariable(\"ymd-date\", new Date().Format(\"yyyy-MM-dd\"));",
  9881. "",
  9882. "postman.setGlobalVariable(\"localdate\", new Date().toLocaleString());",
  9883. "",
  9884. "",
  9885. "pm.environment.set(\"start_datetime\", new Date().Format(\"yyyy-MM-dd hh:mm\"));",
  9886. "pm.environment.set(\"end_datetime\", new Date().addHours(2).Format(\"yyyy-MM-dd hh:mm\"));",
  9887. "pm.environment.set(\"diff_datetime\", new Date().Format(\"yyyy-MM-dd hh\")+':00'+'-'+new Date().addHours(2).getHours()+':00');",
  9888. "",
  9889. "var date ={}",
  9890. "",
  9891. "// var data = {",
  9892. "// \"style_id\": null,",
  9893. "// \t\t\"style\": 0,",
  9894. "// \t\t\"arrival_amount\": ",
  9895. " ",
  9896. "// }",
  9897. "",
  9898. "",
  9899. "var s_discount_all = JSON.parse(postman.getEnvironmentVariable(\"s_discount_all\"));",
  9900. "",
  9901. "",
  9902. "var service_amou= parseFloat(s_discount_all.service_project__price) * parseFloat(s_discount_all.rate) /100;",
  9903. "",
  9904. "pm.environment.set(\"service_amou\", service_amou);",
  9905. ""
  9906. ],
  9907. "type": "text/javascript"
  9908. }
  9909. },
  9910. {
  9911. "listen": "test",
  9912. "script": {
  9913. "id": "8d235451-cb00-4bcf-acf5-4db6ed1e50a1",
  9914. "exec": [
  9915. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  9916. ],
  9917. "type": "text/javascript"
  9918. }
  9919. }
  9920. ],
  9921. "request": {
  9922. "method": "POST",
  9923. "header": [
  9924. {
  9925. "key": "Authorization",
  9926. "value": "Rong {{shoptoken}}"
  9927. },
  9928. {
  9929. "key": "Content-Type",
  9930. "value": "application/json"
  9931. }
  9932. ],
  9933. "body": {
  9934. "mode": "raw",
  9935. "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id01}},\r\n\t\"beauty_services_id\": {{beauty_services_id02}},\r\n\t\"service_amount\": {{service_amou}},\r\n\t\"rate\": {{s_discount_rate01}},\r\n\t\"account_id\": {{account_id01}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{service_amou}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t},{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  9936. },
  9937. "url": {
  9938. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  9939. "host": [
  9940. "{{url}}"
  9941. ],
  9942. "path": [
  9943. "api",
  9944. "business",
  9945. "beautyserviceorderadmin",
  9946. ""
  9947. ]
  9948. }
  9949. },
  9950. "response": []
  9951. },
  9952. {
  9953. "name": "get_business_beautyordersettles_stordcard",
  9954. "event": [
  9955. {
  9956. "listen": "test",
  9957. "script": {
  9958. "id": "b295d37d-70e5-4e63-b20b-7430b5c7d6da",
  9959. "exec": [
  9960. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  9961. "",
  9962. "if(tests[\"Status code is 200\"] ){",
  9963. " var jsonData = JSON.parse(responseBody);",
  9964. " ",
  9965. " postman.setEnvironmentVariable(\"pk_card01\", JSON.stringify(jsonData.package_card[0]));",
  9966. " postman.setEnvironmentVariable(\"store_card01\", JSON.stringify(jsonData.store_card));",
  9967. " postman.setEnvironmentVariable(\"card_id01\", jsonData.store_card.id);",
  9968. " postman.setEnvironmentVariable(\"store_coupons01\", JSON.stringify(jsonData.coupons[0]));",
  9969. " ",
  9970. " }"
  9971. ],
  9972. "type": "text/javascript"
  9973. }
  9974. }
  9975. ],
  9976. "request": {
  9977. "method": "GET",
  9978. "header": [
  9979. {
  9980. "key": "Authorization",
  9981. "value": "Rong {{shoptoken}}"
  9982. },
  9983. {
  9984. "key": "Content-Type",
  9985. "value": "application/json"
  9986. }
  9987. ],
  9988. "body": {
  9989. "mode": "raw",
  9990. "raw": ""
  9991. },
  9992. "url": {
  9993. "raw": "{{url}}/api/business/beautyordersettles/?car_id={{car_id01}}",
  9994. "host": [
  9995. "{{url}}"
  9996. ],
  9997. "path": [
  9998. "api",
  9999. "business",
  10000. "beautyordersettles",
  10001. ""
  10002. ],
  10003. "query": [
  10004. {
  10005. "key": "car_id",
  10006. "value": "{{car_id01}}"
  10007. }
  10008. ]
  10009. }
  10010. },
  10011. "response": []
  10012. },
  10013. {
  10014. "name": "post_business_beautyserviceorderadmin_1storecard",
  10015. "event": [
  10016. {
  10017. "listen": "prerequest",
  10018. "script": {
  10019. "id": "eb28acc0-9e08-457b-8110-b1378832e0ce",
  10020. "exec": [
  10021. "var pk_card = JSON.parse(postman.getEnvironmentVariable(\"pk_card01\"));",
  10022. "",
  10023. " var data = {",
  10024. " \"style_id\": pk_card.id,",
  10025. " \t\t\"style\": 1,",
  10026. "\t\t\"arrival_amount\": pk_card.service_item__price",
  10027. " ",
  10028. " }",
  10029. " ",
  10030. " postman.setEnvironmentVariable(\"settles\",JSON.stringify(data));",
  10031. " postman.setEnvironmentVariable(\"service_amount\",data.arrival_amount);",
  10032. " postman.setEnvironmentVariable(\"beauty_services_id\",pk_card.service_item_id);",
  10033. " // postman.setEnvironmentVariable(\"beauty_services_id\",pk_card.service_item_id);",
  10034. "",
  10035. ""
  10036. ],
  10037. "type": "text/javascript"
  10038. }
  10039. },
  10040. {
  10041. "listen": "test",
  10042. "script": {
  10043. "id": "bcfe68e7-e149-4b44-a11a-1bf5a56523b2",
  10044. "exec": [
  10045. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  10046. ],
  10047. "type": "text/javascript"
  10048. }
  10049. }
  10050. ],
  10051. "request": {
  10052. "method": "POST",
  10053. "header": [
  10054. {
  10055. "key": "Authorization",
  10056. "value": "Rong {{shoptoken}}"
  10057. },
  10058. {
  10059. "key": "Content-Type",
  10060. "value": "application/json"
  10061. }
  10062. ],
  10063. "body": {
  10064. "mode": "raw",
  10065. "raw": " {\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id01}},\r\n\t\"beauty_services_id\": {{beauty_services_id}},\r\n\t\"service_amount\": {{service_amount}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id01}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{{settles}}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  10066. },
  10067. "url": {
  10068. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  10069. "host": [
  10070. "{{url}}"
  10071. ],
  10072. "path": [
  10073. "api",
  10074. "business",
  10075. "beautyserviceorderadmin",
  10076. ""
  10077. ]
  10078. }
  10079. },
  10080. "response": []
  10081. },
  10082. {
  10083. "name": "get_business_beautyserviceorderadmin",
  10084. "event": [
  10085. {
  10086. "listen": "test",
  10087. "script": {
  10088. "id": "e3256fc4-8bec-4b61-b3da-591674919dca",
  10089. "exec": [
  10090. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  10091. ],
  10092. "type": "text/javascript"
  10093. }
  10094. }
  10095. ],
  10096. "request": {
  10097. "method": "GET",
  10098. "header": [
  10099. {
  10100. "key": "Authorization",
  10101. "value": "Rong {{shoptoken}}"
  10102. }
  10103. ],
  10104. "body": {
  10105. "mode": "raw",
  10106. "raw": ""
  10107. },
  10108. "url": {
  10109. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  10110. "host": [
  10111. "{{url}}"
  10112. ],
  10113. "path": [
  10114. "api",
  10115. "business",
  10116. "beautyserviceorderadmin",
  10117. ""
  10118. ]
  10119. }
  10120. },
  10121. "response": []
  10122. },
  10123. {
  10124. "name": "post_business_beautyserviceorderadmin_2valuecard",
  10125. "event": [
  10126. {
  10127. "listen": "test",
  10128. "script": {
  10129. "id": "beda82f0-8b79-4f2b-bab4-a9cb2431e4fe",
  10130. "exec": [
  10131. "//tests[\"Status code is 200\"] = responseCode.code === 200;",
  10132. "",
  10133. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  10134. ],
  10135. "type": "text/javascript"
  10136. }
  10137. }
  10138. ],
  10139. "request": {
  10140. "method": "POST",
  10141. "header": [
  10142. {
  10143. "key": "Authorization",
  10144. "value": "Rong {{shoptoken}}"
  10145. },
  10146. {
  10147. "key": "Content-Type",
  10148. "value": "application/json"
  10149. }
  10150. ],
  10151. "body": {
  10152. "mode": "raw",
  10153. "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id01}},\r\n\t\"beauty_services_id\":{{beauty_services_id03}},\r\n\t\"service_amount\": {{beauty_services_price03}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": {{card_id01}},\r\n\t\t\"style\": 2,\r\n\t\t\"arrival_amount\": {{beauty_services_price03}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  10154. },
  10155. "url": {
  10156. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  10157. "host": [
  10158. "{{url}}"
  10159. ],
  10160. "path": [
  10161. "api",
  10162. "business",
  10163. "beautyserviceorderadmin",
  10164. ""
  10165. ]
  10166. }
  10167. },
  10168. "response": []
  10169. },
  10170. {
  10171. "name": "post_business_beautyserviceorderadmin_4voucher",
  10172. "event": [
  10173. {
  10174. "listen": "test",
  10175. "script": {
  10176. "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485",
  10177. "exec": [
  10178. "//tests[\"Status code is 200\"] = responseCode.code === 200;",
  10179. "pm.test(\"Successful POST request\", function () {",
  10180. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  10181. "});"
  10182. ],
  10183. "type": "text/javascript"
  10184. }
  10185. }
  10186. ],
  10187. "request": {
  10188. "method": "POST",
  10189. "header": [
  10190. {
  10191. "key": "Authorization",
  10192. "value": "Rong {{shoptoken}}"
  10193. },
  10194. {
  10195. "key": "Content-Type",
  10196. "value": "application/json"
  10197. }
  10198. ],
  10199. "body": {
  10200. "mode": "raw",
  10201. "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id01}},\r\n\t\"beauty_services_id\":{{voucher_pjid01}},\r\n\t\"service_amount\":{{voucher_price01}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{voucher_id01}},\r\n\t\t\"style\": 4,\r\n\t\t\"arrival_amount\":{{voucher_price01}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"use_date\": \"{{ymd-date}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  10202. },
  10203. "url": {
  10204. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  10205. "host": [
  10206. "{{url}}"
  10207. ],
  10208. "path": [
  10209. "api",
  10210. "business",
  10211. "beautyserviceorderadmin",
  10212. ""
  10213. ]
  10214. }
  10215. },
  10216. "response": []
  10217. },
  10218. {
  10219. "name": "post_business_beautyserviceorderadmin_3coupon_0cash",
  10220. "event": [
  10221. {
  10222. "listen": "test",
  10223. "script": {
  10224. "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485",
  10225. "exec": [
  10226. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;",
  10227. "",
  10228. "// var final = postman.getEnvironmentVariable(\"coupon_fullmoney01\");",
  10229. "",
  10230. "// var coupon_money01 = JSON.float(postman.getEnvironmentVariable(\"coupon_money01\"));",
  10231. "",
  10232. "// final-=coupon_money01;",
  10233. "",
  10234. "// postman.setEnvironmentVariable(\"final\",\"final\");"
  10235. ],
  10236. "type": "text/javascript"
  10237. }
  10238. },
  10239. {
  10240. "listen": "prerequest",
  10241. "script": {
  10242. "id": "039daf69-c376-4f44-8c7c-9e5063c0aea0",
  10243. "exec": [
  10244. "var full = JSON.parse(postman.getEnvironmentVariable(\"coupon_fullmoney01\"));",
  10245. "",
  10246. "var coupon_money01 = JSON.parse(postman.getEnvironmentVariable(\"coupon_money01\"));",
  10247. "",
  10248. "full-=coupon_money01 ;",
  10249. "",
  10250. " postman.setEnvironmentVariable(\"full\",full);"
  10251. ],
  10252. "type": "text/javascript"
  10253. }
  10254. }
  10255. ],
  10256. "request": {
  10257. "method": "POST",
  10258. "header": [
  10259. {
  10260. "key": "Authorization",
  10261. "value": "Rong {{shoptoken}}"
  10262. },
  10263. {
  10264. "key": "Content-Type",
  10265. "value": "application/json"
  10266. }
  10267. ],
  10268. "body": {
  10269. "mode": "raw",
  10270. "raw": "{\r\n\t\"vip_id\":{{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id01}},\r\n\t\"beauty_services_id\":{{coupon_pjid01}},\r\n\t\"service_amount\": {{coupon_fullmoney01}}, \r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{coupon_id01}},\r\n\t\t\"style\": 3,\r\n\t\t\"arrival_amount\":{{coupon_money01}}\r\n\t}, {\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{full}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"use_date\":\"{{ymd-date}}\",\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  10271. },
  10272. "url": {
  10273. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  10274. "host": [
  10275. "{{url}}"
  10276. ],
  10277. "path": [
  10278. "api",
  10279. "business",
  10280. "beautyserviceorderadmin",
  10281. ""
  10282. ]
  10283. }
  10284. },
  10285. "response": []
  10286. },
  10287. {
  10288. "name": "post_dialogaddvip",
  10289. "event": [
  10290. {
  10291. "listen": "test",
  10292. "script": {
  10293. "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485",
  10294. "exec": [
  10295. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  10296. "",
  10297. "// var final = postman.getEnvironmentVariable(\"coupon_fullmoney01\");",
  10298. "",
  10299. "// var coupon_money01 = JSON.float(postman.getEnvironmentVariable(\"coupon_money01\"));",
  10300. "",
  10301. "// final-=coupon_money01;",
  10302. "",
  10303. "// postman.setEnvironmentVariable(\"final\",\"final\");"
  10304. ],
  10305. "type": "text/javascript"
  10306. }
  10307. },
  10308. {
  10309. "listen": "prerequest",
  10310. "script": {
  10311. "id": "039daf69-c376-4f44-8c7c-9e5063c0aea0",
  10312. "exec": [
  10313. ""
  10314. ],
  10315. "type": "text/javascript"
  10316. }
  10317. }
  10318. ],
  10319. "request": {
  10320. "method": "POST",
  10321. "header": [
  10322. {
  10323. "key": "Authorization",
  10324. "value": "Rong {{shoptoken}}"
  10325. },
  10326. {
  10327. "key": "Content-Type",
  10328. "value": "application/json"
  10329. }
  10330. ],
  10331. "body": {
  10332. "mode": "raw",
  10333. "raw": "{\r\n\t\"id\": null,\r\n\t\"phone_number\": \"18159852345\",\r\n\t\"vip_name\": \"欧洋铭铭\",\r\n\t\"code\": \"A85789H\",\r\n\t\"sex\": 0,\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"carcategory\": null\r\n}"
  10334. },
  10335. "url": {
  10336. "raw": "{{url}}/api/vipmember/dialogaddvip/",
  10337. "host": [
  10338. "{{url}}"
  10339. ],
  10340. "path": [
  10341. "api",
  10342. "vipmember",
  10343. "dialogaddvip",
  10344. ""
  10345. ]
  10346. }
  10347. },
  10348. "response": []
  10349. },
  10350. {
  10351. "name": "get_vipmember_vipmemberinfoadmin _phone",
  10352. "event": [
  10353. {
  10354. "listen": "test",
  10355. "script": {
  10356. "id": "11c7f590-66d7-4fcf-ae57-fbb08cdacbf9",
  10357. "exec": [
  10358. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  10359. "",
  10360. "",
  10361. " var jsonData = JSON.parse(responseBody);",
  10362. " ",
  10363. " postman.setEnvironmentVariable(\"vip_id03\", jsonData.results[0].id);",
  10364. " ",
  10365. "// postman.setEnvironmentVariable(\"vip_name01\", jsonData.results[0].name);",
  10366. " ",
  10367. "// postman.setEnvironmentVariable(\"vip_phone01\", jsonData.results[0].phone_number);",
  10368. " postman.setEnvironmentVariable(\"car_code03\", jsonData.results[0].car[0].code);",
  10369. " ",
  10370. " postman.setEnvironmentVariable(\"car_id03\", jsonData.results[0].car[0].id);",
  10371. "// postman.setEnvironmentVariable(\"areashortid01\", jsonData.results[0].car[0].areashort);",
  10372. "// postman.setEnvironmentVariable(\"vip_grade01\", jsonData.results[0].grade);",
  10373. " ",
  10374. "// postman.setEnvironmentVariable(\"vip_info01\", JSON.stringify(jsonData.results[0]));",
  10375. "// postman.setEnvironmentVariable(\"vip_carname01\", jsonData.results[0].car.carcategory_name);",
  10376. " ",
  10377. " ",
  10378. ""
  10379. ],
  10380. "type": "text/javascript"
  10381. }
  10382. }
  10383. ],
  10384. "request": {
  10385. "method": "GET",
  10386. "header": [
  10387. {
  10388. "key": "Authorization",
  10389. "value": "Rong {{shoptoken}}"
  10390. },
  10391. {
  10392. "key": "Content-Type",
  10393. "value": "application/json"
  10394. }
  10395. ],
  10396. "body": {
  10397. "mode": "raw",
  10398. "raw": ""
  10399. },
  10400. "url": {
  10401. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?cellphone=18159852345",
  10402. "host": [
  10403. "{{url}}"
  10404. ],
  10405. "path": [
  10406. "api",
  10407. "vipmember",
  10408. "vipmemberinfoadmin",
  10409. ""
  10410. ],
  10411. "query": [
  10412. {
  10413. "key": "cellphone",
  10414. "value": "18159852345"
  10415. }
  10416. ]
  10417. }
  10418. },
  10419. "response": []
  10420. },
  10421. {
  10422. "name": "post_business_beautyserviceorderadmin_0cash_new",
  10423. "event": [
  10424. {
  10425. "listen": "prerequest",
  10426. "script": {
  10427. "id": "f2ae8560-2f2e-4e7e-97e7-ec06f737098e",
  10428. "exec": [
  10429. ""
  10430. ],
  10431. "type": "text/javascript"
  10432. }
  10433. },
  10434. {
  10435. "listen": "test",
  10436. "script": {
  10437. "id": "8d235451-cb00-4bcf-acf5-4db6ed1e50a1",
  10438. "exec": [
  10439. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  10440. ],
  10441. "type": "text/javascript"
  10442. }
  10443. }
  10444. ],
  10445. "request": {
  10446. "method": "POST",
  10447. "header": [
  10448. {
  10449. "key": "Authorization",
  10450. "value": "Rong {{shoptoken}}"
  10451. },
  10452. {
  10453. "key": "Content-Type",
  10454. "value": "application/json"
  10455. }
  10456. ],
  10457. "body": {
  10458. "mode": "raw",
  10459. "raw": "{\r\n\t\"vip_id\":{{vip_id03}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id03}},\r\n\t\"beauty_services_id\": {{beauty_services_id02}},\r\n\t\"service_amount\": {{service_amou}},\r\n\t\"rate\": {{s_discount_rate01}},\r\n\t\"account_id\": {{account_id03}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{service_amou}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code03}}\"\r\n}"
  10460. },
  10461. "url": {
  10462. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  10463. "host": [
  10464. "{{url}}"
  10465. ],
  10466. "path": [
  10467. "api",
  10468. "business",
  10469. "beautyserviceorderadmin",
  10470. ""
  10471. ]
  10472. }
  10473. },
  10474. "response": []
  10475. }
  10476. ]
  10477. },
  10478. {
  10479. "name": "repaireservice",
  10480. "item": [
  10481. {
  10482. "name": "get1_business_viprepairworkpriceadminview_repair1",
  10483. "event": [
  10484. {
  10485. "listen": "test",
  10486. "script": {
  10487. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  10488. "exec": [
  10489. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  10490. "",
  10491. " if(tests[\"Status code is 200\"] ){",
  10492. " var jsonData = JSON.parse(responseBody);",
  10493. " ",
  10494. " postman.setEnvironmentVariable(\"repair_item01_all\", JSON.stringify(jsonData));",
  10495. " ",
  10496. " }"
  10497. ],
  10498. "type": "text/javascript"
  10499. }
  10500. }
  10501. ],
  10502. "request": {
  10503. "method": "GET",
  10504. "header": [
  10505. {
  10506. "key": "Content-Type",
  10507. "value": "application/json"
  10508. },
  10509. {
  10510. "key": "Authorization",
  10511. "value": "Rong {{shoptoken}}"
  10512. }
  10513. ],
  10514. "body": {
  10515. "mode": "raw",
  10516. "raw": ""
  10517. },
  10518. "url": {
  10519. "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{car_id01}}&item_id={{repair_service_id01}}",
  10520. "host": [
  10521. "{{url}}"
  10522. ],
  10523. "path": [
  10524. "api",
  10525. "business",
  10526. "viprepairworkpriceadminview",
  10527. ""
  10528. ],
  10529. "query": [
  10530. {
  10531. "key": "car_id",
  10532. "value": "{{car_id01}}"
  10533. },
  10534. {
  10535. "key": "item_id",
  10536. "value": "{{repair_service_id01}}"
  10537. }
  10538. ]
  10539. }
  10540. },
  10541. "response": []
  10542. },
  10543. {
  10544. "name": "get2_business_viprepairworkpriceadminview_repair2",
  10545. "event": [
  10546. {
  10547. "listen": "test",
  10548. "script": {
  10549. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  10550. "exec": [
  10551. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  10552. "",
  10553. " if(tests[\"Status code is 200\"] ){",
  10554. " var jsonData = JSON.parse(responseBody);",
  10555. " ",
  10556. " postman.setEnvironmentVariable(\"repair_item02_all\", JSON.stringify(jsonData));",
  10557. " ",
  10558. " }"
  10559. ],
  10560. "type": "text/javascript"
  10561. }
  10562. }
  10563. ],
  10564. "request": {
  10565. "method": "GET",
  10566. "header": [
  10567. {
  10568. "key": "Content-Type",
  10569. "value": "application/json"
  10570. },
  10571. {
  10572. "key": "Authorization",
  10573. "value": "Rong {{shoptoken}}"
  10574. }
  10575. ],
  10576. "body": {
  10577. "mode": "raw",
  10578. "raw": ""
  10579. },
  10580. "url": {
  10581. "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{car_id01}}&item_id={{repair_service_id02}}",
  10582. "host": [
  10583. "{{url}}"
  10584. ],
  10585. "path": [
  10586. "api",
  10587. "business",
  10588. "viprepairworkpriceadminview",
  10589. ""
  10590. ],
  10591. "query": [
  10592. {
  10593. "key": "car_id",
  10594. "value": "{{car_id01}}"
  10595. },
  10596. {
  10597. "key": "item_id",
  10598. "value": "{{repair_service_id02}}"
  10599. }
  10600. ]
  10601. }
  10602. },
  10603. "response": []
  10604. },
  10605. {
  10606. "name": "get2_product02_discount",
  10607. "event": [
  10608. {
  10609. "listen": "prerequest",
  10610. "script": {
  10611. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  10612. "exec": [
  10613. ""
  10614. ],
  10615. "type": "text/javascript"
  10616. }
  10617. },
  10618. {
  10619. "listen": "test",
  10620. "script": {
  10621. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  10622. "exec": [
  10623. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  10624. "",
  10625. " var jsonData = JSON.parse(responseBody);",
  10626. "",
  10627. " postman.setEnvironmentVariable(\"product02\", JSON.stringify(jsonData));"
  10628. ],
  10629. "type": "text/javascript"
  10630. }
  10631. }
  10632. ],
  10633. "request": {
  10634. "method": "GET",
  10635. "header": [
  10636. {
  10637. "key": "Content-Type",
  10638. "value": "application/json"
  10639. },
  10640. {
  10641. "key": "Authorization",
  10642. "value": "Rong {{shoptoken}}"
  10643. }
  10644. ],
  10645. "body": {
  10646. "mode": "raw",
  10647. "raw": ""
  10648. },
  10649. "url": {
  10650. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id02}}",
  10651. "host": [
  10652. "{{url}}"
  10653. ],
  10654. "path": [
  10655. "api",
  10656. "business",
  10657. "repairproductpriceadminview",
  10658. ""
  10659. ],
  10660. "query": [
  10661. {
  10662. "key": "car_id",
  10663. "value": "{{car_id01}}"
  10664. },
  10665. {
  10666. "key": "product_id",
  10667. "value": "{{car_products_id02}}"
  10668. }
  10669. ]
  10670. }
  10671. },
  10672. "response": []
  10673. },
  10674. {
  10675. "name": "get2_product03_discount",
  10676. "event": [
  10677. {
  10678. "listen": "prerequest",
  10679. "script": {
  10680. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  10681. "exec": [
  10682. ""
  10683. ],
  10684. "type": "text/javascript"
  10685. }
  10686. },
  10687. {
  10688. "listen": "test",
  10689. "script": {
  10690. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  10691. "exec": [
  10692. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  10693. "",
  10694. " var jsonData = JSON.parse(responseBody);",
  10695. "",
  10696. " postman.setEnvironmentVariable(\"product03\", JSON.stringify(jsonData));"
  10697. ],
  10698. "type": "text/javascript"
  10699. }
  10700. }
  10701. ],
  10702. "request": {
  10703. "method": "GET",
  10704. "header": [
  10705. {
  10706. "key": "Content-Type",
  10707. "value": "application/json"
  10708. },
  10709. {
  10710. "key": "Authorization",
  10711. "value": "Rong {{shoptoken}}"
  10712. }
  10713. ],
  10714. "body": {
  10715. "mode": "raw",
  10716. "raw": ""
  10717. },
  10718. "url": {
  10719. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id03}}",
  10720. "host": [
  10721. "{{url}}"
  10722. ],
  10723. "path": [
  10724. "api",
  10725. "business",
  10726. "repairproductpriceadminview",
  10727. ""
  10728. ],
  10729. "query": [
  10730. {
  10731. "key": "car_id",
  10732. "value": "{{car_id01}}"
  10733. },
  10734. {
  10735. "key": "product_id",
  10736. "value": "{{car_products_id03}}"
  10737. }
  10738. ]
  10739. }
  10740. },
  10741. "response": []
  10742. },
  10743. {
  10744. "name": "get3_product04_discount",
  10745. "event": [
  10746. {
  10747. "listen": "prerequest",
  10748. "script": {
  10749. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  10750. "exec": [
  10751. ""
  10752. ],
  10753. "type": "text/javascript"
  10754. }
  10755. },
  10756. {
  10757. "listen": "test",
  10758. "script": {
  10759. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  10760. "exec": [
  10761. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  10762. "",
  10763. " var jsonData = JSON.parse(responseBody);",
  10764. "",
  10765. " postman.setEnvironmentVariable(\"product04\", JSON.stringify(jsonData));"
  10766. ],
  10767. "type": "text/javascript"
  10768. }
  10769. }
  10770. ],
  10771. "request": {
  10772. "method": "GET",
  10773. "header": [
  10774. {
  10775. "key": "Content-Type",
  10776. "value": "application/json"
  10777. },
  10778. {
  10779. "key": "Authorization",
  10780. "value": "Rong {{shoptoken}}"
  10781. }
  10782. ],
  10783. "body": {
  10784. "mode": "raw",
  10785. "raw": ""
  10786. },
  10787. "url": {
  10788. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id04}}",
  10789. "host": [
  10790. "{{url}}"
  10791. ],
  10792. "path": [
  10793. "api",
  10794. "business",
  10795. "repairproductpriceadminview",
  10796. ""
  10797. ],
  10798. "query": [
  10799. {
  10800. "key": "car_id",
  10801. "value": "{{car_id01}}"
  10802. },
  10803. {
  10804. "key": "product_id",
  10805. "value": "{{car_products_id04}}"
  10806. }
  10807. ]
  10808. }
  10809. },
  10810. "response": []
  10811. },
  10812. {
  10813. "name": "get3_product05_discount",
  10814. "event": [
  10815. {
  10816. "listen": "prerequest",
  10817. "script": {
  10818. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  10819. "exec": [
  10820. ""
  10821. ],
  10822. "type": "text/javascript"
  10823. }
  10824. },
  10825. {
  10826. "listen": "test",
  10827. "script": {
  10828. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  10829. "exec": [
  10830. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  10831. "",
  10832. " var jsonData = JSON.parse(responseBody);",
  10833. "",
  10834. " postman.setEnvironmentVariable(\"product05\", JSON.stringify(jsonData));"
  10835. ],
  10836. "type": "text/javascript"
  10837. }
  10838. }
  10839. ],
  10840. "request": {
  10841. "method": "GET",
  10842. "header": [
  10843. {
  10844. "key": "Content-Type",
  10845. "value": "application/json"
  10846. },
  10847. {
  10848. "key": "Authorization",
  10849. "value": "Rong {{shoptoken}}"
  10850. }
  10851. ],
  10852. "body": {
  10853. "mode": "raw",
  10854. "raw": ""
  10855. },
  10856. "url": {
  10857. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{car_id01}}&product_id={{car_products_id05}}",
  10858. "host": [
  10859. "{{url}}"
  10860. ],
  10861. "path": [
  10862. "api",
  10863. "business",
  10864. "repairproductpriceadminview",
  10865. ""
  10866. ],
  10867. "query": [
  10868. {
  10869. "key": "car_id",
  10870. "value": "{{car_id01}}"
  10871. },
  10872. {
  10873. "key": "product_id",
  10874. "value": "{{car_products_id05}}"
  10875. }
  10876. ]
  10877. }
  10878. },
  10879. "response": []
  10880. },
  10881. {
  10882. "name": "post_business_repairserviceorderadminview",
  10883. "event": [
  10884. {
  10885. "listen": "prerequest",
  10886. "script": {
  10887. "id": "b3095794-d3e0-4feb-b248-8b0595f269b3",
  10888. "exec": [
  10889. "var product02 = JSON.parse(postman.getEnvironmentVariable(\"product02\"));",
  10890. "var repair_item01_all = JSON.parse(postman.getEnvironmentVariable(\"repair_item01_all\"));",
  10891. "var repair_service_id01 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id01\"));",
  10892. "var data01 ={",
  10893. "\t\t\"car_products_id\": product02.car_products_id,",
  10894. "\t\t\"amount\": 1,",
  10895. "\t\t\"rate\": product02.rate,",
  10896. "\t\t\"price\": product02.price,",
  10897. "\t\t\"discounted_price\": product02.discounted_price",
  10898. "\t}",
  10899. "\t",
  10900. "var data02 ={",
  10901. "\t\t\"repair_service_id\": repair_service_id01,",
  10902. "\t\t\"standard_fee\": repair_item01_all.standard_fee,",
  10903. "\t\t\"rate\": repair_item01_all.rate,",
  10904. "\t\t\"discounted_price\": repair_item01_all.discounted_price,",
  10905. "\t\t\"id\": null",
  10906. "\t}",
  10907. "\t",
  10908. "\tvar discounted_price01 = parseFloat(data01.price) * parseFloat(data01.rate) * parseFloat(data01.amount)/100;",
  10909. " ",
  10910. " ",
  10911. " postman.setEnvironmentVariable(\"r_products01\", JSON.stringify(data01));",
  10912. " postman.setEnvironmentVariable(\"r_items01\",JSON.stringify(data02));",
  10913. "\t",
  10914. "",
  10915. " postman.setEnvironmentVariable(\"sumproduct01\",discounted_price01);",
  10916. " postman.setEnvironmentVariable(\"work_price01\",data02.discounted_price);",
  10917. " ",
  10918. " ",
  10919. " ",
  10920. " ",
  10921. " "
  10922. ],
  10923. "type": "text/javascript"
  10924. }
  10925. },
  10926. {
  10927. "listen": "test",
  10928. "script": {
  10929. "id": "f5021e2e-6681-4c2f-b3a2-1251038d851b",
  10930. "exec": [
  10931. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  10932. ],
  10933. "type": "text/javascript"
  10934. }
  10935. }
  10936. ],
  10937. "request": {
  10938. "method": "POST",
  10939. "header": [
  10940. {
  10941. "key": "Content-Type",
  10942. "value": "application/json"
  10943. },
  10944. {
  10945. "key": "Authorization",
  10946. "value": "Rong {{shoptoken}}"
  10947. }
  10948. ],
  10949. "body": {
  10950. "mode": "raw",
  10951. "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id01}},\r\n\t\"vip_id\": {{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": \"车的前门有被损坏过\",\r\n\t\"other_price\": 200,\r\n\t\"work_price\": \"{{work_price01}}\",\r\n\t\"products_price\": \"{{sumproduct01}}\",\r\n\t\"r_items\": [{{r_items01}}],\r\n\t\"r_products\": [{{r_products01}}],\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  10952. },
  10953. "url": {
  10954. "raw": "{{url}}/api/business/repairserviceorderadminview/",
  10955. "host": [
  10956. "{{url}}"
  10957. ],
  10958. "path": [
  10959. "api",
  10960. "business",
  10961. "repairserviceorderadminview",
  10962. ""
  10963. ]
  10964. }
  10965. },
  10966. "response": []
  10967. },
  10968. {
  10969. "name": "get_business_repairserviceorderadminview",
  10970. "event": [
  10971. {
  10972. "listen": "test",
  10973. "script": {
  10974. "id": "2ff84aa8-e38d-4112-8b4c-76cfd58e8225",
  10975. "exec": [
  10976. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  10977. "",
  10978. "// if(tests[\"Status code is 200\"] ){",
  10979. "// var jsonData = JSON.parse(responseBody);",
  10980. " ",
  10981. "// postman.setEnvironmentVariable(\"repairservice_id01\", jsonData.results[0].id);",
  10982. " ",
  10983. "// }"
  10984. ],
  10985. "type": "text/javascript"
  10986. }
  10987. }
  10988. ],
  10989. "request": {
  10990. "method": "GET",
  10991. "header": [
  10992. {
  10993. "key": "Content-Type",
  10994. "value": "application/json"
  10995. },
  10996. {
  10997. "key": "Authorization",
  10998. "value": "Rong {{shoptoken}}"
  10999. }
  11000. ],
  11001. "body": {
  11002. "mode": "raw",
  11003. "raw": ""
  11004. },
  11005. "url": {
  11006. "raw": "{{url}}/api/business/repairserviceorderadminview/",
  11007. "host": [
  11008. "{{url}}"
  11009. ],
  11010. "path": [
  11011. "api",
  11012. "business",
  11013. "repairserviceorderadminview",
  11014. ""
  11015. ]
  11016. }
  11017. },
  11018. "response": []
  11019. },
  11020. {
  11021. "name": "get_business_repairserviceorderadminview_status0",
  11022. "event": [
  11023. {
  11024. "listen": "test",
  11025. "script": {
  11026. "id": "5b9bcdc3-b257-4aac-a3c7-728950cde1f6",
  11027. "exec": [
  11028. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  11029. "",
  11030. "if(tests[\"Status code is 200\"] ){",
  11031. " var jsonData = JSON.parse(responseBody);",
  11032. " ",
  11033. " postman.setEnvironmentVariable(\"repairservice_id01\", jsonData.results[0].id);",
  11034. " ",
  11035. "}"
  11036. ],
  11037. "type": "text/javascript"
  11038. }
  11039. }
  11040. ],
  11041. "request": {
  11042. "method": "GET",
  11043. "header": [
  11044. {
  11045. "key": "Content-Type",
  11046. "value": "application/json"
  11047. },
  11048. {
  11049. "key": "Authorization",
  11050. "value": "Rong {{shoptoken}}"
  11051. }
  11052. ],
  11053. "body": {
  11054. "mode": "raw",
  11055. "raw": ""
  11056. },
  11057. "url": {
  11058. "raw": "{{url}}/api/business/repairserviceorderadminview/?status=0&start_date={{ymd-date}}",
  11059. "host": [
  11060. "{{url}}"
  11061. ],
  11062. "path": [
  11063. "api",
  11064. "business",
  11065. "repairserviceorderadminview",
  11066. ""
  11067. ],
  11068. "query": [
  11069. {
  11070. "key": "status",
  11071. "value": "0"
  11072. },
  11073. {
  11074. "key": "start_date",
  11075. "value": "{{ymd-date}}"
  11076. }
  11077. ]
  11078. }
  11079. },
  11080. "response": []
  11081. },
  11082. {
  11083. "name": "delete_business_repairserviceorderadminview",
  11084. "event": [
  11085. {
  11086. "listen": "test",
  11087. "script": {
  11088. "type": "text/javascript",
  11089. "exec": [
  11090. "tests[\"Status code is 204\"] = responseCode.code === 204 || responseCode.code === 404;",
  11091. "",
  11092. ""
  11093. ]
  11094. }
  11095. }
  11096. ],
  11097. "request": {
  11098. "method": "DELETE",
  11099. "header": [
  11100. {
  11101. "key": "Content-Type",
  11102. "value": "application/json"
  11103. },
  11104. {
  11105. "key": "Authorization",
  11106. "value": "Rong {{shoptoken}}"
  11107. }
  11108. ],
  11109. "body": {
  11110. "mode": "raw",
  11111. "raw": "{\r\n\t\"receipt_date\": \"2018-10-08T06:04:56.400Z\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id01}},\r\n\t\"vip_id\": {{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": \"车的前门有被损坏过\",\r\n\t\"other_price\": 0,\r\n\t\"work_price\": \"{{repair_service_price01}}\",\r\n\t\"products_price\": \"{{sum}}\",\r\n\t\"r_items\": [{\r\n\t\t\"repair_service_id\": {{repair_service_id01}},\r\n\t\t\"standard_fee\": {{repair_service_price01}},\r\n\t\t\"rate\": 100,\r\n\t\t\"discounted_price\": {{repair_service_price01}},\r\n\t\t\"id\": null\r\n\t}],\r\n\t\"r_products\": [{\r\n\t\t\"car_products_id\": {{car_products_id02}},\r\n\t\t\"amount\": 1,\r\n\t\t\"rate\": 100,\r\n\t\t\"price\": {{car_products_price02}},\r\n\t\t\"discounted_price\": {{car_products_price02}}\r\n\t}, {\r\n\t\t\"car_products_id\": {{car_products_id03}},\r\n\t\t\"amount\": 1,\r\n\t\t\"rate\": 100,\r\n\t\t\"price\": {{car_products_price03}},\r\n\t\t\"discounted_price\": {{car_products_price03}}\r\n\t}],\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}"
  11112. },
  11113. "url": {
  11114. "raw": "{{url}}/api/business/repairserviceorderadminview/1230050/",
  11115. "host": [
  11116. "{{url}}"
  11117. ],
  11118. "path": [
  11119. "api",
  11120. "business",
  11121. "repairserviceorderadminview",
  11122. "1230050",
  11123. ""
  11124. ]
  11125. }
  11126. },
  11127. "response": []
  11128. },
  11129. {
  11130. "name": "get_business_repairserviceorderadminview_id_total01",
  11131. "event": [
  11132. {
  11133. "listen": "test",
  11134. "script": {
  11135. "id": "c2510d87-6487-4795-96a1-cc47807ff00a",
  11136. "exec": [
  11137. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  11138. "",
  11139. "var jsonData = JSON.parse(responseBody);",
  11140. "",
  11141. "postman.setEnvironmentVariable(\"total01\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));",
  11142. " ",
  11143. "",
  11144. "",
  11145. "",
  11146. "",
  11147. ""
  11148. ],
  11149. "type": "text/javascript"
  11150. }
  11151. }
  11152. ],
  11153. "request": {
  11154. "method": "GET",
  11155. "header": [
  11156. {
  11157. "key": "Content-Type",
  11158. "value": "application/json"
  11159. },
  11160. {
  11161. "key": "Authorization",
  11162. "value": "Rong {{shoptoken}}"
  11163. }
  11164. ],
  11165. "body": {
  11166. "mode": "raw",
  11167. "raw": ""
  11168. },
  11169. "url": {
  11170. "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id01}}/",
  11171. "host": [
  11172. "{{url}}"
  11173. ],
  11174. "path": [
  11175. "api",
  11176. "business",
  11177. "repairserviceorderadminview",
  11178. "{{repairservice_id01}}",
  11179. ""
  11180. ]
  11181. }
  11182. },
  11183. "response": []
  11184. },
  11185. {
  11186. "name": "post_business_repaircardetail",
  11187. "event": [
  11188. {
  11189. "listen": "test",
  11190. "script": {
  11191. "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1",
  11192. "exec": [
  11193. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  11194. ],
  11195. "type": "text/javascript"
  11196. }
  11197. }
  11198. ],
  11199. "request": {
  11200. "method": "POST",
  11201. "header": [
  11202. {
  11203. "key": "Content-Type",
  11204. "value": "application/json"
  11205. },
  11206. {
  11207. "key": "Authorization",
  11208. "value": "Rong {{shoptoken}}"
  11209. }
  11210. ],
  11211. "body": {
  11212. "mode": "raw",
  11213. "raw": "{\r\n\t\"id\": null,\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}"
  11214. },
  11215. "url": {
  11216. "raw": "{{url}}/api/business/repaircardetail/",
  11217. "host": [
  11218. "{{url}}"
  11219. ],
  11220. "path": [
  11221. "api",
  11222. "business",
  11223. "repaircardetail",
  11224. ""
  11225. ]
  11226. }
  11227. },
  11228. "response": []
  11229. },
  11230. {
  11231. "name": "get_business_repaircardetail_prepay01",
  11232. "event": [
  11233. {
  11234. "listen": "test",
  11235. "script": {
  11236. "id": "788e9e9e-0b50-4463-bc62-728fbaa3ddcd",
  11237. "exec": [
  11238. "",
  11239. "",
  11240. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  11241. "if(tests[\"Status code is 200\"] ){",
  11242. " var jsonData = JSON.parse(responseBody);",
  11243. " ",
  11244. " postman.setEnvironmentVariable(\"servicedetail_id01\", jsonData.id);",
  11245. " postman.setEnvironmentVariable(\"prepay_01\", jsonData.prepayments);",
  11246. " ",
  11247. "}",
  11248. "",
  11249. ""
  11250. ],
  11251. "type": "text/javascript"
  11252. }
  11253. }
  11254. ],
  11255. "request": {
  11256. "method": "GET",
  11257. "header": [
  11258. {
  11259. "key": "Content-Type",
  11260. "value": "application/json"
  11261. },
  11262. {
  11263. "key": "Authorization",
  11264. "value": "Rong {{shoptoken}}"
  11265. }
  11266. ],
  11267. "body": {
  11268. "mode": "raw",
  11269. "raw": ""
  11270. },
  11271. "url": {
  11272. "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id01}}",
  11273. "host": [
  11274. "{{url}}"
  11275. ],
  11276. "path": [
  11277. "api",
  11278. "business",
  11279. "repaircardetail",
  11280. ""
  11281. ],
  11282. "query": [
  11283. {
  11284. "key": "r_id",
  11285. "value": "{{repairservice_id01}}"
  11286. }
  11287. ]
  11288. }
  11289. },
  11290. "response": []
  11291. },
  11292. {
  11293. "name": "put_business_repaircardetail",
  11294. "event": [
  11295. {
  11296. "listen": "test",
  11297. "script": {
  11298. "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1",
  11299. "exec": [
  11300. "pm.test(\"Status code is 200\", function () {",
  11301. " pm.response.to.have.status(200);",
  11302. "});"
  11303. ],
  11304. "type": "text/javascript"
  11305. }
  11306. }
  11307. ],
  11308. "request": {
  11309. "method": "PUT",
  11310. "header": [
  11311. {
  11312. "key": "Content-Type",
  11313. "value": "application/json"
  11314. },
  11315. {
  11316. "key": "Authorization",
  11317. "value": "Rong {{shoptoken}}"
  11318. }
  11319. ],
  11320. "body": {
  11321. "mode": "raw",
  11322. "raw": "{\r\n\t\"id\": {{servicedetail_id01}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\":null,\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": {{prepay_01}},\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"pickup\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}"
  11323. },
  11324. "url": {
  11325. "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id01}}/",
  11326. "host": [
  11327. "{{url}}"
  11328. ],
  11329. "path": [
  11330. "api",
  11331. "business",
  11332. "repaircardetail",
  11333. "{{servicedetail_id01}}",
  11334. ""
  11335. ]
  11336. }
  11337. },
  11338. "response": []
  11339. },
  11340. {
  11341. "name": "get_business_repairdispatcheddetail",
  11342. "event": [
  11343. {
  11344. "listen": "test",
  11345. "script": {
  11346. "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec",
  11347. "exec": [
  11348. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  11349. "if(tests[\"Status code is 200\"] ){",
  11350. " var jsonData = JSON.parse(responseBody);",
  11351. " ",
  11352. " postman.setEnvironmentVariable(\"service_id01\", jsonData[0].id);",
  11353. "}"
  11354. ],
  11355. "type": "text/javascript"
  11356. }
  11357. }
  11358. ],
  11359. "request": {
  11360. "method": "GET",
  11361. "header": [
  11362. {
  11363. "key": "Authorization",
  11364. "value": "Rong {{shoptoken}}"
  11365. }
  11366. ],
  11367. "body": {
  11368. "mode": "raw",
  11369. "raw": ""
  11370. },
  11371. "url": {
  11372. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01}}",
  11373. "host": [
  11374. "{{url}}"
  11375. ],
  11376. "path": [
  11377. "api",
  11378. "business",
  11379. "repairdispatcheddetail",
  11380. ""
  11381. ],
  11382. "query": [
  11383. {
  11384. "key": "r_id",
  11385. "value": "{{repairservice_id01}}"
  11386. }
  11387. ]
  11388. }
  11389. },
  11390. "response": []
  11391. },
  11392. {
  11393. "name": "patch_business_repaircardetail_1",
  11394. "event": [
  11395. {
  11396. "listen": "test",
  11397. "script": {
  11398. "id": "b95712d7-e235-4845-8153-f20f16fa468f",
  11399. "exec": [
  11400. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  11401. ],
  11402. "type": "text/javascript"
  11403. }
  11404. }
  11405. ],
  11406. "request": {
  11407. "method": "PATCH",
  11408. "header": [
  11409. {
  11410. "key": "Content-Type",
  11411. "value": "application/json"
  11412. },
  11413. {
  11414. "key": "Authorization",
  11415. "value": "Rong {{shoptoken}}"
  11416. }
  11417. ],
  11418. "body": {
  11419. "mode": "raw",
  11420. "raw": "[{\r\n\t\"id\": {{service_id01}},\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]"
  11421. },
  11422. "url": {
  11423. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01}}",
  11424. "host": [
  11425. "{{url}}"
  11426. ],
  11427. "path": [
  11428. "api",
  11429. "business",
  11430. "repairdispatcheddetail",
  11431. ""
  11432. ],
  11433. "query": [
  11434. {
  11435. "key": "r_id",
  11436. "value": "{{repairservice_id01}}"
  11437. }
  11438. ]
  11439. }
  11440. },
  11441. "response": []
  11442. },
  11443. {
  11444. "name": "put_business_repaircardetail",
  11445. "event": [
  11446. {
  11447. "listen": "test",
  11448. "script": {
  11449. "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1",
  11450. "exec": [
  11451. "pm.test(\"Status code is 200\", function () {",
  11452. " pm.response.to.have.status(200);",
  11453. "});"
  11454. ],
  11455. "type": "text/javascript"
  11456. }
  11457. }
  11458. ],
  11459. "request": {
  11460. "method": "PUT",
  11461. "header": [
  11462. {
  11463. "key": "Content-Type",
  11464. "value": "application/json"
  11465. },
  11466. {
  11467. "key": "Authorization",
  11468. "value": "Rong {{shoptoken}}"
  11469. }
  11470. ],
  11471. "body": {
  11472. "mode": "raw",
  11473. "raw": "{\r\n\t\"id\": {{servicedetail_id01}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\":null,\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\":{{prepay_01}},\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"pickup\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localhost}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}"
  11474. },
  11475. "url": {
  11476. "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id01}}/",
  11477. "host": [
  11478. "{{url}}"
  11479. ],
  11480. "path": [
  11481. "api",
  11482. "business",
  11483. "repaircardetail",
  11484. "{{servicedetail_id01}}",
  11485. ""
  11486. ]
  11487. }
  11488. },
  11489. "response": []
  11490. },
  11491. {
  11492. "name": "patch_business_repaircardetail_2",
  11493. "event": [
  11494. {
  11495. "listen": "test",
  11496. "script": {
  11497. "id": "85c54901-138c-4d96-8847-96f711a0ac63",
  11498. "exec": [
  11499. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  11500. ],
  11501. "type": "text/javascript"
  11502. }
  11503. }
  11504. ],
  11505. "request": {
  11506. "method": "PATCH",
  11507. "header": [
  11508. {
  11509. "key": "Content-Type",
  11510. "value": "application/json"
  11511. },
  11512. {
  11513. "key": "Authorization",
  11514. "value": "Rong {{shoptoken}}"
  11515. }
  11516. ],
  11517. "body": {
  11518. "mode": "raw",
  11519. "raw": "[{\r\n\t\"id\": {{service_id01}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]"
  11520. },
  11521. "url": {
  11522. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01}}",
  11523. "host": [
  11524. "{{url}}"
  11525. ],
  11526. "path": [
  11527. "api",
  11528. "business",
  11529. "repairdispatcheddetail",
  11530. ""
  11531. ],
  11532. "query": [
  11533. {
  11534. "key": "r_id",
  11535. "value": "{{repairservice_id01}}"
  11536. }
  11537. ]
  11538. }
  11539. },
  11540. "response": []
  11541. },
  11542. {
  11543. "name": "post_repairsettleaccountsadminview_cash",
  11544. "event": [
  11545. {
  11546. "listen": "prerequest",
  11547. "script": {
  11548. "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98",
  11549. "exec": [
  11550. "var sum01 = JSON.parse(postman.getEnvironmentVariable(\"total01\"));",
  11551. "",
  11552. "var prepay_01 = JSON.parse(postman.getEnvironmentVariable(\"prepay_01\"));",
  11553. "",
  11554. "sum01-=prepay_01;",
  11555. "",
  11556. " postman.setEnvironmentVariable(\"sum01\",sum01);"
  11557. ],
  11558. "type": "text/javascript"
  11559. }
  11560. },
  11561. {
  11562. "listen": "test",
  11563. "script": {
  11564. "id": "39c85b02-c440-4926-8463-03b49483e3c8",
  11565. "exec": [
  11566. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  11567. ],
  11568. "type": "text/javascript"
  11569. }
  11570. }
  11571. ],
  11572. "request": {
  11573. "method": "POST",
  11574. "header": [
  11575. {
  11576. "key": "Content-Type",
  11577. "value": "application/json"
  11578. },
  11579. {
  11580. "key": "Authorization",
  11581. "value": "Rong {{shoptoken}}"
  11582. }
  11583. ],
  11584. "body": {
  11585. "mode": "raw",
  11586. "raw": "{\r\n\t\"service_order\": \"{{repairservice_id01}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": {{sum01}},\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id01}},\r\n\t\"payee\": {{agent_id01}},\r\n\t\"settles\": [],\r\n\t\"localdate\": \"{{localdate}}\"\r\n}"
  11587. },
  11588. "url": {
  11589. "raw": "{{url}}/api/business/repairsettleaccountsadminview/",
  11590. "host": [
  11591. "{{url}}"
  11592. ],
  11593. "path": [
  11594. "api",
  11595. "business",
  11596. "repairsettleaccountsadminview",
  11597. ""
  11598. ]
  11599. }
  11600. },
  11601. "response": []
  11602. },
  11603. {
  11604. "name": "post4_repairserviceorderadminview",
  11605. "event": [
  11606. {
  11607. "listen": "prerequest",
  11608. "script": {
  11609. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  11610. "exec": [
  11611. "var repair_item02_all= JSON.parse(postman.getEnvironmentVariable(\"repair_item02_all\"));\r",
  11612. "var repair_service_id02 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id02\"));\r",
  11613. "var product03 = JSON.parse(postman.getEnvironmentVariable(\"product03\"));\r",
  11614. "var product04 = JSON.parse(postman.getEnvironmentVariable(\"product04\"));\r",
  11615. "\r",
  11616. "var data04={\r",
  11617. "\t\t\"repair_service_id\": repair_service_id02,\r",
  11618. "\t\t\"standard_fee\":repair_item02_all.standard_fee,\r",
  11619. "\t\t\"rate\": repair_item02_all.rate,\r",
  11620. "\t\t\"discounted_price\": repair_item02_all.discounted_price,\r",
  11621. "\t\t\"id\": null\r",
  11622. "\t}\r",
  11623. "\r",
  11624. "var data05 ={\r",
  11625. "\t\t\"car_products_id\": product03.car_products_id,\r",
  11626. "\t\t\"amount\":2,\r",
  11627. "\t\t\"rate\": product03.rate,\r",
  11628. "\t\t\"price\": product03.price,\r",
  11629. "\t\t\"discounted_price\":product03.discounted_price\r",
  11630. " \r",
  11631. "}\r",
  11632. "var data06 ={\r",
  11633. "\t\"car_products_id\": product04.car_products_id,\r",
  11634. "\t\"amount\":1,\r",
  11635. "\t\"rate\": product04.rate,\r",
  11636. "\t\"price\": product04.price,\r",
  11637. "\t\"discounted_price\": product04.discounted_price\r",
  11638. "\t}\r",
  11639. "\tpostman.setEnvironmentVariable(\"ritems02\", JSON.stringify(data04));\r",
  11640. "\tpostman.setEnvironmentVariable(\"r_products03\", JSON.stringify(data05));\r",
  11641. " postman.setEnvironmentVariable(\"r_products04\", JSON.stringify(data06));\r",
  11642. "\r",
  11643. "\tpostman.setEnvironmentVariable(\"work_price02\", JSON.parse(data04.discounted_price));\r",
  11644. "\t\r",
  11645. "var discounted_price01= parseFloat(data05.discounted_price) * parseFloat(data05.amount);\r",
  11646. "var discounted_price02 = parseFloat(data06.discounted_price) * parseFloat(data06.amount);\r",
  11647. "var total_price = parseFloat(discounted_price01) + parseFloat(discounted_price02);\r",
  11648. " postman.setEnvironmentVariable(\"products_price02\", total_price);\r",
  11649. "\r",
  11650. "\r",
  11651. ""
  11652. ],
  11653. "type": "text/javascript"
  11654. }
  11655. },
  11656. {
  11657. "listen": "test",
  11658. "script": {
  11659. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  11660. "exec": [
  11661. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  11662. "var jsonData = JSON.parse(responseBody);",
  11663. " ",
  11664. " postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);",
  11665. " ",
  11666. "",
  11667. ""
  11668. ],
  11669. "type": "text/javascript"
  11670. }
  11671. }
  11672. ],
  11673. "request": {
  11674. "method": "POST",
  11675. "header": [
  11676. {
  11677. "key": "Content-Type",
  11678. "value": "application/json"
  11679. },
  11680. {
  11681. "key": "Authorization",
  11682. "value": "Rong {{shoptoken}}"
  11683. }
  11684. ],
  11685. "body": {
  11686. "mode": "raw",
  11687. "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id01}},\r\n\t\"vip_id\": {{vip_id01}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": null,\r\n\t\"other_price\": 100,\r\n\t\"work_price\": \"{{work_price02}}\",\r\n\t\"products_price\": \"{{products_price02}}\",\r\n\t\"r_items\": [{{ritems02}}],\r\n\t\"r_products\": [{{r_products03}}, {{r_products04}}],\r\n\t\"areashort_id\": {{areashortid01}},\r\n\t\"car_code\": \"{{car_code01}}\"\r\n}\r\n"
  11688. },
  11689. "url": {
  11690. "raw": "{{url}}/api/business/repairserviceorderadminview/",
  11691. "host": [
  11692. "{{url}}"
  11693. ],
  11694. "path": [
  11695. "api",
  11696. "business",
  11697. "repairserviceorderadminview",
  11698. ""
  11699. ]
  11700. }
  11701. },
  11702. "response": []
  11703. },
  11704. {
  11705. "name": "get5_repairserviceorderadminview",
  11706. "event": [
  11707. {
  11708. "listen": "prerequest",
  11709. "script": {
  11710. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  11711. "exec": [
  11712. ""
  11713. ],
  11714. "type": "text/javascript"
  11715. }
  11716. },
  11717. {
  11718. "listen": "test",
  11719. "script": {
  11720. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  11721. "exec": [
  11722. "",
  11723. "pm.test(\"Status code is 200\", function () {",
  11724. " pm.response.to.have.status(200);",
  11725. "});",
  11726. " ",
  11727. ""
  11728. ],
  11729. "type": "text/javascript"
  11730. }
  11731. }
  11732. ],
  11733. "request": {
  11734. "method": "GET",
  11735. "header": [
  11736. {
  11737. "key": "Content-Type",
  11738. "value": "application/json"
  11739. },
  11740. {
  11741. "key": "Authorization",
  11742. "value": "Rong {{shoptoken}}"
  11743. }
  11744. ],
  11745. "body": {
  11746. "mode": "raw",
  11747. "raw": ""
  11748. },
  11749. "url": {
  11750. "raw": "{{url}}/api/business/repairserviceorderadminview/?status=0",
  11751. "host": [
  11752. "{{url}}"
  11753. ],
  11754. "path": [
  11755. "api",
  11756. "business",
  11757. "repairserviceorderadminview",
  11758. ""
  11759. ],
  11760. "query": [
  11761. {
  11762. "key": "status",
  11763. "value": "0"
  11764. }
  11765. ]
  11766. }
  11767. },
  11768. "response": []
  11769. },
  11770. {
  11771. "name": "get6_repairserviceorderadminview_id_total02",
  11772. "event": [
  11773. {
  11774. "listen": "prerequest",
  11775. "script": {
  11776. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  11777. "exec": [
  11778. ""
  11779. ],
  11780. "type": "text/javascript"
  11781. }
  11782. },
  11783. {
  11784. "listen": "test",
  11785. "script": {
  11786. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  11787. "exec": [
  11788. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  11789. "",
  11790. "",
  11791. " var jsonData = JSON.parse(responseBody);",
  11792. " ",
  11793. " postman.setEnvironmentVariable(\"total02\",parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price) + parseFloat(jsonData.other_price) );",
  11794. " ",
  11795. ""
  11796. ],
  11797. "type": "text/javascript"
  11798. }
  11799. }
  11800. ],
  11801. "request": {
  11802. "method": "GET",
  11803. "header": [
  11804. {
  11805. "key": "Content-Type",
  11806. "value": "application/json"
  11807. },
  11808. {
  11809. "key": "Authorization",
  11810. "value": "Rong {{shoptoken}}"
  11811. }
  11812. ],
  11813. "body": {
  11814. "mode": "raw",
  11815. "raw": ""
  11816. },
  11817. "url": {
  11818. "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id02}}/",
  11819. "host": [
  11820. "{{url}}"
  11821. ],
  11822. "path": [
  11823. "api",
  11824. "business",
  11825. "repairserviceorderadminview",
  11826. "{{repairservice_id02}}",
  11827. ""
  11828. ]
  11829. }
  11830. },
  11831. "response": []
  11832. },
  11833. {
  11834. "name": "post7_repaircardetail_id",
  11835. "event": [
  11836. {
  11837. "listen": "prerequest",
  11838. "script": {
  11839. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  11840. "exec": [
  11841. ""
  11842. ],
  11843. "type": "text/javascript"
  11844. }
  11845. },
  11846. {
  11847. "listen": "test",
  11848. "script": {
  11849. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  11850. "exec": [
  11851. "",
  11852. "pm.test(\"Successful POST request\", function () {",
  11853. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  11854. "});",
  11855. "",
  11856. " // var jsonData = JSON.parse(responseBody);",
  11857. " ",
  11858. " // postman.setEnvironmentVariable(\"sumpaypre\", jsonData.prepayments);",
  11859. " "
  11860. ],
  11861. "type": "text/javascript"
  11862. }
  11863. }
  11864. ],
  11865. "request": {
  11866. "method": "POST",
  11867. "header": [
  11868. {
  11869. "key": "Content-Type",
  11870. "value": "application/json"
  11871. },
  11872. {
  11873. "key": "Authorization",
  11874. "value": "Rong {{shoptoken}}"
  11875. }
  11876. ],
  11877. "body": {
  11878. "mode": "raw",
  11879. "raw": "{\r\n\t\"id\": null,\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"remaining_oil\": 60,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 40000,\r\n\t\"payee\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n\t\"service_order\": \"{{repairservice_id02}}\"\r\n}"
  11880. },
  11881. "url": {
  11882. "raw": "{{url}}/api/business/repaircardetail/",
  11883. "host": [
  11884. "{{url}}"
  11885. ],
  11886. "path": [
  11887. "api",
  11888. "business",
  11889. "repaircardetail",
  11890. ""
  11891. ]
  11892. }
  11893. },
  11894. "response": []
  11895. },
  11896. {
  11897. "name": "get8_repaircardetail_id_prepay02",
  11898. "event": [
  11899. {
  11900. "listen": "prerequest",
  11901. "script": {
  11902. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  11903. "exec": [
  11904. ""
  11905. ],
  11906. "type": "text/javascript"
  11907. }
  11908. },
  11909. {
  11910. "listen": "test",
  11911. "script": {
  11912. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  11913. "exec": [
  11914. "",
  11915. "pm.test(\"Successful POST request\", function () {",
  11916. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  11917. "});",
  11918. "",
  11919. " var jsonData = JSON.parse(responseBody);",
  11920. " ",
  11921. " postman.setEnvironmentVariable(\"prepay_02\", jsonData.prepayments);",
  11922. " ",
  11923. " postman.setEnvironmentVariable(\"servicedetail_id02\", jsonData.id);",
  11924. " "
  11925. ],
  11926. "type": "text/javascript"
  11927. }
  11928. }
  11929. ],
  11930. "request": {
  11931. "method": "GET",
  11932. "header": [
  11933. {
  11934. "key": "Content-Type",
  11935. "value": "application/json"
  11936. },
  11937. {
  11938. "key": "Authorization",
  11939. "value": "Rong {{shoptoken}}"
  11940. }
  11941. ],
  11942. "body": {
  11943. "mode": "raw",
  11944. "raw": ""
  11945. },
  11946. "url": {
  11947. "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id02}}",
  11948. "host": [
  11949. "{{url}}"
  11950. ],
  11951. "path": [
  11952. "api",
  11953. "business",
  11954. "repaircardetail",
  11955. ""
  11956. ],
  11957. "query": [
  11958. {
  11959. "key": "r_id",
  11960. "value": "{{repairservice_id02}}"
  11961. }
  11962. ]
  11963. }
  11964. },
  11965. "response": []
  11966. },
  11967. {
  11968. "name": "get9_repairdispatcheddetail",
  11969. "event": [
  11970. {
  11971. "listen": "prerequest",
  11972. "script": {
  11973. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  11974. "exec": [
  11975. ""
  11976. ],
  11977. "type": "text/javascript"
  11978. }
  11979. },
  11980. {
  11981. "listen": "test",
  11982. "script": {
  11983. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  11984. "exec": [
  11985. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  11986. "",
  11987. "",
  11988. " var jsonData = JSON.parse(responseBody);",
  11989. " ",
  11990. " postman.setEnvironmentVariable(\"service_id02\", jsonData[0].id);",
  11991. " ",
  11992. ""
  11993. ],
  11994. "type": "text/javascript"
  11995. }
  11996. }
  11997. ],
  11998. "request": {
  11999. "method": "GET",
  12000. "header": [
  12001. {
  12002. "key": "Content-Type",
  12003. "value": "application/json"
  12004. },
  12005. {
  12006. "key": "Authorization",
  12007. "value": "Rong {{shoptoken}}"
  12008. }
  12009. ],
  12010. "body": {
  12011. "mode": "raw",
  12012. "raw": ""
  12013. },
  12014. "url": {
  12015. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id02}}",
  12016. "host": [
  12017. "{{url}}"
  12018. ],
  12019. "path": [
  12020. "api",
  12021. "business",
  12022. "repairdispatcheddetail",
  12023. ""
  12024. ],
  12025. "query": [
  12026. {
  12027. "key": "r_id",
  12028. "value": "{{repairservice_id02}}"
  12029. }
  12030. ]
  12031. }
  12032. },
  12033. "response": []
  12034. },
  12035. {
  12036. "name": "patch10_repairserviceorderadminview_rid",
  12037. "event": [
  12038. {
  12039. "listen": "prerequest",
  12040. "script": {
  12041. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  12042. "exec": [
  12043. ""
  12044. ],
  12045. "type": "text/javascript"
  12046. }
  12047. },
  12048. {
  12049. "listen": "test",
  12050. "script": {
  12051. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  12052. "exec": [
  12053. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  12054. "",
  12055. ""
  12056. ],
  12057. "type": "text/javascript"
  12058. }
  12059. }
  12060. ],
  12061. "request": {
  12062. "method": "PATCH",
  12063. "header": [
  12064. {
  12065. "key": "Content-Type",
  12066. "value": "application/json"
  12067. },
  12068. {
  12069. "key": "Authorization",
  12070. "value": "Rong {{shoptoken}}"
  12071. }
  12072. ],
  12073. "body": {
  12074. "mode": "raw",
  12075. "raw": "[{\r\n\t\"id\": {{service_id02}},\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]"
  12076. },
  12077. "url": {
  12078. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id02}}",
  12079. "host": [
  12080. "{{url}}"
  12081. ],
  12082. "path": [
  12083. "api",
  12084. "business",
  12085. "repairdispatcheddetail",
  12086. ""
  12087. ],
  12088. "query": [
  12089. {
  12090. "key": "r_id",
  12091. "value": "{{repairservice_id02}}"
  12092. }
  12093. ]
  12094. }
  12095. },
  12096. "response": []
  12097. },
  12098. {
  12099. "name": "patch11_repairserviceorderadminview_rid",
  12100. "event": [
  12101. {
  12102. "listen": "prerequest",
  12103. "script": {
  12104. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  12105. "exec": [
  12106. ""
  12107. ],
  12108. "type": "text/javascript"
  12109. }
  12110. },
  12111. {
  12112. "listen": "test",
  12113. "script": {
  12114. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  12115. "exec": [
  12116. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  12117. "",
  12118. ""
  12119. ],
  12120. "type": "text/javascript"
  12121. }
  12122. }
  12123. ],
  12124. "request": {
  12125. "method": "PATCH",
  12126. "header": [
  12127. {
  12128. "key": "Content-Type",
  12129. "value": "application/json"
  12130. },
  12131. {
  12132. "key": "Authorization",
  12133. "value": "Rong {{shoptoken}}"
  12134. }
  12135. ],
  12136. "body": {
  12137. "mode": "raw",
  12138. "raw": "[{\r\n\t\"id\": {{service_id02}},\r\n\t\"agent_id\":{{agent_id02}},\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\":\"{{ymd-date}}\" ,\r\n\t\"status\": 0,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]"
  12139. },
  12140. "url": {
  12141. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id02}}",
  12142. "host": [
  12143. "{{url}}"
  12144. ],
  12145. "path": [
  12146. "api",
  12147. "business",
  12148. "repairdispatcheddetail",
  12149. ""
  12150. ],
  12151. "query": [
  12152. {
  12153. "key": "r_id",
  12154. "value": "{{repairservice_id02}}"
  12155. }
  12156. ]
  12157. }
  12158. },
  12159. "response": []
  12160. },
  12161. {
  12162. "name": "post12_repairsettleaccountsadminview_0card",
  12163. "event": [
  12164. {
  12165. "listen": "prerequest",
  12166. "script": {
  12167. "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98",
  12168. "exec": [
  12169. "var sum02 = JSON.parse(postman.getEnvironmentVariable(\"total02\"));",
  12170. "",
  12171. "var prepay02 = JSON.parse(postman.getEnvironmentVariable(\"prepay_02\"));",
  12172. "",
  12173. "sum02-=prepay02;",
  12174. "",
  12175. " postman.setEnvironmentVariable(\"sum02\",sum02);"
  12176. ],
  12177. "type": "text/javascript"
  12178. }
  12179. },
  12180. {
  12181. "listen": "test",
  12182. "script": {
  12183. "id": "39c85b02-c440-4926-8463-03b49483e3c8",
  12184. "exec": [
  12185. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  12186. ],
  12187. "type": "text/javascript"
  12188. }
  12189. }
  12190. ],
  12191. "request": {
  12192. "method": "POST",
  12193. "header": [
  12194. {
  12195. "key": "Content-Type",
  12196. "value": "application/json"
  12197. },
  12198. {
  12199. "key": "Authorization",
  12200. "value": "Rong {{shoptoken}}"
  12201. }
  12202. ],
  12203. "body": {
  12204. "mode": "raw",
  12205. "raw": "{\r\n\t\"service_order\": \"{{repairservice_id02}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": \"0.00\",\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id02}},\r\n\t\"payee\": {{agent_id02}},\r\n\t\"settles\": [{\r\n\t\t\"style\": 0,\r\n\t\t\"style_id\": {{valuecar_id01}},\r\n\t\t\"arrival_amount\": {{sum02}}\r\n\t}\r\n\t\t\r\n\t\t],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"receipt_date_str\":\"{{localdate}}\"\r\n}"
  12206. },
  12207. "url": {
  12208. "raw": "{{url}}/api/business/repairsettleaccountsadminview/",
  12209. "host": [
  12210. "{{url}}"
  12211. ],
  12212. "path": [
  12213. "api",
  12214. "business",
  12215. "repairsettleaccountsadminview",
  12216. ""
  12217. ]
  12218. }
  12219. },
  12220. "response": []
  12221. }
  12222. ]
  12223. },
  12224. {
  12225. "name": "invocing",
  12226. "item": [
  12227. {
  12228. "name": "post_purchaseorder",
  12229. "event": [
  12230. {
  12231. "listen": "test",
  12232. "script": {
  12233. "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f",
  12234. "exec": [
  12235. "pm.test(\"Status code is 200\", function () {",
  12236. " pm.response.to.have.status(200);",
  12237. "});"
  12238. ],
  12239. "type": "text/javascript"
  12240. }
  12241. },
  12242. {
  12243. "listen": "prerequest",
  12244. "script": {
  12245. "id": "53535fef-9d2b-4829-a3dd-48ee31a6426e",
  12246. "exec": [
  12247. "var car_products_id02 = JSON.parse(postman.getEnvironmentVariable(\"car_products_id02\"));",
  12248. "var car_products_price02 = JSON.parse(postman.getEnvironmentVariable(\"car_products_price02\"));",
  12249. "var car_products_id03 = JSON.parse(postman.getEnvironmentVariable(\"car_products_id03\"));",
  12250. "var car_products_price03 = JSON.parse(postman.getEnvironmentVariable(\"car_products_price03\"));",
  12251. "var car_products_id04 = JSON.parse(postman.getEnvironmentVariable(\"car_products_id04\"));",
  12252. "var car_products_price04 = JSON.parse(postman.getEnvironmentVariable(\"car_products_price04\"));",
  12253. "var storehouse_id01 = JSON.parse(postman.getEnvironmentVariable(\"storehouse_id01\"));",
  12254. "",
  12255. "",
  12256. "data20={",
  12257. " ",
  12258. " \t\"car_products_id\":car_products_id02,",
  12259. "\t\t\"amount\":3 ,",
  12260. "\t\t\"price\": car_products_price02,",
  12261. "\t\t\"storehouse_id\": storehouse_id01,",
  12262. " \t\"shop_id\":null",
  12263. "}",
  12264. "data21={",
  12265. " ",
  12266. " \t\"car_products_id\":car_products_id03,",
  12267. "\t\t\"amount\":2 ,",
  12268. "\t\t\"price\": car_products_price03,",
  12269. "\t\t\"storehouse_id\": storehouse_id01,",
  12270. " \t\"shop_id\":null",
  12271. "}",
  12272. "data22={",
  12273. " ",
  12274. " \t\"car_products_id\":car_products_id04,",
  12275. "\t\t\"amount\":2 ,",
  12276. "\t\t\"price\": car_products_price04,",
  12277. "\t\t\"storehouse_id\": storehouse_id01,",
  12278. " \t\"shop_id\":null",
  12279. "}",
  12280. " postman.setEnvironmentVariable(\"items_product01\", JSON.stringify(data20));",
  12281. " postman.setEnvironmentVariable(\"items_product02\", JSON.stringify(data21));",
  12282. " postman.setEnvironmentVariable(\"items_product03\", JSON.stringify(data22));",
  12283. " ",
  12284. "",
  12285. "var productprices = (parseFloat(data20.price) * parseFloat(data20.amount) + parseFloat(data21.price) *parseFloat(data21.amount)+ parseFloat(data22.price) *parseFloat(data22.amount)).toFixed(2);",
  12286. " postman.setEnvironmentVariable(\"productprices\",productprices);"
  12287. ],
  12288. "type": "text/javascript"
  12289. }
  12290. }
  12291. ],
  12292. "request": {
  12293. "method": "POST",
  12294. "header": [
  12295. {
  12296. "key": "Authorization",
  12297. "value": "Rong {{shoptoken}}",
  12298. "type": "text"
  12299. },
  12300. {
  12301. "key": "Content-Type",
  12302. "name": "Content-Type",
  12303. "value": "application/json",
  12304. "type": "text"
  12305. }
  12306. ],
  12307. "body": {
  12308. "mode": "raw",
  12309. "raw": "{\r\n\t\"style\": 0,\r\n\t\"supplier_id\": {{supplier_id01}},\r\n\t\"invoice_date\": \"{{ymd-date}}\",\r\n\t\"ready_amount\": {{productprices}},\r\n\t\"account_id\": {{account_id01}},\r\n\t\"purchase_amount\":{{productprices}},\r\n\t\"note\": null,\r\n\t\"amount\":0,\r\n\t \"month\":\"11\",\r\n\t\"buyer_id\": {{agent_id01}},\r\n\t\"items\": [{{items_product01}},{{items_product02}},{{items_product03}}]\r\n}"
  12310. },
  12311. "url": {
  12312. "raw": "{{url}}/api/invoicing/purchaseorder/",
  12313. "host": [
  12314. "{{url}}"
  12315. ],
  12316. "path": [
  12317. "api",
  12318. "invoicing",
  12319. "purchaseorder",
  12320. ""
  12321. ]
  12322. }
  12323. },
  12324. "response": []
  12325. },
  12326. {
  12327. "name": "get_purchaseorderitem",
  12328. "event": [
  12329. {
  12330. "listen": "test",
  12331. "script": {
  12332. "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f",
  12333. "exec": [
  12334. "pm.test(\"Status code is 200\", function () {",
  12335. " pm.response.to.have.status(200);",
  12336. "});",
  12337. "",
  12338. "var jsonData = JSON.parse(responseBody);",
  12339. " ",
  12340. " postman.setEnvironmentVariable(\"invo_purchase_item01\", jsonData.results[0].id);",
  12341. " ",
  12342. " postman.setEnvironmentVariable(\"invo_purchase_price01\", jsonData.results[0].price);",
  12343. " postman.setEnvironmentVariable(\"invo_purchase_carproductid01\", jsonData.results[0].car_products);",
  12344. " "
  12345. ],
  12346. "type": "text/javascript"
  12347. }
  12348. }
  12349. ],
  12350. "protocolProfileBehavior": {
  12351. "disableBodyPruning": true
  12352. },
  12353. "request": {
  12354. "method": "GET",
  12355. "header": [
  12356. {
  12357. "key": "Authorization",
  12358. "type": "text",
  12359. "value": "Rong {{shoptoken}}"
  12360. },
  12361. {
  12362. "key": "Content-Type",
  12363. "name": "Content-Type",
  12364. "type": "text",
  12365. "value": "application/json"
  12366. }
  12367. ],
  12368. "body": {
  12369. "mode": "raw",
  12370. "raw": ""
  12371. },
  12372. "url": {
  12373. "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2018-11-01&end_date={{ymd-date}}",
  12374. "host": [
  12375. "{{url}}"
  12376. ],
  12377. "path": [
  12378. "api",
  12379. "invoicing",
  12380. "purchaseorderitem",
  12381. ""
  12382. ],
  12383. "query": [
  12384. {
  12385. "key": "start_date",
  12386. "value": "2018-11-01"
  12387. },
  12388. {
  12389. "key": "end_date",
  12390. "value": "{{ymd-date}}"
  12391. }
  12392. ]
  12393. }
  12394. },
  12395. "response": []
  12396. },
  12397. {
  12398. "name": "post_purchasebackorder",
  12399. "event": [
  12400. {
  12401. "listen": "test",
  12402. "script": {
  12403. "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f",
  12404. "exec": [
  12405. "pm.test(\"Status code is 200\", function () {",
  12406. " pm.response.to.have.status(200);",
  12407. "});"
  12408. ],
  12409. "type": "text/javascript"
  12410. }
  12411. },
  12412. {
  12413. "listen": "prerequest",
  12414. "script": {
  12415. "id": "630ce591-9342-45ea-b6cc-fbe78ef274fa",
  12416. "exec": [
  12417. "var price01 = JSON.parse(postman.getEnvironmentVariable(\"invo_purchase_price01\"));",
  12418. "",
  12419. "var invo_amount = (parseFloat(price01)*1).toFixed(2);",
  12420. "",
  12421. "pm.environment.set(\"invo_amount\", invo_amount);"
  12422. ],
  12423. "type": "text/javascript"
  12424. }
  12425. }
  12426. ],
  12427. "request": {
  12428. "method": "POST",
  12429. "header": [
  12430. {
  12431. "key": "Authorization",
  12432. "value": "Rong {{shoptoken}}",
  12433. "type": "text"
  12434. },
  12435. {
  12436. "key": "Content-Type",
  12437. "name": "Content-Type",
  12438. "value": "application/json",
  12439. "type": "text"
  12440. }
  12441. ],
  12442. "body": {
  12443. "mode": "raw",
  12444. "raw": "{\r\n\t\"supplier_id\": {{supplier_id01}},\r\n\t\"buyer_id\": {{agent_id01}},\r\n\t\"style\": 0,\r\n\t\"invoice_date\": \"{{ymd-date}}\",\r\n\t\"account_id\": {{account_id01}},\r\n\t\"amount\": {{invo_amount}}, \r\n\t\"note\": null,\r\n\t\"items\": [{\r\n\t\t\"purchase_order_item_id\": {{invo_purchase_item01}},\r\n\t\t\"amount\": 1,\r\n\t\t\"price\": \"{{invo_purchase_price01}}\",\r\n\t\t\"car_products_id\": {{invo_purchase_carproductid01}},\r\n\t\t\"storehouse_id\": \"{{storehouse_id01}}\"\r\n\t}]\r\n}"
  12445. },
  12446. "url": {
  12447. "raw": "{{url}}/api/invoicing/purchasebackorder/",
  12448. "host": [
  12449. "{{url}}"
  12450. ],
  12451. "path": [
  12452. "api",
  12453. "invoicing",
  12454. "purchasebackorder",
  12455. ""
  12456. ]
  12457. }
  12458. },
  12459. "response": []
  12460. },
  12461. {
  12462. "name": "get_purchasebackorder",
  12463. "event": [
  12464. {
  12465. "listen": "test",
  12466. "script": {
  12467. "id": "459ff1cc-2dc9-4f2b-996e-dc55cc337b0f",
  12468. "exec": [
  12469. "pm.test(\"Status code is 200\", function () {",
  12470. " pm.response.to.have.status(200);",
  12471. "});"
  12472. ],
  12473. "type": "text/javascript"
  12474. }
  12475. }
  12476. ],
  12477. "protocolProfileBehavior": {
  12478. "disableBodyPruning": true
  12479. },
  12480. "request": {
  12481. "method": "GET",
  12482. "header": [
  12483. {
  12484. "key": "Authorization",
  12485. "value": "Rong {{shoptoken}}",
  12486. "type": "text"
  12487. },
  12488. {
  12489. "key": "Content-Type",
  12490. "name": "Content-Type",
  12491. "value": "application/json",
  12492. "type": "text"
  12493. }
  12494. ],
  12495. "body": {
  12496. "mode": "raw",
  12497. "raw": ""
  12498. },
  12499. "url": {
  12500. "raw": "{{url}}/api/invoicing/purchasebackorder/",
  12501. "host": [
  12502. "{{url}}"
  12503. ],
  12504. "path": [
  12505. "api",
  12506. "invoicing",
  12507. "purchasebackorder",
  12508. ""
  12509. ]
  12510. }
  12511. },
  12512. "response": []
  12513. },
  12514. {
  12515. "name": "get_inventorydetail",
  12516. "event": [
  12517. {
  12518. "listen": "test",
  12519. "script": {
  12520. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12521. "exec": [
  12522. "pm.test(\"Status code is 200\", function () {",
  12523. " pm.response.to.have.status(200);",
  12524. "});",
  12525. "",
  12526. "var jsonData = JSON.parse(responseBody);",
  12527. " ",
  12528. " postman.setEnvironmentVariable(\"sales_order_item01\", jsonData.results[2].car_product.id);",
  12529. " ",
  12530. " postman.setEnvironmentVariable(\"sales_order_price01\", jsonData.results[2].car_product.price);",
  12531. " ",
  12532. " postman.setEnvironmentVariable(\"sales_order_storehouse01\", jsonData.results[2].storehouse);",
  12533. " ",
  12534. " postman.setEnvironmentVariable(\"sales_order_item02\", jsonData.results[3].car_product.id);",
  12535. " ",
  12536. " postman.setEnvironmentVariable(\"sales_order_price02\", jsonData.results[3].car_product.price);",
  12537. " ",
  12538. " postman.setEnvironmentVariable(\"sales_order_storehouse02\", jsonData.results[3].storehouse);"
  12539. ],
  12540. "type": "text/javascript"
  12541. }
  12542. }
  12543. ],
  12544. "request": {
  12545. "method": "GET",
  12546. "header": [
  12547. {
  12548. "key": "Authorization",
  12549. "value": "Rong {{shoptoken}}",
  12550. "type": "text"
  12551. }
  12552. ],
  12553. "body": {
  12554. "mode": "raw",
  12555. "raw": ""
  12556. },
  12557. "url": {
  12558. "raw": "{{url}}/api/invoicing/inventorydetail/",
  12559. "host": [
  12560. "{{url}}"
  12561. ],
  12562. "path": [
  12563. "api",
  12564. "invoicing",
  12565. "inventorydetail",
  12566. ""
  12567. ]
  12568. }
  12569. },
  12570. "response": []
  12571. },
  12572. {
  12573. "name": "get_salesordersettle",
  12574. "event": [
  12575. {
  12576. "listen": "test",
  12577. "script": {
  12578. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12579. "exec": [
  12580. "pm.test(\"Status code is 200\", function () {",
  12581. " pm.response.to.have.status(200);",
  12582. "});"
  12583. ],
  12584. "type": "text/javascript"
  12585. }
  12586. }
  12587. ],
  12588. "protocolProfileBehavior": {
  12589. "disableBodyPruning": true
  12590. },
  12591. "request": {
  12592. "method": "GET",
  12593. "header": [
  12594. {
  12595. "key": "Authorization",
  12596. "value": "Rong {{shoptoken}}",
  12597. "type": "text"
  12598. },
  12599. {
  12600. "key": "Content-Type",
  12601. "name": "Content-Type",
  12602. "value": "application/json",
  12603. "type": "text"
  12604. }
  12605. ],
  12606. "body": {
  12607. "mode": "raw",
  12608. "raw": ""
  12609. },
  12610. "url": {
  12611. "raw": "{{url}}/api/invoicing/salesordersettle/?vip_id={{vip_id01}}",
  12612. "host": [
  12613. "{{url}}"
  12614. ],
  12615. "path": [
  12616. "api",
  12617. "invoicing",
  12618. "salesordersettle",
  12619. ""
  12620. ],
  12621. "query": [
  12622. {
  12623. "key": "vip_id",
  12624. "value": "{{vip_id01}}"
  12625. }
  12626. ]
  12627. }
  12628. },
  12629. "response": []
  12630. },
  12631. {
  12632. "name": "post_salesorder_valuecard1",
  12633. "event": [
  12634. {
  12635. "listen": "test",
  12636. "script": {
  12637. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12638. "exec": [
  12639. "pm.test(\"Successful POST request\", function () {",
  12640. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  12641. "});"
  12642. ],
  12643. "type": "text/javascript"
  12644. }
  12645. },
  12646. {
  12647. "listen": "prerequest",
  12648. "script": {
  12649. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  12650. "exec": [
  12651. "var price01 = JSON.parse(postman.getEnvironmentVariable(\"sales_order_price01\"));",
  12652. "",
  12653. "var sales_amount = (parseFloat(price01)*1).toFixed(2);",
  12654. "",
  12655. "pm.environment.set(\"sales_amount01\", sales_amount);"
  12656. ],
  12657. "type": "text/javascript"
  12658. }
  12659. }
  12660. ],
  12661. "request": {
  12662. "method": "POST",
  12663. "header": [
  12664. {
  12665. "key": "Authorization",
  12666. "type": "text",
  12667. "value": "Rong {{shoptoken}}"
  12668. },
  12669. {
  12670. "key": "Content-Type",
  12671. "name": "Content-Type",
  12672. "type": "text",
  12673. "value": "application/json"
  12674. }
  12675. ],
  12676. "body": {
  12677. "mode": "raw",
  12678. "raw": "{\n \"localdate\": \"{{date}}\",\n \"invoice_date\": \"{{ymd-date}}\",\n \"order_number\": \"XH0001\",\n \"vipmember_info\": {{vip_id01}},\n \"car\": null,\n \"corp_vip\": null,\n \"salesman\": {{agent_id01}},\n \"sales_amount\": \"{{sales_amount01}}\",\n \"account\": null,\n \"style\": 0,\n \"description\": null,\n \"sales_order_item\": [\n {\n \"id\": {{sales_order_item01}},\n \"num\": 1,\n \"price\": {{sales_order_price01}},\n \"rate\": 100,\n \"storehouse_id\": \"{{storehouse_id01}}\"\n }\n ],\n \"settle_details\": [\n {\n \"style\": 1,\n \"style_id\": {{valuecar_id01}},\n \"arrival_amount\": {{sales_amount01}}\n }\n ]\n}"
  12679. },
  12680. "url": {
  12681. "raw": "{{url}}/api/invoicing/salesorder/",
  12682. "host": [
  12683. "{{url}}"
  12684. ],
  12685. "path": [
  12686. "api",
  12687. "invoicing",
  12688. "salesorder",
  12689. ""
  12690. ]
  12691. }
  12692. },
  12693. "response": []
  12694. },
  12695. {
  12696. "name": "post_salesorder_cash",
  12697. "event": [
  12698. {
  12699. "listen": "test",
  12700. "script": {
  12701. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12702. "exec": [
  12703. "pm.test(\"Successful POST request\", function () {",
  12704. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  12705. "});"
  12706. ],
  12707. "type": "text/javascript"
  12708. }
  12709. },
  12710. {
  12711. "listen": "prerequest",
  12712. "script": {
  12713. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  12714. "exec": [
  12715. "var price02 = JSON.parse(postman.getEnvironmentVariable(\"sales_order_price02\"));",
  12716. "",
  12717. "var sales_amount = (parseFloat(price02)*1).toFixed(2);",
  12718. "",
  12719. "pm.environment.set(\"sales_amount02\", sales_amount);"
  12720. ],
  12721. "type": "text/javascript"
  12722. }
  12723. }
  12724. ],
  12725. "request": {
  12726. "method": "POST",
  12727. "header": [
  12728. {
  12729. "key": "Authorization",
  12730. "type": "text",
  12731. "value": "Rong {{shoptoken}}"
  12732. },
  12733. {
  12734. "key": "Content-Type",
  12735. "name": "Content-Type",
  12736. "type": "text",
  12737. "value": "application/json"
  12738. }
  12739. ],
  12740. "body": {
  12741. "mode": "raw",
  12742. "raw": "{\n \"localdate\": \"{{localdate}}\",\n \"invoice_date\": \"{{ymd-date}}\",\n \"order_number\": \"XH0002\",\n \"vipmember_info\": {{vip_id01}},\n \"car\": {{car_id01}},\n \"corp_vip\": null,\n \"salesman\": {{agent_id01}},\n \"sales_amount\": \"{{sales_amount02}}\",\n \"account\": {{account_id01}},\n \"style\": 0,\n \"corp_vip_style\":null,\n \"carcategory__name\":\"{{carcategory_name01}}\",\n \"description\": null,\n \"month\":\"02\",\n \"sales_order_item\": [\n {\n \"id\": {{sales_order_item02}},\n \"num\": 1,\n \"price\": {{sales_order_price02}},\n \"rate\": 100,\n \"storehouse_id\": \"{{storehouse_id01}}\"\n }\n ],\n \"settle_details\": [\n \t{\n \t\t\"style\":0,\n \t\t\"arrival_amount\":{{sales_amount02}}\n \t}],\n \"car_name\":\"{{vip_carname01}}\"\n}"
  12743. },
  12744. "url": {
  12745. "raw": "{{url}}/api/invoicing/salesorder/",
  12746. "host": [
  12747. "{{url}}"
  12748. ],
  12749. "path": [
  12750. "api",
  12751. "invoicing",
  12752. "salesorder",
  12753. ""
  12754. ]
  12755. }
  12756. },
  12757. "response": []
  12758. },
  12759. {
  12760. "name": "get_salesorder",
  12761. "event": [
  12762. {
  12763. "listen": "test",
  12764. "script": {
  12765. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12766. "exec": [
  12767. "pm.test(\"Status code is 200\", function () {",
  12768. " pm.response.to.have.status(200);",
  12769. "});"
  12770. ],
  12771. "type": "text/javascript"
  12772. }
  12773. },
  12774. {
  12775. "listen": "prerequest",
  12776. "script": {
  12777. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  12778. "exec": [
  12779. ""
  12780. ],
  12781. "type": "text/javascript"
  12782. }
  12783. }
  12784. ],
  12785. "protocolProfileBehavior": {
  12786. "disableBodyPruning": true
  12787. },
  12788. "request": {
  12789. "method": "GET",
  12790. "header": [
  12791. {
  12792. "key": "Authorization",
  12793. "type": "text",
  12794. "value": "Rong {{shoptoken}}"
  12795. }
  12796. ],
  12797. "body": {
  12798. "mode": "raw",
  12799. "raw": ""
  12800. },
  12801. "url": {
  12802. "raw": "{{url}}/api/invoicing/salesorder/",
  12803. "host": [
  12804. "{{url}}"
  12805. ],
  12806. "path": [
  12807. "api",
  12808. "invoicing",
  12809. "salesorder",
  12810. ""
  12811. ]
  12812. }
  12813. },
  12814. "response": []
  12815. },
  12816. {
  12817. "name": "get_carpurchasestatistics_first",
  12818. "event": [
  12819. {
  12820. "listen": "test",
  12821. "script": {
  12822. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12823. "exec": [
  12824. "pm.test(\"Status code is 200\", function () {",
  12825. " pm.response.to.have.status(200);",
  12826. "});"
  12827. ],
  12828. "type": "text/javascript"
  12829. }
  12830. },
  12831. {
  12832. "listen": "prerequest",
  12833. "script": {
  12834. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  12835. "exec": [
  12836. ""
  12837. ],
  12838. "type": "text/javascript"
  12839. }
  12840. }
  12841. ],
  12842. "protocolProfileBehavior": {
  12843. "disableBodyPruning": true
  12844. },
  12845. "request": {
  12846. "method": "GET",
  12847. "header": [
  12848. {
  12849. "key": "Authorization",
  12850. "type": "text",
  12851. "value": "Rong {{shoptoken}}"
  12852. }
  12853. ],
  12854. "body": {
  12855. "mode": "raw",
  12856. "raw": ""
  12857. },
  12858. "url": {
  12859. "raw": "{{url}}/api/invoicing/carpurchasestatistics/?invoice_date=2018-11-19&type=first",
  12860. "host": [
  12861. "{{url}}"
  12862. ],
  12863. "path": [
  12864. "api",
  12865. "invoicing",
  12866. "carpurchasestatistics",
  12867. ""
  12868. ],
  12869. "query": [
  12870. {
  12871. "key": "invoice_date",
  12872. "value": "2018-11-19"
  12873. },
  12874. {
  12875. "key": "type",
  12876. "value": "first"
  12877. }
  12878. ]
  12879. }
  12880. },
  12881. "response": []
  12882. },
  12883. {
  12884. "name": "get_carpurchasestatistics_second",
  12885. "event": [
  12886. {
  12887. "listen": "test",
  12888. "script": {
  12889. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12890. "exec": [
  12891. "",
  12892. "pm.test(\"Successful POST request\", function () {",
  12893. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  12894. "});"
  12895. ],
  12896. "type": "text/javascript"
  12897. }
  12898. },
  12899. {
  12900. "listen": "prerequest",
  12901. "script": {
  12902. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  12903. "exec": [
  12904. ""
  12905. ],
  12906. "type": "text/javascript"
  12907. }
  12908. }
  12909. ],
  12910. "protocolProfileBehavior": {
  12911. "disableBodyPruning": true
  12912. },
  12913. "request": {
  12914. "method": "GET",
  12915. "header": [
  12916. {
  12917. "key": "Authorization",
  12918. "type": "text",
  12919. "value": "Rong {{shoptoken}}"
  12920. }
  12921. ],
  12922. "body": {
  12923. "mode": "raw",
  12924. "raw": ""
  12925. },
  12926. "url": {
  12927. "raw": "{{url}}/api/invoicing/carpurchasestatistics/?invoice_date=2018-11-19&type=second",
  12928. "host": [
  12929. "{{url}}"
  12930. ],
  12931. "path": [
  12932. "api",
  12933. "invoicing",
  12934. "carpurchasestatistics",
  12935. ""
  12936. ],
  12937. "query": [
  12938. {
  12939. "key": "invoice_date",
  12940. "value": "2018-11-19"
  12941. },
  12942. {
  12943. "key": "type",
  12944. "value": "second"
  12945. }
  12946. ]
  12947. }
  12948. },
  12949. "response": []
  12950. },
  12951. {
  12952. "name": "get_carpurchasestatistics_third",
  12953. "event": [
  12954. {
  12955. "listen": "test",
  12956. "script": {
  12957. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  12958. "exec": [
  12959. "",
  12960. "pm.test(\"Successful POST request\", function () {",
  12961. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  12962. "});"
  12963. ],
  12964. "type": "text/javascript"
  12965. }
  12966. },
  12967. {
  12968. "listen": "prerequest",
  12969. "script": {
  12970. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  12971. "exec": [
  12972. ""
  12973. ],
  12974. "type": "text/javascript"
  12975. }
  12976. }
  12977. ],
  12978. "protocolProfileBehavior": {
  12979. "disableBodyPruning": true
  12980. },
  12981. "request": {
  12982. "method": "GET",
  12983. "header": [
  12984. {
  12985. "key": "Authorization",
  12986. "type": "text",
  12987. "value": "Rong {{shoptoken}}"
  12988. }
  12989. ],
  12990. "body": {
  12991. "mode": "raw",
  12992. "raw": ""
  12993. },
  12994. "url": {
  12995. "raw": "{{url}}/api/invoicing/carpurchasestatistics/?invoice_date=2018-11-19&type=third",
  12996. "host": [
  12997. "{{url}}"
  12998. ],
  12999. "path": [
  13000. "api",
  13001. "invoicing",
  13002. "carpurchasestatistics",
  13003. ""
  13004. ],
  13005. "query": [
  13006. {
  13007. "key": "invoice_date",
  13008. "value": "2018-11-19"
  13009. },
  13010. {
  13011. "key": "type",
  13012. "value": "third"
  13013. }
  13014. ]
  13015. }
  13016. },
  13017. "response": []
  13018. },
  13019. {
  13020. "name": "get_repairserviceorderproductsitemview",
  13021. "event": [
  13022. {
  13023. "listen": "test",
  13024. "script": {
  13025. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  13026. "exec": [
  13027. "pm.test(\"Status code is 200\", function () {",
  13028. " pm.response.to.have.status(200);",
  13029. "});",
  13030. "",
  13031. "var jsonData = JSON.parse(responseBody);",
  13032. " ",
  13033. " postman.setEnvironmentVariable(\"recipient_id01\", jsonData.results[0].id);",
  13034. " postman.setEnvironmentVariable(\"recipient_productid01\", jsonData.results[0].car_products);",
  13035. " ",
  13036. " postman.setEnvironmentVariable(\"recipient_amount01\", jsonData.results[0].amount);"
  13037. ],
  13038. "type": "text/javascript"
  13039. }
  13040. },
  13041. {
  13042. "listen": "prerequest",
  13043. "script": {
  13044. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  13045. "exec": [
  13046. ""
  13047. ],
  13048. "type": "text/javascript"
  13049. }
  13050. }
  13051. ],
  13052. "protocolProfileBehavior": {
  13053. "disableBodyPruning": true
  13054. },
  13055. "request": {
  13056. "method": "GET",
  13057. "header": [
  13058. {
  13059. "key": "Authorization",
  13060. "type": "text",
  13061. "value": "Rong {{shoptoken}}"
  13062. }
  13063. ],
  13064. "body": {
  13065. "mode": "raw",
  13066. "raw": ""
  13067. },
  13068. "url": {
  13069. "raw": "{{url}}/api/business/repairserviceorderproductsitemview/?start_date=2019-01-01&end_date={{ymd-date}}",
  13070. "host": [
  13071. "{{url}}"
  13072. ],
  13073. "path": [
  13074. "api",
  13075. "business",
  13076. "repairserviceorderproductsitemview",
  13077. ""
  13078. ],
  13079. "query": [
  13080. {
  13081. "key": "start_date",
  13082. "value": "2019-01-01"
  13083. },
  13084. {
  13085. "key": "end_date",
  13086. "value": "{{ymd-date}}"
  13087. }
  13088. ]
  13089. }
  13090. },
  13091. "response": []
  13092. },
  13093. {
  13094. "name": "post_receivematerialsorder",
  13095. "event": [
  13096. {
  13097. "listen": "test",
  13098. "script": {
  13099. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  13100. "exec": [
  13101. "pm.test(\"Status code is 200\", function () {",
  13102. " pm.response.to.have.status(200);",
  13103. "});"
  13104. ],
  13105. "type": "text/javascript"
  13106. }
  13107. },
  13108. {
  13109. "listen": "prerequest",
  13110. "script": {
  13111. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  13112. "exec": [
  13113. ""
  13114. ],
  13115. "type": "text/javascript"
  13116. }
  13117. }
  13118. ],
  13119. "request": {
  13120. "method": "POST",
  13121. "header": [
  13122. {
  13123. "key": "Authorization",
  13124. "type": "text",
  13125. "value": "Rong {{shoptoken}}"
  13126. },
  13127. {
  13128. "key": "Content-Type",
  13129. "name": "Content-Type",
  13130. "value": "application/json",
  13131. "type": "text"
  13132. }
  13133. ],
  13134. "body": {
  13135. "mode": "raw",
  13136. "raw": "{\r\n\t\"invoice_date\": \"{{ymd-date}}\",\r\n\t\"note\": null,\r\n\t\"repair_service_order\": null,\r\n\t\"recipient_id\": {{recipient_id01}},\r\n\t\"repair_service_order_id\": null,\r\n\t\"items\": [{\r\n\t\t\"car_products_id\": {{recipient_productid01}},\r\n\t\t\"amount\": {{recipient_amount01}}\r\n\t}]\r\n}"
  13137. },
  13138. "url": {
  13139. "raw": "{{url}}/api/invoicing/receivematerialsorder/",
  13140. "host": [
  13141. "{{url}}"
  13142. ],
  13143. "path": [
  13144. "api",
  13145. "invoicing",
  13146. "receivematerialsorder",
  13147. ""
  13148. ]
  13149. }
  13150. },
  13151. "response": []
  13152. },
  13153. {
  13154. "name": "get_receivematerialsorderitem",
  13155. "event": [
  13156. {
  13157. "listen": "test",
  13158. "script": {
  13159. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  13160. "exec": [
  13161. "pm.test(\"Status code is 200\", function () {",
  13162. " pm.response.to.have.status(200);",
  13163. "});"
  13164. ],
  13165. "type": "text/javascript"
  13166. }
  13167. },
  13168. {
  13169. "listen": "prerequest",
  13170. "script": {
  13171. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  13172. "exec": [
  13173. ""
  13174. ],
  13175. "type": "text/javascript"
  13176. }
  13177. }
  13178. ],
  13179. "protocolProfileBehavior": {
  13180. "disableBodyPruning": true
  13181. },
  13182. "request": {
  13183. "method": "GET",
  13184. "header": [
  13185. {
  13186. "key": "Authorization",
  13187. "type": "text",
  13188. "value": "Rong {{shoptoken}}"
  13189. },
  13190. {
  13191. "key": "Content-Type",
  13192. "name": "Content-Type",
  13193. "value": "application/json",
  13194. "type": "text"
  13195. }
  13196. ],
  13197. "body": {
  13198. "mode": "raw",
  13199. "raw": ""
  13200. },
  13201. "url": {
  13202. "raw": "{{url}}/api/invoicing/receivematerialsorderitem/?start_date=2018-11-01&end_date=2018-11-19",
  13203. "host": [
  13204. "{{url}}"
  13205. ],
  13206. "path": [
  13207. "api",
  13208. "invoicing",
  13209. "receivematerialsorderitem",
  13210. ""
  13211. ],
  13212. "query": [
  13213. {
  13214. "key": "start_date",
  13215. "value": "2018-11-01"
  13216. },
  13217. {
  13218. "key": "end_date",
  13219. "value": "2018-11-19"
  13220. }
  13221. ]
  13222. }
  13223. },
  13224. "response": []
  13225. },
  13226. {
  13227. "name": "get_salesreport_first",
  13228. "event": [
  13229. {
  13230. "listen": "test",
  13231. "script": {
  13232. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  13233. "exec": [
  13234. "pm.test(\"Status code is 200\", function () {",
  13235. " pm.response.to.have.status(200);",
  13236. "});"
  13237. ],
  13238. "type": "text/javascript"
  13239. }
  13240. },
  13241. {
  13242. "listen": "prerequest",
  13243. "script": {
  13244. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  13245. "exec": [
  13246. ""
  13247. ],
  13248. "type": "text/javascript"
  13249. }
  13250. }
  13251. ],
  13252. "protocolProfileBehavior": {
  13253. "disableBodyPruning": true
  13254. },
  13255. "request": {
  13256. "method": "GET",
  13257. "header": [
  13258. {
  13259. "key": "Authorization",
  13260. "type": "text",
  13261. "value": "Rong {{shoptoken}}"
  13262. },
  13263. {
  13264. "key": "Content-Type",
  13265. "name": "Content-Type",
  13266. "value": "application/json",
  13267. "type": "text"
  13268. }
  13269. ],
  13270. "body": {
  13271. "mode": "raw",
  13272. "raw": ""
  13273. },
  13274. "url": {
  13275. "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2018-11-1&end_date=2018-11-30",
  13276. "host": [
  13277. "{{url}}"
  13278. ],
  13279. "path": [
  13280. "api",
  13281. "invoicing",
  13282. "salesreport",
  13283. ""
  13284. ],
  13285. "query": [
  13286. {
  13287. "key": "type",
  13288. "value": "first"
  13289. },
  13290. {
  13291. "key": "begin_date",
  13292. "value": "2018-11-1"
  13293. },
  13294. {
  13295. "key": "end_date",
  13296. "value": "2018-11-30"
  13297. }
  13298. ]
  13299. }
  13300. },
  13301. "response": []
  13302. },
  13303. {
  13304. "name": "get_salesreport_second",
  13305. "event": [
  13306. {
  13307. "listen": "test",
  13308. "script": {
  13309. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  13310. "exec": [
  13311. "pm.test(\"Status code is 200\", function () {",
  13312. " pm.response.to.have.status(200);",
  13313. "});"
  13314. ],
  13315. "type": "text/javascript"
  13316. }
  13317. },
  13318. {
  13319. "listen": "prerequest",
  13320. "script": {
  13321. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  13322. "exec": [
  13323. ""
  13324. ],
  13325. "type": "text/javascript"
  13326. }
  13327. }
  13328. ],
  13329. "protocolProfileBehavior": {
  13330. "disableBodyPruning": true
  13331. },
  13332. "request": {
  13333. "method": "GET",
  13334. "header": [
  13335. {
  13336. "key": "Authorization",
  13337. "type": "text",
  13338. "value": "Rong {{shoptoken}}"
  13339. },
  13340. {
  13341. "key": "Content-Type",
  13342. "name": "Content-Type",
  13343. "value": "application/json",
  13344. "type": "text"
  13345. }
  13346. ],
  13347. "body": {
  13348. "mode": "raw",
  13349. "raw": ""
  13350. },
  13351. "url": {
  13352. "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2018-11-1&end_date=2018-11-30",
  13353. "host": [
  13354. "{{url}}"
  13355. ],
  13356. "path": [
  13357. "api",
  13358. "invoicing",
  13359. "salesreport",
  13360. ""
  13361. ],
  13362. "query": [
  13363. {
  13364. "key": "type",
  13365. "value": "first"
  13366. },
  13367. {
  13368. "key": "begin_date",
  13369. "value": "2018-11-1"
  13370. },
  13371. {
  13372. "key": "end_date",
  13373. "value": "2018-11-30"
  13374. }
  13375. ]
  13376. }
  13377. },
  13378. "response": []
  13379. },
  13380. {
  13381. "name": "get_salesreport_third",
  13382. "event": [
  13383. {
  13384. "listen": "test",
  13385. "script": {
  13386. "id": "1a03fee1-26da-4e2b-98ef-89fadbf23378",
  13387. "exec": [
  13388. "pm.test(\"Status code is 200\", function () {",
  13389. " pm.response.to.have.status(200);",
  13390. "});"
  13391. ],
  13392. "type": "text/javascript"
  13393. }
  13394. },
  13395. {
  13396. "listen": "prerequest",
  13397. "script": {
  13398. "id": "0309dc6c-99d9-4c13-a5f0-b399b056dd50",
  13399. "exec": [
  13400. ""
  13401. ],
  13402. "type": "text/javascript"
  13403. }
  13404. }
  13405. ],
  13406. "protocolProfileBehavior": {
  13407. "disableBodyPruning": true
  13408. },
  13409. "request": {
  13410. "method": "GET",
  13411. "header": [
  13412. {
  13413. "key": "Authorization",
  13414. "type": "text",
  13415. "value": "Rong {{shoptoken}}"
  13416. },
  13417. {
  13418. "key": "Content-Type",
  13419. "name": "Content-Type",
  13420. "value": "application/json",
  13421. "type": "text"
  13422. }
  13423. ],
  13424. "body": {
  13425. "mode": "raw",
  13426. "raw": ""
  13427. },
  13428. "url": {
  13429. "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2018-11-1&end_date=2018-11-30",
  13430. "host": [
  13431. "{{url}}"
  13432. ],
  13433. "path": [
  13434. "api",
  13435. "invoicing",
  13436. "salesreport",
  13437. ""
  13438. ],
  13439. "query": [
  13440. {
  13441. "key": "type",
  13442. "value": "first"
  13443. },
  13444. {
  13445. "key": "begin_date",
  13446. "value": "2018-11-1"
  13447. },
  13448. {
  13449. "key": "end_date",
  13450. "value": "2018-11-30"
  13451. }
  13452. ]
  13453. }
  13454. },
  13455. "response": []
  13456. }
  13457. ]
  13458. },
  13459. {
  13460. "name": "report",
  13461. "item": [
  13462. {
  13463. "name": "get_businessreport_daily",
  13464. "event": [
  13465. {
  13466. "listen": "test",
  13467. "script": {
  13468. "id": "22237023-0555-47ed-891b-25b4a9f44785",
  13469. "exec": [
  13470. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  13471. ],
  13472. "type": "text/javascript"
  13473. }
  13474. }
  13475. ],
  13476. "request": {
  13477. "method": "GET",
  13478. "header": [
  13479. {
  13480. "key": "Authorization",
  13481. "value": "Rong {{shoptoken}}"
  13482. }
  13483. ],
  13484. "body": {
  13485. "mode": "raw",
  13486. "raw": ""
  13487. },
  13488. "url": {
  13489. "raw": "{{url}}/api/business/businessreport/?day=11&year=2018&month=11",
  13490. "host": [
  13491. "{{url}}"
  13492. ],
  13493. "path": [
  13494. "api",
  13495. "business",
  13496. "businessreport",
  13497. ""
  13498. ],
  13499. "query": [
  13500. {
  13501. "key": "day",
  13502. "value": "11"
  13503. },
  13504. {
  13505. "key": "year",
  13506. "value": "2018"
  13507. },
  13508. {
  13509. "key": "month",
  13510. "value": "11"
  13511. }
  13512. ]
  13513. }
  13514. },
  13515. "response": []
  13516. },
  13517. {
  13518. "name": "get_businessreport_month",
  13519. "event": [
  13520. {
  13521. "listen": "test",
  13522. "script": {
  13523. "id": "6bdbe4b7-547d-4b81-9671-57b04aab9ce9",
  13524. "exec": [
  13525. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  13526. ],
  13527. "type": "text/javascript"
  13528. }
  13529. }
  13530. ],
  13531. "request": {
  13532. "method": "GET",
  13533. "header": [
  13534. {
  13535. "key": "Authorization",
  13536. "value": "Rong {{shoptoken}}"
  13537. }
  13538. ],
  13539. "body": {
  13540. "mode": "raw",
  13541. "raw": ""
  13542. },
  13543. "url": {
  13544. "raw": "{{url}}/api/business/businessreport/?year=2018&month=11",
  13545. "host": [
  13546. "{{url}}"
  13547. ],
  13548. "path": [
  13549. "api",
  13550. "business",
  13551. "businessreport",
  13552. ""
  13553. ],
  13554. "query": [
  13555. {
  13556. "key": "year",
  13557. "value": "2018"
  13558. },
  13559. {
  13560. "key": "month",
  13561. "value": "11"
  13562. }
  13563. ]
  13564. }
  13565. },
  13566. "response": []
  13567. },
  13568. {
  13569. "name": "get_revenuereportview_daily",
  13570. "event": [
  13571. {
  13572. "listen": "test",
  13573. "script": {
  13574. "type": "text/javascript",
  13575. "exec": [
  13576. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  13577. ]
  13578. }
  13579. }
  13580. ],
  13581. "request": {
  13582. "method": "GET",
  13583. "header": [
  13584. {
  13585. "key": "Authorization",
  13586. "value": "Rong {{shoptoken}}"
  13587. }
  13588. ],
  13589. "body": {
  13590. "mode": "raw",
  13591. "raw": ""
  13592. },
  13593. "url": {
  13594. "raw": "{{url}}/api/business/revenuereportview/?day=11&year=2018&month=10",
  13595. "host": [
  13596. "{{url}}"
  13597. ],
  13598. "path": [
  13599. "api",
  13600. "business",
  13601. "revenuereportview",
  13602. ""
  13603. ],
  13604. "query": [
  13605. {
  13606. "key": "day",
  13607. "value": "11"
  13608. },
  13609. {
  13610. "key": "year",
  13611. "value": "2018"
  13612. },
  13613. {
  13614. "key": "month",
  13615. "value": "10"
  13616. }
  13617. ]
  13618. }
  13619. },
  13620. "response": []
  13621. },
  13622. {
  13623. "name": "get_revenuereportview_month",
  13624. "event": [
  13625. {
  13626. "listen": "test",
  13627. "script": {
  13628. "type": "text/javascript",
  13629. "exec": [
  13630. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  13631. ]
  13632. }
  13633. }
  13634. ],
  13635. "request": {
  13636. "method": "GET",
  13637. "header": [
  13638. {
  13639. "key": "Authorization",
  13640. "value": "Rong {{shoptoken}}"
  13641. }
  13642. ],
  13643. "body": {
  13644. "mode": "raw",
  13645. "raw": ""
  13646. },
  13647. "url": {
  13648. "raw": "{{url}}/api/business/businessreport/?year=2018&month=10",
  13649. "host": [
  13650. "{{url}}"
  13651. ],
  13652. "path": [
  13653. "api",
  13654. "business",
  13655. "businessreport",
  13656. ""
  13657. ],
  13658. "query": [
  13659. {
  13660. "key": "year",
  13661. "value": "2018"
  13662. },
  13663. {
  13664. "key": "month",
  13665. "value": "10"
  13666. }
  13667. ]
  13668. }
  13669. },
  13670. "response": []
  13671. }
  13672. ]
  13673. },
  13674. {
  13675. "name": "booking service",
  13676. "item": [
  13677. {
  13678. "name": "get_wx_usercar",
  13679. "event": [
  13680. {
  13681. "listen": "test",
  13682. "script": {
  13683. "id": "0fb4791b-a120-485b-b34b-099d36ecdfcb",
  13684. "exec": [
  13685. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  13686. "",
  13687. "postman.setEnvironmentVariable(\"variable_key\", \"variable_value\");"
  13688. ],
  13689. "type": "text/javascript"
  13690. }
  13691. }
  13692. ],
  13693. "request": {
  13694. "method": "GET",
  13695. "header": [],
  13696. "body": {
  13697. "mode": "raw",
  13698. "raw": ""
  13699. },
  13700. "url": {
  13701. "raw": "{{url}}/api/wx/usercar/?uid={{wx_uid}}&shop={{shop_id}}",
  13702. "host": [
  13703. "{{url}}"
  13704. ],
  13705. "path": [
  13706. "api",
  13707. "wx",
  13708. "usercar",
  13709. ""
  13710. ],
  13711. "query": [
  13712. {
  13713. "key": "uid",
  13714. "value": "{{wx_uid}}"
  13715. },
  13716. {
  13717. "key": "shop",
  13718. "value": "{{shop_id}}"
  13719. }
  13720. ]
  13721. }
  13722. },
  13723. "response": []
  13724. },
  13725. {
  13726. "name": "post_wx_booking_0",
  13727. "event": [
  13728. {
  13729. "listen": "test",
  13730. "script": {
  13731. "id": "85f16ae6-c356-4b25-ab15-c970c2be0684",
  13732. "exec": [
  13733. "",
  13734. "",
  13735. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  13736. ],
  13737. "type": "text/javascript"
  13738. }
  13739. }
  13740. ],
  13741. "request": {
  13742. "method": "POST",
  13743. "header": [
  13744. {
  13745. "key": "Content-Type",
  13746. "value": "application/json"
  13747. }
  13748. ],
  13749. "body": {
  13750. "mode": "raw",
  13751. "raw": "{\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"project_category\": 0,\r\n\t\"project_id\": {{beauty_services_id01}}, \r\n\t\"car\": {{car_id01}},\r\n\t\"start_time\": \"{{start_datetime}}\",\r\n\t\"end_time\": \"{{end_datetime}}\",\r\n\t\"vip\": {{vip_id01}}\r\n}\r\n"
  13752. },
  13753. "url": {
  13754. "raw": "{{url}}/api/wx/booking/",
  13755. "host": [
  13756. "{{url}}"
  13757. ],
  13758. "path": [
  13759. "api",
  13760. "wx",
  13761. "booking",
  13762. ""
  13763. ]
  13764. }
  13765. },
  13766. "response": []
  13767. },
  13768. {
  13769. "name": "post_wx_booking_1",
  13770. "event": [
  13771. {
  13772. "listen": "test",
  13773. "script": {
  13774. "id": "352f1f0d-1813-4760-b20a-212df180b5bd",
  13775. "exec": [
  13776. "",
  13777. "",
  13778. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  13779. ],
  13780. "type": "text/javascript"
  13781. }
  13782. }
  13783. ],
  13784. "request": {
  13785. "method": "POST",
  13786. "header": [
  13787. {
  13788. "key": "Content-Type",
  13789. "value": "application/json"
  13790. }
  13791. ],
  13792. "body": {
  13793. "mode": "raw",
  13794. "raw": "{\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"project_category\": 1,\r\n\t\"project_id\": {{repair_service_id02}},\r\n\t\"car\": {{car_id01}},\r\n\t\"start_time\": \"{{start_datetime}}\",\r\n\t\"end_time\": \"{{end_datetime}}\",\r\n\t\"vip\": {{vip_id01}}\r\n}"
  13795. },
  13796. "url": {
  13797. "raw": "{{url}}/api/wx/booking/",
  13798. "host": [
  13799. "{{url}}"
  13800. ],
  13801. "path": [
  13802. "api",
  13803. "wx",
  13804. "booking",
  13805. ""
  13806. ]
  13807. }
  13808. },
  13809. "response": []
  13810. },
  13811. {
  13812. "name": "post_wx_booking_2",
  13813. "event": [
  13814. {
  13815. "listen": "test",
  13816. "script": {
  13817. "id": "352f1f0d-1813-4760-b20a-212df180b5bd",
  13818. "exec": [
  13819. "",
  13820. "",
  13821. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  13822. ],
  13823. "type": "text/javascript"
  13824. }
  13825. }
  13826. ],
  13827. "request": {
  13828. "method": "POST",
  13829. "header": [
  13830. {
  13831. "key": "Content-Type",
  13832. "value": "application/json"
  13833. }
  13834. ],
  13835. "body": {
  13836. "mode": "raw",
  13837. "raw": "{\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"project_category\": 0,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"car\": {{car_id01}},\r\n\t\"start_time\": \"{{start_datetime}}\",\r\n\t\"end_time\": \"{{end_datetime}}\",\r\n\t\"vip\": {{vip_id01}}\r\n}"
  13838. },
  13839. "url": {
  13840. "raw": "{{url}}/api/wx/booking/",
  13841. "host": [
  13842. "{{url}}"
  13843. ],
  13844. "path": [
  13845. "api",
  13846. "wx",
  13847. "booking",
  13848. ""
  13849. ]
  13850. }
  13851. },
  13852. "response": []
  13853. },
  13854. {
  13855. "name": "get_wx_booking",
  13856. "event": [
  13857. {
  13858. "listen": "test",
  13859. "script": {
  13860. "id": "352f1f0d-1813-4760-b20a-212df180b5bd",
  13861. "exec": [
  13862. "pm.test(\"Status code is 200\", function () {",
  13863. " pm.response.to.have.status(200);",
  13864. "});"
  13865. ],
  13866. "type": "text/javascript"
  13867. }
  13868. }
  13869. ],
  13870. "protocolProfileBehavior": {
  13871. "disableBodyPruning": true
  13872. },
  13873. "request": {
  13874. "method": "GET",
  13875. "header": [
  13876. {
  13877. "key": "Content-Type",
  13878. "value": "application/json"
  13879. }
  13880. ],
  13881. "body": {
  13882. "mode": "raw",
  13883. "raw": ""
  13884. },
  13885. "url": {
  13886. "raw": "{{url}}/api/wx/booking/?uid={{wx_uid}}&shop_id={{shop_id}}",
  13887. "host": [
  13888. "{{url}}"
  13889. ],
  13890. "path": [
  13891. "api",
  13892. "wx",
  13893. "booking",
  13894. ""
  13895. ],
  13896. "query": [
  13897. {
  13898. "key": "uid",
  13899. "value": "{{wx_uid}}"
  13900. },
  13901. {
  13902. "key": "shop_id",
  13903. "value": "{{shop_id}}"
  13904. }
  13905. ]
  13906. }
  13907. },
  13908. "response": []
  13909. },
  13910. {
  13911. "name": "get_vipmember_vipmemberappointment_all",
  13912. "event": [
  13913. {
  13914. "listen": "test",
  13915. "script": {
  13916. "id": "3591f847-7577-4fc3-86c6-d76f2f8614c7",
  13917. "exec": [
  13918. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  13919. "// if (tests[\"Status code is 200\"]) {",
  13920. "// var jsonData = JSON.parse(responseBody);",
  13921. "",
  13922. "// postman.setEnvironmentVariable(\"appoint_id01\", jsonData.results[0].id);",
  13923. " ",
  13924. "// }"
  13925. ],
  13926. "type": "text/javascript"
  13927. }
  13928. }
  13929. ],
  13930. "request": {
  13931. "method": "GET",
  13932. "header": [
  13933. {
  13934. "key": "Content-Type",
  13935. "value": "application/json"
  13936. },
  13937. {
  13938. "key": "Authorization",
  13939. "value": "Rong {{shoptoken}}"
  13940. }
  13941. ],
  13942. "body": {
  13943. "mode": "raw",
  13944. "raw": ""
  13945. },
  13946. "url": {
  13947. "raw": "{{url}}/api/vipmember/vipmemberappointment/?",
  13948. "host": [
  13949. "{{url}}"
  13950. ],
  13951. "path": [
  13952. "api",
  13953. "vipmember",
  13954. "vipmemberappointment",
  13955. ""
  13956. ],
  13957. "query": [
  13958. {
  13959. "key": "shop_id",
  13960. "value": "{{shop_id}}",
  13961. "disabled": true
  13962. }
  13963. ]
  13964. }
  13965. },
  13966. "response": []
  13967. },
  13968. {
  13969. "name": "get_vipmember_vipmemberappointment_state0",
  13970. "event": [
  13971. {
  13972. "listen": "test",
  13973. "script": {
  13974. "id": "b82ac8d2-c943-4fe9-8a41-bcdcedf7df5d",
  13975. "exec": [
  13976. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  13977. "if (tests[\"Status code is 200\"]) {",
  13978. " var jsonData = JSON.parse(responseBody);",
  13979. "",
  13980. " postman.setEnvironmentVariable(\"appoint_id01\", jsonData.results[0].id);",
  13981. " ",
  13982. " postman.setEnvironmentVariable(\"appoint_id02\", jsonData.results[1].id);",
  13983. " postman.setEnvironmentVariable(\"appoint_id03\", jsonData.results[2].id);",
  13984. " ",
  13985. "}"
  13986. ],
  13987. "type": "text/javascript"
  13988. }
  13989. }
  13990. ],
  13991. "request": {
  13992. "method": "GET",
  13993. "header": [
  13994. {
  13995. "key": "Content-Type",
  13996. "value": "application/json"
  13997. },
  13998. {
  13999. "key": "Authorization",
  14000. "value": "Rong {{shoptoken}}"
  14001. }
  14002. ],
  14003. "body": {
  14004. "mode": "raw",
  14005. "raw": ""
  14006. },
  14007. "url": {
  14008. "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=0",
  14009. "host": [
  14010. "{{url}}"
  14011. ],
  14012. "path": [
  14013. "api",
  14014. "vipmember",
  14015. "vipmemberappointment",
  14016. ""
  14017. ],
  14018. "query": [
  14019. {
  14020. "key": "state",
  14021. "value": "0"
  14022. }
  14023. ]
  14024. }
  14025. },
  14026. "response": []
  14027. },
  14028. {
  14029. "name": "get_vipmember_vipmemberappointment_id1",
  14030. "event": [
  14031. {
  14032. "listen": "test",
  14033. "script": {
  14034. "id": "00b682a1-5779-45c1-8ced-d96f3ebf7439",
  14035. "exec": [
  14036. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14037. "if (tests[\"Status code is 200\"]) {",
  14038. " var jsonData = JSON.parse(responseBody);",
  14039. "",
  14040. " ",
  14041. " postman.setEnvironmentVariable(\"wxappoint_pjname01\", jsonData.project_name);",
  14042. " postman.setEnvironmentVariable(\"wxappoint_startm01\", jsonData.start_time);",
  14043. " postman.setEnvironmentVariable(\"wxappoint_endtm01\", jsonData.end_time);",
  14044. " postman.setEnvironmentVariable(\"wxappoint_pjid01\", jsonData.project_id);",
  14045. " postman.setEnvironmentVariable(\"wxappoint_pjcategory01\", jsonData.project_category);",
  14046. " ",
  14047. " ",
  14048. "}"
  14049. ],
  14050. "type": "text/javascript"
  14051. }
  14052. }
  14053. ],
  14054. "request": {
  14055. "method": "GET",
  14056. "header": [
  14057. {
  14058. "key": "Content-Type",
  14059. "value": "application/json"
  14060. },
  14061. {
  14062. "key": "Authorization",
  14063. "value": "Rong {{shoptoken}}"
  14064. }
  14065. ],
  14066. "body": {
  14067. "mode": "raw",
  14068. "raw": ""
  14069. },
  14070. "url": {
  14071. "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id01}}/",
  14072. "host": [
  14073. "{{url}}"
  14074. ],
  14075. "path": [
  14076. "api",
  14077. "vipmember",
  14078. "vipmemberappointment",
  14079. "{{appoint_id01}}",
  14080. ""
  14081. ]
  14082. }
  14083. },
  14084. "response": []
  14085. },
  14086. {
  14087. "name": "get_vipmember_vipmemberappointment_id2",
  14088. "event": [
  14089. {
  14090. "listen": "test",
  14091. "script": {
  14092. "id": "00b682a1-5779-45c1-8ced-d96f3ebf7439",
  14093. "exec": [
  14094. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14095. "if (tests[\"Status code is 200\"]) {",
  14096. " var jsonData = JSON.parse(responseBody);",
  14097. "",
  14098. " ",
  14099. " postman.setEnvironmentVariable(\"wxappoint_pjname02\", jsonData.project_name);",
  14100. " postman.setEnvironmentVariable(\"wxappoint_startm02\", jsonData.start_time);",
  14101. " postman.setEnvironmentVariable(\"wxappoint_endtm02\", jsonData.end_time);",
  14102. " postman.setEnvironmentVariable(\"wxappoint_pjid02\", jsonData.project_id);",
  14103. " postman.setEnvironmentVariable(\"wxappoint_pjcategory02\", jsonData.project_category);",
  14104. " ",
  14105. " ",
  14106. "}"
  14107. ],
  14108. "type": "text/javascript"
  14109. }
  14110. }
  14111. ],
  14112. "request": {
  14113. "method": "GET",
  14114. "header": [
  14115. {
  14116. "key": "Content-Type",
  14117. "value": "application/json"
  14118. },
  14119. {
  14120. "key": "Authorization",
  14121. "value": "Rong {{shoptoken}}"
  14122. }
  14123. ],
  14124. "body": {
  14125. "mode": "raw",
  14126. "raw": ""
  14127. },
  14128. "url": {
  14129. "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id02}}/",
  14130. "host": [
  14131. "{{url}}"
  14132. ],
  14133. "path": [
  14134. "api",
  14135. "vipmember",
  14136. "vipmemberappointment",
  14137. "{{appoint_id02}}",
  14138. ""
  14139. ]
  14140. }
  14141. },
  14142. "response": []
  14143. },
  14144. {
  14145. "name": "get_vipmember_vipmemberappointment_id3",
  14146. "event": [
  14147. {
  14148. "listen": "test",
  14149. "script": {
  14150. "id": "00b682a1-5779-45c1-8ced-d96f3ebf7439",
  14151. "exec": [
  14152. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14153. "if (tests[\"Status code is 200\"]) {",
  14154. " var jsonData = JSON.parse(responseBody);",
  14155. "",
  14156. " ",
  14157. " postman.setEnvironmentVariable(\"wxappoint_pjname03\", jsonData.project_name);",
  14158. " postman.setEnvironmentVariable(\"wxappoint_startm03\", jsonData.start_time);",
  14159. " postman.setEnvironmentVariable(\"wxappoint_endtm03\", jsonData.end_time);",
  14160. " postman.setEnvironmentVariable(\"wxappoint_pjid03\", jsonData.project_id);",
  14161. " postman.setEnvironmentVariable(\"wxappoint_pjcategory03\", jsonData.project_category);",
  14162. " ",
  14163. " ",
  14164. "}"
  14165. ],
  14166. "type": "text/javascript"
  14167. }
  14168. }
  14169. ],
  14170. "request": {
  14171. "method": "GET",
  14172. "header": [
  14173. {
  14174. "key": "Content-Type",
  14175. "value": "application/json"
  14176. },
  14177. {
  14178. "key": "Authorization",
  14179. "value": "Rong {{shoptoken}}"
  14180. }
  14181. ],
  14182. "body": {
  14183. "mode": "raw",
  14184. "raw": ""
  14185. },
  14186. "url": {
  14187. "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id03}}/",
  14188. "host": [
  14189. "{{url}}"
  14190. ],
  14191. "path": [
  14192. "api",
  14193. "vipmember",
  14194. "vipmemberappointment",
  14195. "{{appoint_id03}}",
  14196. ""
  14197. ]
  14198. }
  14199. },
  14200. "response": []
  14201. },
  14202. {
  14203. "name": "put_vipmember_vipmemberappointment_id1",
  14204. "event": [
  14205. {
  14206. "listen": "test",
  14207. "script": {
  14208. "id": "3a608cee-22c6-4457-b843-86d28979d496",
  14209. "exec": [
  14210. "",
  14211. "// if (tests[\"Status code is 200\"]) {",
  14212. "// var jsonData = JSON.parse(responseBody);",
  14213. "",
  14214. "// postman.setEnvironmentVariable(\"wxappoint_id01\", jsonData.results[0].id);",
  14215. " ",
  14216. "// }",
  14217. "",
  14218. "",
  14219. "",
  14220. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  14221. ],
  14222. "type": "text/javascript"
  14223. }
  14224. }
  14225. ],
  14226. "request": {
  14227. "method": "PUT",
  14228. "header": [
  14229. {
  14230. "key": "Content-Type",
  14231. "value": "application/json"
  14232. },
  14233. {
  14234. "key": "Authorization",
  14235. "value": "Rong {{shoptoken}}"
  14236. }
  14237. ],
  14238. "body": {
  14239. "mode": "raw",
  14240. "raw": "{\r\n\t\"id\": {{appoint_id01}},\r\n\t\"project_name\": \"{{wxappoint_pjname01}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_phone\": {{vip_phone01}},\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"appointment_time\": \"{{diff_datetime}}\",\r\n\t\"code_no\": \"{{car_code01}}\",\r\n\t\"carcategory_name\": \"{{vip_carname01}}\",\r\n\t\"rem\": null,\r\n\t\"reply\": \"感谢您对本店的大力支持!\",\r\n\t\"state\": 1,\r\n\t\"end_time\": \"{{wxappoint_endtm01}}\",\r\n\t\"start_time\": \"{{wxappoint_startm01}}\",\r\n\t\"project_category\":{{wxappoint_pjcategory01}},\r\n\t\"project_id\": {{wxappoint_pjid01}},\r\n\t\"vip\": {{vip_id01}}\r\n}"
  14241. },
  14242. "url": {
  14243. "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id01}}/",
  14244. "host": [
  14245. "{{url}}"
  14246. ],
  14247. "path": [
  14248. "api",
  14249. "vipmember",
  14250. "vipmemberappointment",
  14251. "{{appoint_id01}}",
  14252. ""
  14253. ]
  14254. }
  14255. },
  14256. "response": []
  14257. },
  14258. {
  14259. "name": "put_vipmember_vipmemberappointment_id2",
  14260. "event": [
  14261. {
  14262. "listen": "test",
  14263. "script": {
  14264. "id": "3a608cee-22c6-4457-b843-86d28979d496",
  14265. "exec": [
  14266. "",
  14267. "// if (tests[\"Status code is 200\"]) {",
  14268. "// var jsonData = JSON.parse(responseBody);",
  14269. "",
  14270. "// postman.setEnvironmentVariable(\"wxappoint_id01\", jsonData.results[0].id);",
  14271. " ",
  14272. "// }",
  14273. "",
  14274. "",
  14275. "",
  14276. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  14277. ],
  14278. "type": "text/javascript"
  14279. }
  14280. }
  14281. ],
  14282. "request": {
  14283. "method": "PUT",
  14284. "header": [
  14285. {
  14286. "key": "Content-Type",
  14287. "value": "application/json"
  14288. },
  14289. {
  14290. "key": "Authorization",
  14291. "value": "Rong {{shoptoken}}"
  14292. }
  14293. ],
  14294. "body": {
  14295. "mode": "raw",
  14296. "raw": "{\r\n\t\"id\": {{appoint_id02}},\r\n\t\"project_name\": \"{{wxappoint_pjname02}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_phone\": {{vip_phone01}},\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"appointment_time\": \"{{diff_datetime}}\",\r\n\t\"code_no\": \"{{car_code01}}\",\r\n\t\"carcategory_name\": \"{{vip_carname01}}\",\r\n\t\"rem\": null,\r\n\t\"reply\": \"\",\r\n\t\"state\": 1,\r\n\t\"end_time\": \"{{wxappoint_endtm02}}\",\r\n\t\"start_time\": \"{{wxappoint_startm02}}\",\r\n\t\"project_category\":{{wxappoint_pjcategory02}},\r\n\t\"project_id\": {{wxappoint_pjid02}},\r\n\t\"vip\": {{vip_id01}}\r\n}"
  14297. },
  14298. "url": {
  14299. "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id02}}/",
  14300. "host": [
  14301. "{{url}}"
  14302. ],
  14303. "path": [
  14304. "api",
  14305. "vipmember",
  14306. "vipmemberappointment",
  14307. "{{appoint_id02}}",
  14308. ""
  14309. ]
  14310. }
  14311. },
  14312. "response": []
  14313. },
  14314. {
  14315. "name": "put_vipmember_vipmemberappointment_id3",
  14316. "event": [
  14317. {
  14318. "listen": "test",
  14319. "script": {
  14320. "id": "3a608cee-22c6-4457-b843-86d28979d496",
  14321. "exec": [
  14322. "",
  14323. "// if (tests[\"Status code is 200\"]) {",
  14324. "// var jsonData = JSON.parse(responseBody);",
  14325. "",
  14326. "// postman.setEnvironmentVariable(\"wxappoint_id01\", jsonData.results[0].id);",
  14327. " ",
  14328. "// }",
  14329. "",
  14330. "",
  14331. "",
  14332. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  14333. ],
  14334. "type": "text/javascript"
  14335. }
  14336. }
  14337. ],
  14338. "request": {
  14339. "method": "PUT",
  14340. "header": [
  14341. {
  14342. "key": "Content-Type",
  14343. "value": "application/json"
  14344. },
  14345. {
  14346. "key": "Authorization",
  14347. "value": "Rong {{shoptoken}}"
  14348. }
  14349. ],
  14350. "body": {
  14351. "mode": "raw",
  14352. "raw": "{\r\n\t\"id\": {{appoint_id03}},\r\n\t\"project_name\": \"{{wxappoint_pjname03}}\",\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"vip_phone\": {{vip_phone01}},\r\n\t\"vip_grade\": \"{{vip_grade01}}\",\r\n\t\"appointment_time\": \"{{diff_datetime}}\",\r\n\t\"code_no\": \"{{car_code01}}\",\r\n\t\"carcategory_name\": \"{{vip_carname01}}\",\r\n\t\"rem\": null,\r\n\t\"reply\": \"\",\r\n\t\"state\": 2,\r\n\t\"end_time\": \"{{wxappoint_endtm03}}\",\r\n\t\"start_time\": \"{{wxappoint_startm03}}\",\r\n\t\"project_category\":{{wxappoint_pjcategory03}},\r\n\t\"project_id\": {{wxappoint_pjid03}},\r\n\t\"vip\": {{vip_id01}}\r\n}"
  14353. },
  14354. "url": {
  14355. "raw": "{{url}}/api/vipmember/vipmemberappointment/{{appoint_id02}}/",
  14356. "host": [
  14357. "{{url}}"
  14358. ],
  14359. "path": [
  14360. "api",
  14361. "vipmember",
  14362. "vipmemberappointment",
  14363. "{{appoint_id02}}",
  14364. ""
  14365. ]
  14366. }
  14367. },
  14368. "response": []
  14369. },
  14370. {
  14371. "name": "get_vipmember_vipmemberappointment_state1",
  14372. "event": [
  14373. {
  14374. "listen": "test",
  14375. "script": {
  14376. "id": "8f13e275-7c76-4adc-a6c0-80531d4dd282",
  14377. "exec": [
  14378. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14379. ""
  14380. ],
  14381. "type": "text/javascript"
  14382. }
  14383. }
  14384. ],
  14385. "request": {
  14386. "method": "GET",
  14387. "header": [
  14388. {
  14389. "key": "Content-Type",
  14390. "value": "application/json"
  14391. },
  14392. {
  14393. "key": "Authorization",
  14394. "value": "Rong {{shoptoken}}"
  14395. }
  14396. ],
  14397. "body": {
  14398. "mode": "raw",
  14399. "raw": ""
  14400. },
  14401. "url": {
  14402. "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=1",
  14403. "host": [
  14404. "{{url}}"
  14405. ],
  14406. "path": [
  14407. "api",
  14408. "vipmember",
  14409. "vipmemberappointment",
  14410. ""
  14411. ],
  14412. "query": [
  14413. {
  14414. "key": "state",
  14415. "value": "1"
  14416. }
  14417. ]
  14418. }
  14419. },
  14420. "response": []
  14421. }
  14422. ]
  14423. },
  14424. {
  14425. "name": "complaint recommend",
  14426. "item": [
  14427. {
  14428. "name": "post_wx_usercomplaint",
  14429. "event": [
  14430. {
  14431. "listen": "test",
  14432. "script": {
  14433. "type": "text/javascript",
  14434. "exec": [
  14435. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  14436. ]
  14437. }
  14438. }
  14439. ],
  14440. "request": {
  14441. "method": "POST",
  14442. "header": [
  14443. {
  14444. "key": "Content-Type",
  14445. "value": "application/json"
  14446. }
  14447. ],
  14448. "body": {
  14449. "mode": "raw",
  14450. "raw": "{\r\n\t\"complaint_date\": \"{{date}}\",\r\n\t\"shop\": \"{{shop_id}}\",\r\n\t\"content\": \"服务态度不是很好,让客人独自晾着!\",\r\n\t\"vip\": {{vip_id01}},\r\n\t\"state\":0\r\n}"
  14451. },
  14452. "url": {
  14453. "raw": "{{url}}/api/wx/usercomplaint/?uid={{wx_uid}}",
  14454. "host": [
  14455. "{{url}}"
  14456. ],
  14457. "path": [
  14458. "api",
  14459. "wx",
  14460. "usercomplaint",
  14461. ""
  14462. ],
  14463. "query": [
  14464. {
  14465. "key": "uid",
  14466. "value": "{{wx_uid}}"
  14467. }
  14468. ]
  14469. }
  14470. },
  14471. "response": []
  14472. },
  14473. {
  14474. "name": "get_vipmember_complaintsuggestion_all",
  14475. "event": [
  14476. {
  14477. "listen": "test",
  14478. "script": {
  14479. "type": "text/javascript",
  14480. "exec": [
  14481. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14482. "",
  14483. ""
  14484. ]
  14485. }
  14486. }
  14487. ],
  14488. "request": {
  14489. "method": "GET",
  14490. "header": [
  14491. {
  14492. "key": "Content-Type",
  14493. "value": "application/json"
  14494. },
  14495. {
  14496. "key": "Authorization",
  14497. "value": "Rong {{shoptoken}}"
  14498. }
  14499. ],
  14500. "body": {
  14501. "mode": "raw",
  14502. "raw": ""
  14503. },
  14504. "url": {
  14505. "raw": "{{url}}/api/vipmember/complaintsuggestion/?shop_id={{shop_id}}",
  14506. "host": [
  14507. "{{url}}"
  14508. ],
  14509. "path": [
  14510. "api",
  14511. "vipmember",
  14512. "complaintsuggestion",
  14513. ""
  14514. ],
  14515. "query": [
  14516. {
  14517. "key": "shop_id",
  14518. "value": "{{shop_id}}"
  14519. }
  14520. ]
  14521. }
  14522. },
  14523. "response": []
  14524. },
  14525. {
  14526. "name": "get_vipmember_complaintsuggestion_state0",
  14527. "event": [
  14528. {
  14529. "listen": "test",
  14530. "script": {
  14531. "type": "text/javascript",
  14532. "exec": [
  14533. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14534. "",
  14535. "if (tests[\"Status code is 200\"]) {",
  14536. " var jsonData = JSON.parse(responseBody);",
  14537. "",
  14538. " postman.setEnvironmentVariable(\"complaint_id01\", jsonData.results[0].id);",
  14539. " ",
  14540. "}"
  14541. ]
  14542. }
  14543. }
  14544. ],
  14545. "request": {
  14546. "method": "GET",
  14547. "header": [
  14548. {
  14549. "key": "Content-Type",
  14550. "value": "application/json"
  14551. },
  14552. {
  14553. "key": "Authorization",
  14554. "value": "Rong {{shoptoken}}"
  14555. }
  14556. ],
  14557. "body": {
  14558. "mode": "raw",
  14559. "raw": ""
  14560. },
  14561. "url": {
  14562. "raw": "{{url}}/api/vipmember/complaintsuggestion/?state=0",
  14563. "host": [
  14564. "{{url}}"
  14565. ],
  14566. "path": [
  14567. "api",
  14568. "vipmember",
  14569. "complaintsuggestion",
  14570. ""
  14571. ],
  14572. "query": [
  14573. {
  14574. "key": "state",
  14575. "value": "0"
  14576. }
  14577. ]
  14578. }
  14579. },
  14580. "response": []
  14581. },
  14582. {
  14583. "name": "get_vipmember_complaintsuggestion_id",
  14584. "event": [
  14585. {
  14586. "listen": "test",
  14587. "script": {
  14588. "type": "text/javascript",
  14589. "exec": [
  14590. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14591. "",
  14592. "if (tests[\"Status code is 200\"]) {",
  14593. " var jsonData = JSON.parse(responseBody);",
  14594. "",
  14595. " ",
  14596. "postman.setEnvironmentVariable(\"complaint_date01\", jsonData.complaint_date);",
  14597. " ",
  14598. "}",
  14599. ""
  14600. ]
  14601. }
  14602. }
  14603. ],
  14604. "request": {
  14605. "method": "GET",
  14606. "header": [
  14607. {
  14608. "key": "Content-Type",
  14609. "value": "application/json"
  14610. },
  14611. {
  14612. "key": "Authorization",
  14613. "value": "Rong {{shoptoken}}"
  14614. }
  14615. ],
  14616. "body": {
  14617. "mode": "raw",
  14618. "raw": ""
  14619. },
  14620. "url": {
  14621. "raw": "{{url}}/api/vipmember/complaintsuggestion/{{complaint_id01}}/",
  14622. "host": [
  14623. "{{url}}"
  14624. ],
  14625. "path": [
  14626. "api",
  14627. "vipmember",
  14628. "complaintsuggestion",
  14629. "{{complaint_id01}}",
  14630. ""
  14631. ]
  14632. }
  14633. },
  14634. "response": []
  14635. },
  14636. {
  14637. "name": "put_vipmember_complaintsuggestion_id",
  14638. "event": [
  14639. {
  14640. "listen": "test",
  14641. "script": {
  14642. "type": "text/javascript",
  14643. "exec": [
  14644. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14645. "",
  14646. "// if (tests[\"Status code is 200\"]) {",
  14647. "// var jsonData = JSON.parse(responseBody);",
  14648. "",
  14649. " ",
  14650. " ",
  14651. "// }"
  14652. ]
  14653. }
  14654. }
  14655. ],
  14656. "request": {
  14657. "method": "PUT",
  14658. "header": [
  14659. {
  14660. "key": "Content-Type",
  14661. "value": "application/json"
  14662. },
  14663. {
  14664. "key": "Authorization",
  14665. "value": "Rong {{shoptoken}}"
  14666. }
  14667. ],
  14668. "body": {
  14669. "mode": "raw",
  14670. "raw": "{\r\n\t\"id\": {{complaint_id01}},\r\n\t\"vip_name\": \"{{vip_name01}}\",\r\n\t\"complaint_date\": \"{{complaint_date01}}\",\r\n\t\"content\": \"服务速度有些慢!\",\r\n\t\"acceptance_date\": \"{{date}}\",\r\n\t\"processing_results\": \"好的,已了解!\",\r\n\t\"state\": 1,\r\n\t\"shop\": {{shop_id}},\r\n\t\"vip\": {{shop_id}},\r\n\t\"str_complaint_date\": \"{{complaint_date01}}\"\r\n}"
  14671. },
  14672. "url": {
  14673. "raw": "{{url}}/api/vipmember/complaintsuggestion/{{complaint_id01}}/",
  14674. "host": [
  14675. "{{url}}"
  14676. ],
  14677. "path": [
  14678. "api",
  14679. "vipmember",
  14680. "complaintsuggestion",
  14681. "{{complaint_id01}}",
  14682. ""
  14683. ]
  14684. }
  14685. },
  14686. "response": []
  14687. },
  14688. {
  14689. "name": "get_vipmember_complaintsuggestion_state1",
  14690. "event": [
  14691. {
  14692. "listen": "test",
  14693. "script": {
  14694. "type": "text/javascript",
  14695. "exec": [
  14696. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14697. "",
  14698. "// if (tests[\"Status code is 200\"]) {",
  14699. "// var jsonData = JSON.parse(responseBody);",
  14700. "",
  14701. " ",
  14702. " ",
  14703. "// }"
  14704. ]
  14705. }
  14706. }
  14707. ],
  14708. "request": {
  14709. "method": "GET",
  14710. "header": [
  14711. {
  14712. "key": "Content-Type",
  14713. "value": "application/json"
  14714. },
  14715. {
  14716. "key": "Authorization",
  14717. "value": "Rong {{shoptoken}}"
  14718. }
  14719. ],
  14720. "body": {
  14721. "mode": "raw",
  14722. "raw": ""
  14723. },
  14724. "url": {
  14725. "raw": "{{url}}/api/vipmember/complaintsuggestion/?state=1",
  14726. "host": [
  14727. "{{url}}"
  14728. ],
  14729. "path": [
  14730. "api",
  14731. "vipmember",
  14732. "complaintsuggestion",
  14733. ""
  14734. ],
  14735. "query": [
  14736. {
  14737. "key": "state",
  14738. "value": "1"
  14739. }
  14740. ]
  14741. }
  14742. },
  14743. "response": []
  14744. }
  14745. ]
  14746. },
  14747. {
  14748. "name": "score",
  14749. "item": [
  14750. {
  14751. "name": "get_vipmember_vipmemberscore",
  14752. "event": [
  14753. {
  14754. "listen": "test",
  14755. "script": {
  14756. "id": "e6b6fc53-24ca-491e-93fc-2dd222721c1f",
  14757. "exec": [
  14758. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  14759. ],
  14760. "type": "text/javascript"
  14761. }
  14762. }
  14763. ],
  14764. "request": {
  14765. "method": "GET",
  14766. "header": [
  14767. {
  14768. "key": "Authorization",
  14769. "value": "Rong {{shoptoken}}"
  14770. }
  14771. ],
  14772. "body": {
  14773. "mode": "raw",
  14774. "raw": ""
  14775. },
  14776. "url": {
  14777. "raw": "{{url}}/api/vipmember/vipmemberscore/?vip_id={{vip_id01}}&begin_date=2018-10-01&end_date=2018-10-31",
  14778. "host": [
  14779. "{{url}}"
  14780. ],
  14781. "path": [
  14782. "api",
  14783. "vipmember",
  14784. "vipmemberscore",
  14785. ""
  14786. ],
  14787. "query": [
  14788. {
  14789. "key": "vip_id",
  14790. "value": "{{vip_id01}}"
  14791. },
  14792. {
  14793. "key": "begin_date",
  14794. "value": "2018-10-01"
  14795. },
  14796. {
  14797. "key": "end_date",
  14798. "value": "2018-10-31"
  14799. }
  14800. ]
  14801. }
  14802. },
  14803. "response": []
  14804. },
  14805. {
  14806. "name": "post_basic_integralexchangerule_1",
  14807. "event": [
  14808. {
  14809. "listen": "test",
  14810. "script": {
  14811. "type": "text/javascript",
  14812. "exec": [
  14813. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  14814. ]
  14815. }
  14816. }
  14817. ],
  14818. "request": {
  14819. "method": "POST",
  14820. "header": [
  14821. {
  14822. "key": "Authorization",
  14823. "value": "Rong {{shoptoken}}"
  14824. },
  14825. {
  14826. "key": "Content-Type",
  14827. "value": "application/json"
  14828. }
  14829. ],
  14830. "body": {
  14831. "mode": "raw",
  14832. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-10-15\",\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"integral\": 6000,\r\n\t\"rem\": null,\r\n\t\"amount\": 1,\r\n\t\"rulevipgradeitem\": [{{grade_id01}},{{grade_id02}},{{grade_id03}}],\r\n\t\"project_name\": \"{{repair_service_name01}}\"\r\n}"
  14833. },
  14834. "url": {
  14835. "raw": "{{url}}/api/basic/integralexchangerule/",
  14836. "host": [
  14837. "{{url}}"
  14838. ],
  14839. "path": [
  14840. "api",
  14841. "basic",
  14842. "integralexchangerule",
  14843. ""
  14844. ]
  14845. }
  14846. },
  14847. "response": []
  14848. },
  14849. {
  14850. "name": "post_basic_integralexchangerule_2",
  14851. "event": [
  14852. {
  14853. "listen": "test",
  14854. "script": {
  14855. "type": "text/javascript",
  14856. "exec": [
  14857. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  14858. ]
  14859. }
  14860. }
  14861. ],
  14862. "request": {
  14863. "method": "POST",
  14864. "header": [
  14865. {
  14866. "key": "Authorization",
  14867. "value": "Rong {{shoptoken}}"
  14868. },
  14869. {
  14870. "key": "Content-Type",
  14871. "value": "application/json"
  14872. }
  14873. ],
  14874. "body": {
  14875. "mode": "raw",
  14876. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-10-15\",\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id03}},\r\n\t\"integral\": 5000,\r\n\t\"rem\": null,\r\n\t\"amount\": 1,\r\n\t\"rulevipgradeitem\": [{{grade_id01}},{{grade_id02}}],\r\n\t\"project_name\": \"{{beauty_services_name03}}\"\r\n}"
  14877. },
  14878. "url": {
  14879. "raw": "{{url}}/api/basic/integralexchangerule/",
  14880. "host": [
  14881. "{{url}}"
  14882. ],
  14883. "path": [
  14884. "api",
  14885. "basic",
  14886. "integralexchangerule",
  14887. ""
  14888. ]
  14889. }
  14890. },
  14891. "response": []
  14892. },
  14893. {
  14894. "name": "post_basic_integralexchangerule_3",
  14895. "event": [
  14896. {
  14897. "listen": "test",
  14898. "script": {
  14899. "type": "text/javascript",
  14900. "exec": [
  14901. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  14902. ]
  14903. }
  14904. }
  14905. ],
  14906. "request": {
  14907. "method": "POST",
  14908. "header": [
  14909. {
  14910. "key": "Authorization",
  14911. "value": "Rong {{shoptoken}}"
  14912. },
  14913. {
  14914. "key": "Content-Type",
  14915. "value": "application/json"
  14916. }
  14917. ],
  14918. "body": {
  14919. "mode": "raw",
  14920. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-10-15\",\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"integral\": 7000,\r\n\t\"rem\": null,\r\n\t\"amount\": 1,\r\n\t\"rulevipgradeitem\": [{{grade_id01}},{{grade_id02}}],\r\n\t\"project_name\": \"{{car_products_name02}}\"\r\n}"
  14921. },
  14922. "url": {
  14923. "raw": "{{url}}/api/basic/integralexchangerule/",
  14924. "host": [
  14925. "{{url}}"
  14926. ],
  14927. "path": [
  14928. "api",
  14929. "basic",
  14930. "integralexchangerule",
  14931. ""
  14932. ]
  14933. }
  14934. },
  14935. "response": []
  14936. },
  14937. {
  14938. "name": "get_basic_integralexchangerule_all",
  14939. "event": [
  14940. {
  14941. "listen": "test",
  14942. "script": {
  14943. "id": "0aa54add-8543-48cc-87d3-b303c36d1452",
  14944. "exec": [
  14945. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14946. "",
  14947. ""
  14948. ],
  14949. "type": "text/javascript"
  14950. }
  14951. }
  14952. ],
  14953. "request": {
  14954. "method": "GET",
  14955. "header": [
  14956. {
  14957. "key": "Authorization",
  14958. "value": "Rong {{shoptoken}}"
  14959. },
  14960. {
  14961. "key": "Content-Type",
  14962. "value": "application/json"
  14963. }
  14964. ],
  14965. "body": {
  14966. "mode": "raw",
  14967. "raw": ""
  14968. },
  14969. "url": {
  14970. "raw": "{{url}}/api/basic/integralexchangerule/",
  14971. "host": [
  14972. "{{url}}"
  14973. ],
  14974. "path": [
  14975. "api",
  14976. "basic",
  14977. "integralexchangerule",
  14978. ""
  14979. ]
  14980. }
  14981. },
  14982. "response": []
  14983. },
  14984. {
  14985. "name": "get_basic_integralexchangerule_type2",
  14986. "event": [
  14987. {
  14988. "listen": "test",
  14989. "script": {
  14990. "type": "text/javascript",
  14991. "exec": [
  14992. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  14993. "",
  14994. "if (tests[\"Status code is 200\"]) {",
  14995. " var jsonData = JSON.parse(responseBody);",
  14996. "",
  14997. " postman.setEnvironmentVariable(\"scorerule_beauty2_id01\", jsonData.results[0].id);",
  14998. " postman.setEnvironmentVariable(\"scorerule_beauty2_pjid01\", jsonData.results[0].project_id);",
  14999. " postman.setEnvironmentVariable(\"scorerule_beauty2_pjtype01\", jsonData.results[0].project_type);",
  15000. " postman.setEnvironmentVariable(\"scorerule_beauty2_price01\", jsonData.results[0].project_extra.price);",
  15001. " postman.setEnvironmentVariable(\"scorerule_beauty2_name01\", jsonData.results[0].project_extra.name);",
  15002. " postman.setEnvironmentVariable(\"scorerule_beauty2_integral01\", jsonData.results[0].integral);",
  15003. " ",
  15004. "}"
  15005. ]
  15006. }
  15007. }
  15008. ],
  15009. "request": {
  15010. "method": "GET",
  15011. "header": [
  15012. {
  15013. "key": "Authorization",
  15014. "value": "Rong {{shoptoken}}"
  15015. },
  15016. {
  15017. "key": "Content-Type",
  15018. "value": "application/json"
  15019. }
  15020. ],
  15021. "body": {
  15022. "mode": "raw",
  15023. "raw": ""
  15024. },
  15025. "url": {
  15026. "raw": "{{url}}/api/basic/integralexchangerule/?project_type=2",
  15027. "host": [
  15028. "{{url}}"
  15029. ],
  15030. "path": [
  15031. "api",
  15032. "basic",
  15033. "integralexchangerule",
  15034. ""
  15035. ],
  15036. "query": [
  15037. {
  15038. "key": "project_type",
  15039. "value": "2"
  15040. }
  15041. ]
  15042. }
  15043. },
  15044. "response": []
  15045. },
  15046. {
  15047. "name": "get_basic_integralexchangerule_type2 _id",
  15048. "event": [
  15049. {
  15050. "listen": "test",
  15051. "script": {
  15052. "type": "text/javascript",
  15053. "exec": [
  15054. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  15055. "",
  15056. "// if (tests[\"Status code is 200\"]) {",
  15057. "// var jsonData = JSON.parse(responseBody);",
  15058. "",
  15059. "// postman.setEnvironmentVariable(\"scorerule_beauty2_id01\", jsonData.results[0].id);",
  15060. " ",
  15061. "// }"
  15062. ]
  15063. }
  15064. }
  15065. ],
  15066. "request": {
  15067. "method": "GET",
  15068. "header": [
  15069. {
  15070. "key": "Authorization",
  15071. "value": "Rong {{shoptoken}}"
  15072. },
  15073. {
  15074. "key": "Content-Type",
  15075. "value": "application/json"
  15076. }
  15077. ],
  15078. "body": {
  15079. "mode": "raw",
  15080. "raw": ""
  15081. },
  15082. "url": {
  15083. "raw": "{{url}}/api/basic/integralexchangerule/{{scorerule_beauty2_id01}}/",
  15084. "host": [
  15085. "{{url}}"
  15086. ],
  15087. "path": [
  15088. "api",
  15089. "basic",
  15090. "integralexchangerule",
  15091. "{{scorerule_beauty2_id01}}",
  15092. ""
  15093. ]
  15094. }
  15095. },
  15096. "response": []
  15097. },
  15098. {
  15099. "name": "post_basic_integralexchange",
  15100. "event": [
  15101. {
  15102. "listen": "test",
  15103. "script": {
  15104. "type": "text/javascript",
  15105. "exec": [
  15106. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  15107. ]
  15108. }
  15109. }
  15110. ],
  15111. "request": {
  15112. "method": "POST",
  15113. "header": [
  15114. {
  15115. "key": "Authorization",
  15116. "value": "Rong {{shoptoken}}"
  15117. },
  15118. {
  15119. "key": "Content-Type",
  15120. "value": "application/json"
  15121. }
  15122. ],
  15123. "body": {
  15124. "mode": "raw",
  15125. "raw": "{\r\n\t\"date\": \"{{ymd-date}}\",\r\n\t\"vipmember_info\": {{vip_id01}},\r\n\t\"integral_exchange_rule\": {{scorerule_beauty2_id01}},\r\n\t\"note\": null,\r\n\t\"project_type\": {{scorerule_beauty2_pjtype01}},\r\n\t\"project_id\":{{scorerule_beauty2_pjid01}},\r\n\t\"phone_number\": \"{{vip_phone01}}\",\r\n\t\"project_name\": \"{{scorerule_beauty2_name01}}\",\r\n\t\"integral\": {{scorerule_beauty2_integral01}},\r\n\t\"price\": {{scorerule_beauty2_price01}}\r\n}"
  15126. },
  15127. "url": {
  15128. "raw": "{{url}}/api/basic/integralexchange/",
  15129. "host": [
  15130. "{{url}}"
  15131. ],
  15132. "path": [
  15133. "api",
  15134. "basic",
  15135. "integralexchange",
  15136. ""
  15137. ]
  15138. }
  15139. },
  15140. "response": []
  15141. },
  15142. {
  15143. "name": "get_basic_integralexchange_all",
  15144. "event": [
  15145. {
  15146. "listen": "test",
  15147. "script": {
  15148. "type": "text/javascript",
  15149. "exec": [
  15150. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15151. ]
  15152. }
  15153. }
  15154. ],
  15155. "request": {
  15156. "method": "GET",
  15157. "header": [
  15158. {
  15159. "key": "Authorization",
  15160. "value": "Rong {{shoptoken}}"
  15161. },
  15162. {
  15163. "key": "Content-Type",
  15164. "value": "application/json"
  15165. }
  15166. ],
  15167. "body": {
  15168. "mode": "raw",
  15169. "raw": ""
  15170. },
  15171. "url": {
  15172. "raw": "{{url}}/api/basic/integralexchange/",
  15173. "host": [
  15174. "{{url}}"
  15175. ],
  15176. "path": [
  15177. "api",
  15178. "basic",
  15179. "integralexchange",
  15180. ""
  15181. ]
  15182. }
  15183. },
  15184. "response": []
  15185. },
  15186. {
  15187. "name": "get_basic_integralexchange_type1",
  15188. "event": [
  15189. {
  15190. "listen": "test",
  15191. "script": {
  15192. "type": "text/javascript",
  15193. "exec": [
  15194. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15195. ]
  15196. }
  15197. }
  15198. ],
  15199. "request": {
  15200. "method": "GET",
  15201. "header": [
  15202. {
  15203. "key": "Authorization",
  15204. "value": "Rong {{shoptoken}}"
  15205. },
  15206. {
  15207. "key": "Content-Type",
  15208. "value": "application/json"
  15209. }
  15210. ],
  15211. "body": {
  15212. "mode": "raw",
  15213. "raw": ""
  15214. },
  15215. "url": {
  15216. "raw": "{{url}}/api/basic/integralexchange/?project_type=1",
  15217. "host": [
  15218. "{{url}}"
  15219. ],
  15220. "path": [
  15221. "api",
  15222. "basic",
  15223. "integralexchange",
  15224. ""
  15225. ],
  15226. "query": [
  15227. {
  15228. "key": "project_type",
  15229. "value": "1"
  15230. }
  15231. ]
  15232. }
  15233. },
  15234. "response": []
  15235. },
  15236. {
  15237. "name": "get_basic_integralexchange_type2",
  15238. "event": [
  15239. {
  15240. "listen": "test",
  15241. "script": {
  15242. "type": "text/javascript",
  15243. "exec": [
  15244. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15245. ]
  15246. }
  15247. }
  15248. ],
  15249. "request": {
  15250. "method": "GET",
  15251. "header": [
  15252. {
  15253. "key": "Authorization",
  15254. "value": "Rong {{shoptoken}}"
  15255. },
  15256. {
  15257. "key": "Content-Type",
  15258. "value": "application/json"
  15259. }
  15260. ],
  15261. "body": {
  15262. "mode": "raw",
  15263. "raw": ""
  15264. },
  15265. "url": {
  15266. "raw": "{{url}}/api/basic/integralexchange/?project_type=2",
  15267. "host": [
  15268. "{{url}}"
  15269. ],
  15270. "path": [
  15271. "api",
  15272. "basic",
  15273. "integralexchange",
  15274. ""
  15275. ],
  15276. "query": [
  15277. {
  15278. "key": "project_type",
  15279. "value": "2"
  15280. }
  15281. ]
  15282. }
  15283. },
  15284. "response": []
  15285. },
  15286. {
  15287. "name": "get_basic_integralexchange_type3",
  15288. "event": [
  15289. {
  15290. "listen": "test",
  15291. "script": {
  15292. "type": "text/javascript",
  15293. "exec": [
  15294. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15295. ]
  15296. }
  15297. }
  15298. ],
  15299. "request": {
  15300. "method": "GET",
  15301. "header": [
  15302. {
  15303. "key": "Authorization",
  15304. "value": "Rong {{shoptoken}}"
  15305. },
  15306. {
  15307. "key": "Content-Type",
  15308. "value": "application/json"
  15309. }
  15310. ],
  15311. "body": {
  15312. "mode": "raw",
  15313. "raw": ""
  15314. },
  15315. "url": {
  15316. "raw": "{{url}}/api/basic/integralexchange/?project_type=3",
  15317. "host": [
  15318. "{{url}}"
  15319. ],
  15320. "path": [
  15321. "api",
  15322. "basic",
  15323. "integralexchange",
  15324. ""
  15325. ],
  15326. "query": [
  15327. {
  15328. "key": "project_type",
  15329. "value": "3"
  15330. }
  15331. ]
  15332. }
  15333. },
  15334. "response": []
  15335. },
  15336. {
  15337. "name": "get_vipmember_vipmemberscoreadjust",
  15338. "event": [
  15339. {
  15340. "listen": "test",
  15341. "script": {
  15342. "type": "text/javascript",
  15343. "exec": [
  15344. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15345. ]
  15346. }
  15347. }
  15348. ],
  15349. "request": {
  15350. "method": "GET",
  15351. "header": [
  15352. {
  15353. "key": "Authorization",
  15354. "value": "Rong {{shoptoken}}"
  15355. }
  15356. ],
  15357. "body": {
  15358. "mode": "raw",
  15359. "raw": ""
  15360. },
  15361. "url": {
  15362. "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/",
  15363. "host": [
  15364. "{{url}}"
  15365. ],
  15366. "path": [
  15367. "api",
  15368. "vipmember",
  15369. "vipmemberscoreadjust",
  15370. ""
  15371. ]
  15372. }
  15373. },
  15374. "response": []
  15375. },
  15376. {
  15377. "name": "get_vipmember_vipmemberscoreadjust_phone",
  15378. "event": [
  15379. {
  15380. "listen": "test",
  15381. "script": {
  15382. "type": "text/javascript",
  15383. "exec": [
  15384. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15385. ]
  15386. }
  15387. }
  15388. ],
  15389. "request": {
  15390. "method": "GET",
  15391. "header": [
  15392. {
  15393. "key": "Authorization",
  15394. "value": "Rong {{shoptoken}}"
  15395. }
  15396. ],
  15397. "body": {
  15398. "mode": "raw",
  15399. "raw": ""
  15400. },
  15401. "url": {
  15402. "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/?vip_phone_number={{vip_phone01}}",
  15403. "host": [
  15404. "{{url}}"
  15405. ],
  15406. "path": [
  15407. "api",
  15408. "vipmember",
  15409. "vipmemberscoreadjust",
  15410. ""
  15411. ],
  15412. "query": [
  15413. {
  15414. "key": "vip_phone_number",
  15415. "value": "{{vip_phone01}}"
  15416. }
  15417. ]
  15418. }
  15419. },
  15420. "response": []
  15421. }
  15422. ]
  15423. },
  15424. {
  15425. "name": "companycustomer",
  15426. "item": [
  15427. {
  15428. "name": "post_vipmember_corpvipmember_01",
  15429. "event": [
  15430. {
  15431. "listen": "test",
  15432. "script": {
  15433. "id": "c113fd53-5a4a-4c55-b9e9-108038c6856e",
  15434. "exec": [
  15435. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  15436. ],
  15437. "type": "text/javascript"
  15438. }
  15439. }
  15440. ],
  15441. "request": {
  15442. "method": "POST",
  15443. "header": [
  15444. {
  15445. "key": "Authorization",
  15446. "value": "Rong {{shoptoken}}"
  15447. },
  15448. {
  15449. "key": "Content-Type",
  15450. "value": "application/json"
  15451. }
  15452. ],
  15453. "body": {
  15454. "mode": "raw",
  15455. "raw": "{\r\n\t\"date\": \"{{ymd-date}}\",\r\n\t\"client_code\": null,\r\n\t\"name\": \"测试企业会员\",\r\n\t\"abbreviation\": \"\",\r\n\t\"credit_code\": null,\r\n\t\"pic\": \"测试008\",\r\n\t\"pic_telephone\": \"18159859111\",\r\n\t\"contacts\": null,\r\n\t\"contacts_telephone\": null,\r\n\t\"style\": 0,\r\n\t\"settlement_day\": null,\r\n\t\"address\": \"厦门思明区软件园二期观日路33号楼\",\r\n\t\"note\": null,\r\n\t\"cars\": [{\r\n\t\t\"id\": null,\r\n\t\t\"code\": \"B85H93\",\r\n\t\t\"areashort\": {\r\n\t\t\t\"id\":{{areashort_id13}},\r\n\t\t\t\"name\": \"{{areashort_name13}}\"\r\n\t\t},\r\n\t\t\"carcategory\": [{{carcategory_category02}}],\r\n\t\t\"engine_no\": \"D018\",\r\n\t\t\"carbody_no\": \"C018\",\r\n\t\t\"on_date\": \"2018-11-18\",\r\n\t\t\"body_color\": \"白色\",\r\n\t\t\"description\": null,\r\n\t\t\"carcategory_name\": \"{{carcategory_name02}}\"\r\n\t}]\r\n}"
  15456. },
  15457. "url": {
  15458. "raw": "{{url}}/api/vipmember/corpvipmember/",
  15459. "host": [
  15460. "{{url}}"
  15461. ],
  15462. "path": [
  15463. "api",
  15464. "vipmember",
  15465. "corpvipmember",
  15466. ""
  15467. ]
  15468. }
  15469. },
  15470. "response": []
  15471. },
  15472. {
  15473. "name": "get_vipmember_corpvipmember",
  15474. "event": [
  15475. {
  15476. "listen": "test",
  15477. "script": {
  15478. "id": "e9663df9-fb68-4968-9dc0-e3a609578270",
  15479. "exec": [
  15480. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  15481. "",
  15482. " var jsonData = JSON.parse(responseBody);",
  15483. " ",
  15484. " postman.setEnvironmentVariable(\"corp_id01\", jsonData.results[0].id);",
  15485. " postman.setEnvironmentVariable(\"corp_telephone01\", jsonData.results[0].pic_telephone);",
  15486. " postman.setEnvironmentVariable(\"corp_name01\", jsonData.results[0].name);",
  15487. " ",
  15488. " // postman.setEnvironmentVariable(\"corp_id02\", jsonData.results[1].id);",
  15489. " "
  15490. ],
  15491. "type": "text/javascript"
  15492. }
  15493. }
  15494. ],
  15495. "request": {
  15496. "method": "GET",
  15497. "header": [
  15498. {
  15499. "key": "Authorization",
  15500. "value": "Rong {{shoptoken}}"
  15501. },
  15502. {
  15503. "key": "Content-Type",
  15504. "value": "application/json"
  15505. }
  15506. ],
  15507. "body": {
  15508. "mode": "raw",
  15509. "raw": ""
  15510. },
  15511. "url": {
  15512. "raw": "{{url}}/api/vipmember/corpvipmember/",
  15513. "host": [
  15514. "{{url}}"
  15515. ],
  15516. "path": [
  15517. "api",
  15518. "vipmember",
  15519. "corpvipmember",
  15520. ""
  15521. ]
  15522. }
  15523. },
  15524. "response": []
  15525. },
  15526. {
  15527. "name": "delete_vipmember_corpvipmember",
  15528. "event": [
  15529. {
  15530. "listen": "test",
  15531. "script": {
  15532. "id": "b53535d0-7545-474b-b432-bf63c052f310",
  15533. "exec": [
  15534. "",
  15535. "tests[\"Status code is 204\"] = responseCode.code === 204 || responseCode.code === 404;"
  15536. ],
  15537. "type": "text/javascript"
  15538. }
  15539. }
  15540. ],
  15541. "request": {
  15542. "method": "DELETE",
  15543. "header": [
  15544. {
  15545. "key": "Authorization",
  15546. "value": "Rong {{shoptoken}}"
  15547. },
  15548. {
  15549. "key": "Content-Type",
  15550. "value": "application/json"
  15551. }
  15552. ],
  15553. "body": {
  15554. "mode": "raw",
  15555. "raw": ""
  15556. },
  15557. "url": {
  15558. "raw": "{{url}}/api/vipmember/corpvipmember/{{corp_id02}}/",
  15559. "host": [
  15560. "{{url}}"
  15561. ],
  15562. "path": [
  15563. "api",
  15564. "vipmember",
  15565. "corpvipmember",
  15566. "{{corp_id02}}",
  15567. ""
  15568. ]
  15569. }
  15570. },
  15571. "response": []
  15572. },
  15573. {
  15574. "name": "get_vipshort_list",
  15575. "event": [
  15576. {
  15577. "listen": "test",
  15578. "script": {
  15579. "id": "e9663df9-fb68-4968-9dc0-e3a609578270",
  15580. "exec": [
  15581. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  15582. "",
  15583. " "
  15584. ],
  15585. "type": "text/javascript"
  15586. }
  15587. }
  15588. ],
  15589. "request": {
  15590. "method": "GET",
  15591. "header": [
  15592. {
  15593. "key": "Authorization",
  15594. "value": "Rong {{shoptoken}}"
  15595. },
  15596. {
  15597. "key": "Content-Type",
  15598. "value": "application/json"
  15599. }
  15600. ],
  15601. "body": {
  15602. "mode": "raw",
  15603. "raw": ""
  15604. },
  15605. "url": {
  15606. "raw": "{{url}}/api/vipmember/vipshortlist/",
  15607. "host": [
  15608. "{{url}}"
  15609. ],
  15610. "path": [
  15611. "api",
  15612. "vipmember",
  15613. "vipshortlist",
  15614. ""
  15615. ]
  15616. }
  15617. },
  15618. "response": []
  15619. }
  15620. ]
  15621. },
  15622. {
  15623. "name": "companycustomer_serviceprice",
  15624. "item": [
  15625. {
  15626. "name": "post_vipmember_corpbeautypreferential_1",
  15627. "event": [
  15628. {
  15629. "listen": "test",
  15630. "script": {
  15631. "id": "65ab330d-ca6b-4b3a-8149-73e93bc77acb",
  15632. "exec": [
  15633. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  15634. ],
  15635. "type": "text/javascript"
  15636. }
  15637. }
  15638. ],
  15639. "request": {
  15640. "method": "POST",
  15641. "header": [
  15642. {
  15643. "key": "Authorization",
  15644. "value": "Rong {{shoptoken}}"
  15645. },
  15646. {
  15647. "key": "Content-Type",
  15648. "value": "application/json"
  15649. }
  15650. ],
  15651. "body": {
  15652. "mode": "raw",
  15653. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"corp_vip\": {{corp_id01}},\r\n\t\"category\": 1,\r\n\t\"project\": {{beauty_item01}},\r\n\t\"rate\": \"99\",\r\n\t\"note\": null,\r\n\t\"project_type\": {{beauty_category02}}\r\n}"
  15654. },
  15655. "url": {
  15656. "raw": "{{url}}/api/vipmember/corpbeautypreferential/",
  15657. "host": [
  15658. "{{url}}"
  15659. ],
  15660. "path": [
  15661. "api",
  15662. "vipmember",
  15663. "corpbeautypreferential",
  15664. ""
  15665. ]
  15666. }
  15667. },
  15668. "response": []
  15669. },
  15670. {
  15671. "name": "get_vipmember_corpbeautypreferential",
  15672. "event": [
  15673. {
  15674. "listen": "test",
  15675. "script": {
  15676. "type": "text/javascript",
  15677. "exec": [
  15678. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15679. ]
  15680. }
  15681. }
  15682. ],
  15683. "request": {
  15684. "method": "GET",
  15685. "header": [
  15686. {
  15687. "key": "Authorization",
  15688. "value": "Rong {{shoptoken}}"
  15689. },
  15690. {
  15691. "key": "Content-Type",
  15692. "value": "application/json"
  15693. }
  15694. ],
  15695. "body": {
  15696. "mode": "raw",
  15697. "raw": ""
  15698. },
  15699. "url": {
  15700. "raw": "{{url}}/api/vipmember/corpbeautypreferential/",
  15701. "host": [
  15702. "{{url}}"
  15703. ],
  15704. "path": [
  15705. "api",
  15706. "vipmember",
  15707. "corpbeautypreferential",
  15708. ""
  15709. ]
  15710. }
  15711. },
  15712. "response": []
  15713. },
  15714. {
  15715. "name": "post_vipmember_corprepairpreferential_2",
  15716. "event": [
  15717. {
  15718. "listen": "test",
  15719. "script": {
  15720. "id": "200bd24b-0ef5-4ba4-9745-b1a8399bed7e",
  15721. "exec": [
  15722. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  15723. ],
  15724. "type": "text/javascript"
  15725. }
  15726. }
  15727. ],
  15728. "request": {
  15729. "method": "POST",
  15730. "header": [
  15731. {
  15732. "key": "Authorization",
  15733. "value": "Rong {{shoptoken}}"
  15734. },
  15735. {
  15736. "key": "Content-Type",
  15737. "value": "application/json"
  15738. }
  15739. ],
  15740. "body": {
  15741. "mode": "raw",
  15742. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"corp_vip\": {{corp_id01}},\r\n\t\"category\": 2,\r\n\t\"project\":{{repair_item02}},\r\n\t\"rate\": \"99\",\r\n\t\"note\": null,\r\n\t\"project_type\": {{repaire_category02}}\r\n}"
  15743. },
  15744. "url": {
  15745. "raw": "{{url}}/api/vipmember/corprepairpreferential/",
  15746. "host": [
  15747. "{{url}}"
  15748. ],
  15749. "path": [
  15750. "api",
  15751. "vipmember",
  15752. "corprepairpreferential",
  15753. ""
  15754. ]
  15755. }
  15756. },
  15757. "response": []
  15758. },
  15759. {
  15760. "name": "get_vipmember_corprepairpreferential",
  15761. "event": [
  15762. {
  15763. "listen": "test",
  15764. "script": {
  15765. "type": "text/javascript",
  15766. "exec": [
  15767. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15768. ]
  15769. }
  15770. }
  15771. ],
  15772. "request": {
  15773. "method": "GET",
  15774. "header": [
  15775. {
  15776. "key": "Authorization",
  15777. "value": "Rong {{shoptoken}}"
  15778. },
  15779. {
  15780. "key": "Content-Type",
  15781. "value": "application/json"
  15782. }
  15783. ],
  15784. "body": {
  15785. "mode": "raw",
  15786. "raw": ""
  15787. },
  15788. "url": {
  15789. "raw": "{{url}}/api/vipmember/corprepairpreferential/",
  15790. "host": [
  15791. "{{url}}"
  15792. ],
  15793. "path": [
  15794. "api",
  15795. "vipmember",
  15796. "corprepairpreferential",
  15797. ""
  15798. ]
  15799. }
  15800. },
  15801. "response": []
  15802. },
  15803. {
  15804. "name": "post_vipmember_corpcarproductspreferential_3",
  15805. "event": [
  15806. {
  15807. "listen": "test",
  15808. "script": {
  15809. "id": "4b72528f-2f31-4c09-ae93-49f0a9ade3d6",
  15810. "exec": [
  15811. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  15812. ],
  15813. "type": "text/javascript"
  15814. }
  15815. }
  15816. ],
  15817. "request": {
  15818. "method": "POST",
  15819. "header": [
  15820. {
  15821. "key": "Authorization",
  15822. "value": "Rong {{shoptoken}}"
  15823. },
  15824. {
  15825. "key": "Content-Type",
  15826. "value": "application/json"
  15827. }
  15828. ],
  15829. "body": {
  15830. "mode": "raw",
  15831. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"corp_vip\":{{corp_id01}},\r\n\t\"category\": 3,\r\n\t\"project\": {{carproduct_item01}},\r\n\t\"rate\": \"99\",\r\n\t\"note\": null,\r\n\t\"project_type\": {{carproduct_category01}}\r\n}"
  15832. },
  15833. "url": {
  15834. "raw": "{{url}}/api/vipmember/corpcarproductspreferential/",
  15835. "host": [
  15836. "{{url}}"
  15837. ],
  15838. "path": [
  15839. "api",
  15840. "vipmember",
  15841. "corpcarproductspreferential",
  15842. ""
  15843. ]
  15844. }
  15845. },
  15846. "response": []
  15847. },
  15848. {
  15849. "name": "get_vipmember_corpcarproductspreferential",
  15850. "event": [
  15851. {
  15852. "listen": "test",
  15853. "script": {
  15854. "type": "text/javascript",
  15855. "exec": [
  15856. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  15857. ]
  15858. }
  15859. }
  15860. ],
  15861. "request": {
  15862. "method": "GET",
  15863. "header": [
  15864. {
  15865. "key": "Authorization",
  15866. "value": "Rong {{shoptoken}}"
  15867. },
  15868. {
  15869. "key": "Content-Type",
  15870. "value": "application/json"
  15871. }
  15872. ],
  15873. "body": {
  15874. "mode": "raw",
  15875. "raw": ""
  15876. },
  15877. "url": {
  15878. "raw": "{{url}}/api/vipmember/corpcarproductspreferential/",
  15879. "host": [
  15880. "{{url}}"
  15881. ],
  15882. "path": [
  15883. "api",
  15884. "vipmember",
  15885. "corpcarproductspreferential",
  15886. ""
  15887. ]
  15888. }
  15889. },
  15890. "response": []
  15891. }
  15892. ]
  15893. },
  15894. {
  15895. "name": "companycustomer_beautyservice",
  15896. "item": [
  15897. {
  15898. "name": "get_corpvipmember_info",
  15899. "event": [
  15900. {
  15901. "listen": "test",
  15902. "script": {
  15903. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  15904. "exec": [
  15905. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  15906. "",
  15907. " var jsonData = JSON.parse(responseBody);",
  15908. " ",
  15909. " postman.setEnvironmentVariable(\"corp_car_id01\", jsonData.cars[0].id);",
  15910. " postman.setEnvironmentVariable(\"corp_code01\", jsonData.cars[0].code);",
  15911. " // // postman.setEnvironmentVariable(\"corp_id01\", jsonData.id);",
  15912. " "
  15913. ],
  15914. "type": "text/javascript"
  15915. }
  15916. }
  15917. ],
  15918. "request": {
  15919. "method": "GET",
  15920. "header": [
  15921. {
  15922. "key": "Content-Type",
  15923. "value": "application/json"
  15924. },
  15925. {
  15926. "key": "Authorization",
  15927. "value": "Rong {{shoptoken}}"
  15928. }
  15929. ],
  15930. "body": {
  15931. "mode": "raw",
  15932. "raw": ""
  15933. },
  15934. "url": {
  15935. "raw": "{{url}}/api/vipmember/corpvipmember/{{corp_id01}}/",
  15936. "host": [
  15937. "{{url}}"
  15938. ],
  15939. "path": [
  15940. "api",
  15941. "vipmember",
  15942. "corpvipmember",
  15943. "{{corp_id01}}",
  15944. ""
  15945. ]
  15946. }
  15947. },
  15948. "response": []
  15949. },
  15950. {
  15951. "name": "get1_business_viprepairworkpriceadminview_service1",
  15952. "event": [
  15953. {
  15954. "listen": "test",
  15955. "script": {
  15956. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  15957. "exec": [
  15958. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  15959. "",
  15960. "",
  15961. " var jsonData = JSON.parse(responseBody);",
  15962. " ",
  15963. " postman.setEnvironmentVariable(\"service01__all_corp\", JSON.stringify(jsonData));",
  15964. " postman.setEnvironmentVariable(\"service01__rate_corp\",jsonData.rate);",
  15965. " ",
  15966. ""
  15967. ],
  15968. "type": "text/javascript"
  15969. }
  15970. }
  15971. ],
  15972. "request": {
  15973. "method": "GET",
  15974. "header": [
  15975. {
  15976. "key": "Content-Type",
  15977. "value": "application/json"
  15978. },
  15979. {
  15980. "key": "Authorization",
  15981. "value": "Rong {{shoptoken}}"
  15982. }
  15983. ],
  15984. "body": {
  15985. "mode": "raw",
  15986. "raw": ""
  15987. },
  15988. "url": {
  15989. "raw": "{{url}}/api/business/vipservicepriceview/?car_id={{corp_car_id01}}&service_id={{beauty_services_id01}}",
  15990. "host": [
  15991. "{{url}}"
  15992. ],
  15993. "path": [
  15994. "api",
  15995. "business",
  15996. "vipservicepriceview",
  15997. ""
  15998. ],
  15999. "query": [
  16000. {
  16001. "key": "car_id",
  16002. "value": "{{corp_car_id01}}"
  16003. },
  16004. {
  16005. "key": "service_id",
  16006. "value": "{{beauty_services_id01}}"
  16007. }
  16008. ]
  16009. }
  16010. },
  16011. "response": []
  16012. },
  16013. {
  16014. "name": "post_corpvipmember_beautyseivice_cash0",
  16015. "event": [
  16016. {
  16017. "listen": "test",
  16018. "script": {
  16019. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  16020. "exec": [
  16021. "",
  16022. "pm.test(\"Successful POST request\", function () {",
  16023. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  16024. "});",
  16025. "// var jsonData = JSON.parse(responseBody);",
  16026. " ",
  16027. "// postman.setEnvironmentVariable(\"crop_car_id01\", jsonData.cars[0].id);",
  16028. "// postman.setEnvironmentVariable(\"crop_code01\", jsonData.cars[0].code);",
  16029. "// postman.setEnvironmentVariable(\"crop_id01\", jsonData.id);",
  16030. " "
  16031. ],
  16032. "type": "text/javascript"
  16033. }
  16034. },
  16035. {
  16036. "listen": "prerequest",
  16037. "script": {
  16038. "id": "cc1b96bb-f0c2-43d6-88f8-0c91bd316ec0",
  16039. "exec": [
  16040. "",
  16041. "var service01__all_corp = JSON.parse(postman.getEnvironmentVariable(\"service01__all_corp\"));",
  16042. "",
  16043. "var service_amount_corp = parseFloat(service01__all_corp.service_project__price) * parseFloat(service01__all_corp.rate);",
  16044. "",
  16045. " postman.setEnvironmentVariable(\"service_amount_corp\",service_amount_corp);"
  16046. ],
  16047. "type": "text/javascript"
  16048. }
  16049. }
  16050. ],
  16051. "request": {
  16052. "method": "POST",
  16053. "header": [
  16054. {
  16055. "key": "Content-Type",
  16056. "name": "Content-Type",
  16057. "value": "application/json",
  16058. "type": "text"
  16059. },
  16060. {
  16061. "key": "Authorization",
  16062. "value": "Rong {{shoptoken}}"
  16063. }
  16064. ],
  16065. "body": {
  16066. "mode": "raw",
  16067. "raw": "{\r\n\t\"vip_id\": null,\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{corp_car_id01}},\r\n\t\"beauty_services_id\": {{beauty_services_id01}},\r\n\t\"service_amount\": {{service_amount_corp}},\r\n\t\"rate\": {{service01__rate_corp}},\r\n\t\"account_id\": {{account_id01}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{service_amount_corp}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"use_date\": \"{{ymd-date}}\",\r\n\t\"areashort_id\": {{areashort_id13}},\r\n\t\"car_code\": \"{{corp_code01}}\"\r\n}"
  16068. },
  16069. "url": {
  16070. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  16071. "host": [
  16072. "{{url}}"
  16073. ],
  16074. "path": [
  16075. "api",
  16076. "business",
  16077. "beautyserviceorderadmin",
  16078. ""
  16079. ]
  16080. }
  16081. },
  16082. "response": []
  16083. }
  16084. ]
  16085. },
  16086. {
  16087. "name": "companycustomer_repairservice",
  16088. "item": [
  16089. {
  16090. "name": "get_viprepairworkpriceadminview_repair1",
  16091. "event": [
  16092. {
  16093. "listen": "test",
  16094. "script": {
  16095. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  16096. "exec": [
  16097. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  16098. "",
  16099. " var jsonData = JSON.parse(responseBody);",
  16100. " ",
  16101. " postman.setEnvironmentVariable(\"repair01_item01_all\", JSON.stringify(jsonData));"
  16102. ],
  16103. "type": "text/javascript"
  16104. }
  16105. }
  16106. ],
  16107. "request": {
  16108. "method": "GET",
  16109. "header": [
  16110. {
  16111. "key": "Content-Type",
  16112. "value": "application/json"
  16113. },
  16114. {
  16115. "key": "Authorization",
  16116. "value": "Rong {{shoptoken}}"
  16117. }
  16118. ],
  16119. "body": {
  16120. "mode": "raw",
  16121. "raw": ""
  16122. },
  16123. "url": {
  16124. "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{corp_car_id01}}&item_id={{repair_service_id01}}",
  16125. "host": [
  16126. "{{url}}"
  16127. ],
  16128. "path": [
  16129. "api",
  16130. "business",
  16131. "viprepairworkpriceadminview",
  16132. ""
  16133. ],
  16134. "query": [
  16135. {
  16136. "key": "car_id",
  16137. "value": "{{corp_car_id01}}"
  16138. },
  16139. {
  16140. "key": "item_id",
  16141. "value": "{{repair_service_id01}}"
  16142. }
  16143. ]
  16144. }
  16145. },
  16146. "response": []
  16147. },
  16148. {
  16149. "name": "get_viprepairworkpriceadminview_repair2",
  16150. "event": [
  16151. {
  16152. "listen": "test",
  16153. "script": {
  16154. "id": "5adf531f-e857-49f3-aad6-cc1928519ac7",
  16155. "exec": [
  16156. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  16157. "",
  16158. " var jsonData = JSON.parse(responseBody);",
  16159. " ",
  16160. " postman.setEnvironmentVariable(\"repair02_item02_all\", JSON.stringify(jsonData));"
  16161. ],
  16162. "type": "text/javascript"
  16163. }
  16164. }
  16165. ],
  16166. "request": {
  16167. "method": "GET",
  16168. "header": [
  16169. {
  16170. "key": "Content-Type",
  16171. "value": "application/json"
  16172. },
  16173. {
  16174. "key": "Authorization",
  16175. "value": "Rong {{shoptoken}}"
  16176. }
  16177. ],
  16178. "body": {
  16179. "mode": "raw",
  16180. "raw": ""
  16181. },
  16182. "url": {
  16183. "raw": "{{url}}/api/business/viprepairworkpriceadminview/?car_id={{corp_car_id01}}&item_id={{repair_service_id02}}",
  16184. "host": [
  16185. "{{url}}"
  16186. ],
  16187. "path": [
  16188. "api",
  16189. "business",
  16190. "viprepairworkpriceadminview",
  16191. ""
  16192. ],
  16193. "query": [
  16194. {
  16195. "key": "car_id",
  16196. "value": "{{corp_car_id01}}"
  16197. },
  16198. {
  16199. "key": "item_id",
  16200. "value": "{{repair_service_id02}}"
  16201. }
  16202. ]
  16203. }
  16204. },
  16205. "response": []
  16206. },
  16207. {
  16208. "name": "get_product03_discount _corp",
  16209. "event": [
  16210. {
  16211. "listen": "prerequest",
  16212. "script": {
  16213. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  16214. "exec": [
  16215. ""
  16216. ],
  16217. "type": "text/javascript"
  16218. }
  16219. },
  16220. {
  16221. "listen": "test",
  16222. "script": {
  16223. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  16224. "exec": [
  16225. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  16226. "",
  16227. " var jsonData = JSON.parse(responseBody);",
  16228. "",
  16229. " postman.setEnvironmentVariable(\"product03_corp\", JSON.stringify(jsonData));"
  16230. ],
  16231. "type": "text/javascript"
  16232. }
  16233. }
  16234. ],
  16235. "request": {
  16236. "method": "GET",
  16237. "header": [
  16238. {
  16239. "key": "Content-Type",
  16240. "value": "application/json"
  16241. },
  16242. {
  16243. "key": "Authorization",
  16244. "value": "Rong {{shoptoken}}"
  16245. }
  16246. ],
  16247. "body": {
  16248. "mode": "raw",
  16249. "raw": ""
  16250. },
  16251. "url": {
  16252. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{corp_car_id01}}&product_id={{car_products_id03}}",
  16253. "host": [
  16254. "{{url}}"
  16255. ],
  16256. "path": [
  16257. "api",
  16258. "business",
  16259. "repairproductpriceadminview",
  16260. ""
  16261. ],
  16262. "query": [
  16263. {
  16264. "key": "car_id",
  16265. "value": "{{corp_car_id01}}"
  16266. },
  16267. {
  16268. "key": "product_id",
  16269. "value": "{{car_products_id03}}"
  16270. }
  16271. ]
  16272. }
  16273. },
  16274. "response": []
  16275. },
  16276. {
  16277. "name": "get_product04_discount _corp",
  16278. "event": [
  16279. {
  16280. "listen": "prerequest",
  16281. "script": {
  16282. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  16283. "exec": [
  16284. ""
  16285. ],
  16286. "type": "text/javascript"
  16287. }
  16288. },
  16289. {
  16290. "listen": "test",
  16291. "script": {
  16292. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  16293. "exec": [
  16294. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  16295. "",
  16296. " var jsonData = JSON.parse(responseBody);",
  16297. "",
  16298. " postman.setEnvironmentVariable(\"product04_corp\", JSON.stringify(jsonData));"
  16299. ],
  16300. "type": "text/javascript"
  16301. }
  16302. }
  16303. ],
  16304. "request": {
  16305. "method": "GET",
  16306. "header": [
  16307. {
  16308. "key": "Content-Type",
  16309. "value": "application/json"
  16310. },
  16311. {
  16312. "key": "Authorization",
  16313. "value": "Rong {{shoptoken}}"
  16314. }
  16315. ],
  16316. "body": {
  16317. "mode": "raw",
  16318. "raw": ""
  16319. },
  16320. "url": {
  16321. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{corp_car_id01}}&product_id={{car_products_id04}}",
  16322. "host": [
  16323. "{{url}}"
  16324. ],
  16325. "path": [
  16326. "api",
  16327. "business",
  16328. "repairproductpriceadminview",
  16329. ""
  16330. ],
  16331. "query": [
  16332. {
  16333. "key": "car_id",
  16334. "value": "{{corp_car_id01}}"
  16335. },
  16336. {
  16337. "key": "product_id",
  16338. "value": "{{car_products_id04}}"
  16339. }
  16340. ]
  16341. }
  16342. },
  16343. "response": []
  16344. },
  16345. {
  16346. "name": "get_product05_discount _corp",
  16347. "event": [
  16348. {
  16349. "listen": "prerequest",
  16350. "script": {
  16351. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  16352. "exec": [
  16353. ""
  16354. ],
  16355. "type": "text/javascript"
  16356. }
  16357. },
  16358. {
  16359. "listen": "test",
  16360. "script": {
  16361. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  16362. "exec": [
  16363. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  16364. "",
  16365. " var jsonData = JSON.parse(responseBody);",
  16366. "",
  16367. " postman.setEnvironmentVariable(\"product05_corp\", JSON.stringify(jsonData));"
  16368. ],
  16369. "type": "text/javascript"
  16370. }
  16371. }
  16372. ],
  16373. "request": {
  16374. "method": "GET",
  16375. "header": [
  16376. {
  16377. "key": "Content-Type",
  16378. "value": "application/json"
  16379. },
  16380. {
  16381. "key": "Authorization",
  16382. "value": "Rong {{shoptoken}}"
  16383. }
  16384. ],
  16385. "body": {
  16386. "mode": "raw",
  16387. "raw": ""
  16388. },
  16389. "url": {
  16390. "raw": "{{url}}/api/business/repairproductpriceadminview/?car_id={{corp_car_id01}}&product_id={{car_products_id05}}",
  16391. "host": [
  16392. "{{url}}"
  16393. ],
  16394. "path": [
  16395. "api",
  16396. "business",
  16397. "repairproductpriceadminview",
  16398. ""
  16399. ],
  16400. "query": [
  16401. {
  16402. "key": "car_id",
  16403. "value": "{{corp_car_id01}}"
  16404. },
  16405. {
  16406. "key": "product_id",
  16407. "value": "{{car_products_id05}}"
  16408. }
  16409. ]
  16410. }
  16411. },
  16412. "response": []
  16413. },
  16414. {
  16415. "name": "post1_repairserviceorderadminview_corp",
  16416. "event": [
  16417. {
  16418. "listen": "prerequest",
  16419. "script": {
  16420. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  16421. "exec": [
  16422. "var repair01_item01_all = JSON.parse(postman.getEnvironmentVariable(\"repair01_item01_all\"));",
  16423. "var repair02_item02_all = JSON.parse(postman.getEnvironmentVariable(\"repair02_item02_all\"));",
  16424. "",
  16425. "var repair_service_id01 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id01\"));",
  16426. "var repair_service_id02 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id02\"));",
  16427. "",
  16428. "var product03_corp = JSON.parse(postman.getEnvironmentVariable(\"product03_corp\"));",
  16429. "var product04_corp = JSON.parse(postman.getEnvironmentVariable(\"product04_corp\"));",
  16430. "var product05_corp = JSON.parse(postman.getEnvironmentVariable(\"product05_corp\"));",
  16431. "var data01 ={",
  16432. "\t\t\"car_products_id\": product03_corp.car_products_id,",
  16433. "\t\t\"amount\": 2,",
  16434. "\t\t\"rate\": product03_corp.rate,",
  16435. "\t\t\"price\": product03_corp.price,",
  16436. "\t\t\"discounted_price\": product03_corp.discounted_price",
  16437. "\t}",
  16438. "\t",
  16439. "var data02 ={",
  16440. "\t\t\"car_products_id\": product04_corp.car_products_id,",
  16441. "\t\t\"amount\": 2,",
  16442. "\t\t\"rate\": product04_corp.rate,",
  16443. "\t\t\"price\": product04_corp.price,",
  16444. "\t\t\"discounted_price\": product04_corp.discounted_price",
  16445. "\t}",
  16446. "\t",
  16447. "var data03 ={",
  16448. "\t\t\"car_products_id\": product05_corp.car_products_id,",
  16449. "\t\t\"amount\": 1,",
  16450. "\t\t\"rate\": product05_corp.rate,",
  16451. "\t\t\"price\":product05_corp.price,",
  16452. "\t\t\"discounted_price\": product05_corp.discounted_price",
  16453. "\t}",
  16454. "\t",
  16455. "var data04 ={",
  16456. "\t\t\"repair_service_id\": repair_service_id01,",
  16457. "\t\t\"standard_fee\": repair01_item01_all.standard_fee,",
  16458. "\t\t\"rate\": repair01_item01_all.rate,",
  16459. "\t\t\"discounted_price\": repair01_item01_all.discounted_price,",
  16460. "\t\t\"id\": null",
  16461. "\t}",
  16462. "\t",
  16463. "var data05 ={",
  16464. "\t\t\"repair_service_id\": repair_service_id02,",
  16465. "\t\t\"standard_fee\": repair02_item02_all.standard_fee,",
  16466. "\t\t\"rate\": repair02_item02_all.rate,",
  16467. "\t\t\"discounted_price\": repair02_item02_all.discounted_price,",
  16468. "\t\t\"id\": null",
  16469. "\t}",
  16470. "\t",
  16471. "\tvar discounted_price01 = parseFloat(data01.discounted_price) * parseFloat(data01.amount);",
  16472. "\tvar discounted_price02 = parseFloat(data02.discounted_price) * parseFloat(data02.amount);",
  16473. "\tvar discounted_price03 = parseFloat(data03.discounted_price) * parseFloat(data03.amount);",
  16474. " ",
  16475. " var sumproduct01_corp = parseFloat(discounted_price01)+ parseFloat(discounted_price02)+ parseFloat(discounted_price03);",
  16476. " ",
  16477. " ",
  16478. " ",
  16479. " postman.setEnvironmentVariable(\"r_products01_corp\", JSON.stringify(data01));",
  16480. " postman.setEnvironmentVariable(\"r_products02_corp\", JSON.stringify(data02));",
  16481. " postman.setEnvironmentVariable(\"r_products03_corp\", JSON.stringify(data03));",
  16482. " ",
  16483. " postman.setEnvironmentVariable(\"r_items01_corp\",JSON.stringify(data04));",
  16484. " postman.setEnvironmentVariable(\"r_items02_corp\",JSON.stringify(data05));",
  16485. " ",
  16486. " var work_price01_corp = parseFloat(data05.discounted_price) + parseFloat(data04.discounted_price);",
  16487. "\t",
  16488. "",
  16489. " postman.setEnvironmentVariable(\"sumproduct01_corp\",sumproduct01_corp);",
  16490. " postman.setEnvironmentVariable(\"work_price01_corp\",work_price01_corp);",
  16491. " "
  16492. ],
  16493. "type": "text/javascript"
  16494. }
  16495. },
  16496. {
  16497. "listen": "test",
  16498. "script": {
  16499. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  16500. "exec": [
  16501. "",
  16502. "pm.test(\"Successful POST request\", function () {",
  16503. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  16504. "});",
  16505. "// var jsonData = JSON.parse(responseBody);",
  16506. "",
  16507. "// postman.setEnvironmentVariable(\"product05_corp\", JSON.stringify(jsonData));"
  16508. ],
  16509. "type": "text/javascript"
  16510. }
  16511. }
  16512. ],
  16513. "request": {
  16514. "method": "POST",
  16515. "header": [
  16516. {
  16517. "key": "Content-Type",
  16518. "value": "application/json"
  16519. },
  16520. {
  16521. "key": "Authorization",
  16522. "value": "Rong {{shoptoken}}"
  16523. }
  16524. ],
  16525. "body": {
  16526. "mode": "raw",
  16527. "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"car_id\": {{corp_car_id01}},\r\n\t\"vip_id\": null,\r\n\t\"corp_vip_id\": {{corp_id01}},\r\n\t\"description\": null,\r\n\t\"other_price\": 180,\r\n\t\"work_price\": \"{{work_price01_corp}}\",\r\n\t\"products_price\": \"{{sumproduct01_corp}}\",\r\n\t\"r_items\": [{{r_items01_corp}}, {{r_items02_corp}}],\r\n\t\"r_products\": [{{r_products01_corp}}, {{r_products02_corp}},{{r_products03_corp}}],\r\n\t\"areashort_id\": {{areashort_id13}},\r\n\t\"car_code\": \"{{corp_code01}}\"\r\n}"
  16528. },
  16529. "url": {
  16530. "raw": "{{url}}/api/business/repairserviceorderadminview/",
  16531. "host": [
  16532. "{{url}}"
  16533. ],
  16534. "path": [
  16535. "api",
  16536. "business",
  16537. "repairserviceorderadminview",
  16538. ""
  16539. ]
  16540. }
  16541. },
  16542. "response": []
  16543. },
  16544. {
  16545. "name": "get2_business_repairserviceorderadminview_corp_status0",
  16546. "event": [
  16547. {
  16548. "listen": "test",
  16549. "script": {
  16550. "id": "2ff84aa8-e38d-4112-8b4c-76cfd58e8225",
  16551. "exec": [
  16552. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  16553. "",
  16554. "",
  16555. " var jsonData = JSON.parse(responseBody);",
  16556. " ",
  16557. " postman.setEnvironmentVariable(\"repairservice_id01_corp\", jsonData.results[0].id);",
  16558. " ",
  16559. ""
  16560. ],
  16561. "type": "text/javascript"
  16562. }
  16563. }
  16564. ],
  16565. "request": {
  16566. "method": "GET",
  16567. "header": [
  16568. {
  16569. "key": "Content-Type",
  16570. "value": "application/json"
  16571. },
  16572. {
  16573. "key": "Authorization",
  16574. "value": "Rong {{shoptoken}}"
  16575. }
  16576. ],
  16577. "body": {
  16578. "mode": "raw",
  16579. "raw": ""
  16580. },
  16581. "url": {
  16582. "raw": "{{url}}/api/business/repairserviceorderadminview/?car_code={{corp_code01}}&status=0&areashort={{areashort_id13}}",
  16583. "host": [
  16584. "{{url}}"
  16585. ],
  16586. "path": [
  16587. "api",
  16588. "business",
  16589. "repairserviceorderadminview",
  16590. ""
  16591. ],
  16592. "query": [
  16593. {
  16594. "key": "car_code",
  16595. "value": "{{corp_code01}}"
  16596. },
  16597. {
  16598. "key": "status",
  16599. "value": "0"
  16600. },
  16601. {
  16602. "key": "areashort",
  16603. "value": "{{areashort_id13}}"
  16604. },
  16605. {
  16606. "key": "start_date",
  16607. "value": "{{ymd-date}}",
  16608. "disabled": true
  16609. },
  16610. {
  16611. "key": "end_date",
  16612. "value": "{{ymd-date}}",
  16613. "disabled": true
  16614. }
  16615. ]
  16616. }
  16617. },
  16618. "response": []
  16619. },
  16620. {
  16621. "name": "get3_business_repairserviceorderadminview_corp_total01",
  16622. "event": [
  16623. {
  16624. "listen": "test",
  16625. "script": {
  16626. "id": "c2510d87-6487-4795-96a1-cc47807ff00a",
  16627. "exec": [
  16628. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  16629. "",
  16630. "var jsonData = JSON.parse(responseBody);",
  16631. "",
  16632. "postman.setEnvironmentVariable(\"total01_corp\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));",
  16633. " ",
  16634. "",
  16635. "",
  16636. "",
  16637. "",
  16638. ""
  16639. ],
  16640. "type": "text/javascript"
  16641. }
  16642. }
  16643. ],
  16644. "request": {
  16645. "method": "GET",
  16646. "header": [
  16647. {
  16648. "key": "Content-Type",
  16649. "value": "application/json"
  16650. },
  16651. {
  16652. "key": "Authorization",
  16653. "value": "Rong {{shoptoken}}"
  16654. }
  16655. ],
  16656. "body": {
  16657. "mode": "raw",
  16658. "raw": ""
  16659. },
  16660. "url": {
  16661. "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id01_corp}}/",
  16662. "host": [
  16663. "{{url}}"
  16664. ],
  16665. "path": [
  16666. "api",
  16667. "business",
  16668. "repairserviceorderadminview",
  16669. "{{repairservice_id01_corp}}",
  16670. ""
  16671. ]
  16672. }
  16673. },
  16674. "response": []
  16675. },
  16676. {
  16677. "name": "post4_business_repaircardetail_corp",
  16678. "event": [
  16679. {
  16680. "listen": "test",
  16681. "script": {
  16682. "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1",
  16683. "exec": [
  16684. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  16685. ],
  16686. "type": "text/javascript"
  16687. }
  16688. }
  16689. ],
  16690. "request": {
  16691. "method": "POST",
  16692. "header": [
  16693. {
  16694. "key": "Content-Type",
  16695. "value": "application/json"
  16696. },
  16697. {
  16698. "key": "Authorization",
  16699. "value": "Rong {{shoptoken}}"
  16700. }
  16701. ],
  16702. "body": {
  16703. "mode": "raw",
  16704. "raw": "{\r\n\t\"id\": null,\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"remaining_oil\": 60,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"王明敏\",\r\n\t\"sender_phone\": \"{{corp_telephone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01_corp}}\"\r\n}"
  16705. },
  16706. "url": {
  16707. "raw": "{{url}}/api/business/repaircardetail/",
  16708. "host": [
  16709. "{{url}}"
  16710. ],
  16711. "path": [
  16712. "api",
  16713. "business",
  16714. "repaircardetail",
  16715. ""
  16716. ]
  16717. }
  16718. },
  16719. "response": []
  16720. },
  16721. {
  16722. "name": "get5_repaircardetail_id_prepay",
  16723. "event": [
  16724. {
  16725. "listen": "prerequest",
  16726. "script": {
  16727. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  16728. "exec": [
  16729. ""
  16730. ],
  16731. "type": "text/javascript"
  16732. }
  16733. },
  16734. {
  16735. "listen": "test",
  16736. "script": {
  16737. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  16738. "exec": [
  16739. "",
  16740. "",
  16741. "pm.test(\"Status code is 200\", function () {",
  16742. " pm.response.to.have.status(200);",
  16743. " ",
  16744. "}); ",
  16745. "",
  16746. "var jsonData = JSON.parse(responseBody);",
  16747. " ",
  16748. " postman.setEnvironmentVariable(\"prepay_01_corp\", jsonData.prepayments);",
  16749. " ",
  16750. " postman.setEnvironmentVariable(\"servicedetail_id01_corp\", jsonData.id);",
  16751. " "
  16752. ],
  16753. "type": "text/javascript"
  16754. }
  16755. }
  16756. ],
  16757. "request": {
  16758. "method": "GET",
  16759. "header": [
  16760. {
  16761. "key": "Content-Type",
  16762. "value": "application/json"
  16763. },
  16764. {
  16765. "key": "Authorization",
  16766. "value": "Rong {{shoptoken}}"
  16767. }
  16768. ],
  16769. "body": {
  16770. "mode": "raw",
  16771. "raw": ""
  16772. },
  16773. "url": {
  16774. "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id01_corp}}",
  16775. "host": [
  16776. "{{url}}"
  16777. ],
  16778. "path": [
  16779. "api",
  16780. "business",
  16781. "repaircardetail",
  16782. ""
  16783. ],
  16784. "query": [
  16785. {
  16786. "key": "r_id",
  16787. "value": "{{repairservice_id01_corp}}"
  16788. }
  16789. ]
  16790. }
  16791. },
  16792. "response": []
  16793. },
  16794. {
  16795. "name": "put6_business_repaircardetail",
  16796. "event": [
  16797. {
  16798. "listen": "test",
  16799. "script": {
  16800. "id": "c3cc59f5-45cd-4bed-b662-e51c98f5b4e1",
  16801. "exec": [
  16802. "pm.test(\"Status code is 200\", function () {",
  16803. " pm.response.to.have.status(200);",
  16804. "});"
  16805. ],
  16806. "type": "text/javascript"
  16807. }
  16808. }
  16809. ],
  16810. "request": {
  16811. "method": "PUT",
  16812. "header": [
  16813. {
  16814. "key": "Content-Type",
  16815. "value": "application/json"
  16816. },
  16817. {
  16818. "key": "Authorization",
  16819. "value": "Rong {{shoptoken}}"
  16820. }
  16821. ],
  16822. "body": {
  16823. "mode": "raw",
  16824. "raw": "{\r\n\t\"id\": {{servicedetail_id01}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\":null,\r\n\t\"remaining_oil\": 30,\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": {{prepay_01}},\r\n\t\"sender\": \"{{vip_name01}}\",\r\n\t\"sender_phone\": \"{{vip_phone01}}\",\r\n\t\"driven_distance\": 20000,\r\n\t\"payee\": null,\r\n\t\"pickup\": null,\r\n\t\"account\": {{account_id01}},\r\n\t\"car_damage\": \"前保险杠异常;车头盖异常\",\r\n\t\"guarantee\": 3,\r\n\t\"note\": null,\r\n \"receipt_date_str\": \"{{localdate}}\",\r\n\t\"service_order\": \"{{repairservice_id01}}\"\r\n}"
  16825. },
  16826. "url": {
  16827. "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id01_corp}}/",
  16828. "host": [
  16829. "{{url}}"
  16830. ],
  16831. "path": [
  16832. "api",
  16833. "business",
  16834. "repaircardetail",
  16835. "{{servicedetail_id01_corp}}",
  16836. ""
  16837. ]
  16838. }
  16839. },
  16840. "response": []
  16841. },
  16842. {
  16843. "name": "get7_business_repairdispatcheddetail",
  16844. "event": [
  16845. {
  16846. "listen": "test",
  16847. "script": {
  16848. "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec",
  16849. "exec": [
  16850. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  16851. "",
  16852. " var jsonData = JSON.parse(responseBody);",
  16853. " postman.setEnvironmentVariable(\"service_id01_corp\", jsonData[0].id);",
  16854. " postman.setEnvironmentVariable(\"service_id02_corp\", jsonData[1].id);",
  16855. ""
  16856. ],
  16857. "type": "text/javascript"
  16858. }
  16859. }
  16860. ],
  16861. "request": {
  16862. "method": "GET",
  16863. "header": [
  16864. {
  16865. "key": "Authorization",
  16866. "value": "Rong {{shoptoken}}"
  16867. }
  16868. ],
  16869. "body": {
  16870. "mode": "raw",
  16871. "raw": ""
  16872. },
  16873. "url": {
  16874. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01_corp}}",
  16875. "host": [
  16876. "{{url}}"
  16877. ],
  16878. "path": [
  16879. "api",
  16880. "business",
  16881. "repairdispatcheddetail",
  16882. ""
  16883. ],
  16884. "query": [
  16885. {
  16886. "key": "r_id",
  16887. "value": "{{repairservice_id01_corp}}"
  16888. }
  16889. ]
  16890. }
  16891. },
  16892. "response": []
  16893. },
  16894. {
  16895. "name": "patch8_business_repaircardetail_1",
  16896. "event": [
  16897. {
  16898. "listen": "test",
  16899. "script": {
  16900. "id": "b95712d7-e235-4845-8153-f20f16fa468f",
  16901. "exec": [
  16902. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  16903. ],
  16904. "type": "text/javascript"
  16905. }
  16906. }
  16907. ],
  16908. "request": {
  16909. "method": "PATCH",
  16910. "header": [
  16911. {
  16912. "key": "Content-Type",
  16913. "value": "application/json"
  16914. },
  16915. {
  16916. "key": "Authorization",
  16917. "value": "Rong {{shoptoken}}"
  16918. }
  16919. ],
  16920. "body": {
  16921. "mode": "raw",
  16922. "raw": "\t[{\r\n\t\t\"id\": {{service_id01_corp}},\r\n\t\t\"agent_id\": null,\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": null,\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 100\r\n\t\t}]\r\n\t},\r\n\r\n\t{\r\n\t\t\"id\": {{service_id02_corp}},\r\n\t\t\"agent_id\": null,\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": null,\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 50\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\t\"rate\": 50\r\n\t\t}]\r\n\t}\r\n\r\n]"
  16923. },
  16924. "url": {
  16925. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01_corp}}",
  16926. "host": [
  16927. "{{url}}"
  16928. ],
  16929. "path": [
  16930. "api",
  16931. "business",
  16932. "repairdispatcheddetail",
  16933. ""
  16934. ],
  16935. "query": [
  16936. {
  16937. "key": "r_id",
  16938. "value": "{{repairservice_id01_corp}}"
  16939. }
  16940. ]
  16941. }
  16942. },
  16943. "response": []
  16944. },
  16945. {
  16946. "name": "patch9_business_repaircardetail_2",
  16947. "event": [
  16948. {
  16949. "listen": "test",
  16950. "script": {
  16951. "id": "85c54901-138c-4d96-8847-96f711a0ac63",
  16952. "exec": [
  16953. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  16954. ],
  16955. "type": "text/javascript"
  16956. }
  16957. }
  16958. ],
  16959. "request": {
  16960. "method": "PATCH",
  16961. "header": [
  16962. {
  16963. "key": "Content-Type",
  16964. "value": "application/json"
  16965. },
  16966. {
  16967. "key": "Authorization",
  16968. "value": "Rong {{shoptoken}}"
  16969. }
  16970. ],
  16971. "body": {
  16972. "mode": "raw",
  16973. "raw": "\t[{\r\n\t\t\"id\": {{service_id01_corp}},\r\n\t\t\"agent_id\": {{agent_id02}},\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 100\r\n\t\t}]\r\n\t},\r\n\t{\r\n\t\t\"id\": {{service_id02_corp}},\r\n\t\t\"agent_id\": {{agent_id01}},\r\n\t\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\t\"status\": 0,\r\n\t\t\"dispatched_worker\": [{\r\n\t\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\t\"rate\": 50\r\n\t\t},{\r\n\t\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\t\"rate\": 50\r\n\t\t}]\r\n\t}\r\n]"
  16974. },
  16975. "url": {
  16976. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id01_corp}}",
  16977. "host": [
  16978. "{{url}}"
  16979. ],
  16980. "path": [
  16981. "api",
  16982. "business",
  16983. "repairdispatcheddetail",
  16984. ""
  16985. ],
  16986. "query": [
  16987. {
  16988. "key": "r_id",
  16989. "value": "{{repairservice_id01_corp}}"
  16990. }
  16991. ]
  16992. }
  16993. },
  16994. "response": []
  16995. },
  16996. {
  16997. "name": "post10_repairsettleaccountsadminview_cash",
  16998. "event": [
  16999. {
  17000. "listen": "prerequest",
  17001. "script": {
  17002. "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98",
  17003. "exec": [
  17004. "var sum01_corp = JSON.parse(postman.getEnvironmentVariable(\"total01_corp\"));",
  17005. "",
  17006. "var prepay_01_corp = JSON.parse(postman.getEnvironmentVariable(\"prepay_01_corp\"));",
  17007. "",
  17008. "sum01_corp-=prepay_01_corp;",
  17009. "",
  17010. "var sum01_corp = sum01_corp.toFixed(2)",
  17011. "",
  17012. " postman.setEnvironmentVariable(\"sum01_corp\",sum01_corp);"
  17013. ],
  17014. "type": "text/javascript"
  17015. }
  17016. },
  17017. {
  17018. "listen": "test",
  17019. "script": {
  17020. "id": "39c85b02-c440-4926-8463-03b49483e3c8",
  17021. "exec": [
  17022. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  17023. ],
  17024. "type": "text/javascript"
  17025. }
  17026. }
  17027. ],
  17028. "request": {
  17029. "method": "POST",
  17030. "header": [
  17031. {
  17032. "key": "Content-Type",
  17033. "value": "application/json"
  17034. },
  17035. {
  17036. "key": "Authorization",
  17037. "value": "Rong {{shoptoken}}"
  17038. }
  17039. ],
  17040. "body": {
  17041. "mode": "raw",
  17042. "raw": "{\r\n\t\"service_order\": \"{{repairservice_id01_corp}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": {{sum01_corp}},\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id03}},\r\n\t\"payee\": {{agent_id03}},\r\n\t\"settles\": [],\r\n\t\"localdate\": \"{{localdate}}\"\r\n}"
  17043. },
  17044. "url": {
  17045. "raw": "{{url}}/api/business/repairsettleaccountsadminview/",
  17046. "host": [
  17047. "{{url}}"
  17048. ],
  17049. "path": [
  17050. "api",
  17051. "business",
  17052. "repairsettleaccountsadminview",
  17053. ""
  17054. ]
  17055. }
  17056. },
  17057. "response": []
  17058. }
  17059. ]
  17060. },
  17061. {
  17062. "name": "return to profit",
  17063. "item": [
  17064. {
  17065. "name": "post_vipmember_corpbackprofit",
  17066. "event": [
  17067. {
  17068. "listen": "test",
  17069. "script": {
  17070. "id": "07b6ba9a-03f9-4374-8fdf-f5d32e979153",
  17071. "exec": [
  17072. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  17073. ],
  17074. "type": "text/javascript"
  17075. }
  17076. }
  17077. ],
  17078. "request": {
  17079. "method": "POST",
  17080. "header": [
  17081. {
  17082. "key": "Authorization",
  17083. "value": "Rong {{shoptoken}}"
  17084. },
  17085. {
  17086. "key": "Content-Type",
  17087. "value": "application/json"
  17088. }
  17089. ],
  17090. "body": {
  17091. "mode": "raw",
  17092. "raw": "{\r\n\t\"corp_vip\":{{corp_id01}},\r\n\t\"cycle\": 1,\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"{{ymd-date}}\",\r\n\t\"note\": null,\r\n\t\"back_profit_item\": [{\r\n\t\t\"money\": \"10000\",\r\n\t\t\"back_ratio\": \"5\"\r\n\t}]\r\n}"
  17093. },
  17094. "url": {
  17095. "raw": "{{url}}/api/vipmember/corpbackprofit/",
  17096. "host": [
  17097. "{{url}}"
  17098. ],
  17099. "path": [
  17100. "api",
  17101. "vipmember",
  17102. "corpbackprofit",
  17103. ""
  17104. ]
  17105. }
  17106. },
  17107. "response": []
  17108. },
  17109. {
  17110. "name": "get_vipmember_corpbackprofit",
  17111. "event": [
  17112. {
  17113. "listen": "test",
  17114. "script": {
  17115. "type": "text/javascript",
  17116. "exec": [
  17117. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17118. ]
  17119. }
  17120. }
  17121. ],
  17122. "request": {
  17123. "method": "GET",
  17124. "header": [
  17125. {
  17126. "key": "Authorization",
  17127. "value": "Rong {{shoptoken}}"
  17128. },
  17129. {
  17130. "key": "Content-Type",
  17131. "value": "application/json"
  17132. }
  17133. ],
  17134. "body": {
  17135. "mode": "raw",
  17136. "raw": ""
  17137. },
  17138. "url": {
  17139. "raw": "{{url}}/api/vipmember/corpbackprofit/",
  17140. "host": [
  17141. "{{url}}"
  17142. ],
  17143. "path": [
  17144. "api",
  17145. "vipmember",
  17146. "corpbackprofit",
  17147. ""
  17148. ]
  17149. }
  17150. },
  17151. "response": []
  17152. }
  17153. ]
  17154. },
  17155. {
  17156. "name": "performance report",
  17157. "item": [
  17158. {
  17159. "name": "get_staff_staffperformancereport_saledauly",
  17160. "event": [
  17161. {
  17162. "listen": "test",
  17163. "script": {
  17164. "id": "26e93d8f-1936-41c7-a406-a465ce5336c7",
  17165. "exec": [
  17166. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17167. ],
  17168. "type": "text/javascript"
  17169. }
  17170. }
  17171. ],
  17172. "request": {
  17173. "method": "GET",
  17174. "header": [
  17175. {
  17176. "key": "Authorization",
  17177. "value": "Rong {{shoptoken}}"
  17178. }
  17179. ],
  17180. "body": {
  17181. "mode": "raw",
  17182. "raw": ""
  17183. },
  17184. "url": {
  17185. "raw": "{{url}}/api/staff/staffperformancereport/?types=salesDaily&monthday=2018-10-16",
  17186. "host": [
  17187. "{{url}}"
  17188. ],
  17189. "path": [
  17190. "api",
  17191. "staff",
  17192. "staffperformancereport",
  17193. ""
  17194. ],
  17195. "query": [
  17196. {
  17197. "key": "types",
  17198. "value": "salesDaily"
  17199. },
  17200. {
  17201. "key": "monthday",
  17202. "value": "2018-10-16"
  17203. }
  17204. ]
  17205. }
  17206. },
  17207. "response": []
  17208. },
  17209. {
  17210. "name": "get_staff_staffperformancereport_salemonth",
  17211. "event": [
  17212. {
  17213. "listen": "test",
  17214. "script": {
  17215. "type": "text/javascript",
  17216. "exec": [
  17217. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17218. ]
  17219. }
  17220. }
  17221. ],
  17222. "request": {
  17223. "method": "GET",
  17224. "header": [
  17225. {
  17226. "key": "Authorization",
  17227. "value": "Rong {{shoptoken}}"
  17228. }
  17229. ],
  17230. "body": {
  17231. "mode": "raw",
  17232. "raw": ""
  17233. },
  17234. "url": {
  17235. "raw": "{{url}}/api/staff/staffperformancereport/?types=salesMonthlyReport&monthday=2018-10-01",
  17236. "host": [
  17237. "{{url}}"
  17238. ],
  17239. "path": [
  17240. "api",
  17241. "staff",
  17242. "staffperformancereport",
  17243. ""
  17244. ],
  17245. "query": [
  17246. {
  17247. "key": "types",
  17248. "value": "salesMonthlyReport"
  17249. },
  17250. {
  17251. "key": "monthday",
  17252. "value": "2018-10-01"
  17253. }
  17254. ]
  17255. }
  17256. },
  17257. "response": []
  17258. },
  17259. {
  17260. "name": "get_staff_staffperformancereport_sgjxdaily",
  17261. "event": [
  17262. {
  17263. "listen": "test",
  17264. "script": {
  17265. "type": "text/javascript",
  17266. "exec": [
  17267. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17268. ]
  17269. }
  17270. }
  17271. ],
  17272. "request": {
  17273. "method": "GET",
  17274. "header": [
  17275. {
  17276. "key": "Authorization",
  17277. "value": "Rong {{shoptoken}}"
  17278. }
  17279. ],
  17280. "body": {
  17281. "mode": "raw",
  17282. "raw": ""
  17283. },
  17284. "url": {
  17285. "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionDaily&monthday=2018-10-16",
  17286. "host": [
  17287. "{{url}}"
  17288. ],
  17289. "path": [
  17290. "api",
  17291. "staff",
  17292. "staffperformancereport",
  17293. ""
  17294. ],
  17295. "query": [
  17296. {
  17297. "key": "types",
  17298. "value": "constructionDaily"
  17299. },
  17300. {
  17301. "key": "monthday",
  17302. "value": "2018-10-16"
  17303. }
  17304. ]
  17305. }
  17306. },
  17307. "response": []
  17308. },
  17309. {
  17310. "name": "get_staff_staffperformancereport_sgjxmonth",
  17311. "event": [
  17312. {
  17313. "listen": "test",
  17314. "script": {
  17315. "type": "text/javascript",
  17316. "exec": [
  17317. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17318. ]
  17319. }
  17320. }
  17321. ],
  17322. "request": {
  17323. "method": "GET",
  17324. "header": [
  17325. {
  17326. "key": "Authorization",
  17327. "value": "Rong {{shoptoken}}"
  17328. }
  17329. ],
  17330. "body": {
  17331. "mode": "raw",
  17332. "raw": ""
  17333. },
  17334. "url": {
  17335. "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionMonthlyReport&monthday=2018-10-01",
  17336. "host": [
  17337. "{{url}}"
  17338. ],
  17339. "path": [
  17340. "api",
  17341. "staff",
  17342. "staffperformancereport",
  17343. ""
  17344. ],
  17345. "query": [
  17346. {
  17347. "key": "types",
  17348. "value": "constructionMonthlyReport"
  17349. },
  17350. {
  17351. "key": "monthday",
  17352. "value": "2018-10-01"
  17353. }
  17354. ]
  17355. }
  17356. },
  17357. "response": []
  17358. }
  17359. ]
  17360. },
  17361. {
  17362. "name": "payment received",
  17363. "item": [
  17364. {
  17365. "name": "get_receipt",
  17366. "event": [
  17367. {
  17368. "listen": "test",
  17369. "script": {
  17370. "id": "0f8df3cf-2258-4e3c-83bc-d61ec08f84fb",
  17371. "exec": [
  17372. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17373. ],
  17374. "type": "text/javascript"
  17375. }
  17376. }
  17377. ],
  17378. "request": {
  17379. "method": "GET",
  17380. "header": [
  17381. {
  17382. "key": "Authorization",
  17383. "value": "Rong {{shoptoken}}"
  17384. }
  17385. ],
  17386. "body": {
  17387. "mode": "raw",
  17388. "raw": ""
  17389. },
  17390. "url": {
  17391. "raw": "{{url}}/api/receivepayment/receipt/?start_date=2018-10-01&end_date=2018-10-17",
  17392. "host": [
  17393. "{{url}}"
  17394. ],
  17395. "path": [
  17396. "api",
  17397. "receivepayment",
  17398. "receipt",
  17399. ""
  17400. ],
  17401. "query": [
  17402. {
  17403. "key": "start_date",
  17404. "value": "2018-10-01"
  17405. },
  17406. {
  17407. "key": "end_date",
  17408. "value": "2018-10-17"
  17409. }
  17410. ]
  17411. }
  17412. },
  17413. "response": []
  17414. },
  17415. {
  17416. "name": "get_payorde",
  17417. "event": [
  17418. {
  17419. "listen": "test",
  17420. "script": {
  17421. "id": "8f8be309-0d16-4f07-87d2-34a7147c3303",
  17422. "exec": [
  17423. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17424. ],
  17425. "type": "text/javascript"
  17426. }
  17427. }
  17428. ],
  17429. "request": {
  17430. "method": "GET",
  17431. "header": [
  17432. {
  17433. "key": "Authorization",
  17434. "value": "Rong {{shoptoken}}"
  17435. }
  17436. ],
  17437. "body": {
  17438. "mode": "raw",
  17439. "raw": ""
  17440. },
  17441. "url": {
  17442. "raw": "{{url}}/api/receivepayment/payorder/?start_date=2018-10-01&end_date=2018-10-17",
  17443. "host": [
  17444. "{{url}}"
  17445. ],
  17446. "path": [
  17447. "api",
  17448. "receivepayment",
  17449. "payorder",
  17450. ""
  17451. ],
  17452. "query": [
  17453. {
  17454. "key": "start_date",
  17455. "value": "2018-10-01"
  17456. },
  17457. {
  17458. "key": "end_date",
  17459. "value": "2018-10-17"
  17460. }
  17461. ]
  17462. }
  17463. },
  17464. "response": []
  17465. },
  17466. {
  17467. "name": "post_accounttransfer",
  17468. "event": [
  17469. {
  17470. "listen": "test",
  17471. "script": {
  17472. "id": "bdaa8314-5b3e-4471-b212-5576c603de0f",
  17473. "exec": [
  17474. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17475. ],
  17476. "type": "text/javascript"
  17477. }
  17478. }
  17479. ],
  17480. "request": {
  17481. "method": "POST",
  17482. "header": [
  17483. {
  17484. "key": "Authorization",
  17485. "value": "Rong {{shoptoken}}"
  17486. },
  17487. {
  17488. "key": "Content-Type",
  17489. "name": "Content-Type",
  17490. "value": "application/json",
  17491. "type": "text"
  17492. }
  17493. ],
  17494. "body": {
  17495. "mode": "raw",
  17496. "raw": "{\r\n\t\"start_date\": \"{{ymd-date}}\",\r\n\t\"code\": \"\",\r\n\t\"summary\": \"账户资金周转\",\r\n\t\"account_out\": {{account_id01}},\r\n\t\"account_in\": {{account_id02}},\r\n\t\"amount\": \"50\",\r\n\t\"description\": \"\",\r\n\t\"agent\":{{agent_id01}}\r\n}"
  17497. },
  17498. "url": {
  17499. "raw": "{{url}}/api/receivepayment/accounttransfer/",
  17500. "host": [
  17501. "{{url}}"
  17502. ],
  17503. "path": [
  17504. "api",
  17505. "receivepayment",
  17506. "accounttransfer",
  17507. ""
  17508. ]
  17509. }
  17510. },
  17511. "response": []
  17512. },
  17513. {
  17514. "name": "get_accounttransfer",
  17515. "event": [
  17516. {
  17517. "listen": "test",
  17518. "script": {
  17519. "id": "2eb9d86f-6df8-4404-a3ed-db59a5f6c61e",
  17520. "exec": [
  17521. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17522. ],
  17523. "type": "text/javascript"
  17524. }
  17525. }
  17526. ],
  17527. "request": {
  17528. "method": "GET",
  17529. "header": [
  17530. {
  17531. "key": "Authorization",
  17532. "value": "Rong {{shoptoken}}"
  17533. }
  17534. ],
  17535. "body": {
  17536. "mode": "raw",
  17537. "raw": ""
  17538. },
  17539. "url": {
  17540. "raw": "{{url}}/api/receivepayment/accounttransfer/?start_date=2018-11-01&end_date=2018-11-30",
  17541. "host": [
  17542. "{{url}}"
  17543. ],
  17544. "path": [
  17545. "api",
  17546. "receivepayment",
  17547. "accounttransfer",
  17548. ""
  17549. ],
  17550. "query": [
  17551. {
  17552. "key": "start_date",
  17553. "value": "2018-11-01"
  17554. },
  17555. {
  17556. "key": "end_date",
  17557. "value": "2018-11-30"
  17558. }
  17559. ]
  17560. }
  17561. },
  17562. "response": []
  17563. },
  17564. {
  17565. "name": "get_vendorpayable",
  17566. "event": [
  17567. {
  17568. "listen": "test",
  17569. "script": {
  17570. "id": "2eb9d86f-6df8-4404-a3ed-db59a5f6c61e",
  17571. "exec": [
  17572. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17573. ],
  17574. "type": "text/javascript"
  17575. }
  17576. }
  17577. ],
  17578. "request": {
  17579. "method": "GET",
  17580. "header": [
  17581. {
  17582. "key": "Authorization",
  17583. "value": "Rong {{shoptoken}}"
  17584. }
  17585. ],
  17586. "body": {
  17587. "mode": "raw",
  17588. "raw": ""
  17589. },
  17590. "url": {
  17591. "raw": "{{url}}/api/receivepayment/vendorpayable/",
  17592. "host": [
  17593. "{{url}}"
  17594. ],
  17595. "path": [
  17596. "api",
  17597. "receivepayment",
  17598. "vendorpayable",
  17599. ""
  17600. ]
  17601. }
  17602. },
  17603. "response": []
  17604. },
  17605. {
  17606. "name": "get_customerreceivable",
  17607. "event": [
  17608. {
  17609. "listen": "test",
  17610. "script": {
  17611. "id": "2eb9d86f-6df8-4404-a3ed-db59a5f6c61e",
  17612. "exec": [
  17613. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  17614. ],
  17615. "type": "text/javascript"
  17616. }
  17617. }
  17618. ],
  17619. "request": {
  17620. "method": "GET",
  17621. "header": [
  17622. {
  17623. "key": "Authorization",
  17624. "value": "Rong {{shoptoken}}"
  17625. }
  17626. ],
  17627. "body": {
  17628. "mode": "raw",
  17629. "raw": ""
  17630. },
  17631. "url": {
  17632. "raw": "{{url}}/api/receivepayment/customerreceivable/",
  17633. "host": [
  17634. "{{url}}"
  17635. ],
  17636. "path": [
  17637. "api",
  17638. "receivepayment",
  17639. "customerreceivable",
  17640. ""
  17641. ]
  17642. }
  17643. },
  17644. "response": []
  17645. }
  17646. ]
  17647. },
  17648. {
  17649. "name": "groups",
  17650. "item": [
  17651. {
  17652. "name": "post_groupprojectsetting_1",
  17653. "event": [
  17654. {
  17655. "listen": "test",
  17656. "script": {
  17657. "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe",
  17658. "exec": [
  17659. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  17660. ],
  17661. "type": "text/javascript"
  17662. }
  17663. }
  17664. ],
  17665. "request": {
  17666. "method": "POST",
  17667. "header": [
  17668. {
  17669. "key": "Content-Type",
  17670. "name": "Content-Type",
  17671. "type": "text",
  17672. "value": "application/json"
  17673. },
  17674. {
  17675. "key": "Authorization",
  17676. "type": "text",
  17677. "value": "Rong {{shoptoken}}"
  17678. }
  17679. ],
  17680. "body": {
  17681. "mode": "raw",
  17682. "raw": "{\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id01}},\r\n\t\"date\": \"{{date}}\",\r\n\t\"end_date\": \"2018-12-25\",\r\n\t\"standard_price\":{{repair_service_price01}},\r\n\t\"exchange_end_date\": \"2020-01-01\",\r\n\t\"image_uri\": null,\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{repair_service_name01}}\",\r\n\t\"rulelist\": [{\r\n\t\t\"number\": 2,\r\n\t\t\"price\": 140\r\n\t}, {\r\n\t\t\"number\": 3,\r\n\t\t\"price\": 120\r\n\t}, {\r\n\t\t\"number\": 4,\r\n\t\t\"price\": 100\r\n\t}]\r\n}"
  17683. },
  17684. "url": {
  17685. "raw": "{{url}}/api/market/groupprojectsetting/",
  17686. "host": [
  17687. "{{url}}"
  17688. ],
  17689. "path": [
  17690. "api",
  17691. "market",
  17692. "groupprojectsetting",
  17693. ""
  17694. ]
  17695. }
  17696. },
  17697. "response": []
  17698. },
  17699. {
  17700. "name": "post_groupprojectsetting_2",
  17701. "event": [
  17702. {
  17703. "listen": "test",
  17704. "script": {
  17705. "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe",
  17706. "exec": [
  17707. "pm.test(\"Successful POST request\", function () {",
  17708. " pm.expect(pm.response.code).to.be.oneOf([201]);",
  17709. "});"
  17710. ],
  17711. "type": "text/javascript"
  17712. }
  17713. }
  17714. ],
  17715. "request": {
  17716. "method": "POST",
  17717. "header": [
  17718. {
  17719. "key": "Content-Type",
  17720. "name": "Content-Type",
  17721. "value": "application/json",
  17722. "type": "text"
  17723. },
  17724. {
  17725. "key": "Authorization",
  17726. "value": "Rong {{shoptoken}}",
  17727. "type": "text"
  17728. }
  17729. ],
  17730. "body": {
  17731. "mode": "raw",
  17732. "raw": "{\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"date\": \"{{date}}\",\r\n\t\"end_date\": \"2018-12-25\",\r\n\t\"standard_price\":{{beauty_services_price02}},\r\n\t\"exchange_end_date\": \"2020-01-01\",\r\n\t\"image_uri\": null,\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{beauty_services_name01}}\",\r\n\t\"rulelist\": [{\r\n\t\t\"number\": 2,\r\n\t\t\"price\": 270\r\n\t}, {\r\n\t\t\"number\": 3,\r\n\t\t\"price\": 250\r\n\t}, {\r\n\t\t\"number\": 4,\r\n\t\t\"price\": 220\r\n\t}, {\r\n\t\t\"number\": 5,\r\n\t\t\"price\": 200\r\n\t}]\r\n}"
  17733. },
  17734. "url": {
  17735. "raw": "{{url}}/api/market/groupprojectsetting/",
  17736. "host": [
  17737. "{{url}}"
  17738. ],
  17739. "path": [
  17740. "api",
  17741. "market",
  17742. "groupprojectsetting",
  17743. ""
  17744. ]
  17745. }
  17746. },
  17747. "response": []
  17748. },
  17749. {
  17750. "name": "post_groupprojectsetting_3",
  17751. "event": [
  17752. {
  17753. "listen": "test",
  17754. "script": {
  17755. "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe",
  17756. "exec": [
  17757. "pm.test(\"Successful POST request\", function () {",
  17758. " pm.expect(pm.response.code).to.be.oneOf([201]);",
  17759. "});"
  17760. ],
  17761. "type": "text/javascript"
  17762. }
  17763. }
  17764. ],
  17765. "request": {
  17766. "method": "POST",
  17767. "header": [
  17768. {
  17769. "key": "Content-Type",
  17770. "name": "Content-Type",
  17771. "type": "text",
  17772. "value": "application/json"
  17773. },
  17774. {
  17775. "key": "Authorization",
  17776. "type": "text",
  17777. "value": "Rong {{shoptoken}}"
  17778. }
  17779. ],
  17780. "body": {
  17781. "mode": "raw",
  17782. "raw": "{\r\n\t\"project_type\": 3,\r\n\t\"project_id\": {{car_products_id02}},\r\n\t\"date\": \"{{date}}\",\r\n\t\"end_date\": \"2018-12-25\",\r\n\t\"standard_price\":{{car_products_price02}},\r\n\t\"exchange_end_date\": \"2020-01-01\",\r\n\t\"image_uri\": null,\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{car_products_name02}}\",\r\n\t\"rulelist\": [{\r\n\t\t\"number\": 2,\r\n\t\t\"price\": 340\r\n\t}, {\r\n\t\t\"number\": 3,\r\n\t\t\"price\": 320\r\n\t}, {\r\n\t\t\"number\": 4,\r\n\t\t\"price\": 300\r\n\t}, {\r\n\t\t\"number\": 5,\r\n\t\t\"price\": 280\r\n\t}]\r\n}"
  17783. },
  17784. "url": {
  17785. "raw": "{{url}}/api/market/groupprojectsetting/",
  17786. "host": [
  17787. "{{url}}"
  17788. ],
  17789. "path": [
  17790. "api",
  17791. "market",
  17792. "groupprojectsetting",
  17793. ""
  17794. ]
  17795. }
  17796. },
  17797. "response": []
  17798. },
  17799. {
  17800. "name": "get_groupprojectsetting",
  17801. "event": [
  17802. {
  17803. "listen": "test",
  17804. "script": {
  17805. "id": "1a29b00f-0d61-45cf-b0cf-5e3809812afe",
  17806. "exec": [
  17807. "pm.test(\"Status code is 200\", function () {",
  17808. " pm.response.to.have.status(200);",
  17809. "});"
  17810. ],
  17811. "type": "text/javascript"
  17812. }
  17813. }
  17814. ],
  17815. "protocolProfileBehavior": {
  17816. "disableBodyPruning": true
  17817. },
  17818. "request": {
  17819. "method": "GET",
  17820. "header": [
  17821. {
  17822. "key": "Authorization",
  17823. "value": "Rong {{shoptoken}}",
  17824. "type": "text"
  17825. }
  17826. ],
  17827. "body": {
  17828. "mode": "raw",
  17829. "raw": ""
  17830. },
  17831. "url": {
  17832. "raw": "{{url}}/api/market/groupprojectsetting/",
  17833. "host": [
  17834. "{{url}}"
  17835. ],
  17836. "path": [
  17837. "api",
  17838. "market",
  17839. "groupprojectsetting",
  17840. ""
  17841. ]
  17842. }
  17843. },
  17844. "response": []
  17845. }
  17846. ]
  17847. },
  17848. {
  17849. "name": "wechat",
  17850. "item": [
  17851. {
  17852. "name": "get_shop_info",
  17853. "event": [
  17854. {
  17855. "listen": "test",
  17856. "script": {
  17857. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  17858. "exec": [
  17859. "pm.test(\"Status code is 200\", function () {",
  17860. " pm.response.to.have.status(200);",
  17861. "});"
  17862. ],
  17863. "type": "text/javascript"
  17864. }
  17865. }
  17866. ],
  17867. "request": {
  17868. "method": "GET",
  17869. "header": [],
  17870. "body": {
  17871. "mode": "raw",
  17872. "raw": ""
  17873. },
  17874. "url": {
  17875. "raw": "{{url}}/api/wx/usershop/?uid={{wx_uid}}&type=info",
  17876. "host": [
  17877. "{{url}}"
  17878. ],
  17879. "path": [
  17880. "api",
  17881. "wx",
  17882. "usershop",
  17883. ""
  17884. ],
  17885. "query": [
  17886. {
  17887. "key": "uid",
  17888. "value": "{{wx_uid}}"
  17889. },
  17890. {
  17891. "key": "type",
  17892. "value": "info"
  17893. }
  17894. ]
  17895. }
  17896. },
  17897. "response": []
  17898. },
  17899. {
  17900. "name": "get_wx_promotioned",
  17901. "event": [
  17902. {
  17903. "listen": "test",
  17904. "script": {
  17905. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  17906. "exec": [
  17907. "pm.test(\"Status code is 200\", function () {",
  17908. " pm.response.to.have.status(200);",
  17909. "});"
  17910. ],
  17911. "type": "text/javascript"
  17912. }
  17913. }
  17914. ],
  17915. "request": {
  17916. "method": "GET",
  17917. "header": [],
  17918. "body": {
  17919. "mode": "raw",
  17920. "raw": ""
  17921. },
  17922. "url": {
  17923. "raw": "{{url}}/api/wx/promotional/?uid={{wx_uid}}",
  17924. "host": [
  17925. "{{url}}"
  17926. ],
  17927. "path": [
  17928. "api",
  17929. "wx",
  17930. "promotional",
  17931. ""
  17932. ],
  17933. "query": [
  17934. {
  17935. "key": "uid",
  17936. "value": "{{wx_uid}}"
  17937. }
  17938. ]
  17939. }
  17940. },
  17941. "response": []
  17942. },
  17943. {
  17944. "name": "get_wx_vip",
  17945. "event": [
  17946. {
  17947. "listen": "test",
  17948. "script": {
  17949. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  17950. "exec": [
  17951. "pm.test(\"Status code is 200\", function () {",
  17952. " pm.response.to.have.status(200);",
  17953. "});"
  17954. ],
  17955. "type": "text/javascript"
  17956. }
  17957. }
  17958. ],
  17959. "request": {
  17960. "method": "GET",
  17961. "header": [],
  17962. "body": {
  17963. "mode": "raw",
  17964. "raw": ""
  17965. },
  17966. "url": {
  17967. "raw": "{{url}}/api/wx/vip/?uid={{wx_uid}}",
  17968. "host": [
  17969. "{{url}}"
  17970. ],
  17971. "path": [
  17972. "api",
  17973. "wx",
  17974. "vip",
  17975. ""
  17976. ],
  17977. "query": [
  17978. {
  17979. "key": "uid",
  17980. "value": "{{wx_uid}}"
  17981. }
  17982. ]
  17983. }
  17984. },
  17985. "response": []
  17986. },
  17987. {
  17988. "name": "get_wx_beautyserviceorder",
  17989. "event": [
  17990. {
  17991. "listen": "test",
  17992. "script": {
  17993. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  17994. "exec": [
  17995. "pm.test(\"Status code is 200\", function () {",
  17996. " pm.response.to.have.status(200);",
  17997. "});"
  17998. ],
  17999. "type": "text/javascript"
  18000. }
  18001. }
  18002. ],
  18003. "request": {
  18004. "method": "GET",
  18005. "header": [],
  18006. "body": {
  18007. "mode": "raw",
  18008. "raw": ""
  18009. },
  18010. "url": {
  18011. "raw": "{{url}}/api/wx/beautyserviceorder/?uid={{wx_uid}}",
  18012. "host": [
  18013. "{{url}}"
  18014. ],
  18015. "path": [
  18016. "api",
  18017. "wx",
  18018. "beautyserviceorder",
  18019. ""
  18020. ],
  18021. "query": [
  18022. {
  18023. "key": "uid",
  18024. "value": "{{wx_uid}}"
  18025. }
  18026. ]
  18027. }
  18028. },
  18029. "response": []
  18030. },
  18031. {
  18032. "name": "get_wx_repairserviceorder",
  18033. "event": [
  18034. {
  18035. "listen": "test",
  18036. "script": {
  18037. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18038. "exec": [
  18039. "pm.test(\"Status code is 200\", function () {",
  18040. " pm.response.to.have.status(200);",
  18041. "});"
  18042. ],
  18043. "type": "text/javascript"
  18044. }
  18045. }
  18046. ],
  18047. "request": {
  18048. "method": "GET",
  18049. "header": [],
  18050. "body": {
  18051. "mode": "raw",
  18052. "raw": ""
  18053. },
  18054. "url": {
  18055. "raw": "{{url}}/api/wx/repairserviceorder/?uid={{wx_uid}}",
  18056. "host": [
  18057. "{{url}}"
  18058. ],
  18059. "path": [
  18060. "api",
  18061. "wx",
  18062. "repairserviceorder",
  18063. ""
  18064. ],
  18065. "query": [
  18066. {
  18067. "key": "uid",
  18068. "value": "{{wx_uid}}"
  18069. }
  18070. ]
  18071. }
  18072. },
  18073. "response": []
  18074. },
  18075. {
  18076. "name": "get_wx_vipmemberrecharge",
  18077. "event": [
  18078. {
  18079. "listen": "test",
  18080. "script": {
  18081. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18082. "exec": [
  18083. "pm.test(\"Status code is 200\", function () {",
  18084. " pm.response.to.have.status(200);",
  18085. "});"
  18086. ],
  18087. "type": "text/javascript"
  18088. }
  18089. }
  18090. ],
  18091. "request": {
  18092. "method": "GET",
  18093. "header": [],
  18094. "body": {
  18095. "mode": "raw",
  18096. "raw": ""
  18097. },
  18098. "url": {
  18099. "raw": "{{url}}/api/wx/vipmemberrecharge/?uid={{wx_uid}}",
  18100. "host": [
  18101. "{{url}}"
  18102. ],
  18103. "path": [
  18104. "api",
  18105. "wx",
  18106. "vipmemberrecharge",
  18107. ""
  18108. ],
  18109. "query": [
  18110. {
  18111. "key": "uid",
  18112. "value": "{{wx_uid}}"
  18113. }
  18114. ]
  18115. }
  18116. },
  18117. "response": []
  18118. },
  18119. {
  18120. "name": "get_wx_salesorder",
  18121. "event": [
  18122. {
  18123. "listen": "test",
  18124. "script": {
  18125. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18126. "exec": [
  18127. "pm.test(\"Status code is 200\", function () {",
  18128. " pm.response.to.have.status(200);",
  18129. "});"
  18130. ],
  18131. "type": "text/javascript"
  18132. }
  18133. }
  18134. ],
  18135. "request": {
  18136. "method": "GET",
  18137. "header": [],
  18138. "body": {
  18139. "mode": "raw",
  18140. "raw": ""
  18141. },
  18142. "url": {
  18143. "raw": "{{url}}/api/wx/salesorder/?uid={{wx_uid}}",
  18144. "host": [
  18145. "{{url}}"
  18146. ],
  18147. "path": [
  18148. "api",
  18149. "wx",
  18150. "salesorder",
  18151. ""
  18152. ],
  18153. "query": [
  18154. {
  18155. "key": "uid",
  18156. "value": "{{wx_uid}}"
  18157. }
  18158. ]
  18159. }
  18160. },
  18161. "response": []
  18162. },
  18163. {
  18164. "name": "get_wx_booking",
  18165. "event": [
  18166. {
  18167. "listen": "test",
  18168. "script": {
  18169. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18170. "exec": [
  18171. "pm.test(\"Status code is 200\", function () {",
  18172. " pm.response.to.have.status(200);",
  18173. "});"
  18174. ],
  18175. "type": "text/javascript"
  18176. }
  18177. }
  18178. ],
  18179. "request": {
  18180. "method": "GET",
  18181. "header": [],
  18182. "body": {
  18183. "mode": "raw",
  18184. "raw": ""
  18185. },
  18186. "url": {
  18187. "raw": "{{url}}/api/wx/booking/?uid={{wx_uid}}",
  18188. "host": [
  18189. "{{url}}"
  18190. ],
  18191. "path": [
  18192. "api",
  18193. "wx",
  18194. "booking",
  18195. ""
  18196. ],
  18197. "query": [
  18198. {
  18199. "key": "uid",
  18200. "value": "{{wx_uid}}"
  18201. }
  18202. ]
  18203. }
  18204. },
  18205. "response": []
  18206. },
  18207. {
  18208. "name": "get_wx_usercomplaint",
  18209. "event": [
  18210. {
  18211. "listen": "test",
  18212. "script": {
  18213. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18214. "exec": [
  18215. "pm.test(\"Status code is 200\", function () {",
  18216. " pm.response.to.have.status(200);",
  18217. "});"
  18218. ],
  18219. "type": "text/javascript"
  18220. }
  18221. }
  18222. ],
  18223. "request": {
  18224. "method": "GET",
  18225. "header": [],
  18226. "body": {
  18227. "mode": "raw",
  18228. "raw": ""
  18229. },
  18230. "url": {
  18231. "raw": "{{url}}/api/wx/usercomplaint/?uid={{wx_uid}}",
  18232. "host": [
  18233. "{{url}}"
  18234. ],
  18235. "path": [
  18236. "api",
  18237. "wx",
  18238. "usercomplaint",
  18239. ""
  18240. ],
  18241. "query": [
  18242. {
  18243. "key": "uid",
  18244. "value": "{{wx_uid}}"
  18245. }
  18246. ]
  18247. }
  18248. },
  18249. "response": []
  18250. },
  18251. {
  18252. "name": "get_wx_beautypackage",
  18253. "event": [
  18254. {
  18255. "listen": "test",
  18256. "script": {
  18257. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18258. "exec": [
  18259. "pm.test(\"Status code is 200\", function () {",
  18260. " pm.response.to.have.status(200);",
  18261. "});"
  18262. ],
  18263. "type": "text/javascript"
  18264. }
  18265. }
  18266. ],
  18267. "request": {
  18268. "method": "GET",
  18269. "header": [],
  18270. "body": {
  18271. "mode": "raw",
  18272. "raw": ""
  18273. },
  18274. "url": {
  18275. "raw": "{{url}}/api/wx/beautypackage/?uid={{wx_uid}}",
  18276. "host": [
  18277. "{{url}}"
  18278. ],
  18279. "path": [
  18280. "api",
  18281. "wx",
  18282. "beautypackage",
  18283. ""
  18284. ],
  18285. "query": [
  18286. {
  18287. "key": "uid",
  18288. "value": "{{wx_uid}}"
  18289. }
  18290. ]
  18291. }
  18292. },
  18293. "response": []
  18294. },
  18295. {
  18296. "name": "get_wx_rechargepackage",
  18297. "event": [
  18298. {
  18299. "listen": "test",
  18300. "script": {
  18301. "id": "405f0aab-aae7-44b6-8aea-1211997f16bd",
  18302. "exec": [
  18303. "pm.test(\"Status code is 200\", function () {",
  18304. " pm.response.to.have.status(200);",
  18305. "});"
  18306. ],
  18307. "type": "text/javascript"
  18308. }
  18309. }
  18310. ],
  18311. "request": {
  18312. "method": "GET",
  18313. "header": [],
  18314. "body": {
  18315. "mode": "raw",
  18316. "raw": ""
  18317. },
  18318. "url": {
  18319. "raw": "{{url}}/api/wx/rechargepackage/?uid={{wx_uid}}",
  18320. "host": [
  18321. "{{url}}"
  18322. ],
  18323. "path": [
  18324. "api",
  18325. "wx",
  18326. "rechargepackage",
  18327. ""
  18328. ],
  18329. "query": [
  18330. {
  18331. "key": "uid",
  18332. "value": "{{wx_uid}}"
  18333. }
  18334. ]
  18335. }
  18336. },
  18337. "response": []
  18338. }
  18339. ]
  18340. },
  18341. {
  18342. "name": "Login_app",
  18343. "item": [
  18344. {
  18345. "name": "post-user-login",
  18346. "event": [
  18347. {
  18348. "listen": "test",
  18349. "script": {
  18350. "id": "27f2367c-e8bc-4778-b65a-a22158b45345",
  18351. "exec": [
  18352. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  18353. "",
  18354. "// var jsonData = JSON.parse(responseBody);",
  18355. "// postman.setEnvironmentVariable(\"rongtoken\", jsonData.result.token);",
  18356. " ",
  18357. ""
  18358. ],
  18359. "type": "text/javascript"
  18360. }
  18361. }
  18362. ],
  18363. "request": {
  18364. "method": "POST",
  18365. "header": [
  18366. {
  18367. "key": "Content-Type",
  18368. "value": "application/json"
  18369. }
  18370. ],
  18371. "body": {
  18372. "mode": "raw",
  18373. "raw": "{\r\n\t\"password\": \"18159853333\",\r\n\t\"phone\": \"18159853333\"\r\n}"
  18374. },
  18375. "url": {
  18376. "raw": "{{imurl}}/user/login/",
  18377. "host": [
  18378. "{{imurl}}"
  18379. ],
  18380. "path": [
  18381. "user",
  18382. "login",
  18383. ""
  18384. ]
  18385. }
  18386. },
  18387. "response": []
  18388. }
  18389. ]
  18390. },
  18391. {
  18392. "name": "vipmenber_app",
  18393. "item": [
  18394. {
  18395. "name": "get_vipmember _info",
  18396. "event": [
  18397. {
  18398. "listen": "test",
  18399. "script": {
  18400. "id": "1de4aa1d-7544-46b5-a9ec-7d61ca177eea",
  18401. "exec": [
  18402. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  18403. "",
  18404. "// var jsonData = JSON.parse(responseBody);",
  18405. "// postman.setEnvironmentVariable(\"test-vipmember-id-01\",jsonData.results[0].id);"
  18406. ],
  18407. "type": "text/javascript"
  18408. }
  18409. }
  18410. ],
  18411. "request": {
  18412. "method": "GET",
  18413. "header": [
  18414. {
  18415. "key": "Authorization",
  18416. "value": "Rong {{shoptoken}}"
  18417. }
  18418. ],
  18419. "body": {
  18420. "mode": "raw",
  18421. "raw": ""
  18422. },
  18423. "url": {
  18424. "raw": "{{url}}/api/vipmember/vipconsumption/",
  18425. "host": [
  18426. "{{url}}"
  18427. ],
  18428. "path": [
  18429. "api",
  18430. "vipmember",
  18431. "vipconsumption",
  18432. ""
  18433. ]
  18434. }
  18435. },
  18436. "response": []
  18437. },
  18438. {
  18439. "name": "get_vipinfo_searchdetail_phone",
  18440. "event": [
  18441. {
  18442. "listen": "test",
  18443. "script": {
  18444. "id": "c3054623-964d-488c-9249-012cc614da62",
  18445. "exec": [
  18446. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  18447. ],
  18448. "type": "text/javascript"
  18449. }
  18450. }
  18451. ],
  18452. "request": {
  18453. "method": "GET",
  18454. "header": [
  18455. {
  18456. "key": "Authorization",
  18457. "value": "Rong {{shoptoken}}"
  18458. }
  18459. ],
  18460. "body": {
  18461. "mode": "raw",
  18462. "raw": ""
  18463. },
  18464. "url": {
  18465. "raw": "{{url}}/api/vipmember/vipmemberinfo/?search={{vip_phone01}}",
  18466. "host": [
  18467. "{{url}}"
  18468. ],
  18469. "path": [
  18470. "api",
  18471. "vipmember",
  18472. "vipmemberinfo",
  18473. ""
  18474. ],
  18475. "query": [
  18476. {
  18477. "key": "search",
  18478. "value": "{{vip_phone01}}"
  18479. }
  18480. ]
  18481. }
  18482. },
  18483. "response": []
  18484. },
  18485. {
  18486. "name": "get_vipinfo _searchmix_phone",
  18487. "event": [
  18488. {
  18489. "listen": "test",
  18490. "script": {
  18491. "id": "b267ec68-7ad3-40a5-843d-d0ed6c58387d",
  18492. "exec": [
  18493. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  18494. ],
  18495. "type": "text/javascript"
  18496. }
  18497. }
  18498. ],
  18499. "request": {
  18500. "method": "GET",
  18501. "header": [
  18502. {
  18503. "key": "Authorization",
  18504. "value": "Rong {{shoptoken}}"
  18505. }
  18506. ],
  18507. "body": {
  18508. "mode": "raw",
  18509. "raw": ""
  18510. },
  18511. "url": {
  18512. "raw": "{{url}}/api/vipmember/vipmemberinfo/?search=18159",
  18513. "host": [
  18514. "{{url}}"
  18515. ],
  18516. "path": [
  18517. "api",
  18518. "vipmember",
  18519. "vipmemberinfo",
  18520. ""
  18521. ],
  18522. "query": [
  18523. {
  18524. "key": "search",
  18525. "value": "18159"
  18526. }
  18527. ]
  18528. }
  18529. },
  18530. "response": []
  18531. },
  18532. {
  18533. "name": "get_consump_all",
  18534. "event": [
  18535. {
  18536. "listen": "test",
  18537. "script": {
  18538. "id": "678bd3ff-7c62-4855-b987-729ccc6752a6",
  18539. "exec": [
  18540. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  18541. ],
  18542. "type": "text/javascript"
  18543. }
  18544. }
  18545. ],
  18546. "request": {
  18547. "method": "GET",
  18548. "header": [
  18549. {
  18550. "key": "Authorization",
  18551. "value": "Rong {{shoptoken}}"
  18552. }
  18553. ],
  18554. "body": {
  18555. "mode": "raw",
  18556. "raw": ""
  18557. },
  18558. "url": {
  18559. "raw": "{{url}}/api/vipmember/vipconsumption/{{vip_id01}}/",
  18560. "host": [
  18561. "{{url}}"
  18562. ],
  18563. "path": [
  18564. "api",
  18565. "vipmember",
  18566. "vipconsumption",
  18567. "{{vip_id01}}",
  18568. ""
  18569. ]
  18570. }
  18571. },
  18572. "response": []
  18573. },
  18574. {
  18575. "name": "get_consump_cararea_carcode",
  18576. "event": [
  18577. {
  18578. "listen": "test",
  18579. "script": {
  18580. "id": "9565f68f-f0d1-4dd8-9750-a77c18dcf03b",
  18581. "exec": [
  18582. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  18583. ],
  18584. "type": "text/javascript"
  18585. }
  18586. }
  18587. ],
  18588. "request": {
  18589. "method": "GET",
  18590. "header": [
  18591. {
  18592. "key": "Authorization",
  18593. "value": "Rong {{shoptoken}}"
  18594. }
  18595. ],
  18596. "body": {
  18597. "mode": "raw",
  18598. "raw": ""
  18599. },
  18600. "url": {
  18601. "raw": "{{url}}/api/vipmember/vipconsumption/?car_area={{areashortid01}}&car_code={{car_code01}}",
  18602. "host": [
  18603. "{{url}}"
  18604. ],
  18605. "path": [
  18606. "api",
  18607. "vipmember",
  18608. "vipconsumption",
  18609. ""
  18610. ],
  18611. "query": [
  18612. {
  18613. "key": "car_area",
  18614. "value": "{{areashortid01}}"
  18615. },
  18616. {
  18617. "key": "car_code",
  18618. "value": "{{car_code01}}"
  18619. }
  18620. ]
  18621. }
  18622. },
  18623. "response": []
  18624. },
  18625. {
  18626. "name": "get_vipinfo_searchmix_carcode",
  18627. "event": [
  18628. {
  18629. "listen": "test",
  18630. "script": {
  18631. "id": "ff6eb7c8-d53e-4469-a7e6-c1c56dfbfcb1",
  18632. "exec": [
  18633. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  18634. ],
  18635. "type": "text/javascript"
  18636. }
  18637. }
  18638. ],
  18639. "request": {
  18640. "method": "GET",
  18641. "header": [
  18642. {
  18643. "key": "Authorization",
  18644. "value": "Rong {{shoptoken}}"
  18645. }
  18646. ],
  18647. "body": {
  18648. "mode": "raw",
  18649. "raw": ""
  18650. },
  18651. "url": {
  18652. "raw": "{{url}}/api/vipmember/vipconsumption/?car_area=15&car_code=B893",
  18653. "host": [
  18654. "{{url}}"
  18655. ],
  18656. "path": [
  18657. "api",
  18658. "vipmember",
  18659. "vipconsumption",
  18660. ""
  18661. ],
  18662. "query": [
  18663. {
  18664. "key": "car_area",
  18665. "value": "15"
  18666. },
  18667. {
  18668. "key": "car_code",
  18669. "value": "B893"
  18670. }
  18671. ]
  18672. }
  18673. },
  18674. "response": []
  18675. },
  18676. {
  18677. "name": "post_vipmember",
  18678. "event": [
  18679. {
  18680. "listen": "test",
  18681. "script": {
  18682. "id": "0de4921b-0190-41c8-8848-9943035ac532",
  18683. "exec": [
  18684. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;",
  18685. "",
  18686. "// var jsonData = JSON.parse(responseBody);",
  18687. "// postman.setEnvironmentVariable(\"test-vipmember-id\",jsonData.id);"
  18688. ],
  18689. "type": "text/javascript"
  18690. }
  18691. }
  18692. ],
  18693. "request": {
  18694. "method": "POST",
  18695. "header": [
  18696. {
  18697. "key": "Authorization",
  18698. "value": "Rong {{shoptoken}}"
  18699. },
  18700. {
  18701. "key": "Content-Type",
  18702. "value": "application/json"
  18703. }
  18704. ],
  18705. "body": {
  18706. "mode": "raw",
  18707. "raw": "{\r\n\t\"phone_number\": \"18159859399\",\r\n\t\"name\": \"梁思成\",\r\n\t\"sex\": \"1\",\r\n\t\"number\": \"18159859399\",\r\n\t\"register_date\": \"{{ymd-date}}\",\r\n\t\"grade\": \"\",\r\n\t\"birthday\": \"1990-10-17\",\r\n\t\"agent\": \"\",\r\n\t\"rem\": \"\"\r\n}"
  18708. },
  18709. "url": {
  18710. "raw": "{{url}}/api/vipmember/vipmemberinfo/",
  18711. "host": [
  18712. "{{url}}"
  18713. ],
  18714. "path": [
  18715. "api",
  18716. "vipmember",
  18717. "vipmemberinfo",
  18718. ""
  18719. ]
  18720. }
  18721. },
  18722. "response": []
  18723. },
  18724. {
  18725. "name": "get_vipmember_all",
  18726. "event": [
  18727. {
  18728. "listen": "test",
  18729. "script": {
  18730. "id": "0de4921b-0190-41c8-8848-9943035ac532",
  18731. "exec": [
  18732. "pm.test(\"Status code is 200\", function () {",
  18733. " pm.response.to.have.status(200);",
  18734. "});"
  18735. ],
  18736. "type": "text/javascript"
  18737. }
  18738. }
  18739. ],
  18740. "request": {
  18741. "method": "GET",
  18742. "header": [
  18743. {
  18744. "key": "Authorization",
  18745. "value": "Rong {{shoptoken}}"
  18746. },
  18747. {
  18748. "key": "Content-Type",
  18749. "value": "application/json",
  18750. "disabled": true
  18751. }
  18752. ],
  18753. "body": {
  18754. "mode": "raw",
  18755. "raw": ""
  18756. },
  18757. "url": {
  18758. "raw": "{{url}}/api/vipmember/vipmemberinfo/",
  18759. "host": [
  18760. "{{url}}"
  18761. ],
  18762. "path": [
  18763. "api",
  18764. "vipmember",
  18765. "vipmemberinfo",
  18766. ""
  18767. ]
  18768. }
  18769. },
  18770. "response": []
  18771. },
  18772. {
  18773. "name": "get_vipinfo _searchmix",
  18774. "event": [
  18775. {
  18776. "listen": "test",
  18777. "script": {
  18778. "id": "b267ec68-7ad3-40a5-843d-d0ed6c58387d",
  18779. "exec": [
  18780. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  18781. "",
  18782. "var jsonData = JSON.parse(responseBody);",
  18783. " ",
  18784. " postman.setEnvironmentVariable(\"vip_id02\", jsonData.results[0].id);",
  18785. " postman.setEnvironmentVariable(\"vip_phone02\", jsonData.results[0].phone_number);",
  18786. " ",
  18787. " postman.setEnvironmentVariable(\"car_id02\", jsonData.results[0].car[0].id);",
  18788. " ",
  18789. " postman.setEnvironmentVariable(\"car_carcategoryid02\", jsonData.results[0].car[0].carcategory);",
  18790. " ",
  18791. " postman.setEnvironmentVariable(\"car_code02\", jsonData.results[0].car[0].code);"
  18792. ],
  18793. "type": "text/javascript"
  18794. }
  18795. }
  18796. ],
  18797. "request": {
  18798. "method": "GET",
  18799. "header": [
  18800. {
  18801. "key": "Authorization",
  18802. "value": "Rong {{shoptoken}}"
  18803. }
  18804. ],
  18805. "body": {
  18806. "mode": "raw",
  18807. "raw": ""
  18808. },
  18809. "url": {
  18810. "raw": "{{url}}/api/vipmember/vipmemberinfo/?search=1815985939",
  18811. "host": [
  18812. "{{url}}"
  18813. ],
  18814. "path": [
  18815. "api",
  18816. "vipmember",
  18817. "vipmemberinfo",
  18818. ""
  18819. ],
  18820. "query": [
  18821. {
  18822. "key": "search",
  18823. "value": "1815985939"
  18824. }
  18825. ]
  18826. }
  18827. },
  18828. "response": []
  18829. },
  18830. {
  18831. "name": "post_basic_vipcar",
  18832. "event": [
  18833. {
  18834. "listen": "test",
  18835. "script": {
  18836. "id": "2af62f75-5103-4b1f-96ec-be6a477e37fa",
  18837. "exec": [
  18838. "tests[\"Successful POST request\"] = responseCode.code === 200;"
  18839. ],
  18840. "type": "text/javascript"
  18841. }
  18842. }
  18843. ],
  18844. "request": {
  18845. "method": "POST",
  18846. "header": [
  18847. {
  18848. "key": "Authorization",
  18849. "value": "Rong {{shoptoken}}"
  18850. },
  18851. {
  18852. "key": "Content-Type",
  18853. "value": "application/json"
  18854. }
  18855. ],
  18856. "body": {
  18857. "mode": "raw",
  18858. "raw": "[{\r\n\t\"code\": \"B9876H8\",\r\n\t\"vip\": {{vip_id02}},\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"carcategoryid\": \"3222\",\r\n\t\"carbrand\": \"巴博斯 CLS级\",\r\n\t\"carmodel\": \"3222\",\r\n\t\"carModel\": [{\r\n\t\t\"i\": 3222,\r\n\t\t\"n\": \"2012款 35GC\",\r\n\t\t\"p\": null,\r\n\t\t\"route\": \"carcategory\",\r\n\t\t\"reqParams\": null,\r\n\t\t\"restangularized\": true,\r\n\t\t\"fromServer\": true,\r\n\t\t\"parentResource\": {\r\n\t\t\t\"route\": \"basic\",\r\n\t\t\t\"parentResource\": null\r\n\t\t},\r\n\t\t\"restangularCollection\": false\r\n\t}]\r\n}]"
  18859. },
  18860. "url": {
  18861. "raw": "{{url}}/api/basic/car/",
  18862. "host": [
  18863. "{{url}}"
  18864. ],
  18865. "path": [
  18866. "api",
  18867. "basic",
  18868. "car",
  18869. ""
  18870. ]
  18871. }
  18872. },
  18873. "response": []
  18874. },
  18875. {
  18876. "name": "get_basic_vipcar",
  18877. "event": [
  18878. {
  18879. "listen": "test",
  18880. "script": {
  18881. "id": "2af62f75-5103-4b1f-96ec-be6a477e37fa",
  18882. "exec": [
  18883. "tests[\"Successful POST request\"] = responseCode.code === 200;"
  18884. ],
  18885. "type": "text/javascript"
  18886. }
  18887. }
  18888. ],
  18889. "protocolProfileBehavior": {
  18890. "disableBodyPruning": true
  18891. },
  18892. "request": {
  18893. "method": "GET",
  18894. "header": [
  18895. {
  18896. "key": "Authorization",
  18897. "value": "Rong {{shoptoken}}"
  18898. },
  18899. {
  18900. "key": "Content-Type",
  18901. "value": "application/json",
  18902. "disabled": true
  18903. }
  18904. ],
  18905. "body": {
  18906. "mode": "raw",
  18907. "raw": ""
  18908. },
  18909. "url": {
  18910. "raw": "{{url}}/api/basic/car/",
  18911. "host": [
  18912. "{{url}}"
  18913. ],
  18914. "path": [
  18915. "api",
  18916. "basic",
  18917. "car",
  18918. ""
  18919. ]
  18920. }
  18921. },
  18922. "response": []
  18923. },
  18924. {
  18925. "name": "post-add vipmemberinterest",
  18926. "event": [
  18927. {
  18928. "listen": "test",
  18929. "script": {
  18930. "id": "a2a587af-42ce-4760-b465-111c5dc8924d",
  18931. "exec": [
  18932. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  18933. ],
  18934. "type": "text/javascript"
  18935. }
  18936. }
  18937. ],
  18938. "request": {
  18939. "method": "POST",
  18940. "header": [
  18941. {
  18942. "key": "Authorization",
  18943. "value": "Rong {{shoptoken}}"
  18944. },
  18945. {
  18946. "key": "Content-Type",
  18947. "value": "application/json"
  18948. }
  18949. ],
  18950. "body": {
  18951. "mode": "raw",
  18952. "raw": "[{\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"interest_template\":{{interest_id02}}\r\n}, {\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"interest_template\": {{interest_id03}}\r\n}]"
  18953. },
  18954. "url": {
  18955. "raw": "{{url}}/api/vipmember/vipmemberinterest/",
  18956. "host": [
  18957. "{{url}}"
  18958. ],
  18959. "path": [
  18960. "api",
  18961. "vipmember",
  18962. "vipmemberinterest",
  18963. ""
  18964. ]
  18965. }
  18966. },
  18967. "response": []
  18968. },
  18969. {
  18970. "name": "get_vipinfo_detail_vip02",
  18971. "event": [
  18972. {
  18973. "listen": "test",
  18974. "script": {
  18975. "id": "0903da08-273d-4764-b7bb-0c10ee05af72",
  18976. "exec": [
  18977. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  18978. "",
  18979. "var jsonData = JSON.parse(responseBody);",
  18980. " ",
  18981. " postman.setEnvironmentVariable(\"vip_name02\", jsonData.results[0].name);",
  18982. " ",
  18983. " ",
  18984. " // postman.setEnvironmentVariable(\"car_code02\", jsonData.results[0].car[0].code);",
  18985. " ",
  18986. "",
  18987. ""
  18988. ],
  18989. "type": "text/javascript"
  18990. }
  18991. }
  18992. ],
  18993. "request": {
  18994. "method": "GET",
  18995. "header": [
  18996. {
  18997. "key": "Authorization",
  18998. "value": "Rong {{shoptoken}}"
  18999. }
  19000. ],
  19001. "body": {
  19002. "mode": "raw",
  19003. "raw": ""
  19004. },
  19005. "url": {
  19006. "raw": "{{url}}/api/vipmember/vipmemberinfo/?search={{vip_phone02}}",
  19007. "host": [
  19008. "{{url}}"
  19009. ],
  19010. "path": [
  19011. "api",
  19012. "vipmember",
  19013. "vipmemberinfo",
  19014. ""
  19015. ],
  19016. "query": [
  19017. {
  19018. "key": "search",
  19019. "value": "{{vip_phone02}}"
  19020. }
  19021. ]
  19022. }
  19023. },
  19024. "response": []
  19025. }
  19026. ]
  19027. },
  19028. {
  19029. "name": "valuecard_app",
  19030. "item": [
  19031. {
  19032. "name": "post_valuecard",
  19033. "event": [
  19034. {
  19035. "listen": "test",
  19036. "script": {
  19037. "id": "bdcf88af-0ec1-4640-98db-8b048ea708dc",
  19038. "exec": [
  19039. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  19040. ],
  19041. "type": "text/javascript"
  19042. }
  19043. }
  19044. ],
  19045. "request": {
  19046. "method": "POST",
  19047. "header": [
  19048. {
  19049. "key": "Content-Type",
  19050. "value": "application/json"
  19051. },
  19052. {
  19053. "key": "Authorization",
  19054. "value": "Rong {{shoptoken}}"
  19055. }
  19056. ],
  19057. "body": {
  19058. "mode": "raw",
  19059. "raw": "{\r\n\t\"rem\": \"\",\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2019-11-08\",\r\n\t\"state\": 1,\r\n\t\"number\": null,\r\n\t\"amount_recharge\": \"500.00\",\r\n\t\"amount_available\": \"500.00\",\r\n\t\"real_payment\": \"500.00\",\r\n\t\"shop\": null,\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"agent\": {{agent_id02}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"vip_name\": \"{{vip_name02}}\",\r\n\t\"account\": {{account_id02}},\r\n\t\"validity_period\": 6\r\n}"
  19060. },
  19061. "url": {
  19062. "raw": "{{url}}/api/vipmember/storedvaluecard/",
  19063. "host": [
  19064. "{{url}}"
  19065. ],
  19066. "path": [
  19067. "api",
  19068. "vipmember",
  19069. "storedvaluecard",
  19070. ""
  19071. ]
  19072. }
  19073. },
  19074. "response": []
  19075. },
  19076. {
  19077. "name": "get_valuecard_vip02",
  19078. "event": [
  19079. {
  19080. "listen": "test",
  19081. "script": {
  19082. "id": "5decff5f-3952-45e0-8d8e-fa5b718741d2",
  19083. "exec": [
  19084. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  19085. "",
  19086. "var jsonData = JSON.parse(responseBody);",
  19087. "postman.setEnvironmentVariable(\"card_id02\", jsonData.results[0].id);",
  19088. "",
  19089. "postman.setEnvironmentVariable(\"card_number02\", jsonData.results[0].number);",
  19090. "",
  19091. "",
  19092. ""
  19093. ],
  19094. "type": "text/javascript"
  19095. }
  19096. }
  19097. ],
  19098. "request": {
  19099. "method": "GET",
  19100. "header": [
  19101. {
  19102. "key": "Authorization",
  19103. "value": "Rong {{shoptoken}}"
  19104. }
  19105. ],
  19106. "body": {
  19107. "mode": "raw",
  19108. "raw": ""
  19109. },
  19110. "url": {
  19111. "raw": "{{url}}/api/vipmember/storedvaluecard/?phone_number=18159859399",
  19112. "host": [
  19113. "{{url}}"
  19114. ],
  19115. "path": [
  19116. "api",
  19117. "vipmember",
  19118. "storedvaluecard",
  19119. ""
  19120. ],
  19121. "query": [
  19122. {
  19123. "key": "phone_number",
  19124. "value": "18159859399"
  19125. }
  19126. ]
  19127. }
  19128. },
  19129. "response": []
  19130. },
  19131. {
  19132. "name": "post_vipmemberrecharge_define",
  19133. "event": [
  19134. {
  19135. "listen": "test",
  19136. "script": {
  19137. "id": "b6b0c653-a0a1-4e42-bc3c-5cab5f7bd102",
  19138. "exec": [
  19139. "pm.test(\"Successful POST request\", function () {",
  19140. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  19141. "});"
  19142. ],
  19143. "type": "text/javascript"
  19144. }
  19145. }
  19146. ],
  19147. "request": {
  19148. "method": "POST",
  19149. "header": [
  19150. {
  19151. "key": "Authorization",
  19152. "value": "Rong {{shoptoken}}"
  19153. },
  19154. {
  19155. "key": "Content-Type",
  19156. "value": "application/json"
  19157. }
  19158. ],
  19159. "body": {
  19160. "mode": "raw",
  19161. "raw": "{\r\n\t\"number\": \"\",\r\n\t\"validity_period\": 2,\r\n\t\"bill_date\": \"{{ymd-date}}\",\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"agent\": {{agent_id02}},\r\n\t\"account\": {{account_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"vip_name\": \"{{vip_name02}}\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"sv_card\": {{card_id02}},\r\n\t\"sv_card_number\": \"{{card_number02}}\",\r\n\t\"amount_recharge\": \"1000.00\",\r\n\t\"real_payment\": \"850.00\"\r\n\r\n}"
  19162. },
  19163. "url": {
  19164. "raw": "{{url}}/api/vipmember/vipmemberrecharge/",
  19165. "host": [
  19166. "{{url}}"
  19167. ],
  19168. "path": [
  19169. "api",
  19170. "vipmember",
  19171. "vipmemberrecharge",
  19172. ""
  19173. ]
  19174. }
  19175. },
  19176. "response": []
  19177. },
  19178. {
  19179. "name": "post_vipmemberrecharge",
  19180. "event": [
  19181. {
  19182. "listen": "test",
  19183. "script": {
  19184. "id": "b6b0c653-a0a1-4e42-bc3c-5cab5f7bd102",
  19185. "exec": [
  19186. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  19187. ],
  19188. "type": "text/javascript"
  19189. }
  19190. }
  19191. ],
  19192. "request": {
  19193. "method": "POST",
  19194. "header": [
  19195. {
  19196. "key": "Authorization",
  19197. "value": "Rong {{shoptoken}}"
  19198. },
  19199. {
  19200. "key": "Content-Type",
  19201. "value": "application/json"
  19202. }
  19203. ],
  19204. "body": {
  19205. "mode": "raw",
  19206. "raw": "{\r\n\t\"number\": \"\",\r\n\t\"validity_period\": {{package_validity01}},\r\n\t\"bill_date\": \"{{ymd-date}}\",\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"agent\": {{agent_id02}},\r\n\t\"account\": {{account_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"vip_name\": \"{{vip_number02}}\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"sv_card\": {{card_id02}},\r\n\t\"sv_card_number\": \"{{card_number02}}\",\r\n\t\"recharge_package\": {{package_id01}},\r\n\t\"amount_recharge\": \"{{package_amout01}}\",\r\n\t\"real_payment\": \"{{package_realpay01}}\",\r\n\t\"shop\": null\r\n}"
  19207. },
  19208. "url": {
  19209. "raw": "{{url}}/api/vipmember/vipmemberrecharge/",
  19210. "host": [
  19211. "{{url}}"
  19212. ],
  19213. "path": [
  19214. "api",
  19215. "vipmember",
  19216. "vipmemberrecharge",
  19217. ""
  19218. ]
  19219. }
  19220. },
  19221. "response": []
  19222. },
  19223. {
  19224. "name": "get_valuecard",
  19225. "event": [
  19226. {
  19227. "listen": "test",
  19228. "script": {
  19229. "id": "b909bdd8-3327-4d36-b0d1-fd8a44266cd3",
  19230. "exec": [
  19231. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19232. ],
  19233. "type": "text/javascript"
  19234. }
  19235. }
  19236. ],
  19237. "request": {
  19238. "method": "GET",
  19239. "header": [
  19240. {
  19241. "key": "Authorization",
  19242. "value": "Rong {{shoptoken}}"
  19243. }
  19244. ],
  19245. "body": {
  19246. "mode": "raw",
  19247. "raw": ""
  19248. },
  19249. "url": {
  19250. "raw": "{{url}}/api/vipmember/storedvaluecard/",
  19251. "host": [
  19252. "{{url}}"
  19253. ],
  19254. "path": [
  19255. "api",
  19256. "vipmember",
  19257. "storedvaluecard",
  19258. ""
  19259. ]
  19260. }
  19261. },
  19262. "response": []
  19263. },
  19264. {
  19265. "name": "get_valuecard_begindate",
  19266. "event": [
  19267. {
  19268. "listen": "test",
  19269. "script": {
  19270. "id": "b909bdd8-3327-4d36-b0d1-fd8a44266cd3",
  19271. "exec": [
  19272. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19273. ],
  19274. "type": "text/javascript"
  19275. }
  19276. }
  19277. ],
  19278. "request": {
  19279. "method": "GET",
  19280. "header": [
  19281. {
  19282. "key": "Authorization",
  19283. "value": "Rong {{shoptoken}}"
  19284. }
  19285. ],
  19286. "body": {
  19287. "mode": "raw",
  19288. "raw": ""
  19289. },
  19290. "url": {
  19291. "raw": "{{url}}/api/vipmember/storedvaluecard/?begin_date=2018-11-08",
  19292. "host": [
  19293. "{{url}}"
  19294. ],
  19295. "path": [
  19296. "api",
  19297. "vipmember",
  19298. "storedvaluecard",
  19299. ""
  19300. ],
  19301. "query": [
  19302. {
  19303. "key": "begin_date",
  19304. "value": "2018-11-08"
  19305. }
  19306. ]
  19307. }
  19308. },
  19309. "response": []
  19310. },
  19311. {
  19312. "name": "get_valuecard_carcode",
  19313. "event": [
  19314. {
  19315. "listen": "test",
  19316. "script": {
  19317. "id": "be1341fb-ff3c-4e5d-a6aa-1bfb5c19fc9a",
  19318. "exec": [
  19319. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19320. ],
  19321. "type": "text/javascript"
  19322. }
  19323. }
  19324. ],
  19325. "request": {
  19326. "method": "GET",
  19327. "header": [
  19328. {
  19329. "key": "Authorization",
  19330. "value": "Rong {{shoptoken}}"
  19331. }
  19332. ],
  19333. "body": {
  19334. "mode": "raw",
  19335. "raw": ""
  19336. },
  19337. "url": {
  19338. "raw": "{{url}}/api/vipmember/storedvaluecardrecord/?car_code={{car_code02}}&car_area={{areashort_id13}}",
  19339. "host": [
  19340. "{{url}}"
  19341. ],
  19342. "path": [
  19343. "api",
  19344. "vipmember",
  19345. "storedvaluecardrecord",
  19346. ""
  19347. ],
  19348. "query": [
  19349. {
  19350. "key": "car_code",
  19351. "value": "{{car_code02}}"
  19352. },
  19353. {
  19354. "key": "car_area",
  19355. "value": "{{areashort_id13}}"
  19356. }
  19357. ]
  19358. }
  19359. },
  19360. "response": []
  19361. },
  19362. {
  19363. "name": "get_valuecard_phone",
  19364. "event": [
  19365. {
  19366. "listen": "test",
  19367. "script": {
  19368. "id": "8c50cfd2-bf61-4083-9d79-f418e383a755",
  19369. "exec": [
  19370. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19371. ],
  19372. "type": "text/javascript"
  19373. }
  19374. }
  19375. ],
  19376. "request": {
  19377. "method": "GET",
  19378. "header": [
  19379. {
  19380. "key": "Authorization",
  19381. "value": "Rong {{shoptoken}}"
  19382. }
  19383. ],
  19384. "body": {
  19385. "mode": "raw",
  19386. "raw": ""
  19387. },
  19388. "url": {
  19389. "raw": "{{url}}/api/vipmember/storedvaluecard/?phone_number={{vip_phone02}}",
  19390. "host": [
  19391. "{{url}}"
  19392. ],
  19393. "path": [
  19394. "api",
  19395. "vipmember",
  19396. "storedvaluecard",
  19397. ""
  19398. ],
  19399. "query": [
  19400. {
  19401. "key": "phone_number",
  19402. "value": "{{vip_phone02}}"
  19403. }
  19404. ]
  19405. }
  19406. },
  19407. "response": []
  19408. },
  19409. {
  19410. "name": "get_valuecard_phone_mix",
  19411. "event": [
  19412. {
  19413. "listen": "test",
  19414. "script": {
  19415. "id": "96e7b413-9657-4952-a79d-0c1525045ee6",
  19416. "exec": [
  19417. "tests[\"Status code is 200\"] = responseCode.code === 200; "
  19418. ],
  19419. "type": "text/javascript"
  19420. }
  19421. }
  19422. ],
  19423. "request": {
  19424. "method": "GET",
  19425. "header": [
  19426. {
  19427. "key": "Authorization",
  19428. "value": "Rong {{shoptoken}}"
  19429. }
  19430. ],
  19431. "body": {
  19432. "mode": "raw",
  19433. "raw": ""
  19434. },
  19435. "url": {
  19436. "raw": "{{url}}/api/vipmember/vipmemberinfo/?pagination=true",
  19437. "host": [
  19438. "{{url}}"
  19439. ],
  19440. "path": [
  19441. "api",
  19442. "vipmember",
  19443. "vipmemberinfo",
  19444. ""
  19445. ],
  19446. "query": [
  19447. {
  19448. "key": "pagination",
  19449. "value": "true"
  19450. }
  19451. ]
  19452. }
  19453. },
  19454. "response": []
  19455. }
  19456. ]
  19457. },
  19458. {
  19459. "name": "packagecard_app",
  19460. "item": [
  19461. {
  19462. "name": "post_beautypackages",
  19463. "event": [
  19464. {
  19465. "listen": "test",
  19466. "script": {
  19467. "id": "abd4efe2-4c7d-439e-933e-8e84f7512780",
  19468. "exec": [
  19469. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  19470. ],
  19471. "type": "text/javascript"
  19472. }
  19473. }
  19474. ],
  19475. "request": {
  19476. "method": "POST",
  19477. "header": [
  19478. {
  19479. "key": "Authorization",
  19480. "value": "Rong {{shoptoken}}"
  19481. },
  19482. {
  19483. "key": "Content-Type",
  19484. "value": "application/json"
  19485. }
  19486. ],
  19487. "body": {
  19488. "mode": "raw",
  19489. "raw": "{\r\n\t\"release_date\": \"{{ymd-date}}\",\r\n\t\"available\": true,\r\n\t\"name\": \"普通便利套餐\",\r\n\t\"price\": \"200\",\r\n\t\"deadline\": \"2\",\r\n\t\"service_details\": [{\r\n\t\t\"amount\": 3,\r\n\t\t\"beauty_services_id\": {{beauty_item01}},\r\n\t\t\"unit\": 0,\r\n\t\t\"price\": \"{{beauty_prcie01}}\",\r\n\t\t\"name\": \"{{beauty_name01}}\"\r\n\t},\t{\r\n\t\t\"amount\": 2,\r\n\t\t\"beauty_services_id\": {{beauty_item02}},\r\n\t\t\"unit\": 0,\r\n\t\t\"price\": \"{{beauty_prcie02}}\",\r\n\t\t\"name\": \"{{beauty_name02}}\"\r\n\t\t\r\n\t}]\r\n}"
  19490. },
  19491. "url": {
  19492. "raw": "{{url}}/api/basic/beautypackages/",
  19493. "host": [
  19494. "{{url}}"
  19495. ],
  19496. "path": [
  19497. "api",
  19498. "basic",
  19499. "beautypackages",
  19500. ""
  19501. ]
  19502. }
  19503. },
  19504. "response": []
  19505. },
  19506. {
  19507. "name": "get_beautypackages",
  19508. "event": [
  19509. {
  19510. "listen": "test",
  19511. "script": {
  19512. "id": "abd4efe2-4c7d-439e-933e-8e84f7512780",
  19513. "exec": [
  19514. "pm.test(\"Status code is 200\", function () {",
  19515. " pm.response.to.have.status(200);",
  19516. "});",
  19517. "",
  19518. "",
  19519. "var jsonData = JSON.parse(responseBody);",
  19520. "postman.setEnvironmentVariable(\"bp_name02\", jsonData.results[0].name);",
  19521. "postman.setEnvironmentVariable(\"bp_id02\", jsonData.results[0].id);",
  19522. "postman.setEnvironmentVariable(\"bp_price02\", jsonData.results[0].price);"
  19523. ],
  19524. "type": "text/javascript"
  19525. }
  19526. }
  19527. ],
  19528. "protocolProfileBehavior": {
  19529. "disableBodyPruning": true
  19530. },
  19531. "request": {
  19532. "method": "GET",
  19533. "header": [
  19534. {
  19535. "key": "Authorization",
  19536. "value": "Rong {{shoptoken}}"
  19537. },
  19538. {
  19539. "key": "Content-Type",
  19540. "value": "application/json"
  19541. }
  19542. ],
  19543. "body": {
  19544. "mode": "raw",
  19545. "raw": ""
  19546. },
  19547. "url": {
  19548. "raw": "{{url}}/api/basic/beautypackages/",
  19549. "host": [
  19550. "{{url}}"
  19551. ],
  19552. "path": [
  19553. "api",
  19554. "basic",
  19555. "beautypackages",
  19556. ""
  19557. ]
  19558. }
  19559. },
  19560. "response": []
  19561. },
  19562. {
  19563. "name": "post_packagecard",
  19564. "event": [
  19565. {
  19566. "listen": "test",
  19567. "script": {
  19568. "id": "1ffc17df-30a8-46fb-bc59-3ae2afb53e4c",
  19569. "exec": [
  19570. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  19571. ],
  19572. "type": "text/javascript"
  19573. }
  19574. }
  19575. ],
  19576. "request": {
  19577. "method": "POST",
  19578. "header": [
  19579. {
  19580. "key": "Authorization",
  19581. "value": "Rong {{shoptoken}}"
  19582. },
  19583. {
  19584. "key": "Content-Type",
  19585. "value": "application/json"
  19586. }
  19587. ],
  19588. "body": {
  19589. "mode": "raw",
  19590. "raw": "{\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"state\": 1,\r\n\t\"account\": {{account_id03}},\r\n\t\"opencard_amount\": \"{{bp_price02}}\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"agent\": \"{{agent_id01}}\",\r\n\t\"package\": {{bp_id02}},\r\n\t\"package_name\": \"{{bp_name02}}\",\r\n\t\"car\": {{car_id02}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"phone_number\": {{vip_phone02}},\r\n\t\"areashort\": {{areashort_id01}},\r\n\t\"vip_name\": \"{{vip_name02}}\",\r\n\t\"carcategory_id\": {{car_carcategoryid02}}\r\n}"
  19591. },
  19592. "url": {
  19593. "raw": "{{url}}/api/vipmember/packagecard/",
  19594. "host": [
  19595. "{{url}}"
  19596. ],
  19597. "path": [
  19598. "api",
  19599. "vipmember",
  19600. "packagecard",
  19601. ""
  19602. ]
  19603. }
  19604. },
  19605. "response": []
  19606. },
  19607. {
  19608. "name": "get_packagecard",
  19609. "event": [
  19610. {
  19611. "listen": "test",
  19612. "script": {
  19613. "id": "39a73112-3871-43f3-b1d6-a085dfc5a50d",
  19614. "exec": [
  19615. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  19616. "",
  19617. "",
  19618. "var jsonData = JSON.parse(responseBody);",
  19619. "postman.setEnvironmentVariable(\"package_card01\", jsonData.results[0].id);",
  19620. "// postman.setEnvironmentVariable(\"test-packagecard-car-code\", jsonData.results[0].car_code);",
  19621. "// postman.setEnvironmentVariable(\"test-packagecard-id\", jsonData.results[0].id);",
  19622. "// postman.setEnvironmentVariable(\"test-begin-date\", jsonData.results[1].begin_date);",
  19623. "// postman.setEnvironmentVariable(\"test-car-code\", jsonData.results[0].car_code);",
  19624. "// postman.setEnvironmentVariable(\"test-vipmember-name\", jsonData.results[0].vipmember_name);",
  19625. "// postman.setEnvironmentVariable(\"test-end-date\", jsonData.results[0].end_date);"
  19626. ],
  19627. "type": "text/javascript"
  19628. }
  19629. }
  19630. ],
  19631. "request": {
  19632. "method": "GET",
  19633. "header": [
  19634. {
  19635. "key": "Authorization",
  19636. "value": "Rong {{shoptoken}}"
  19637. }
  19638. ],
  19639. "body": {
  19640. "mode": "raw",
  19641. "raw": ""
  19642. },
  19643. "url": {
  19644. "raw": "{{url}}/api/vipmember/packagecard/",
  19645. "host": [
  19646. "{{url}}"
  19647. ],
  19648. "path": [
  19649. "api",
  19650. "vipmember",
  19651. "packagecard",
  19652. ""
  19653. ]
  19654. }
  19655. },
  19656. "response": []
  19657. },
  19658. {
  19659. "name": "post_vipmemberserviceitem",
  19660. "event": [
  19661. {
  19662. "listen": "test",
  19663. "script": {
  19664. "id": "1ffc17df-30a8-46fb-bc59-3ae2afb53e4c",
  19665. "exec": [
  19666. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  19667. ],
  19668. "type": "text/javascript"
  19669. }
  19670. }
  19671. ],
  19672. "request": {
  19673. "method": "POST",
  19674. "header": [
  19675. {
  19676. "key": "Authorization",
  19677. "value": "Rong {{shoptoken}}"
  19678. },
  19679. {
  19680. "key": "Content-Type",
  19681. "value": "application/json"
  19682. }
  19683. ],
  19684. "body": {
  19685. "mode": "raw",
  19686. "raw": "[{\r\n\t\"number\": 3,\r\n\t\"already_used\": 0,\r\n\t\"service_item\":{{beauty_item01}},\r\n\t\"package_card\": {{package_card01}},\r\n\t\"unused\": 1\r\n}, {\r\n\t\"number\": 2,\r\n\t\"already_used\": 0,\r\n\t\"service_item\": {{beauty_item02}},\r\n\t\"package_card\": {{package_card01}},\r\n\t\"unused\": 2\r\n}]\r\n\r\n"
  19687. },
  19688. "url": {
  19689. "raw": "{{url}}/api/vipmember/vipmemberserviceitem/",
  19690. "host": [
  19691. "{{url}}"
  19692. ],
  19693. "path": [
  19694. "api",
  19695. "vipmember",
  19696. "vipmemberserviceitem",
  19697. ""
  19698. ]
  19699. }
  19700. },
  19701. "response": []
  19702. },
  19703. {
  19704. "name": "get_packagecard_begindate",
  19705. "event": [
  19706. {
  19707. "listen": "test",
  19708. "script": {
  19709. "id": "312800b8-6721-44b1-8c83-5f1dab92759b",
  19710. "exec": [
  19711. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19712. ],
  19713. "type": "text/javascript"
  19714. }
  19715. }
  19716. ],
  19717. "request": {
  19718. "method": "GET",
  19719. "header": [
  19720. {
  19721. "key": "Authorization",
  19722. "value": "Rong {{shoptoken}}"
  19723. }
  19724. ],
  19725. "body": {
  19726. "mode": "raw",
  19727. "raw": ""
  19728. },
  19729. "url": {
  19730. "raw": "{{url}}/api/vipmember/packagecard/?begin_date={{ymd-date}}",
  19731. "host": [
  19732. "{{url}}"
  19733. ],
  19734. "path": [
  19735. "api",
  19736. "vipmember",
  19737. "packagecard",
  19738. ""
  19739. ],
  19740. "query": [
  19741. {
  19742. "key": "begin_date",
  19743. "value": "{{ymd-date}}"
  19744. }
  19745. ]
  19746. }
  19747. },
  19748. "response": []
  19749. },
  19750. {
  19751. "name": "get-_packagecard_phone_mix",
  19752. "event": [
  19753. {
  19754. "listen": "test",
  19755. "script": {
  19756. "id": "ea729b76-f9c7-4a3a-8189-fa31f0652f95",
  19757. "exec": [
  19758. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19759. ],
  19760. "type": "text/javascript"
  19761. }
  19762. }
  19763. ],
  19764. "request": {
  19765. "method": "GET",
  19766. "header": [
  19767. {
  19768. "key": "Authorization",
  19769. "value": "Rong {{shoptoken}}"
  19770. }
  19771. ],
  19772. "body": {
  19773. "mode": "raw",
  19774. "raw": ""
  19775. },
  19776. "url": {
  19777. "raw": "{{url}}/api/vipmember/packagecard/?vipmember_info__phone_number__contains= 18159859",
  19778. "host": [
  19779. "{{url}}"
  19780. ],
  19781. "path": [
  19782. "api",
  19783. "vipmember",
  19784. "packagecard",
  19785. ""
  19786. ],
  19787. "query": [
  19788. {
  19789. "key": "vipmember_info__phone_number__contains",
  19790. "value": " 18159859"
  19791. }
  19792. ]
  19793. }
  19794. },
  19795. "response": []
  19796. },
  19797. {
  19798. "name": "get_packagecard_phone",
  19799. "event": [
  19800. {
  19801. "listen": "test",
  19802. "script": {
  19803. "id": "7f9eca5a-9fbb-4738-9ddf-6a68928809c5",
  19804. "exec": [
  19805. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19806. ],
  19807. "type": "text/javascript"
  19808. }
  19809. }
  19810. ],
  19811. "request": {
  19812. "method": "GET",
  19813. "header": [
  19814. {
  19815. "key": "Authorization",
  19816. "value": "Rong {{shoptoken}}"
  19817. }
  19818. ],
  19819. "body": {
  19820. "mode": "raw",
  19821. "raw": ""
  19822. },
  19823. "url": {
  19824. "raw": "{{url}}/api/vipmember/packagecard/?vipmember_info__phone_number__contains={{vip_phone02}}",
  19825. "host": [
  19826. "{{url}}"
  19827. ],
  19828. "path": [
  19829. "api",
  19830. "vipmember",
  19831. "packagecard",
  19832. ""
  19833. ],
  19834. "query": [
  19835. {
  19836. "key": "vipmember_info__phone_number__contains",
  19837. "value": "{{vip_phone02}}"
  19838. }
  19839. ]
  19840. }
  19841. },
  19842. "response": []
  19843. },
  19844. {
  19845. "name": "get_ packagecard_carcode",
  19846. "event": [
  19847. {
  19848. "listen": "test",
  19849. "script": {
  19850. "id": "59af2ddd-0f77-41cb-8bff-c1743bf24dc2",
  19851. "exec": [
  19852. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  19853. ],
  19854. "type": "text/javascript"
  19855. }
  19856. }
  19857. ],
  19858. "request": {
  19859. "method": "GET",
  19860. "header": [
  19861. {
  19862. "key": "Authorization",
  19863. "value": "Rong {{shoptoken}}"
  19864. }
  19865. ],
  19866. "body": {
  19867. "mode": "raw",
  19868. "raw": ""
  19869. },
  19870. "url": {
  19871. "raw": "{{url}}/api/vipmember/packagecard/?car_code={{car_code02}}&areashort_id={{areashort_id01}}",
  19872. "host": [
  19873. "{{url}}"
  19874. ],
  19875. "path": [
  19876. "api",
  19877. "vipmember",
  19878. "packagecard",
  19879. ""
  19880. ],
  19881. "query": [
  19882. {
  19883. "key": "car_code",
  19884. "value": "{{car_code02}}"
  19885. },
  19886. {
  19887. "key": "areashort_id",
  19888. "value": "{{areashort_id01}}"
  19889. }
  19890. ]
  19891. }
  19892. },
  19893. "response": []
  19894. }
  19895. ]
  19896. },
  19897. {
  19898. "name": "beautyservice_app",
  19899. "item": [
  19900. {
  19901. "name": "post_beautyserviceorderadmin_cash0",
  19902. "event": [
  19903. {
  19904. "listen": "test",
  19905. "script": {
  19906. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  19907. "exec": [
  19908. "pm.test(\"Successful POST request\", function () {",
  19909. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  19910. "});"
  19911. ],
  19912. "type": "text/javascript"
  19913. }
  19914. }
  19915. ],
  19916. "request": {
  19917. "method": "POST",
  19918. "header": [
  19919. {
  19920. "key": "Authorization",
  19921. "type": "text",
  19922. "value": "Rong {{shoptoken}}"
  19923. },
  19924. {
  19925. "key": "Content-Type",
  19926. "type": "text",
  19927. "value": "application/json"
  19928. }
  19929. ],
  19930. "body": {
  19931. "mode": "raw",
  19932. "raw": "{\r\n\t\"account_id\":{{account_id03}},\r\n\t\"agent_id\": null,\r\n\t\"areashort_id\":{{areashort_id01}},\r\n\t\"beauty_services_id\":{{beauty_services_id01}},\r\n\t\"car_id\":{{car_id02}},\r\n\t\"car_code\":\"{{car_code02}}\",\r\n\t\"corp_vip_id\": null,\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": \"100.00\"\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"rate\": \"100\",\r\n\t\"service_amount\": \"{{beauty_services_price01}}\",\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"settles\": [{\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\":{{beauty_services_price01}}\r\n\t}],\r\n\t\r\n\t\"vip_id\": {{vip_id02}}\r\n}"
  19933. },
  19934. "url": {
  19935. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  19936. "host": [
  19937. "{{url}}"
  19938. ],
  19939. "path": [
  19940. "api",
  19941. "business",
  19942. "beautyserviceorderadmin",
  19943. ""
  19944. ]
  19945. }
  19946. },
  19947. "response": []
  19948. },
  19949. {
  19950. "name": "post_redemptionvoucher_sendvoucher",
  19951. "event": [
  19952. {
  19953. "listen": "test",
  19954. "script": {
  19955. "id": "35050668-0c4f-4b8b-a594-ad4ad22294b0",
  19956. "exec": [
  19957. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  19958. ],
  19959. "type": "text/javascript"
  19960. }
  19961. }
  19962. ],
  19963. "request": {
  19964. "method": "POST",
  19965. "header": [
  19966. {
  19967. "key": "Authorization",
  19968. "value": "Rong {{shoptoken}}"
  19969. },
  19970. {
  19971. "key": "Content-Type",
  19972. "value": "application/json"
  19973. }
  19974. ],
  19975. "body": {
  19976. "mode": "raw",
  19977. "raw": "{\r\n\t\"document_number\": \"D19001\",\r\n\t\"vip\": {{vip_id02}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{beauty_services_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone01}}\"\r\n}"
  19978. },
  19979. "url": {
  19980. "raw": "{{url}}/api/basic/redemptionvoucher/",
  19981. "host": [
  19982. "{{url}}"
  19983. ],
  19984. "path": [
  19985. "api",
  19986. "basic",
  19987. "redemptionvoucher",
  19988. ""
  19989. ]
  19990. }
  19991. },
  19992. "response": []
  19993. },
  19994. {
  19995. "name": "get_redemptionvoucher_voucher",
  19996. "event": [
  19997. {
  19998. "listen": "test",
  19999. "script": {
  20000. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  20001. "exec": [
  20002. "pm.test(\"Status code is 200\", function () {",
  20003. " pm.response.to.have.status(200);",
  20004. "});",
  20005. "",
  20006. " var jsonData = JSON.parse(responseBody);",
  20007. " ",
  20008. "pm.environment.set(\"voucher_pjid02\", jsonData.results[0].project_extra.id);",
  20009. "pm.environment.set(\"voucher_name02\", jsonData.results[0].project_extra.name);",
  20010. "pm.environment.set(\"voucher_price02\", jsonData.results[0].project_extra.price);",
  20011. "",
  20012. "pm.environment.set(\"voucher_id02\", jsonData.results[0].id);",
  20013. ""
  20014. ],
  20015. "type": "text/javascript"
  20016. }
  20017. }
  20018. ],
  20019. "protocolProfileBehavior": {
  20020. "disableBodyPruning": true
  20021. },
  20022. "request": {
  20023. "method": "GET",
  20024. "header": [
  20025. {
  20026. "key": "Authorization",
  20027. "type": "text",
  20028. "value": "Rong {{shoptoken}}"
  20029. }
  20030. ],
  20031. "body": {
  20032. "mode": "raw",
  20033. "raw": ""
  20034. },
  20035. "url": {
  20036. "raw": "{{url}}/api/basic/redemptionvoucher/?status=0&vip_phone_number={{vip_phone02}}&project_type=2",
  20037. "host": [
  20038. "{{url}}"
  20039. ],
  20040. "path": [
  20041. "api",
  20042. "basic",
  20043. "redemptionvoucher",
  20044. ""
  20045. ],
  20046. "query": [
  20047. {
  20048. "key": "status",
  20049. "value": "0"
  20050. },
  20051. {
  20052. "key": "vip_phone_number",
  20053. "value": "{{vip_phone02}}"
  20054. },
  20055. {
  20056. "key": "project_type",
  20057. "value": "2"
  20058. }
  20059. ]
  20060. }
  20061. },
  20062. "response": []
  20063. },
  20064. {
  20065. "name": "post_business_beautyserviceorderadmin_4voucher",
  20066. "event": [
  20067. {
  20068. "listen": "test",
  20069. "script": {
  20070. "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485",
  20071. "exec": [
  20072. "//tests[\"Status code is 200\"] = responseCode.code === 200;",
  20073. "pm.test(\"Successful POST request\", function () {",
  20074. " pm.expect(pm.response.code).to.be.oneOf([201,202]);",
  20075. "});"
  20076. ],
  20077. "type": "text/javascript"
  20078. }
  20079. }
  20080. ],
  20081. "request": {
  20082. "method": "POST",
  20083. "header": [
  20084. {
  20085. "key": "Authorization",
  20086. "value": "Rong {{shoptoken}}"
  20087. },
  20088. {
  20089. "key": "Content-Type",
  20090. "value": "application/json"
  20091. }
  20092. ],
  20093. "body": {
  20094. "mode": "raw",
  20095. "raw": "{\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id02}},\r\n\t\"beauty_services_id\":{{voucher_pjid02}},\r\n\t\"service_amount\":{{voucher_price02}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{voucher_id02}},\r\n\t\t\"style\": 4,\r\n\t\t\"arrival_amount\":{{voucher_price02}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"use_date\":\"{{ymd-date}}\",\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}"
  20096. },
  20097. "url": {
  20098. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  20099. "host": [
  20100. "{{url}}"
  20101. ],
  20102. "path": [
  20103. "api",
  20104. "business",
  20105. "beautyserviceorderadmin",
  20106. ""
  20107. ]
  20108. }
  20109. },
  20110. "response": []
  20111. },
  20112. {
  20113. "name": "post_coupon",
  20114. "event": [
  20115. {
  20116. "listen": "test",
  20117. "script": {
  20118. "id": "55ad9a7a-87bf-4b00-97be-5334c78c9606",
  20119. "exec": [
  20120. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  20121. ],
  20122. "type": "text/javascript"
  20123. }
  20124. }
  20125. ],
  20126. "request": {
  20127. "method": "POST",
  20128. "header": [
  20129. {
  20130. "key": "Authorization",
  20131. "value": "Rong {{shoptoken}}"
  20132. },
  20133. {
  20134. "key": "Content-Type",
  20135. "value": "application/json"
  20136. }
  20137. ],
  20138. "body": {
  20139. "mode": "raw",
  20140. "raw": "{\r\n\t\"document_number\": \"H002\",\r\n\t\"vipmember_info\": {{vip_id02}},\r\n\t\"project_type\": 2,\r\n\t\"project_id\": {{beauty_services_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"full_money\": \"{{beauty_services_price02}}\",\r\n\t\"money\": \"30\",\r\n\t\"phone_number\": \"{{vip_phone02}}\",\r\n\t\"project_name\": \"{{beauty_services_name02}}\"\r\n}"
  20141. },
  20142. "url": {
  20143. "raw": "{{url}}/api/basic/coupon/",
  20144. "host": [
  20145. "{{url}}"
  20146. ],
  20147. "path": [
  20148. "api",
  20149. "basic",
  20150. "coupon",
  20151. ""
  20152. ]
  20153. }
  20154. },
  20155. "response": []
  20156. },
  20157. {
  20158. "name": "get_coupon",
  20159. "event": [
  20160. {
  20161. "listen": "test",
  20162. "script": {
  20163. "id": "dc0d7284-2316-4e6e-80ae-fb82129cf76d",
  20164. "exec": [
  20165. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  20166. "",
  20167. "var jsonData = JSON.parse(responseBody);",
  20168. " ",
  20169. "pm.environment.set(\"coupon_pjid02\", jsonData.results[0].project_id);",
  20170. "//pm.environment.set(\"coupon_name01\", jsonData.results[0].project_extra.name);",
  20171. "//pm.environment.set(\"coupon_price01\", jsonData.results[0].project_extra.price);",
  20172. "pm.environment.set(\"coupon_fullmoney02\", jsonData.results[0].full_money);",
  20173. "pm.environment.set(\"coupon_money02\", jsonData.results[0].money);",
  20174. "",
  20175. "pm.environment.set(\"coupon_id02\", jsonData.results[0].id);",
  20176. ""
  20177. ],
  20178. "type": "text/javascript"
  20179. }
  20180. }
  20181. ],
  20182. "request": {
  20183. "method": "GET",
  20184. "header": [
  20185. {
  20186. "key": "Authorization",
  20187. "value": "Rong {{shoptoken}}"
  20188. }
  20189. ],
  20190. "body": {
  20191. "mode": "raw",
  20192. "raw": ""
  20193. },
  20194. "url": {
  20195. "raw": "{{url}}/api/basic/coupon/?vip_phone_number={{vip_phone02}}&status=0&project_type=2",
  20196. "host": [
  20197. "{{url}}"
  20198. ],
  20199. "path": [
  20200. "api",
  20201. "basic",
  20202. "coupon",
  20203. ""
  20204. ],
  20205. "query": [
  20206. {
  20207. "key": "vip_phone_number",
  20208. "value": "{{vip_phone02}}"
  20209. },
  20210. {
  20211. "key": "status",
  20212. "value": "0"
  20213. },
  20214. {
  20215. "key": "project_type",
  20216. "value": "2"
  20217. }
  20218. ]
  20219. }
  20220. },
  20221. "response": []
  20222. },
  20223. {
  20224. "name": "post_beautyserviceorderadmin_3coupon_0cash",
  20225. "event": [
  20226. {
  20227. "listen": "test",
  20228. "script": {
  20229. "id": "1c38b887-69cc-4ed8-b1b2-8c5b672d8485",
  20230. "exec": [
  20231. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;",
  20232. "",
  20233. "// var final = postman.getEnvironmentVariable(\"coupon_fullmoney01\");",
  20234. "",
  20235. "// var coupon_money01 = JSON.float(postman.getEnvironmentVariable(\"coupon_money01\"));",
  20236. "",
  20237. "// final-=coupon_money01;",
  20238. "",
  20239. "// postman.setEnvironmentVariable(\"final\",\"final\");"
  20240. ],
  20241. "type": "text/javascript"
  20242. }
  20243. },
  20244. {
  20245. "listen": "prerequest",
  20246. "script": {
  20247. "id": "039daf69-c376-4f44-8c7c-9e5063c0aea0",
  20248. "exec": [
  20249. "var full02 = JSON.parse(postman.getEnvironmentVariable(\"coupon_fullmoney02\"));",
  20250. "",
  20251. "var coupon_money02 = JSON.parse(postman.getEnvironmentVariable(\"coupon_money02\"));",
  20252. "",
  20253. "full02-=coupon_money02 ;",
  20254. "",
  20255. " postman.setEnvironmentVariable(\"full02\",full02);"
  20256. ],
  20257. "type": "text/javascript"
  20258. }
  20259. }
  20260. ],
  20261. "request": {
  20262. "method": "POST",
  20263. "header": [
  20264. {
  20265. "key": "Authorization",
  20266. "value": "Rong {{shoptoken}}"
  20267. },
  20268. {
  20269. "key": "Content-Type",
  20270. "value": "application/json"
  20271. }
  20272. ],
  20273. "body": {
  20274. "mode": "raw",
  20275. "raw": "{\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id02}},\r\n\t\"beauty_services_id\":{{coupon_pjid02}},\r\n\t\"service_amount\": {{coupon_fullmoney02}}, \r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id03}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\":{{coupon_id02}},\r\n\t\t\"style\": 3,\r\n\t\t\"arrival_amount\":{{coupon_money02}}\r\n\t}, {\r\n\t\t\"style_id\": null,\r\n\t\t\"style\": 0,\r\n\t\t\"arrival_amount\": {{full}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"use_date\":\"{{ymd-date}}\",\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}"
  20276. },
  20277. "url": {
  20278. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  20279. "host": [
  20280. "{{url}}"
  20281. ],
  20282. "path": [
  20283. "api",
  20284. "business",
  20285. "beautyserviceorderadmin",
  20286. ""
  20287. ]
  20288. }
  20289. },
  20290. "response": []
  20291. },
  20292. {
  20293. "name": "post_business_beautyserviceorderadmin_2valuecard",
  20294. "event": [
  20295. {
  20296. "listen": "test",
  20297. "script": {
  20298. "id": "d15e393d-9712-4689-b97c-8c6f6487dbb1",
  20299. "exec": [
  20300. "//tests[\"Status code is 200\"] = responseCode.code === 200;",
  20301. "",
  20302. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  20303. ],
  20304. "type": "text/javascript"
  20305. }
  20306. }
  20307. ],
  20308. "request": {
  20309. "method": "POST",
  20310. "header": [
  20311. {
  20312. "key": "Authorization",
  20313. "value": "Rong {{shoptoken}}"
  20314. },
  20315. {
  20316. "key": "Content-Type",
  20317. "value": "application/json"
  20318. }
  20319. ],
  20320. "body": {
  20321. "mode": "raw",
  20322. "raw": "{\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\":{{car_id02}},\r\n\t\"beauty_services_id\":{{beauty_services_id03}},\r\n\t\"service_amount\": {{beauty_services_price03}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id02}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{\r\n\t\t\"style_id\": {{card_id02}},\r\n\t\t\"style\": 2,\r\n\t\t\"arrival_amount\": {{beauty_services_price03}}\r\n\t}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}"
  20323. },
  20324. "url": {
  20325. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  20326. "host": [
  20327. "{{url}}"
  20328. ],
  20329. "path": [
  20330. "api",
  20331. "business",
  20332. "beautyserviceorderadmin",
  20333. ""
  20334. ]
  20335. }
  20336. },
  20337. "response": []
  20338. },
  20339. {
  20340. "name": "get_business_beautyordersettles_stordcard",
  20341. "event": [
  20342. {
  20343. "listen": "test",
  20344. "script": {
  20345. "id": "b295d37d-70e5-4e63-b20b-7430b5c7d6da",
  20346. "exec": [
  20347. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  20348. "",
  20349. "",
  20350. " var jsonData = JSON.parse(responseBody);",
  20351. " ",
  20352. " postman.setEnvironmentVariable(\"pk_card02\", JSON.stringify(jsonData.package_card[0]));",
  20353. " //postman.setEnvironmentVariable(\"store_card02\", JSON.stringify(jsonData.store_card));",
  20354. " //postman.setEnvironmentVariable(\"card_id02\", jsonData.store_card.id);",
  20355. " // postman.setEnvironmentVariable(\"store_coupons02\", JSON.stringify(jsonData.coupons[0]));",
  20356. " ",
  20357. " "
  20358. ],
  20359. "type": "text/javascript"
  20360. }
  20361. }
  20362. ],
  20363. "request": {
  20364. "method": "GET",
  20365. "header": [
  20366. {
  20367. "key": "Authorization",
  20368. "value": "Rong {{shoptoken}}"
  20369. },
  20370. {
  20371. "key": "Content-Type",
  20372. "value": "application/json"
  20373. }
  20374. ],
  20375. "body": {
  20376. "mode": "raw",
  20377. "raw": ""
  20378. },
  20379. "url": {
  20380. "raw": "{{url}}/api/business/beautyordersettles/?car_id={{car_id02}}",
  20381. "host": [
  20382. "{{url}}"
  20383. ],
  20384. "path": [
  20385. "api",
  20386. "business",
  20387. "beautyordersettles",
  20388. ""
  20389. ],
  20390. "query": [
  20391. {
  20392. "key": "car_id",
  20393. "value": "{{car_id02}}"
  20394. }
  20395. ]
  20396. }
  20397. },
  20398. "response": []
  20399. },
  20400. {
  20401. "name": "get_beautyserviceorderadmin",
  20402. "event": [
  20403. {
  20404. "listen": "test",
  20405. "script": {
  20406. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  20407. "exec": [
  20408. "pm.test(\"Status code is 200\", function () {",
  20409. " pm.response.to.have.status(200);",
  20410. "});"
  20411. ],
  20412. "type": "text/javascript"
  20413. }
  20414. }
  20415. ],
  20416. "request": {
  20417. "method": "GET",
  20418. "header": [
  20419. {
  20420. "key": "Authorization",
  20421. "value": "Rong {{shoptoken}}",
  20422. "type": "text"
  20423. }
  20424. ],
  20425. "body": {
  20426. "mode": "raw",
  20427. "raw": ""
  20428. },
  20429. "url": {
  20430. "raw": "{{url}}/api/business/beautyserviceorderadmin/?start_date={{ymd-date}}&end_date={{ymd-date}}&areashort={{areashort_id01}}",
  20431. "host": [
  20432. "{{url}}"
  20433. ],
  20434. "path": [
  20435. "api",
  20436. "business",
  20437. "beautyserviceorderadmin",
  20438. ""
  20439. ],
  20440. "query": [
  20441. {
  20442. "key": "start_date",
  20443. "value": "{{ymd-date}}"
  20444. },
  20445. {
  20446. "key": "end_date",
  20447. "value": "{{ymd-date}}"
  20448. },
  20449. {
  20450. "key": "areashort",
  20451. "value": "{{areashort_id01}}"
  20452. }
  20453. ]
  20454. }
  20455. },
  20456. "response": []
  20457. },
  20458. {
  20459. "name": "01get_vipmemberappointment_state1_cate0",
  20460. "event": [
  20461. {
  20462. "listen": "test",
  20463. "script": {
  20464. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  20465. "exec": [
  20466. "pm.test(\"Status code is 200\", function () {",
  20467. " pm.response.to.have.status(200);",
  20468. "});",
  20469. "",
  20470. "var jsonData = JSON.parse(responseBody);",
  20471. "postman.setEnvironmentVariable(\"bs_id01\",jsonData.results[0].project_id);",
  20472. "",
  20473. "postman.setEnvironmentVariable(\"yues_id01\",jsonData.results[0].id);",
  20474. "",
  20475. " postman.setEnvironmentVariable(\"yues01\", JSON.stringify(jsonData.results[0]));"
  20476. ],
  20477. "type": "text/javascript"
  20478. }
  20479. }
  20480. ],
  20481. "request": {
  20482. "method": "GET",
  20483. "header": [
  20484. {
  20485. "key": "Authorization",
  20486. "type": "text",
  20487. "value": "Rong {{shoptoken}}"
  20488. }
  20489. ],
  20490. "body": {
  20491. "mode": "raw",
  20492. "raw": ""
  20493. },
  20494. "url": {
  20495. "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=1&project_category=0 ",
  20496. "host": [
  20497. "{{url}}"
  20498. ],
  20499. "path": [
  20500. "api",
  20501. "vipmember",
  20502. "vipmemberappointment",
  20503. ""
  20504. ],
  20505. "query": [
  20506. {
  20507. "key": "state",
  20508. "value": "1"
  20509. },
  20510. {
  20511. "key": "project_category",
  20512. "value": "0 "
  20513. }
  20514. ]
  20515. }
  20516. },
  20517. "response": []
  20518. },
  20519. {
  20520. "name": "02get_vipmemberappointment_price",
  20521. "event": [
  20522. {
  20523. "listen": "test",
  20524. "script": {
  20525. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  20526. "exec": [
  20527. "pm.test(\"Status code is 200\", function () {",
  20528. " pm.response.to.have.status(200);",
  20529. "});",
  20530. "",
  20531. "var jsonData = JSON.parse(responseBody);",
  20532. "postman.setEnvironmentVariable(\"bs_price01\",jsonData.price);"
  20533. ],
  20534. "type": "text/javascript"
  20535. }
  20536. }
  20537. ],
  20538. "request": {
  20539. "method": "GET",
  20540. "header": [
  20541. {
  20542. "key": "Authorization",
  20543. "value": "Rong {{shoptoken}}",
  20544. "type": "text"
  20545. }
  20546. ],
  20547. "body": {
  20548. "mode": "raw",
  20549. "raw": ""
  20550. },
  20551. "url": {
  20552. "raw": "{{url}}/api/basic/beautyservices/{{bs_id01}}/?id={{bs_id01}}&vip_id={{vip_id01}}",
  20553. "host": [
  20554. "{{url}}"
  20555. ],
  20556. "path": [
  20557. "api",
  20558. "basic",
  20559. "beautyservices",
  20560. "{{bs_id01}}",
  20561. ""
  20562. ],
  20563. "query": [
  20564. {
  20565. "key": "id",
  20566. "value": "{{bs_id01}}"
  20567. },
  20568. {
  20569. "key": "vip_id",
  20570. "value": "{{vip_id01}}"
  20571. }
  20572. ]
  20573. }
  20574. },
  20575. "response": []
  20576. },
  20577. {
  20578. "name": "03post_beautyserviceorderadmin_valuecard2",
  20579. "event": [
  20580. {
  20581. "listen": "test",
  20582. "script": {
  20583. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  20584. "exec": [
  20585. "pm.test(\"Successful POST request\", function () {",
  20586. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  20587. " ",
  20588. "});",
  20589. "",
  20590. "var jsonData = JSON.parse(responseBody);",
  20591. "postman.setEnvironmentVariable(\"yues_sdate01\",jsonData.service_date);"
  20592. ],
  20593. "type": "text/javascript"
  20594. }
  20595. }
  20596. ],
  20597. "request": {
  20598. "method": "POST",
  20599. "header": [
  20600. {
  20601. "key": "Authorization",
  20602. "type": "text",
  20603. "value": "Rong {{shoptoken}}"
  20604. },
  20605. {
  20606. "key": "Content-Type",
  20607. "type": "text",
  20608. "value": "application/json"
  20609. }
  20610. ],
  20611. "body": {
  20612. "mode": "raw",
  20613. "raw": "{\r\n\t\"account_id\":{{account_id02}},\r\n\t\"agent_id\": null,\r\n\t\"areashort_id\":{{areashortid01}},\r\n\t\"beauty_services_id\":{{bs_id01}},\r\n\t\"car_id\":{{car_id01}},\r\n\t\"car_code\":\"{{car_code01}}\",\r\n\t\"corp_vip_id\": null,\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": \"100.00\"\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"rate\": \"100\",\r\n\t\"service_amount\": \"{{bs_price01}}\",\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"settles\": [{\r\n\t\t\"style_id\": {{card_id01}},\r\n\t\t\"style\":2,\r\n\t\t\"arrival_amount\":{{bs_price01}}\r\n\t}],\r\n\t\r\n\t\"vip_id\": {{vip_id01}}\r\n\r\n}"
  20614. },
  20615. "url": {
  20616. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  20617. "host": [
  20618. "{{url}}"
  20619. ],
  20620. "path": [
  20621. "api",
  20622. "business",
  20623. "beautyserviceorderadmin",
  20624. ""
  20625. ]
  20626. }
  20627. },
  20628. "response": []
  20629. },
  20630. {
  20631. "name": "04put_appointment_state3",
  20632. "event": [
  20633. {
  20634. "listen": "test",
  20635. "script": {
  20636. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  20637. "exec": [
  20638. "",
  20639. "pm.test(\"Status code is 200\", function () {",
  20640. " pm.response.to.have.status(200);",
  20641. "});"
  20642. ],
  20643. "type": "text/javascript"
  20644. }
  20645. },
  20646. {
  20647. "listen": "prerequest",
  20648. "script": {
  20649. "id": "82732ba5-0270-478b-a1fc-cffca69e7ef9",
  20650. "exec": [
  20651. "var yues01 = JSON.parse(postman.getEnvironmentVariable(\"yues01\"));",
  20652. "",
  20653. "Date.prototype.Format = function (fmt) { //author: meizz ",
  20654. " var o = {",
  20655. " \"M+\": this.getMonth() + 1, //月份 ",
  20656. " \"d+\": this.getDate(), //日 ",
  20657. " \"h+\": this.getHours(), //小时 ",
  20658. " \"m+\": this.getMinutes(), //分 ",
  20659. " \"s+\": this.getSeconds(), //秒 ",
  20660. " \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 ",
  20661. " \"S\": this.getMilliseconds() //毫秒 ",
  20662. " };",
  20663. " if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));",
  20664. " for (var k in o)",
  20665. " if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));",
  20666. " return fmt;",
  20667. "}",
  20668. "",
  20669. "Date.prototype.addHours = function(h) { ",
  20670. " this.setTime(this.getTime() + (h*60*60*1000)); ",
  20671. " return this; ",
  20672. "};",
  20673. "var date01 = new Date(postman.getEnvironmentVariable(\"yues_sdate01\")).Format(\"yyyy-MM-dd hh:mm\");",
  20674. "",
  20675. "",
  20676. "",
  20677. "var data = {",
  20678. "\t",
  20679. " \t\"id\":yues01.id,",
  20680. " \t\"vip\": yues01.vip,",
  20681. " \t\"car\": yues01.car,",
  20682. " \t\"start_time\": yues01.start_time,",
  20683. " \t\"end_time\": yues01.end_time,",
  20684. " \t\"project_category\": yues01.project_category,",
  20685. " \t\"project_id\": yues01.project_id,",
  20686. " \t\"rem\": yues01.rem,",
  20687. " \t\"reply\": yues01.reply,",
  20688. " \t\"state\": 3,",
  20689. " \t\"shop\": yues01.shop,",
  20690. " \t\"complete_date\": date01,",
  20691. " \t\"new_projects\": []",
  20692. "}",
  20693. "",
  20694. " postman.setEnvironmentVariable(\"state01\",JSON.stringify(data));"
  20695. ],
  20696. "type": "text/javascript"
  20697. }
  20698. }
  20699. ],
  20700. "request": {
  20701. "method": "PUT",
  20702. "header": [
  20703. {
  20704. "key": "Authorization",
  20705. "type": "text",
  20706. "value": "Rong {{shoptoken}}"
  20707. },
  20708. {
  20709. "key": "Content-Type",
  20710. "type": "text",
  20711. "value": "application/json"
  20712. }
  20713. ],
  20714. "body": {
  20715. "mode": "raw",
  20716. "raw": "{{state01}}\n\t\n"
  20717. },
  20718. "url": {
  20719. "raw": "{{url}}/api/vipmember/appointment/{{yues_id01}}/",
  20720. "host": [
  20721. "{{url}}"
  20722. ],
  20723. "path": [
  20724. "api",
  20725. "vipmember",
  20726. "appointment",
  20727. "{{yues_id01}}",
  20728. ""
  20729. ]
  20730. }
  20731. },
  20732. "response": []
  20733. }
  20734. ]
  20735. },
  20736. {
  20737. "name": "repairservice_app",
  20738. "item": [
  20739. {
  20740. "name": "get_repairserviceorderadminview_areashort_status5",
  20741. "event": [
  20742. {
  20743. "listen": "test",
  20744. "script": {
  20745. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  20746. "exec": [
  20747. "pm.test(\"Status code is 200\", function () {",
  20748. " pm.response.to.have.status(200);",
  20749. "});"
  20750. ],
  20751. "type": "text/javascript"
  20752. }
  20753. }
  20754. ],
  20755. "request": {
  20756. "method": "GET",
  20757. "header": [
  20758. {
  20759. "key": "Authorization",
  20760. "type": "text",
  20761. "value": "Rong {{shoptoken}}"
  20762. }
  20763. ],
  20764. "body": {
  20765. "mode": "raw",
  20766. "raw": ""
  20767. },
  20768. "url": {
  20769. "raw": "{{url}}/api/business/repairserviceorderadminview/?end_date={{ymd-date}}&areashort={{areashort_id01}}&status=5",
  20770. "host": [
  20771. "{{url}}"
  20772. ],
  20773. "path": [
  20774. "api",
  20775. "business",
  20776. "repairserviceorderadminview",
  20777. ""
  20778. ],
  20779. "query": [
  20780. {
  20781. "key": "end_date",
  20782. "value": "{{ymd-date}}"
  20783. },
  20784. {
  20785. "key": "areashort",
  20786. "value": "{{areashort_id01}}"
  20787. },
  20788. {
  20789. "key": "status",
  20790. "value": "5"
  20791. }
  20792. ]
  20793. }
  20794. },
  20795. "response": []
  20796. },
  20797. {
  20798. "name": "get_repairserviceorderadminview_status2",
  20799. "event": [
  20800. {
  20801. "listen": "test",
  20802. "script": {
  20803. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  20804. "exec": [
  20805. "pm.test(\"Status code is 200\", function () {",
  20806. " pm.response.to.have.status(200);",
  20807. "});"
  20808. ],
  20809. "type": "text/javascript"
  20810. }
  20811. }
  20812. ],
  20813. "request": {
  20814. "method": "GET",
  20815. "header": [
  20816. {
  20817. "key": "Authorization",
  20818. "type": "text",
  20819. "value": "Rong {{shoptoken}}"
  20820. }
  20821. ],
  20822. "body": {
  20823. "mode": "raw",
  20824. "raw": ""
  20825. },
  20826. "url": {
  20827. "raw": "{{url}}/api/business/repairserviceorderadminview/?status=2",
  20828. "host": [
  20829. "{{url}}"
  20830. ],
  20831. "path": [
  20832. "api",
  20833. "business",
  20834. "repairserviceorderadminview",
  20835. ""
  20836. ],
  20837. "query": [
  20838. {
  20839. "key": "status",
  20840. "value": "2"
  20841. }
  20842. ]
  20843. }
  20844. },
  20845. "response": []
  20846. },
  20847. {
  20848. "name": "get_repairserviceorderadminview_vipinfo",
  20849. "event": [
  20850. {
  20851. "listen": "test",
  20852. "script": {
  20853. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  20854. "exec": [
  20855. "pm.test(\"Status code is 200\", function () {",
  20856. " pm.response.to.have.status(200);",
  20857. "});"
  20858. ],
  20859. "type": "text/javascript"
  20860. }
  20861. }
  20862. ],
  20863. "request": {
  20864. "method": "GET",
  20865. "header": [
  20866. {
  20867. "key": "Authorization",
  20868. "type": "text",
  20869. "value": "Rong {{shoptoken}}"
  20870. }
  20871. ],
  20872. "body": {
  20873. "mode": "raw",
  20874. "raw": ""
  20875. },
  20876. "url": {
  20877. "raw": "{{url}}/api/vipmember/vipshortlist/?car_code={{car_code02}}&area_id={{areashort_id01}}",
  20878. "host": [
  20879. "{{url}}"
  20880. ],
  20881. "path": [
  20882. "api",
  20883. "vipmember",
  20884. "vipshortlist",
  20885. ""
  20886. ],
  20887. "query": [
  20888. {
  20889. "key": "car_code",
  20890. "value": "{{car_code02}}"
  20891. },
  20892. {
  20893. "key": "area_id",
  20894. "value": "{{areashort_id01}}"
  20895. }
  20896. ]
  20897. }
  20898. },
  20899. "response": []
  20900. },
  20901. {
  20902. "name": "get_repairserviceorderadminview_carid",
  20903. "event": [
  20904. {
  20905. "listen": "test",
  20906. "script": {
  20907. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  20908. "exec": [
  20909. "pm.test(\"Status code is 200\", function () {",
  20910. " pm.response.to.have.status(200);",
  20911. "});"
  20912. ],
  20913. "type": "text/javascript"
  20914. }
  20915. }
  20916. ],
  20917. "request": {
  20918. "method": "GET",
  20919. "header": [
  20920. {
  20921. "key": "Authorization",
  20922. "type": "text",
  20923. "value": "Rong {{shoptoken}}"
  20924. }
  20925. ],
  20926. "body": {
  20927. "mode": "raw",
  20928. "raw": ""
  20929. },
  20930. "url": {
  20931. "raw": "{{url}}/api/business/repairrecord/?car_id={{car_id02}}",
  20932. "host": [
  20933. "{{url}}"
  20934. ],
  20935. "path": [
  20936. "api",
  20937. "business",
  20938. "repairrecord",
  20939. ""
  20940. ],
  20941. "query": [
  20942. {
  20943. "key": "car_id",
  20944. "value": "{{car_id02}}"
  20945. }
  20946. ]
  20947. }
  20948. },
  20949. "response": []
  20950. },
  20951. {
  20952. "name": "patch_repairserviceorderadminview",
  20953. "event": [
  20954. {
  20955. "listen": "test",
  20956. "script": {
  20957. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  20958. "exec": [
  20959. "pm.test(\"Status code is 200\", function () {",
  20960. " pm.response.to.have.status(200);",
  20961. "});",
  20962. "",
  20963. "var jsonData = JSON.parse(responseBody);",
  20964. " ",
  20965. " postman.setEnvironmentVariable(\"repairservice_id03\", jsonData.id);"
  20966. ],
  20967. "type": "text/javascript"
  20968. }
  20969. },
  20970. {
  20971. "listen": "prerequest",
  20972. "script": {
  20973. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  20974. "exec": [
  20975. ""
  20976. ],
  20977. "type": "text/javascript"
  20978. }
  20979. }
  20980. ],
  20981. "request": {
  20982. "method": "PATCH",
  20983. "header": [
  20984. {
  20985. "key": "Authorization",
  20986. "type": "text",
  20987. "value": "Rong {{shoptoken}}"
  20988. },
  20989. {
  20990. "key": "Content-Type",
  20991. "name": "Content-Type",
  20992. "value": "application/json",
  20993. "type": "text"
  20994. }
  20995. ],
  20996. "body": {
  20997. "mode": "raw",
  20998. "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"agent_id\": \"{{agent_id01}}\",\r\n\t\"car_id\": {{car_id02}},\r\n\t\"vip_id\": {{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": null,\r\n\t\"other_price\": 200,\r\n\t\"work_price\": \"{{work_price02}}\",\r\n\t\"products_price\": \"{{products_price02}}\",\r\n\t\"r_items\": [{{ritems02}}],\r\n\t\"r_products\": [{{r_products03}},{{r_products04}}],\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"car_detail\": {\r\n\t\t\"driven_distance\": 0,\r\n\t\t\"remaining_oil\": 30,\r\n\t\t\"note\": \" \",\r\n\t\t\"car_damage\": \" \"\r\n\t},\r\n\t\"settles\": {\r\n\t\t\"cash_payment\": {{products_price02}},\r\n\t\t\"items\": []\r\n\t},\r\n\t\"receipt_date_str\": \"{{localdate}}\"\r\n}\r\n\r\n"
  20999. },
  21000. "url": {
  21001. "raw": "{{url}}/api/business/repairserviceorderadminview/",
  21002. "host": [
  21003. "{{url}}"
  21004. ],
  21005. "path": [
  21006. "api",
  21007. "business",
  21008. "repairserviceorderadminview",
  21009. ""
  21010. ]
  21011. }
  21012. },
  21013. "response": []
  21014. },
  21015. {
  21016. "name": "get_repaircardetail",
  21017. "event": [
  21018. {
  21019. "listen": "test",
  21020. "script": {
  21021. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21022. "exec": [
  21023. "pm.test(\"Status code is 200\", function () {",
  21024. " pm.response.to.have.status(200);",
  21025. "});",
  21026. "",
  21027. "var jsonData = JSON.parse(responseBody);",
  21028. " ",
  21029. " postman.setEnvironmentVariable(\"servicedetail_id03\", jsonData.id);",
  21030. " postman.setEnvironmentVariable(\"prepay_03\", jsonData.prepayments);"
  21031. ],
  21032. "type": "text/javascript"
  21033. }
  21034. },
  21035. {
  21036. "listen": "prerequest",
  21037. "script": {
  21038. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  21039. "exec": [
  21040. ""
  21041. ],
  21042. "type": "text/javascript"
  21043. }
  21044. }
  21045. ],
  21046. "protocolProfileBehavior": {
  21047. "disableBodyPruning": true
  21048. },
  21049. "request": {
  21050. "method": "GET",
  21051. "header": [
  21052. {
  21053. "key": "Authorization",
  21054. "type": "text",
  21055. "value": "Rong {{shoptoken}}"
  21056. },
  21057. {
  21058. "key": "Content-Type",
  21059. "name": "Content-Type",
  21060. "value": "application/json",
  21061. "type": "text"
  21062. }
  21063. ],
  21064. "body": {
  21065. "mode": "raw",
  21066. "raw": ""
  21067. },
  21068. "url": {
  21069. "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id03}}",
  21070. "host": [
  21071. "{{url}}"
  21072. ],
  21073. "path": [
  21074. "api",
  21075. "business",
  21076. "repaircardetail",
  21077. ""
  21078. ],
  21079. "query": [
  21080. {
  21081. "key": "r_id",
  21082. "value": "{{repairservice_id03}}"
  21083. }
  21084. ]
  21085. }
  21086. },
  21087. "response": []
  21088. },
  21089. {
  21090. "name": "put_repaircardetail",
  21091. "event": [
  21092. {
  21093. "listen": "test",
  21094. "script": {
  21095. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21096. "exec": [
  21097. "",
  21098. "pm.test(\"Successful POST request\", function () {",
  21099. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  21100. "});// var jsonData = JSON.parse(responseBody);",
  21101. " ",
  21102. "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);",
  21103. "// postman.setEnvironmentVariable(\"prepay_02\", jsonData.prepayments);"
  21104. ],
  21105. "type": "text/javascript"
  21106. }
  21107. },
  21108. {
  21109. "listen": "prerequest",
  21110. "script": {
  21111. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  21112. "exec": [
  21113. ""
  21114. ],
  21115. "type": "text/javascript"
  21116. }
  21117. }
  21118. ],
  21119. "request": {
  21120. "method": "PUT",
  21121. "header": [
  21122. {
  21123. "key": "Authorization",
  21124. "type": "text",
  21125. "value": "Rong {{shoptoken}}"
  21126. },
  21127. {
  21128. "key": "Content-Type",
  21129. "name": "Content-Type",
  21130. "value": "application/json",
  21131. "type": "text"
  21132. }
  21133. ],
  21134. "body": {
  21135. "mode": "raw",
  21136. "raw": "{\r\n\t\"id\":{{servicedetail_id03}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\": \"\",\r\n\t\"remaining_oil\": \"80\",\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 50,\r\n\t\"sender\": \"{{vip_name02}}\",\r\n\t\"sender_phone\": \"{{vip_phone02}}\",\r\n\t\"driven_distance\": \"5000\",\r\n\t\"car_damage\": \"门板异常;车顶异常\",\r\n\t\"note\": \"尽快完成\",\r\n\t\"guarantee\": null,\r\n\t\"service_order\":{{repairservice_id03}},\r\n\t\"pickup\": null,\r\n\t\"payee\": null,\r\n\t\"account\": null,\r\n\t\"receipt_date_str\": \"{{localdate}}\"\r\n}"
  21137. },
  21138. "url": {
  21139. "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id03}}/",
  21140. "host": [
  21141. "{{url}}"
  21142. ],
  21143. "path": [
  21144. "api",
  21145. "business",
  21146. "repaircardetail",
  21147. "{{servicedetail_id03}}",
  21148. ""
  21149. ]
  21150. }
  21151. },
  21152. "response": []
  21153. },
  21154. {
  21155. "name": "get_business_repairdispatcheddetail",
  21156. "event": [
  21157. {
  21158. "listen": "test",
  21159. "script": {
  21160. "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec",
  21161. "exec": [
  21162. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  21163. "if(tests[\"Status code is 200\"] ){",
  21164. " var jsonData = JSON.parse(responseBody);",
  21165. " ",
  21166. " postman.setEnvironmentVariable(\"service_id03\", jsonData[0].id);",
  21167. "}"
  21168. ],
  21169. "type": "text/javascript"
  21170. }
  21171. }
  21172. ],
  21173. "request": {
  21174. "method": "GET",
  21175. "header": [
  21176. {
  21177. "key": "Authorization",
  21178. "value": "Rong {{shoptoken}}"
  21179. }
  21180. ],
  21181. "body": {
  21182. "mode": "raw",
  21183. "raw": ""
  21184. },
  21185. "url": {
  21186. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id03}}",
  21187. "host": [
  21188. "{{url}}"
  21189. ],
  21190. "path": [
  21191. "api",
  21192. "business",
  21193. "repairdispatcheddetail",
  21194. ""
  21195. ],
  21196. "query": [
  21197. {
  21198. "key": "r_id",
  21199. "value": "{{repairservice_id03}}"
  21200. }
  21201. ]
  21202. }
  21203. },
  21204. "response": []
  21205. },
  21206. {
  21207. "name": "patch_repairserviceorderadminview",
  21208. "event": [
  21209. {
  21210. "listen": "prerequest",
  21211. "script": {
  21212. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  21213. "exec": [
  21214. ""
  21215. ],
  21216. "type": "text/javascript"
  21217. }
  21218. },
  21219. {
  21220. "listen": "test",
  21221. "script": {
  21222. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  21223. "exec": [
  21224. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  21225. "",
  21226. ""
  21227. ],
  21228. "type": "text/javascript"
  21229. }
  21230. }
  21231. ],
  21232. "request": {
  21233. "method": "PATCH",
  21234. "header": [
  21235. {
  21236. "key": "Content-Type",
  21237. "value": "application/json"
  21238. },
  21239. {
  21240. "key": "Authorization",
  21241. "value": "Rong {{shoptoken}}"
  21242. }
  21243. ],
  21244. "body": {
  21245. "mode": "raw",
  21246. "raw": "[{\r\n\t \"id\":{{service_id03}},\r\n\t \"status\":0,\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n}]"
  21247. },
  21248. "url": {
  21249. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id03}}",
  21250. "host": [
  21251. "{{url}}"
  21252. ],
  21253. "path": [
  21254. "api",
  21255. "business",
  21256. "repairdispatcheddetail",
  21257. ""
  21258. ],
  21259. "query": [
  21260. {
  21261. "key": "r_id",
  21262. "value": "{{repairservice_id03}}"
  21263. }
  21264. ]
  21265. }
  21266. },
  21267. "response": []
  21268. },
  21269. {
  21270. "name": "patch_repairserviceorderadminview",
  21271. "event": [
  21272. {
  21273. "listen": "test",
  21274. "script": {
  21275. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21276. "exec": [
  21277. "pm.test(\"Status code is 200\", function () {",
  21278. " pm.response.to.have.status(200);",
  21279. "});",
  21280. "",
  21281. "// var jsonData = JSON.parse(responseBody);",
  21282. " ",
  21283. "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);"
  21284. ],
  21285. "type": "text/javascript"
  21286. }
  21287. },
  21288. {
  21289. "listen": "prerequest",
  21290. "script": {
  21291. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  21292. "exec": [
  21293. ""
  21294. ],
  21295. "type": "text/javascript"
  21296. }
  21297. }
  21298. ],
  21299. "request": {
  21300. "method": "PATCH",
  21301. "header": [
  21302. {
  21303. "key": "Authorization",
  21304. "type": "text",
  21305. "value": "Rong {{shoptoken}}"
  21306. },
  21307. {
  21308. "key": "Content-Type",
  21309. "name": "Content-Type",
  21310. "value": "application/json",
  21311. "type": "text"
  21312. }
  21313. ],
  21314. "body": {
  21315. "mode": "raw",
  21316. "raw": "[{\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id01}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"id\": {{service_id03}},\r\n\t\"status\": 0\r\n}]"
  21317. },
  21318. "url": {
  21319. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id03}}",
  21320. "host": [
  21321. "{{url}}"
  21322. ],
  21323. "path": [
  21324. "api",
  21325. "business",
  21326. "repairdispatcheddetail",
  21327. ""
  21328. ],
  21329. "query": [
  21330. {
  21331. "key": "r_id",
  21332. "value": "{{repairservice_id03}}"
  21333. }
  21334. ]
  21335. }
  21336. },
  21337. "response": []
  21338. },
  21339. {
  21340. "name": "get_repairserviceorderadminview",
  21341. "event": [
  21342. {
  21343. "listen": "test",
  21344. "script": {
  21345. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21346. "exec": [
  21347. "pm.test(\"Status code is 200\", function () {",
  21348. " pm.response.to.have.status(200);",
  21349. "});",
  21350. "",
  21351. "var jsonData = JSON.parse(responseBody);",
  21352. "",
  21353. "postman.setEnvironmentVariable(\"total03\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));",
  21354. "",
  21355. "// var jsonData = JSON.parse(responseBody);",
  21356. " ",
  21357. "// postman.setEnvironmentVariable(\"vip_name02\", jsonData.results[0].id);"
  21358. ],
  21359. "type": "text/javascript"
  21360. }
  21361. }
  21362. ],
  21363. "request": {
  21364. "method": "GET",
  21365. "header": [
  21366. {
  21367. "key": "Authorization",
  21368. "value": "Rong {{shoptoken}}",
  21369. "type": "text"
  21370. }
  21371. ],
  21372. "body": {
  21373. "mode": "raw",
  21374. "raw": ""
  21375. },
  21376. "url": {
  21377. "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id03}}/",
  21378. "host": [
  21379. "{{url}}"
  21380. ],
  21381. "path": [
  21382. "api",
  21383. "business",
  21384. "repairserviceorderadminview",
  21385. "{{repairservice_id03}}",
  21386. ""
  21387. ]
  21388. }
  21389. },
  21390. "response": []
  21391. },
  21392. {
  21393. "name": "post_repairsettleaccountsadminview_cash0",
  21394. "event": [
  21395. {
  21396. "listen": "prerequest",
  21397. "script": {
  21398. "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98",
  21399. "exec": [
  21400. "var sum03 = JSON.parse(postman.getEnvironmentVariable(\"total03\"));",
  21401. "",
  21402. "var prepay_03 = JSON.parse(postman.getEnvironmentVariable(\"prepay_03\"));",
  21403. "",
  21404. "sum03-=prepay_03;",
  21405. "",
  21406. " postman.setEnvironmentVariable(\"sum03\",sum03);"
  21407. ],
  21408. "type": "text/javascript"
  21409. }
  21410. },
  21411. {
  21412. "listen": "test",
  21413. "script": {
  21414. "id": "39c85b02-c440-4926-8463-03b49483e3c8",
  21415. "exec": [
  21416. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  21417. ],
  21418. "type": "text/javascript"
  21419. }
  21420. }
  21421. ],
  21422. "request": {
  21423. "method": "POST",
  21424. "header": [
  21425. {
  21426. "key": "Content-Type",
  21427. "value": "application/json"
  21428. },
  21429. {
  21430. "key": "Authorization",
  21431. "value": "Rong {{shoptoken}}"
  21432. }
  21433. ],
  21434. "body": {
  21435. "mode": "raw",
  21436. "raw": "{\r\n\t\"service_order\": \"{{repairservice_id03}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": \"0.00\",\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id02}},\r\n\t\"payee\": {{agent_id02}},\r\n\t\"settles\": [\r\n\t\t{\r\n\t\t\"style\": 0,\r\n\t\t\"style_id\": {{card_id02}},\r\n\t\t\"arrival_amount\": {{sum03}}\r\n\t}\r\n\t\t],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"receipt_date_str\":\"{{localdate}}\"\r\n}"
  21437. },
  21438. "url": {
  21439. "raw": "{{url}}/api/business/repairsettleaccountsadminview/",
  21440. "host": [
  21441. "{{url}}"
  21442. ],
  21443. "path": [
  21444. "api",
  21445. "business",
  21446. "repairsettleaccountsadminview",
  21447. ""
  21448. ]
  21449. }
  21450. },
  21451. "response": []
  21452. },
  21453. {
  21454. "name": "patch3_repairserviceorderadminview_1",
  21455. "event": [
  21456. {
  21457. "listen": "prerequest",
  21458. "script": {
  21459. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  21460. "exec": [
  21461. "var repair_item01_all= JSON.parse(postman.getEnvironmentVariable(\"repair_item01_all\"));\r",
  21462. "var repair_item02_all= JSON.parse(postman.getEnvironmentVariable(\"repair_item02_all\"));\r",
  21463. "\r",
  21464. "var repair_service_id01 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id01\"));\r",
  21465. "var repair_service_id02 = JSON.parse(postman.getEnvironmentVariable(\"repair_service_id02\"));\r",
  21466. "\r",
  21467. " var data09={\r",
  21468. "\t\t\"repair_service_id\": repair_service_id01,\r",
  21469. "\t\t\"standard_fee\": repair_item01_all.standard_fee,\r",
  21470. "\t\t\"rate\": repair_item01_all.rate,\r",
  21471. "\t\t\"discounted_price\": repair_item01_all.discounted_price,\r",
  21472. "\t\t\"id\": null\r",
  21473. "\t}\r",
  21474. "\t\r",
  21475. "\tvar data10={\r",
  21476. "\t\t\"repair_service_id\": repair_service_id02,\r",
  21477. "\t\t\"standard_fee\": repair_item02_all.standard_fee,\r",
  21478. "\t\t\"rate\": repair_item02_all.rate,\r",
  21479. "\t\t\"discounted_price\": repair_item02_all.discounted_price,\r",
  21480. "\t\t\"id\": null\r",
  21481. "\t}\r",
  21482. "\tpostman.setEnvironmentVariable(\"ritems09\", JSON.stringify(data09));\r",
  21483. "\tpostman.setEnvironmentVariable(\"ritems10\", JSON.stringify(data10));\r",
  21484. "\t\r",
  21485. "\tvar work_price_all = parseFloat(data09.discounted_price) + parseFloat(data10.discounted_price);\r",
  21486. "\tpostman.setEnvironmentVariable(\"work_price_all\", work_price_all);\r",
  21487. "\r",
  21488. "var product05 = JSON.parse(postman.getEnvironmentVariable(\"product05\"));\r",
  21489. "var product02 = JSON.parse(postman.getEnvironmentVariable(\"product02\")); \r",
  21490. "var product03 = JSON.parse(postman.getEnvironmentVariable(\"product03\"));\r",
  21491. "var product04 = JSON.parse(postman.getEnvironmentVariable(\"product04\"));\r",
  21492. "var data11 ={\r",
  21493. "\t\t\"car_products_id\": product05.car_products_id,\r",
  21494. "\t\t\"amount\":1,\r",
  21495. "\t\t\"rate\": product05.rate,\r",
  21496. "\t\t\"price\": product05.price,\r",
  21497. "\t\t\"discounted_price\":0\r",
  21498. " \r",
  21499. "}\r",
  21500. "var data12 ={\r",
  21501. "\t\"car_products_id\": product02.car_products_id,\r",
  21502. "\t\"amount\":1,\r",
  21503. "\t\"rate\": product02.rate,\r",
  21504. "\t\"price\": product02.price,\r",
  21505. "\t\"discounted_price\": 0\r",
  21506. "\t}\r",
  21507. "\tvar data13 ={\r",
  21508. "\t\"car_products_id\": product03.car_products_id,\r",
  21509. "\t\"amount\":1,\r",
  21510. "\t\"rate\": product03.rate,\r",
  21511. "\t\"price\": product03.price,\r",
  21512. "\t\"discounted_price\": 0\r",
  21513. "\t}\r",
  21514. "\tvar data14 ={\r",
  21515. "\t\"car_products_id\": product04.car_products_id,\r",
  21516. "\t\"amount\":2,\r",
  21517. "\t\"rate\": product04.rate,\r",
  21518. "\t\"price\": product04.price,\r",
  21519. "\t\"discounted_price\": 0\r",
  21520. "\t}\r",
  21521. "\r",
  21522. "var discounted_price11= parseFloat(data11.price) * parseFloat(data11.rate) * parseFloat(data11.amount) /100;\r",
  21523. " data11.discounted_price = discounted_price11;\r",
  21524. "postman.setEnvironmentVariable(\"r_products11\", JSON.stringify(data11));\r",
  21525. "\r",
  21526. "var discounted_price12 = parseFloat(data11.price) * parseFloat(data11.rate) * parseFloat(data11.amount)/100;\r",
  21527. "data12.discounted_price = discounted_price12;\r",
  21528. "postman.setEnvironmentVariable(\"r_products12\", JSON.stringify(data11));\r",
  21529. "\r",
  21530. "var discounted_price13 = parseFloat(data13.price) * parseFloat(data13.rate) * parseFloat(data13.amount)/100;\r",
  21531. "data13.discounted_price = discounted_price13;\r",
  21532. "postman.setEnvironmentVariable(\"r_products13\", JSON.stringify(data13));\r",
  21533. "\r",
  21534. "var discounted_price14 = parseFloat(data14.price) * parseFloat(data14.rate) * parseFloat(data14.amount)/100;\r",
  21535. "data14.discounted_price = discounted_price14;\r",
  21536. "postman.setEnvironmentVariable(\"r_products14\", JSON.stringify(data14));\r",
  21537. " \r",
  21538. "var total_price = parseFloat(discounted_price11)+parseFloat(discounted_price12)+parseFloat(discounted_price13)+parseFloat(discounted_price14);\r",
  21539. "\r",
  21540. "\r",
  21541. "postman.setEnvironmentVariable(\"products_price01\", total_price );\r",
  21542. "\r",
  21543. "\r",
  21544. ""
  21545. ],
  21546. "type": "text/javascript"
  21547. }
  21548. },
  21549. {
  21550. "listen": "test",
  21551. "script": {
  21552. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  21553. "exec": [
  21554. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  21555. "",
  21556. "var jsonData = JSON.parse(responseBody);",
  21557. " ",
  21558. " postman.setEnvironmentVariable(\"repairservice_id04\", jsonData.id);"
  21559. ],
  21560. "type": "text/javascript"
  21561. }
  21562. }
  21563. ],
  21564. "request": {
  21565. "method": "PATCH",
  21566. "header": [
  21567. {
  21568. "key": "Content-Type",
  21569. "value": "application/json"
  21570. },
  21571. {
  21572. "key": "Authorization",
  21573. "value": "Rong {{shoptoken}}"
  21574. }
  21575. ],
  21576. "body": {
  21577. "mode": "raw",
  21578. "raw": "{\r\n\t\"receipt_date\": \"{{date}}\",\r\n\t\"receipt_date_str\": \"{{localdate}}\",\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"car_id\": {{car_id02}},\r\n\t\"vip_id\": {{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"description\": null,\r\n\t\"other_price\": 100,\r\n\t\"work_price\": \"{{work_price_all}}\",\r\n\t\"products_price\": \"{{products_price01}}\",\r\n\t\"r_items\": [{{ritems09}},{{ritems10}} ],\r\n\t\"r_products\": [{{r_products11}}, \r\n\t{{r_products12}}, {{r_products13}},{{r_products14}}],\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\",\r\n\t\"car_detail\": {\r\n\t\t\"driven_distance\": 0,\r\n\t\t\"remaining_oil\": 30,\r\n\t\t\"note\": \" \",\r\n\t\t\"car_damage\": \" \"\r\n\t},\r\n\t\"settles\": {\r\n\t\t\"cash_payment\": {{products_price01}},\r\n\t\t\"items\": []\r\n\t}\r\n}\r\n\r\n"
  21579. },
  21580. "url": {
  21581. "raw": "{{url}}/api/business/repairserviceorderadminview/",
  21582. "host": [
  21583. "{{url}}"
  21584. ],
  21585. "path": [
  21586. "api",
  21587. "business",
  21588. "repairserviceorderadminview",
  21589. ""
  21590. ]
  21591. }
  21592. },
  21593. "response": []
  21594. },
  21595. {
  21596. "name": "get4_repaircardetail_1",
  21597. "event": [
  21598. {
  21599. "listen": "test",
  21600. "script": {
  21601. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21602. "exec": [
  21603. "pm.test(\"Status code is 200\", function () {",
  21604. " pm.response.to.have.status(200);",
  21605. "});",
  21606. "",
  21607. "var jsonData = JSON.parse(responseBody);",
  21608. " ",
  21609. " postman.setEnvironmentVariable(\"servicedetail_id04\", jsonData.id);",
  21610. " postman.setEnvironmentVariable(\"prepay_04\", jsonData.prepayments);"
  21611. ],
  21612. "type": "text/javascript"
  21613. }
  21614. },
  21615. {
  21616. "listen": "prerequest",
  21617. "script": {
  21618. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  21619. "exec": [
  21620. ""
  21621. ],
  21622. "type": "text/javascript"
  21623. }
  21624. }
  21625. ],
  21626. "protocolProfileBehavior": {
  21627. "disableBodyPruning": true
  21628. },
  21629. "request": {
  21630. "method": "GET",
  21631. "header": [
  21632. {
  21633. "key": "Authorization",
  21634. "type": "text",
  21635. "value": "Rong {{shoptoken}}"
  21636. }
  21637. ],
  21638. "body": {
  21639. "mode": "raw",
  21640. "raw": ""
  21641. },
  21642. "url": {
  21643. "raw": "{{url}}/api/business/repaircardetail/?r_id={{repairservice_id04}}",
  21644. "host": [
  21645. "{{url}}"
  21646. ],
  21647. "path": [
  21648. "api",
  21649. "business",
  21650. "repaircardetail",
  21651. ""
  21652. ],
  21653. "query": [
  21654. {
  21655. "key": "r_id",
  21656. "value": "{{repairservice_id04}}"
  21657. }
  21658. ]
  21659. }
  21660. },
  21661. "response": []
  21662. },
  21663. {
  21664. "name": "put5_repaircardetail_1",
  21665. "event": [
  21666. {
  21667. "listen": "test",
  21668. "script": {
  21669. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21670. "exec": [
  21671. "",
  21672. "pm.test(\"Successful POST request\", function () {",
  21673. " pm.expect(pm.response.code).to.be.oneOf([201,200]);",
  21674. "});// var jsonData = JSON.parse(responseBody);",
  21675. " ",
  21676. "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);",
  21677. "// postman.setEnvironmentVariable(\"prepay_02\", jsonData.prepayments);"
  21678. ],
  21679. "type": "text/javascript"
  21680. }
  21681. },
  21682. {
  21683. "listen": "prerequest",
  21684. "script": {
  21685. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  21686. "exec": [
  21687. ""
  21688. ],
  21689. "type": "text/javascript"
  21690. }
  21691. }
  21692. ],
  21693. "request": {
  21694. "method": "PUT",
  21695. "header": [
  21696. {
  21697. "key": "Authorization",
  21698. "type": "text",
  21699. "value": "Rong {{shoptoken}}"
  21700. },
  21701. {
  21702. "key": "Content-Type",
  21703. "name": "Content-Type",
  21704. "type": "text",
  21705. "value": "application/json"
  21706. }
  21707. ],
  21708. "body": {
  21709. "mode": "raw",
  21710. "raw": "{\r\n\t\"id\":{{servicedetail_id04}},\r\n\t\"pickup_date\": \"{{ymd-date}}\",\r\n\t\"engine_no\": \"\",\r\n\t\"remaining_oil\": \"60\",\r\n\t\"delivery_date\": \"{{ymd-date}}\",\r\n\t\"prepayments\": 100,\r\n\t\"sender\": \"{{vip_name02}}\",\r\n\t\"sender_phone\": \"{{vip_phone02}}\",\r\n\t\"driven_distance\": \"10000\",\r\n\t\"car_damage\": \"门板异常\",\r\n\t\"note\": \"客户着急使用,请尽快完成服务\",\r\n\t\"guarantee\": null,\r\n\t\"service_order\":{{repairservice_id04}},\r\n\t\"pickup\": null,\r\n\t\"payee\": null,\r\n\t\"account\": null,\r\n\t\"receipt_date_str\": \"{{localdate}}\"\r\n}"
  21711. },
  21712. "url": {
  21713. "raw": "{{url}}/api/business/repaircardetail/{{servicedetail_id04}}/",
  21714. "host": [
  21715. "{{url}}"
  21716. ],
  21717. "path": [
  21718. "api",
  21719. "business",
  21720. "repaircardetail",
  21721. "{{servicedetail_id04}}",
  21722. ""
  21723. ]
  21724. }
  21725. },
  21726. "response": []
  21727. },
  21728. {
  21729. "name": "get6_business_repairdispatcheddetail_1",
  21730. "event": [
  21731. {
  21732. "listen": "test",
  21733. "script": {
  21734. "id": "a0aa0a3e-9084-414f-b8f3-578f50fff7ec",
  21735. "exec": [
  21736. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  21737. "if(tests[\"Status code is 200\"] ){",
  21738. " var jsonData = JSON.parse(responseBody);",
  21739. " ",
  21740. " postman.setEnvironmentVariable(\"service_id04\", jsonData[0].id);",
  21741. " postman.setEnvironmentVariable(\"service_id05\", jsonData[0].id);",
  21742. "}"
  21743. ],
  21744. "type": "text/javascript"
  21745. }
  21746. }
  21747. ],
  21748. "request": {
  21749. "method": "GET",
  21750. "header": [
  21751. {
  21752. "key": "Authorization",
  21753. "value": "Rong {{shoptoken}}"
  21754. }
  21755. ],
  21756. "body": {
  21757. "mode": "raw",
  21758. "raw": ""
  21759. },
  21760. "url": {
  21761. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id04}}",
  21762. "host": [
  21763. "{{url}}"
  21764. ],
  21765. "path": [
  21766. "api",
  21767. "business",
  21768. "repairdispatcheddetail",
  21769. ""
  21770. ],
  21771. "query": [
  21772. {
  21773. "key": "r_id",
  21774. "value": "{{repairservice_id04}}"
  21775. }
  21776. ]
  21777. }
  21778. },
  21779. "response": []
  21780. },
  21781. {
  21782. "name": "patch7_repairserviceorderadminview_1",
  21783. "event": [
  21784. {
  21785. "listen": "prerequest",
  21786. "script": {
  21787. "id": "cb02f258-8e4a-437d-a220-6a22eb415499",
  21788. "exec": [
  21789. ""
  21790. ],
  21791. "type": "text/javascript"
  21792. }
  21793. },
  21794. {
  21795. "listen": "test",
  21796. "script": {
  21797. "id": "9f3dbf1a-2426-4899-bbd0-7f8da3120ff4",
  21798. "exec": [
  21799. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  21800. "",
  21801. ""
  21802. ],
  21803. "type": "text/javascript"
  21804. }
  21805. }
  21806. ],
  21807. "request": {
  21808. "method": "PATCH",
  21809. "header": [
  21810. {
  21811. "key": "Content-Type",
  21812. "value": "application/json"
  21813. },
  21814. {
  21815. "key": "Authorization",
  21816. "value": "Rong {{shoptoken}}"
  21817. }
  21818. ],
  21819. "body": {
  21820. "mode": "raw",
  21821. "raw": "[{\r\n\t \"id\":{{service_id04}},\r\n\t \"status\":0,\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id03}},\r\n\t\t\"rate\": 50\r\n\t}]\r\n},\r\n{\r\n\t \"id\":{{service_id05}},\r\n\t \"status\":0,\r\n\t\"agent_id\": null,\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"completed_date\": null,\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}]\r\n}\r\n]"
  21822. },
  21823. "url": {
  21824. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id04}}",
  21825. "host": [
  21826. "{{url}}"
  21827. ],
  21828. "path": [
  21829. "api",
  21830. "business",
  21831. "repairdispatcheddetail",
  21832. ""
  21833. ],
  21834. "query": [
  21835. {
  21836. "key": "r_id",
  21837. "value": "{{repairservice_id04}}"
  21838. }
  21839. ]
  21840. }
  21841. },
  21842. "response": []
  21843. },
  21844. {
  21845. "name": "patch8_repairserviceorderadminview_1",
  21846. "event": [
  21847. {
  21848. "listen": "test",
  21849. "script": {
  21850. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21851. "exec": [
  21852. "pm.test(\"Status code is 200\", function () {",
  21853. " pm.response.to.have.status(200);",
  21854. "});",
  21855. "",
  21856. "// var jsonData = JSON.parse(responseBody);",
  21857. " ",
  21858. "// postman.setEnvironmentVariable(\"repairservice_id02\", jsonData.id);"
  21859. ],
  21860. "type": "text/javascript"
  21861. }
  21862. },
  21863. {
  21864. "listen": "prerequest",
  21865. "script": {
  21866. "id": "1cb94174-e70b-48ee-8703-aff60ac27010",
  21867. "exec": [
  21868. ""
  21869. ],
  21870. "type": "text/javascript"
  21871. }
  21872. }
  21873. ],
  21874. "request": {
  21875. "method": "PATCH",
  21876. "header": [
  21877. {
  21878. "key": "Authorization",
  21879. "type": "text",
  21880. "value": "Rong {{shoptoken}}"
  21881. },
  21882. {
  21883. "key": "Content-Type",
  21884. "name": "Content-Type",
  21885. "type": "text",
  21886. "value": "application/json"
  21887. }
  21888. ],
  21889. "body": {
  21890. "mode": "raw",
  21891. "raw": "[{\r\n\t\"id\": {{service_id04}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 50\r\n\t}, {\r\n\t\t\"worker_id\": {{agent_id03}},\r\n\t\t\"rate\": 50\r\n\t}],\r\n\t\"status\": 0\r\n},\r\n{\r\n\t\"id\": {{service_id05}},\r\n\t\"agent_id\": {{agent_id01}},\r\n\t\"completed_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_date\": \"{{ymd-date}}\",\r\n\t\"dispatched_worker\": [{\r\n\t\t\"worker_id\": {{agent_id02}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"status\": 0\r\n}\r\n]"
  21892. },
  21893. "url": {
  21894. "raw": "{{url}}/api/business/repairdispatcheddetail/?r_id={{repairservice_id04}}",
  21895. "host": [
  21896. "{{url}}"
  21897. ],
  21898. "path": [
  21899. "api",
  21900. "business",
  21901. "repairdispatcheddetail",
  21902. ""
  21903. ],
  21904. "query": [
  21905. {
  21906. "key": "r_id",
  21907. "value": "{{repairservice_id04}}"
  21908. }
  21909. ]
  21910. }
  21911. },
  21912. "response": []
  21913. },
  21914. {
  21915. "name": "get9_repairserviceorderadminview_1",
  21916. "event": [
  21917. {
  21918. "listen": "test",
  21919. "script": {
  21920. "id": "b19a064a-eb8d-4689-bc17-904b59de4d6a",
  21921. "exec": [
  21922. "pm.test(\"Status code is 200\", function () {",
  21923. " pm.response.to.have.status(200);",
  21924. "});",
  21925. "",
  21926. "var jsonData = JSON.parse(responseBody);",
  21927. "",
  21928. "postman.setEnvironmentVariable(\"total04\", parseFloat(jsonData.work_price) + parseFloat(jsonData.products_price)+ parseFloat(jsonData.other_price));",
  21929. "",
  21930. "// var jsonData = JSON.parse(responseBody);",
  21931. " ",
  21932. "// postman.setEnvironmentVariable(\"vip_name02\", jsonData.results[0].id);"
  21933. ],
  21934. "type": "text/javascript"
  21935. }
  21936. }
  21937. ],
  21938. "request": {
  21939. "method": "GET",
  21940. "header": [
  21941. {
  21942. "key": "Authorization",
  21943. "value": "Rong {{shoptoken}}",
  21944. "type": "text"
  21945. }
  21946. ],
  21947. "body": {
  21948. "mode": "raw",
  21949. "raw": ""
  21950. },
  21951. "url": {
  21952. "raw": "{{url}}/api/business/repairserviceorderadminview/{{repairservice_id04}}/",
  21953. "host": [
  21954. "{{url}}"
  21955. ],
  21956. "path": [
  21957. "api",
  21958. "business",
  21959. "repairserviceorderadminview",
  21960. "{{repairservice_id04}}",
  21961. ""
  21962. ]
  21963. }
  21964. },
  21965. "response": []
  21966. },
  21967. {
  21968. "name": "post_business_beautyserviceorderadmin_1storecard",
  21969. "event": [
  21970. {
  21971. "listen": "prerequest",
  21972. "script": {
  21973. "id": "eb28acc0-9e08-457b-8110-b1378832e0ce",
  21974. "exec": [
  21975. "var pk_card02 = JSON.parse(postman.getEnvironmentVariable(\"pk_card02\"));",
  21976. "",
  21977. " var data = {",
  21978. " \"style_id\": pk_card02.id,",
  21979. " \t\t\"style\": 1,",
  21980. "\t\t\"arrival_amount\": pk_card02.service_item__price",
  21981. " ",
  21982. " }",
  21983. " ",
  21984. " postman.setEnvironmentVariable(\"settles02\",JSON.stringify(data));",
  21985. " postman.setEnvironmentVariable(\"service_amount02\",data.arrival_amount);",
  21986. " postman.setEnvironmentVariable(\"beauty_services_id2\",pk_card02.service_item_id);",
  21987. " // postman.setEnvironmentVariable(\"beauty_services_id\",pk_card.service_item_id);",
  21988. "",
  21989. ""
  21990. ],
  21991. "type": "text/javascript"
  21992. }
  21993. },
  21994. {
  21995. "listen": "test",
  21996. "script": {
  21997. "id": "bcfe68e7-e149-4b44-a11a-1bf5a56523b2",
  21998. "exec": [
  21999. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;"
  22000. ],
  22001. "type": "text/javascript"
  22002. }
  22003. }
  22004. ],
  22005. "request": {
  22006. "method": "POST",
  22007. "header": [
  22008. {
  22009. "key": "Authorization",
  22010. "value": "Rong {{shoptoken}}"
  22011. },
  22012. {
  22013. "key": "Content-Type",
  22014. "value": "application/json"
  22015. }
  22016. ],
  22017. "body": {
  22018. "mode": "raw",
  22019. "raw": " {\r\n\t\"vip_id\":{{vip_id02}},\r\n\t\"corp_vip_id\": null,\r\n\t\"car_id\": {{car_id02}},\r\n\t\"beauty_services_id\": {{beauty_services_id2}},\r\n\t\"service_amount\": {{service_amount02}},\r\n\t\"rate\": 100,\r\n\t\"account_id\": {{account_id03}},\r\n\t\"agent_id\": {{agent_id02}},\r\n\t\"service_date\": \"{{date}}\",\r\n\t\"note\": null,\r\n\t\"settles\": [{{settles02}}],\r\n\t\"dispatcheds\": [{\r\n\t\t\"worker\": {{agent_id01}},\r\n\t\t\"rate\": 100\r\n\t}],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"areashort_id\": {{areashort_id01}},\r\n\t\"car_code\": \"{{car_code02}}\"\r\n}"
  22020. },
  22021. "url": {
  22022. "raw": "{{url}}/api/business/beautyserviceorderadmin/",
  22023. "host": [
  22024. "{{url}}"
  22025. ],
  22026. "path": [
  22027. "api",
  22028. "business",
  22029. "beautyserviceorderadmin",
  22030. ""
  22031. ]
  22032. }
  22033. },
  22034. "response": []
  22035. },
  22036. {
  22037. "name": "post10_repairsettleaccountsadminview_0card_1",
  22038. "event": [
  22039. {
  22040. "listen": "prerequest",
  22041. "script": {
  22042. "id": "910a56c4-d9e6-4174-8ea9-8b39ebfeac98",
  22043. "exec": [
  22044. "var sum04 = JSON.parse(postman.getEnvironmentVariable(\"total04\"));",
  22045. "",
  22046. "var prepay_04 = JSON.parse(postman.getEnvironmentVariable(\"prepay_04\"));",
  22047. "",
  22048. "sum04-=prepay_04;",
  22049. "",
  22050. " postman.setEnvironmentVariable(\"sum04\",sum04);"
  22051. ],
  22052. "type": "text/javascript"
  22053. }
  22054. },
  22055. {
  22056. "listen": "test",
  22057. "script": {
  22058. "id": "39c85b02-c440-4926-8463-03b49483e3c8",
  22059. "exec": [
  22060. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 200;"
  22061. ],
  22062. "type": "text/javascript"
  22063. }
  22064. }
  22065. ],
  22066. "request": {
  22067. "method": "POST",
  22068. "header": [
  22069. {
  22070. "key": "Content-Type",
  22071. "value": "application/json"
  22072. },
  22073. {
  22074. "key": "Authorization",
  22075. "value": "Rong {{shoptoken}}"
  22076. }
  22077. ],
  22078. "body": {
  22079. "mode": "raw",
  22080. "raw": "{\r\n\t\"service_order\": \"{{repairservice_id04}}\",\r\n\t\"date\": \"{{date}}\",\r\n\t\"cash_payment\": \"0.00\",\r\n\t\"monthly_amt\": 0,\r\n\t\"account\": {{account_id02}},\r\n\t\"payee\": {{agent_id02}},\r\n\t\"settles\": [\r\n\t\t{\r\n\t\t\"style\": 0,\r\n\t\t\"style_id\": {{card_id02}},\r\n\t\t\"arrival_amount\": {{sum04}}\r\n\t}\r\n\t\t],\r\n\t\"localdate\": \"{{localdate}}\",\r\n\t\"receipt_date_str\":\"{{localdate}}\"\r\n}"
  22081. },
  22082. "url": {
  22083. "raw": "{{url}}/api/business/repairsettleaccountsadminview/",
  22084. "host": [
  22085. "{{url}}"
  22086. ],
  22087. "path": [
  22088. "api",
  22089. "business",
  22090. "repairsettleaccountsadminview",
  22091. ""
  22092. ]
  22093. }
  22094. },
  22095. "response": []
  22096. },
  22097. {
  22098. "name": "post_redemptionvoucher_2",
  22099. "event": [
  22100. {
  22101. "listen": "test",
  22102. "script": {
  22103. "id": "ffd13a8d-e5c5-4522-92ec-ac0775c5a9f2",
  22104. "exec": [
  22105. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  22106. ],
  22107. "type": "text/javascript"
  22108. }
  22109. }
  22110. ],
  22111. "request": {
  22112. "method": "POST",
  22113. "header": [
  22114. {
  22115. "key": "Authorization",
  22116. "value": "Rong {{shoptoken}}"
  22117. },
  22118. {
  22119. "key": "Content-Type",
  22120. "value": "application/json"
  22121. }
  22122. ],
  22123. "body": {
  22124. "mode": "raw",
  22125. "raw": "{\r\n\t\"document_number\": \"D1812001\",\r\n\t\"vip\": {{vip_id02}},\r\n\t\"project_type\": 1,\r\n\t\"project_id\": {{repair_service_id02}},\r\n\t\"begin_date\": \"{{ymd-date}}\",\r\n\t\"end_date\": \"2020-11-11\",\r\n\t\"note\": null,\r\n\t\"project_name\": \"{{repair_service_name02}}\",\r\n\t\"phone_number\": \"{{vip_phone02}}\"\r\n}"
  22126. },
  22127. "url": {
  22128. "raw": "{{url}}/api/basic/redemptionvoucher/",
  22129. "host": [
  22130. "{{url}}"
  22131. ],
  22132. "path": [
  22133. "api",
  22134. "basic",
  22135. "redemptionvoucher",
  22136. ""
  22137. ]
  22138. }
  22139. },
  22140. "response": []
  22141. },
  22142. {
  22143. "name": "get_basic_redemptionvoucher_status0_2",
  22144. "event": [
  22145. {
  22146. "listen": "prerequest",
  22147. "script": {
  22148. "id": "15de950d-58eb-4106-b89b-7b217ab928a3",
  22149. "exec": [
  22150. ""
  22151. ],
  22152. "type": "text/javascript"
  22153. }
  22154. },
  22155. {
  22156. "listen": "test",
  22157. "script": {
  22158. "id": "f98ea3c7-40d8-4d8d-bae8-deced9cd3d3e",
  22159. "exec": [
  22160. "",
  22161. "pm.test(\"Status code is 200\", function () {",
  22162. " pm.response.to.have.status(200);",
  22163. "});",
  22164. "",
  22165. " var jsonData = JSON.parse(responseBody);",
  22166. " ",
  22167. "pm.environment.set(\"voucher_pjid03\", jsonData.results[0].project_extra.id);",
  22168. "pm.environment.set(\"voucher_name03\", jsonData.results[0].project_extra.name);",
  22169. "pm.environment.set(\"voucher_price03\", jsonData.results[0].project_extra.price);",
  22170. "",
  22171. "pm.environment.set(\"voucher_id03\", jsonData.results[0].id);",
  22172. ""
  22173. ],
  22174. "type": "text/javascript"
  22175. }
  22176. }
  22177. ],
  22178. "request": {
  22179. "method": "GET",
  22180. "header": [
  22181. {
  22182. "key": "Content-Type",
  22183. "value": "application/json"
  22184. },
  22185. {
  22186. "key": "Authorization",
  22187. "type": "text",
  22188. "value": "Rong {{shoptoken}}"
  22189. }
  22190. ],
  22191. "body": {
  22192. "mode": "raw",
  22193. "raw": ""
  22194. },
  22195. "url": {
  22196. "raw": "{{url}}/api/basic/redemptionvoucher/?status=0&vip_phone_number={{vip_phone02}}",
  22197. "host": [
  22198. "{{url}}"
  22199. ],
  22200. "path": [
  22201. "api",
  22202. "basic",
  22203. "redemptionvoucher",
  22204. ""
  22205. ],
  22206. "query": [
  22207. {
  22208. "key": "status",
  22209. "value": "0"
  22210. },
  22211. {
  22212. "key": "vip_phone_number",
  22213. "value": "{{vip_phone02}}"
  22214. }
  22215. ]
  22216. }
  22217. },
  22218. "response": []
  22219. },
  22220. {
  22221. "name": "01get_vipmemberappointment_state1_cate1",
  22222. "event": [
  22223. {
  22224. "listen": "test",
  22225. "script": {
  22226. "id": "1c12402b-0774-4210-8586-fd68c1544deb",
  22227. "exec": [
  22228. "pm.test(\"Status code is 200\", function () {",
  22229. " pm.response.to.have.status(200);",
  22230. "});"
  22231. ],
  22232. "type": "text/javascript"
  22233. }
  22234. }
  22235. ],
  22236. "request": {
  22237. "method": "GET",
  22238. "header": [
  22239. {
  22240. "key": "Authorization",
  22241. "type": "text",
  22242. "value": "Rong {{shoptoken}}"
  22243. }
  22244. ],
  22245. "body": {
  22246. "mode": "raw",
  22247. "raw": ""
  22248. },
  22249. "url": {
  22250. "raw": "{{url}}/api/vipmember/vipmemberappointment/?state=0&project_category=1",
  22251. "host": [
  22252. "{{url}}"
  22253. ],
  22254. "path": [
  22255. "api",
  22256. "vipmember",
  22257. "vipmemberappointment",
  22258. ""
  22259. ],
  22260. "query": [
  22261. {
  22262. "key": "state",
  22263. "value": "0"
  22264. },
  22265. {
  22266. "key": "project_category",
  22267. "value": "1"
  22268. }
  22269. ]
  22270. }
  22271. },
  22272. "response": []
  22273. }
  22274. ]
  22275. },
  22276. {
  22277. "name": "report_app",
  22278. "item": [
  22279. {
  22280. "name": "get_revenuereport_day",
  22281. "event": [
  22282. {
  22283. "listen": "test",
  22284. "script": {
  22285. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22286. "exec": [
  22287. "pm.test(\"Status code is 200\", function () {",
  22288. " pm.response.to.have.status(200);",
  22289. "});"
  22290. ],
  22291. "type": "text/javascript"
  22292. }
  22293. }
  22294. ],
  22295. "request": {
  22296. "method": "GET",
  22297. "header": [
  22298. {
  22299. "key": "Authorization",
  22300. "value": "Rong {{shoptoken}}",
  22301. "type": "text"
  22302. }
  22303. ],
  22304. "body": {
  22305. "mode": "raw",
  22306. "raw": ""
  22307. },
  22308. "url": {
  22309. "raw": "{{url}}/api/capital/revenuereport/?day=29&month=11&year=2018",
  22310. "host": [
  22311. "{{url}}"
  22312. ],
  22313. "path": [
  22314. "api",
  22315. "capital",
  22316. "revenuereport",
  22317. ""
  22318. ],
  22319. "query": [
  22320. {
  22321. "key": "day",
  22322. "value": "29"
  22323. },
  22324. {
  22325. "key": "month",
  22326. "value": "11"
  22327. },
  22328. {
  22329. "key": "year",
  22330. "value": "2018"
  22331. }
  22332. ]
  22333. }
  22334. },
  22335. "response": []
  22336. },
  22337. {
  22338. "name": "get_revenuereport_month",
  22339. "event": [
  22340. {
  22341. "listen": "test",
  22342. "script": {
  22343. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22344. "exec": [
  22345. "pm.test(\"Status code is 200\", function () {",
  22346. " pm.response.to.have.status(200);",
  22347. "});"
  22348. ],
  22349. "type": "text/javascript"
  22350. }
  22351. }
  22352. ],
  22353. "request": {
  22354. "method": "GET",
  22355. "header": [
  22356. {
  22357. "key": "Authorization",
  22358. "type": "text",
  22359. "value": "Rong {{shoptoken}}"
  22360. }
  22361. ],
  22362. "body": {
  22363. "mode": "raw",
  22364. "raw": ""
  22365. },
  22366. "url": {
  22367. "raw": "{{url}}/api/capital/revenuereport/?month=11&year=2018",
  22368. "host": [
  22369. "{{url}}"
  22370. ],
  22371. "path": [
  22372. "api",
  22373. "capital",
  22374. "revenuereport",
  22375. ""
  22376. ],
  22377. "query": [
  22378. {
  22379. "key": "month",
  22380. "value": "11"
  22381. },
  22382. {
  22383. "key": "year",
  22384. "value": "2018"
  22385. }
  22386. ]
  22387. }
  22388. },
  22389. "response": []
  22390. },
  22391. {
  22392. "name": "get_businessreport_day",
  22393. "event": [
  22394. {
  22395. "listen": "test",
  22396. "script": {
  22397. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22398. "exec": [
  22399. "pm.test(\"Status code is 200\", function () {",
  22400. " pm.response.to.have.status(200);",
  22401. "});"
  22402. ],
  22403. "type": "text/javascript"
  22404. }
  22405. }
  22406. ],
  22407. "request": {
  22408. "method": "GET",
  22409. "header": [
  22410. {
  22411. "key": "Authorization",
  22412. "type": "text",
  22413. "value": "Rong {{shoptoken}}"
  22414. }
  22415. ],
  22416. "body": {
  22417. "mode": "raw",
  22418. "raw": ""
  22419. },
  22420. "url": {
  22421. "raw": "{{url}}/api/capital/businessreport/?day=29&month=11&year=2018",
  22422. "host": [
  22423. "{{url}}"
  22424. ],
  22425. "path": [
  22426. "api",
  22427. "capital",
  22428. "businessreport",
  22429. ""
  22430. ],
  22431. "query": [
  22432. {
  22433. "key": "day",
  22434. "value": "29"
  22435. },
  22436. {
  22437. "key": "month",
  22438. "value": "11"
  22439. },
  22440. {
  22441. "key": "year",
  22442. "value": "2018"
  22443. }
  22444. ]
  22445. }
  22446. },
  22447. "response": []
  22448. },
  22449. {
  22450. "name": "get_businessreport_month",
  22451. "event": [
  22452. {
  22453. "listen": "test",
  22454. "script": {
  22455. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22456. "exec": [
  22457. "pm.test(\"Status code is 200\", function () {",
  22458. " pm.response.to.have.status(200);",
  22459. "});"
  22460. ],
  22461. "type": "text/javascript"
  22462. }
  22463. }
  22464. ],
  22465. "request": {
  22466. "method": "GET",
  22467. "header": [
  22468. {
  22469. "key": "Authorization",
  22470. "type": "text",
  22471. "value": "Rong {{shoptoken}}"
  22472. }
  22473. ],
  22474. "body": {
  22475. "mode": "raw",
  22476. "raw": ""
  22477. },
  22478. "url": {
  22479. "raw": "{{url}}/api/capital/businessreport/?month=11&year=2018",
  22480. "host": [
  22481. "{{url}}"
  22482. ],
  22483. "path": [
  22484. "api",
  22485. "capital",
  22486. "businessreport",
  22487. ""
  22488. ],
  22489. "query": [
  22490. {
  22491. "key": "month",
  22492. "value": "11"
  22493. },
  22494. {
  22495. "key": "year",
  22496. "value": "2018"
  22497. }
  22498. ]
  22499. }
  22500. },
  22501. "response": []
  22502. },
  22503. {
  22504. "name": "get_staff_salesday",
  22505. "event": [
  22506. {
  22507. "listen": "test",
  22508. "script": {
  22509. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22510. "exec": [
  22511. "pm.test(\"Status code is 200\", function () {",
  22512. " pm.response.to.have.status(200);",
  22513. "});"
  22514. ],
  22515. "type": "text/javascript"
  22516. }
  22517. }
  22518. ],
  22519. "request": {
  22520. "method": "GET",
  22521. "header": [
  22522. {
  22523. "key": "Authorization",
  22524. "type": "text",
  22525. "value": "Rong {{shoptoken}}"
  22526. }
  22527. ],
  22528. "body": {
  22529. "mode": "raw",
  22530. "raw": ""
  22531. },
  22532. "url": {
  22533. "raw": "{{url}}/api/staff/staffperformancereport/?types=salesDaily&monthday=2018-11-29",
  22534. "host": [
  22535. "{{url}}"
  22536. ],
  22537. "path": [
  22538. "api",
  22539. "staff",
  22540. "staffperformancereport",
  22541. ""
  22542. ],
  22543. "query": [
  22544. {
  22545. "key": "types",
  22546. "value": "salesDaily"
  22547. },
  22548. {
  22549. "key": "monthday",
  22550. "value": "2018-11-29"
  22551. }
  22552. ]
  22553. }
  22554. },
  22555. "response": []
  22556. },
  22557. {
  22558. "name": "get_staff_salesmonth",
  22559. "event": [
  22560. {
  22561. "listen": "test",
  22562. "script": {
  22563. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22564. "exec": [
  22565. "pm.test(\"Status code is 200\", function () {",
  22566. " pm.response.to.have.status(200);",
  22567. "});"
  22568. ],
  22569. "type": "text/javascript"
  22570. }
  22571. }
  22572. ],
  22573. "request": {
  22574. "method": "GET",
  22575. "header": [
  22576. {
  22577. "key": "Authorization",
  22578. "type": "text",
  22579. "value": "Rong {{shoptoken}}"
  22580. }
  22581. ],
  22582. "body": {
  22583. "mode": "raw",
  22584. "raw": ""
  22585. },
  22586. "url": {
  22587. "raw": "{{url}}/api/staff/staffperformancereport/?types=salesMonthlyReport&monthday=2018-11-01",
  22588. "host": [
  22589. "{{url}}"
  22590. ],
  22591. "path": [
  22592. "api",
  22593. "staff",
  22594. "staffperformancereport",
  22595. ""
  22596. ],
  22597. "query": [
  22598. {
  22599. "key": "types",
  22600. "value": "salesMonthlyReport"
  22601. },
  22602. {
  22603. "key": "monthday",
  22604. "value": "2018-11-01"
  22605. }
  22606. ]
  22607. }
  22608. },
  22609. "response": []
  22610. },
  22611. {
  22612. "name": "get_staff_constructionday",
  22613. "event": [
  22614. {
  22615. "listen": "test",
  22616. "script": {
  22617. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22618. "exec": [
  22619. "pm.test(\"Status code is 200\", function () {",
  22620. " pm.response.to.have.status(200);",
  22621. "});"
  22622. ],
  22623. "type": "text/javascript"
  22624. }
  22625. }
  22626. ],
  22627. "request": {
  22628. "method": "GET",
  22629. "header": [
  22630. {
  22631. "key": "Authorization",
  22632. "type": "text",
  22633. "value": "Rong {{shoptoken}}"
  22634. }
  22635. ],
  22636. "body": {
  22637. "mode": "raw",
  22638. "raw": ""
  22639. },
  22640. "url": {
  22641. "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionDaily&monthday=2018-11-29",
  22642. "host": [
  22643. "{{url}}"
  22644. ],
  22645. "path": [
  22646. "api",
  22647. "staff",
  22648. "staffperformancereport",
  22649. ""
  22650. ],
  22651. "query": [
  22652. {
  22653. "key": "types",
  22654. "value": "constructionDaily"
  22655. },
  22656. {
  22657. "key": "monthday",
  22658. "value": "2018-11-29"
  22659. }
  22660. ]
  22661. }
  22662. },
  22663. "response": []
  22664. },
  22665. {
  22666. "name": "get_staff_constructionmonth",
  22667. "event": [
  22668. {
  22669. "listen": "test",
  22670. "script": {
  22671. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22672. "exec": [
  22673. "pm.test(\"Status code is 200\", function () {",
  22674. " pm.response.to.have.status(200);",
  22675. "});"
  22676. ],
  22677. "type": "text/javascript"
  22678. }
  22679. }
  22680. ],
  22681. "request": {
  22682. "method": "GET",
  22683. "header": [
  22684. {
  22685. "key": "Authorization",
  22686. "type": "text",
  22687. "value": "Rong {{shoptoken}}"
  22688. }
  22689. ],
  22690. "body": {
  22691. "mode": "raw",
  22692. "raw": ""
  22693. },
  22694. "url": {
  22695. "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionMonthlyReport&monthday=2018-11-01",
  22696. "host": [
  22697. "{{url}}"
  22698. ],
  22699. "path": [
  22700. "api",
  22701. "staff",
  22702. "staffperformancereport",
  22703. ""
  22704. ],
  22705. "query": [
  22706. {
  22707. "key": "types",
  22708. "value": "constructionMonthlyReport"
  22709. },
  22710. {
  22711. "key": "monthday",
  22712. "value": "2018-11-01"
  22713. }
  22714. ]
  22715. }
  22716. },
  22717. "response": []
  22718. },
  22719. {
  22720. "name": "get_inventorydetail",
  22721. "event": [
  22722. {
  22723. "listen": "test",
  22724. "script": {
  22725. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22726. "exec": [
  22727. "pm.test(\"Status code is 200\", function () {",
  22728. " pm.response.to.have.status(200);",
  22729. "});"
  22730. ],
  22731. "type": "text/javascript"
  22732. }
  22733. }
  22734. ],
  22735. "request": {
  22736. "method": "GET",
  22737. "header": [
  22738. {
  22739. "key": "Authorization",
  22740. "type": "text",
  22741. "value": "Rong {{shoptoken}}"
  22742. }
  22743. ],
  22744. "body": {
  22745. "mode": "raw",
  22746. "raw": ""
  22747. },
  22748. "url": {
  22749. "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id02}},{{storehouse_id03}}",
  22750. "host": [
  22751. "{{url}}"
  22752. ],
  22753. "path": [
  22754. "api",
  22755. "invoicing",
  22756. "inventorydetail",
  22757. ""
  22758. ],
  22759. "query": [
  22760. {
  22761. "key": "storehouse_ids",
  22762. "value": "{{storehouse_id02}},{{storehouse_id03}}"
  22763. }
  22764. ]
  22765. }
  22766. },
  22767. "response": []
  22768. },
  22769. {
  22770. "name": "get_inventorydetail_search_product",
  22771. "event": [
  22772. {
  22773. "listen": "test",
  22774. "script": {
  22775. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22776. "exec": [
  22777. "pm.test(\"Status code is 200\", function () {",
  22778. " pm.response.to.have.status(200);",
  22779. "});"
  22780. ],
  22781. "type": "text/javascript"
  22782. }
  22783. }
  22784. ],
  22785. "request": {
  22786. "method": "GET",
  22787. "header": [
  22788. {
  22789. "key": "Authorization",
  22790. "type": "text",
  22791. "value": "Rong {{shoptoken}}"
  22792. }
  22793. ],
  22794. "body": {
  22795. "mode": "raw",
  22796. "raw": ""
  22797. },
  22798. "url": {
  22799. "raw": "{{url}}/api/invoicing/inventorydetail/?car_products__name__contains={{car_products_name03}}",
  22800. "host": [
  22801. "{{url}}"
  22802. ],
  22803. "path": [
  22804. "api",
  22805. "invoicing",
  22806. "inventorydetail",
  22807. ""
  22808. ],
  22809. "query": [
  22810. {
  22811. "key": "car_products__name__contains",
  22812. "value": "{{car_products_name03}}"
  22813. }
  22814. ]
  22815. }
  22816. },
  22817. "response": []
  22818. },
  22819. {
  22820. "name": "get_inventorydetail_search_storehouse",
  22821. "event": [
  22822. {
  22823. "listen": "test",
  22824. "script": {
  22825. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22826. "exec": [
  22827. "pm.test(\"Status code is 200\", function () {",
  22828. " pm.response.to.have.status(200);",
  22829. "});"
  22830. ],
  22831. "type": "text/javascript"
  22832. }
  22833. }
  22834. ],
  22835. "request": {
  22836. "method": "GET",
  22837. "header": [
  22838. {
  22839. "key": "Authorization",
  22840. "type": "text",
  22841. "value": "Rong {{shoptoken}}"
  22842. }
  22843. ],
  22844. "body": {
  22845. "mode": "raw",
  22846. "raw": ""
  22847. },
  22848. "url": {
  22849. "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}",
  22850. "host": [
  22851. "{{url}}"
  22852. ],
  22853. "path": [
  22854. "api",
  22855. "invoicing",
  22856. "inventorydetail",
  22857. ""
  22858. ],
  22859. "query": [
  22860. {
  22861. "key": "storehouse_ids",
  22862. "value": "{{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}"
  22863. }
  22864. ]
  22865. }
  22866. },
  22867. "response": []
  22868. },
  22869. {
  22870. "name": "get_salesordercount_day",
  22871. "event": [
  22872. {
  22873. "listen": "test",
  22874. "script": {
  22875. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22876. "exec": [
  22877. "pm.test(\"Status code is 200\", function () {",
  22878. " pm.response.to.have.status(200);",
  22879. "});"
  22880. ],
  22881. "type": "text/javascript"
  22882. }
  22883. }
  22884. ],
  22885. "request": {
  22886. "method": "GET",
  22887. "header": [
  22888. {
  22889. "key": "Authorization",
  22890. "type": "text",
  22891. "value": "Rong {{shoptoken}}"
  22892. }
  22893. ],
  22894. "body": {
  22895. "mode": "raw",
  22896. "raw": ""
  22897. },
  22898. "url": {
  22899. "raw": "{{url}}/api/invoicing/salesordercount/?type=2&from_time=2018-11-01&to_time=2018-11-30",
  22900. "host": [
  22901. "{{url}}"
  22902. ],
  22903. "path": [
  22904. "api",
  22905. "invoicing",
  22906. "salesordercount",
  22907. ""
  22908. ],
  22909. "query": [
  22910. {
  22911. "key": "type",
  22912. "value": "2"
  22913. },
  22914. {
  22915. "key": "from_time",
  22916. "value": "2018-11-01"
  22917. },
  22918. {
  22919. "key": "to_time",
  22920. "value": "2018-11-30"
  22921. }
  22922. ]
  22923. }
  22924. },
  22925. "response": []
  22926. },
  22927. {
  22928. "name": "get_salesordercount_month",
  22929. "event": [
  22930. {
  22931. "listen": "test",
  22932. "script": {
  22933. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22934. "exec": [
  22935. "pm.test(\"Status code is 200\", function () {",
  22936. " pm.response.to.have.status(200);",
  22937. "});"
  22938. ],
  22939. "type": "text/javascript"
  22940. }
  22941. }
  22942. ],
  22943. "request": {
  22944. "method": "GET",
  22945. "header": [
  22946. {
  22947. "key": "Authorization",
  22948. "type": "text",
  22949. "value": "Rong {{shoptoken}}"
  22950. }
  22951. ],
  22952. "body": {
  22953. "mode": "raw",
  22954. "raw": ""
  22955. },
  22956. "url": {
  22957. "raw": "{{url}}/api/invoicing/salesordercount/?type=2&from_time=2018-11-29&to_time=2018-11-29",
  22958. "host": [
  22959. "{{url}}"
  22960. ],
  22961. "path": [
  22962. "api",
  22963. "invoicing",
  22964. "salesordercount",
  22965. ""
  22966. ],
  22967. "query": [
  22968. {
  22969. "key": "type",
  22970. "value": "2"
  22971. },
  22972. {
  22973. "key": "from_time",
  22974. "value": "2018-11-29"
  22975. },
  22976. {
  22977. "key": "to_time",
  22978. "value": "2018-11-29"
  22979. }
  22980. ]
  22981. }
  22982. },
  22983. "response": []
  22984. },
  22985. {
  22986. "name": "get_salesordercount_day",
  22987. "event": [
  22988. {
  22989. "listen": "test",
  22990. "script": {
  22991. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  22992. "exec": [
  22993. "pm.test(\"Status code is 200\", function () {",
  22994. " pm.response.to.have.status(200);",
  22995. "});"
  22996. ],
  22997. "type": "text/javascript"
  22998. }
  22999. }
  23000. ],
  23001. "request": {
  23002. "method": "GET",
  23003. "header": [
  23004. {
  23005. "key": "Authorization",
  23006. "type": "text",
  23007. "value": "Rong {{shoptoken}}"
  23008. }
  23009. ],
  23010. "body": {
  23011. "mode": "raw",
  23012. "raw": ""
  23013. },
  23014. "url": {
  23015. "raw": "{{url}}/api/invoicing/purchaseordercount/?type=2&from_time=2018-11-29&to_time=2018-11-29",
  23016. "host": [
  23017. "{{url}}"
  23018. ],
  23019. "path": [
  23020. "api",
  23021. "invoicing",
  23022. "purchaseordercount",
  23023. ""
  23024. ],
  23025. "query": [
  23026. {
  23027. "key": "type",
  23028. "value": "2"
  23029. },
  23030. {
  23031. "key": "from_time",
  23032. "value": "2018-11-29"
  23033. },
  23034. {
  23035. "key": "to_time",
  23036. "value": "2018-11-29"
  23037. }
  23038. ]
  23039. }
  23040. },
  23041. "response": []
  23042. },
  23043. {
  23044. "name": "get_purchaseordercount_month",
  23045. "event": [
  23046. {
  23047. "listen": "test",
  23048. "script": {
  23049. "id": "d94f4e8d-0f0b-48fd-a6e0-7db7ba97f790",
  23050. "exec": [
  23051. "pm.test(\"Status code is 200\", function () {",
  23052. " pm.response.to.have.status(200);",
  23053. "});"
  23054. ],
  23055. "type": "text/javascript"
  23056. }
  23057. }
  23058. ],
  23059. "request": {
  23060. "method": "GET",
  23061. "header": [
  23062. {
  23063. "key": "Authorization",
  23064. "type": "text",
  23065. "value": "Rong {{shoptoken}}"
  23066. }
  23067. ],
  23068. "body": {
  23069. "mode": "raw",
  23070. "raw": ""
  23071. },
  23072. "url": {
  23073. "raw": "{{url}}/api/invoicing/purchaseordercount/?type=2&from_time=2018-11-01&to_time=2018-11-30",
  23074. "host": [
  23075. "{{url}}"
  23076. ],
  23077. "path": [
  23078. "api",
  23079. "invoicing",
  23080. "purchaseordercount",
  23081. ""
  23082. ],
  23083. "query": [
  23084. {
  23085. "key": "type",
  23086. "value": "2"
  23087. },
  23088. {
  23089. "key": "from_time",
  23090. "value": "2018-11-01"
  23091. },
  23092. {
  23093. "key": "to_time",
  23094. "value": "2018-11-30"
  23095. }
  23096. ]
  23097. }
  23098. },
  23099. "response": []
  23100. }
  23101. ]
  23102. },
  23103. {
  23104. "name": "operatiolmge_search",
  23105. "item": [
  23106. {
  23107. "name": "get_beauty_areashort",
  23108. "event": [
  23109. {
  23110. "listen": "test",
  23111. "script": {
  23112. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23113. "exec": [
  23114. "pm.test(\"Status code is 200\", function () {",
  23115. " pm.response.to.have.status(200);",
  23116. "});"
  23117. ],
  23118. "type": "text/javascript"
  23119. }
  23120. }
  23121. ],
  23122. "request": {
  23123. "method": "GET",
  23124. "header": [
  23125. {
  23126. "key": "Authorization",
  23127. "type": "text",
  23128. "value": "Rong {{shoptoken}}"
  23129. }
  23130. ],
  23131. "body": {
  23132. "mode": "raw",
  23133. "raw": ""
  23134. },
  23135. "url": {
  23136. "raw": "{{url}}/api/business/beautyserviceorderadmin/?areashort={{areashort_id13}}",
  23137. "host": [
  23138. "{{url}}"
  23139. ],
  23140. "path": [
  23141. "api",
  23142. "business",
  23143. "beautyserviceorderadmin",
  23144. ""
  23145. ],
  23146. "query": [
  23147. {
  23148. "key": "areashort",
  23149. "value": "{{areashort_id13}}"
  23150. }
  23151. ]
  23152. }
  23153. },
  23154. "response": []
  23155. },
  23156. {
  23157. "name": "get_beauty_areashort_cellphone",
  23158. "event": [
  23159. {
  23160. "listen": "test",
  23161. "script": {
  23162. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23163. "exec": [
  23164. "pm.test(\"Status code is 200\", function () {",
  23165. " pm.response.to.have.status(200);",
  23166. "});"
  23167. ],
  23168. "type": "text/javascript"
  23169. }
  23170. }
  23171. ],
  23172. "request": {
  23173. "method": "GET",
  23174. "header": [
  23175. {
  23176. "key": "Authorization",
  23177. "type": "text",
  23178. "value": "Rong {{shoptoken}}"
  23179. }
  23180. ],
  23181. "body": {
  23182. "mode": "raw",
  23183. "raw": ""
  23184. },
  23185. "url": {
  23186. "raw": "{{url}}/api/business/beautyserviceorderadmin/?areashort={{areashort_id13}}&cellphone=181598523",
  23187. "host": [
  23188. "{{url}}"
  23189. ],
  23190. "path": [
  23191. "api",
  23192. "business",
  23193. "beautyserviceorderadmin",
  23194. ""
  23195. ],
  23196. "query": [
  23197. {
  23198. "key": "areashort",
  23199. "value": "{{areashort_id13}}"
  23200. },
  23201. {
  23202. "key": "cellphone",
  23203. "value": "181598523"
  23204. }
  23205. ]
  23206. }
  23207. },
  23208. "response": []
  23209. },
  23210. {
  23211. "name": "get_beauty_dates_areashort_cellphone",
  23212. "event": [
  23213. {
  23214. "listen": "test",
  23215. "script": {
  23216. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23217. "exec": [
  23218. "pm.test(\"Status code is 200\", function () {",
  23219. " pm.response.to.have.status(200);",
  23220. "});"
  23221. ],
  23222. "type": "text/javascript"
  23223. }
  23224. }
  23225. ],
  23226. "request": {
  23227. "method": "GET",
  23228. "header": [
  23229. {
  23230. "key": "Authorization",
  23231. "type": "text",
  23232. "value": "Rong {{shoptoken}}"
  23233. }
  23234. ],
  23235. "body": {
  23236. "mode": "raw",
  23237. "raw": ""
  23238. },
  23239. "url": {
  23240. "raw": "{{url}}/api/business/beautyserviceorderadmin/?start_date=2019-01-01&end_date={{ymd-date}}&areashort={{areashort_id13}}&cellphone=181598523",
  23241. "host": [
  23242. "{{url}}"
  23243. ],
  23244. "path": [
  23245. "api",
  23246. "business",
  23247. "beautyserviceorderadmin",
  23248. ""
  23249. ],
  23250. "query": [
  23251. {
  23252. "key": "start_date",
  23253. "value": "2019-01-01"
  23254. },
  23255. {
  23256. "key": "end_date",
  23257. "value": "{{ymd-date}}"
  23258. },
  23259. {
  23260. "key": "areashort",
  23261. "value": "{{areashort_id13}}"
  23262. },
  23263. {
  23264. "key": "cellphone",
  23265. "value": "181598523"
  23266. }
  23267. ]
  23268. }
  23269. },
  23270. "response": []
  23271. },
  23272. {
  23273. "name": "get_repair_areashort",
  23274. "event": [
  23275. {
  23276. "listen": "test",
  23277. "script": {
  23278. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23279. "exec": [
  23280. "pm.test(\"Status code is 200\", function () {",
  23281. " pm.response.to.have.status(200);",
  23282. "});"
  23283. ],
  23284. "type": "text/javascript"
  23285. }
  23286. }
  23287. ],
  23288. "request": {
  23289. "method": "GET",
  23290. "header": [
  23291. {
  23292. "key": "Authorization",
  23293. "type": "text",
  23294. "value": "Rong {{shoptoken}}"
  23295. }
  23296. ],
  23297. "body": {
  23298. "mode": "raw",
  23299. "raw": ""
  23300. },
  23301. "url": {
  23302. "raw": "{{url}}/api/business/repairserviceorderadminview/?areashort={{areashort_id13}}",
  23303. "host": [
  23304. "{{url}}"
  23305. ],
  23306. "path": [
  23307. "api",
  23308. "business",
  23309. "repairserviceorderadminview",
  23310. ""
  23311. ],
  23312. "query": [
  23313. {
  23314. "key": "areashort",
  23315. "value": "{{areashort_id13}}"
  23316. }
  23317. ]
  23318. }
  23319. },
  23320. "response": []
  23321. },
  23322. {
  23323. "name": "get_repair_areashort_cellphone",
  23324. "event": [
  23325. {
  23326. "listen": "test",
  23327. "script": {
  23328. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23329. "exec": [
  23330. "pm.test(\"Status code is 200\", function () {",
  23331. " pm.response.to.have.status(200);",
  23332. "});"
  23333. ],
  23334. "type": "text/javascript"
  23335. }
  23336. }
  23337. ],
  23338. "request": {
  23339. "method": "GET",
  23340. "header": [
  23341. {
  23342. "key": "Authorization",
  23343. "type": "text",
  23344. "value": "Rong {{shoptoken}}"
  23345. }
  23346. ],
  23347. "body": {
  23348. "mode": "raw",
  23349. "raw": ""
  23350. },
  23351. "url": {
  23352. "raw": "{{url}}/api/business/repairserviceorderadminview/?areashort={{areashort_id01}}&cellphone=18159859",
  23353. "host": [
  23354. "{{url}}"
  23355. ],
  23356. "path": [
  23357. "api",
  23358. "business",
  23359. "repairserviceorderadminview",
  23360. ""
  23361. ],
  23362. "query": [
  23363. {
  23364. "key": "areashort",
  23365. "value": "{{areashort_id01}}"
  23366. },
  23367. {
  23368. "key": "cellphone",
  23369. "value": "18159859"
  23370. }
  23371. ]
  23372. }
  23373. },
  23374. "response": []
  23375. },
  23376. {
  23377. "name": "get_repair_dates_areashort_cellphone",
  23378. "event": [
  23379. {
  23380. "listen": "test",
  23381. "script": {
  23382. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23383. "exec": [
  23384. "pm.test(\"Status code is 200\", function () {",
  23385. " pm.response.to.have.status(200);",
  23386. "});"
  23387. ],
  23388. "type": "text/javascript"
  23389. }
  23390. }
  23391. ],
  23392. "request": {
  23393. "method": "GET",
  23394. "header": [
  23395. {
  23396. "key": "Authorization",
  23397. "type": "text",
  23398. "value": "Rong {{shoptoken}}"
  23399. }
  23400. ],
  23401. "body": {
  23402. "mode": "raw",
  23403. "raw": ""
  23404. },
  23405. "url": {
  23406. "raw": "{{url}}/api/business/repairserviceorderadminview/?start_date=2019-01-01&end_date={{ymd-date}}&areashort={{areashort_id13}}&cellphone=18159859",
  23407. "host": [
  23408. "{{url}}"
  23409. ],
  23410. "path": [
  23411. "api",
  23412. "business",
  23413. "repairserviceorderadminview",
  23414. ""
  23415. ],
  23416. "query": [
  23417. {
  23418. "key": "start_date",
  23419. "value": "2019-01-01"
  23420. },
  23421. {
  23422. "key": "end_date",
  23423. "value": "{{ymd-date}}"
  23424. },
  23425. {
  23426. "key": "areashort",
  23427. "value": "{{areashort_id13}}"
  23428. },
  23429. {
  23430. "key": "cellphone",
  23431. "value": "18159859"
  23432. }
  23433. ]
  23434. }
  23435. },
  23436. "response": []
  23437. },
  23438. {
  23439. "name": "get_packagecard_cellphone",
  23440. "event": [
  23441. {
  23442. "listen": "test",
  23443. "script": {
  23444. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23445. "exec": [
  23446. "pm.test(\"Status code is 200\", function () {",
  23447. " pm.response.to.have.status(200);",
  23448. "});"
  23449. ],
  23450. "type": "text/javascript"
  23451. }
  23452. }
  23453. ],
  23454. "request": {
  23455. "method": "GET",
  23456. "header": [
  23457. {
  23458. "key": "Authorization",
  23459. "type": "text",
  23460. "value": "Rong {{shoptoken}}"
  23461. }
  23462. ],
  23463. "body": {
  23464. "mode": "raw",
  23465. "raw": ""
  23466. },
  23467. "url": {
  23468. "raw": "{{url}}/api/vipmember/packagecardadmin/?cellphone=18159859",
  23469. "host": [
  23470. "{{url}}"
  23471. ],
  23472. "path": [
  23473. "api",
  23474. "vipmember",
  23475. "packagecardadmin",
  23476. ""
  23477. ],
  23478. "query": [
  23479. {
  23480. "key": "cellphone",
  23481. "value": "18159859"
  23482. }
  23483. ]
  23484. }
  23485. },
  23486. "response": []
  23487. },
  23488. {
  23489. "name": "get_packagecard_cellphone _dates",
  23490. "event": [
  23491. {
  23492. "listen": "test",
  23493. "script": {
  23494. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23495. "exec": [
  23496. "pm.test(\"Status code is 200\", function () {",
  23497. " pm.response.to.have.status(200);",
  23498. "});"
  23499. ],
  23500. "type": "text/javascript"
  23501. }
  23502. }
  23503. ],
  23504. "request": {
  23505. "method": "GET",
  23506. "header": [
  23507. {
  23508. "key": "Authorization",
  23509. "type": "text",
  23510. "value": "Rong {{shoptoken}}"
  23511. }
  23512. ],
  23513. "body": {
  23514. "mode": "raw",
  23515. "raw": ""
  23516. },
  23517. "url": {
  23518. "raw": "{{url}}/api/vipmember/packagecardadmin/?cellphone=18159859&start_date=2019-01-01&end_date={{ymd-date}}",
  23519. "host": [
  23520. "{{url}}"
  23521. ],
  23522. "path": [
  23523. "api",
  23524. "vipmember",
  23525. "packagecardadmin",
  23526. ""
  23527. ],
  23528. "query": [
  23529. {
  23530. "key": "cellphone",
  23531. "value": "18159859"
  23532. },
  23533. {
  23534. "key": "start_date",
  23535. "value": "2019-01-01"
  23536. },
  23537. {
  23538. "key": "end_date",
  23539. "value": "{{ymd-date}}"
  23540. }
  23541. ]
  23542. }
  23543. },
  23544. "response": []
  23545. },
  23546. {
  23547. "name": "get_storedvaluecard_cardid",
  23548. "event": [
  23549. {
  23550. "listen": "test",
  23551. "script": {
  23552. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23553. "exec": [
  23554. "pm.test(\"Status code is 200\", function () {",
  23555. " pm.response.to.have.status(200);",
  23556. "});"
  23557. ],
  23558. "type": "text/javascript"
  23559. }
  23560. }
  23561. ],
  23562. "request": {
  23563. "method": "GET",
  23564. "header": [
  23565. {
  23566. "key": "Authorization",
  23567. "type": "text",
  23568. "value": "Rong {{shoptoken}}"
  23569. }
  23570. ],
  23571. "body": {
  23572. "mode": "raw",
  23573. "raw": ""
  23574. },
  23575. "url": {
  23576. "raw": "{{url}}/api/vipmember/storedvaluecard/?stored_card=C18",
  23577. "host": [
  23578. "{{url}}"
  23579. ],
  23580. "path": [
  23581. "api",
  23582. "vipmember",
  23583. "storedvaluecard",
  23584. ""
  23585. ],
  23586. "query": [
  23587. {
  23588. "key": "stored_card",
  23589. "value": "C18"
  23590. }
  23591. ]
  23592. }
  23593. },
  23594. "response": []
  23595. },
  23596. {
  23597. "name": "get_storedvaluecard_vipname",
  23598. "event": [
  23599. {
  23600. "listen": "test",
  23601. "script": {
  23602. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23603. "exec": [
  23604. "pm.test(\"Status code is 200\", function () {",
  23605. " pm.response.to.have.status(200);",
  23606. "});"
  23607. ],
  23608. "type": "text/javascript"
  23609. }
  23610. }
  23611. ],
  23612. "request": {
  23613. "method": "GET",
  23614. "header": [
  23615. {
  23616. "key": "Authorization",
  23617. "type": "text",
  23618. "value": "Rong {{shoptoken}}"
  23619. }
  23620. ],
  23621. "body": {
  23622. "mode": "raw",
  23623. "raw": ""
  23624. },
  23625. "url": {
  23626. "raw": "{{url}}/api/vipmember/storedvaluecard/?vip_name={{vip_name01}}",
  23627. "host": [
  23628. "{{url}}"
  23629. ],
  23630. "path": [
  23631. "api",
  23632. "vipmember",
  23633. "storedvaluecard",
  23634. ""
  23635. ],
  23636. "query": [
  23637. {
  23638. "key": "vip_name",
  23639. "value": "{{vip_name01}}"
  23640. }
  23641. ]
  23642. }
  23643. },
  23644. "response": []
  23645. },
  23646. {
  23647. "name": "get_valuecard_recharge_cardnum",
  23648. "event": [
  23649. {
  23650. "listen": "test",
  23651. "script": {
  23652. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23653. "exec": [
  23654. "pm.test(\"Status code is 200\", function () {",
  23655. " pm.response.to.have.status(200);",
  23656. "});"
  23657. ],
  23658. "type": "text/javascript"
  23659. }
  23660. }
  23661. ],
  23662. "request": {
  23663. "method": "GET",
  23664. "header": [
  23665. {
  23666. "key": "Authorization",
  23667. "type": "text",
  23668. "value": "Rong {{shoptoken}}"
  23669. }
  23670. ],
  23671. "body": {
  23672. "mode": "raw",
  23673. "raw": ""
  23674. },
  23675. "url": {
  23676. "raw": "{{url}}/api/vipmember/vipmemberrecharge/?sv_card_number=C18",
  23677. "host": [
  23678. "{{url}}"
  23679. ],
  23680. "path": [
  23681. "api",
  23682. "vipmember",
  23683. "vipmemberrecharge",
  23684. ""
  23685. ],
  23686. "query": [
  23687. {
  23688. "key": "sv_card_number",
  23689. "value": "C18"
  23690. }
  23691. ]
  23692. }
  23693. },
  23694. "response": []
  23695. },
  23696. {
  23697. "name": "get_valuecard_recharge_cardnum_cellphone",
  23698. "event": [
  23699. {
  23700. "listen": "test",
  23701. "script": {
  23702. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23703. "exec": [
  23704. "pm.test(\"Status code is 200\", function () {",
  23705. " pm.response.to.have.status(200);",
  23706. "});"
  23707. ],
  23708. "type": "text/javascript"
  23709. }
  23710. }
  23711. ],
  23712. "request": {
  23713. "method": "GET",
  23714. "header": [
  23715. {
  23716. "key": "Authorization",
  23717. "type": "text",
  23718. "value": "Rong {{shoptoken}}"
  23719. }
  23720. ],
  23721. "body": {
  23722. "mode": "raw",
  23723. "raw": ""
  23724. },
  23725. "url": {
  23726. "raw": "{{url}}/api/vipmember/vipmemberrecharge/?sv_card_number=C18&cellphone=18159859",
  23727. "host": [
  23728. "{{url}}"
  23729. ],
  23730. "path": [
  23731. "api",
  23732. "vipmember",
  23733. "vipmemberrecharge",
  23734. ""
  23735. ],
  23736. "query": [
  23737. {
  23738. "key": "sv_card_number",
  23739. "value": "C18"
  23740. },
  23741. {
  23742. "key": "cellphone",
  23743. "value": "18159859"
  23744. }
  23745. ]
  23746. }
  23747. },
  23748. "response": []
  23749. }
  23750. ]
  23751. },
  23752. {
  23753. "name": "vipmge_search",
  23754. "item": [
  23755. {
  23756. "name": "get_vipmember_bangding_yes",
  23757. "event": [
  23758. {
  23759. "listen": "test",
  23760. "script": {
  23761. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23762. "exec": [
  23763. "pm.test(\"Status code is 200\", function () {",
  23764. " pm.response.to.have.status(200);",
  23765. "});"
  23766. ],
  23767. "type": "text/javascript"
  23768. }
  23769. }
  23770. ],
  23771. "request": {
  23772. "method": "GET",
  23773. "header": [
  23774. {
  23775. "key": "Authorization",
  23776. "type": "text",
  23777. "value": "Rong {{shoptoken}}"
  23778. }
  23779. ],
  23780. "body": {
  23781. "mode": "raw",
  23782. "raw": ""
  23783. },
  23784. "url": {
  23785. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?binding_wechat=1",
  23786. "host": [
  23787. "{{url}}"
  23788. ],
  23789. "path": [
  23790. "api",
  23791. "vipmember",
  23792. "vipmemberinfoadmin",
  23793. ""
  23794. ],
  23795. "query": [
  23796. {
  23797. "key": "binding_wechat",
  23798. "value": "1"
  23799. }
  23800. ]
  23801. }
  23802. },
  23803. "response": []
  23804. },
  23805. {
  23806. "name": "get_vipmember_bangding_no",
  23807. "event": [
  23808. {
  23809. "listen": "test",
  23810. "script": {
  23811. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23812. "exec": [
  23813. "pm.test(\"Status code is 200\", function () {",
  23814. " pm.response.to.have.status(200);",
  23815. "});"
  23816. ],
  23817. "type": "text/javascript"
  23818. }
  23819. }
  23820. ],
  23821. "request": {
  23822. "method": "GET",
  23823. "header": [
  23824. {
  23825. "key": "Authorization",
  23826. "type": "text",
  23827. "value": "Rong {{shoptoken}}"
  23828. }
  23829. ],
  23830. "body": {
  23831. "mode": "raw",
  23832. "raw": ""
  23833. },
  23834. "url": {
  23835. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?binding_wechat=0",
  23836. "host": [
  23837. "{{url}}"
  23838. ],
  23839. "path": [
  23840. "api",
  23841. "vipmember",
  23842. "vipmemberinfoadmin",
  23843. ""
  23844. ],
  23845. "query": [
  23846. {
  23847. "key": "binding_wechat",
  23848. "value": "0"
  23849. }
  23850. ]
  23851. }
  23852. },
  23853. "response": []
  23854. },
  23855. {
  23856. "name": "get_vipmember_cellphone",
  23857. "event": [
  23858. {
  23859. "listen": "test",
  23860. "script": {
  23861. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23862. "exec": [
  23863. "pm.test(\"Status code is 200\", function () {",
  23864. " pm.response.to.have.status(200);",
  23865. "});"
  23866. ],
  23867. "type": "text/javascript"
  23868. }
  23869. }
  23870. ],
  23871. "request": {
  23872. "method": "GET",
  23873. "header": [
  23874. {
  23875. "key": "Authorization",
  23876. "type": "text",
  23877. "value": "Rong {{shoptoken}}"
  23878. }
  23879. ],
  23880. "body": {
  23881. "mode": "raw",
  23882. "raw": ""
  23883. },
  23884. "url": {
  23885. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?cellphone=18159859",
  23886. "host": [
  23887. "{{url}}"
  23888. ],
  23889. "path": [
  23890. "api",
  23891. "vipmember",
  23892. "vipmemberinfoadmin",
  23893. ""
  23894. ],
  23895. "query": [
  23896. {
  23897. "key": "cellphone",
  23898. "value": "18159859"
  23899. }
  23900. ]
  23901. }
  23902. },
  23903. "response": []
  23904. },
  23905. {
  23906. "name": "get_vipmember_carcode",
  23907. "event": [
  23908. {
  23909. "listen": "test",
  23910. "script": {
  23911. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23912. "exec": [
  23913. "pm.test(\"Status code is 200\", function () {",
  23914. " pm.response.to.have.status(200);",
  23915. "});"
  23916. ],
  23917. "type": "text/javascript"
  23918. }
  23919. }
  23920. ],
  23921. "request": {
  23922. "method": "GET",
  23923. "header": [
  23924. {
  23925. "key": "Authorization",
  23926. "type": "text",
  23927. "value": "Rong {{shoptoken}}"
  23928. }
  23929. ],
  23930. "body": {
  23931. "mode": "raw",
  23932. "raw": ""
  23933. },
  23934. "url": {
  23935. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?car_code=B98",
  23936. "host": [
  23937. "{{url}}"
  23938. ],
  23939. "path": [
  23940. "api",
  23941. "vipmember",
  23942. "vipmemberinfoadmin",
  23943. ""
  23944. ],
  23945. "query": [
  23946. {
  23947. "key": "car_code",
  23948. "value": "B98"
  23949. }
  23950. ]
  23951. }
  23952. },
  23953. "response": []
  23954. },
  23955. {
  23956. "name": "get_vipmember_dates",
  23957. "event": [
  23958. {
  23959. "listen": "test",
  23960. "script": {
  23961. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  23962. "exec": [
  23963. "pm.test(\"Status code is 200\", function () {",
  23964. " pm.response.to.have.status(200);",
  23965. "});"
  23966. ],
  23967. "type": "text/javascript"
  23968. }
  23969. }
  23970. ],
  23971. "request": {
  23972. "method": "GET",
  23973. "header": [
  23974. {
  23975. "key": "Authorization",
  23976. "type": "text",
  23977. "value": "Rong {{shoptoken}}"
  23978. }
  23979. ],
  23980. "body": {
  23981. "mode": "raw",
  23982. "raw": ""
  23983. },
  23984. "url": {
  23985. "raw": "{{url}}/api/vipmember/vipmemberinfoadmin/?start_date=2019-01-01&end_date={{ymd-date}}",
  23986. "host": [
  23987. "{{url}}"
  23988. ],
  23989. "path": [
  23990. "api",
  23991. "vipmember",
  23992. "vipmemberinfoadmin",
  23993. ""
  23994. ],
  23995. "query": [
  23996. {
  23997. "key": "car_code",
  23998. "value": "B98",
  23999. "disabled": true
  24000. },
  24001. {
  24002. "key": "start_date",
  24003. "value": "2019-01-01"
  24004. },
  24005. {
  24006. "key": "end_date",
  24007. "value": "{{ymd-date}}"
  24008. }
  24009. ]
  24010. }
  24011. },
  24012. "response": []
  24013. },
  24014. {
  24015. "name": "get_vipserviceprice_grade",
  24016. "event": [
  24017. {
  24018. "listen": "test",
  24019. "script": {
  24020. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24021. "exec": [
  24022. "pm.test(\"Status code is 200\", function () {",
  24023. " pm.response.to.have.status(200);",
  24024. "});"
  24025. ],
  24026. "type": "text/javascript"
  24027. }
  24028. }
  24029. ],
  24030. "request": {
  24031. "method": "GET",
  24032. "header": [
  24033. {
  24034. "key": "Authorization",
  24035. "type": "text",
  24036. "value": "Rong {{shoptoken}}"
  24037. }
  24038. ],
  24039. "body": {
  24040. "mode": "raw",
  24041. "raw": ""
  24042. },
  24043. "url": {
  24044. "raw": "{{url}}/api/vipmember/vipmemberserviceprice/?grade={{grade_id01}}",
  24045. "host": [
  24046. "{{url}}"
  24047. ],
  24048. "path": [
  24049. "api",
  24050. "vipmember",
  24051. "vipmemberserviceprice",
  24052. ""
  24053. ],
  24054. "query": [
  24055. {
  24056. "key": "grade",
  24057. "value": "{{grade_id01}}"
  24058. }
  24059. ]
  24060. }
  24061. },
  24062. "response": []
  24063. },
  24064. {
  24065. "name": "get_vipserviceprice_beautyname",
  24066. "event": [
  24067. {
  24068. "listen": "test",
  24069. "script": {
  24070. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24071. "exec": [
  24072. "pm.test(\"Status code is 200\", function () {",
  24073. " pm.response.to.have.status(200);",
  24074. "});"
  24075. ],
  24076. "type": "text/javascript"
  24077. }
  24078. }
  24079. ],
  24080. "request": {
  24081. "method": "GET",
  24082. "header": [
  24083. {
  24084. "key": "Authorization",
  24085. "type": "text",
  24086. "value": "Rong {{shoptoken}}"
  24087. }
  24088. ],
  24089. "body": {
  24090. "mode": "raw",
  24091. "raw": ""
  24092. },
  24093. "url": {
  24094. "raw": "{{url}}/api/vipmember/vipmemberserviceprice/?name={{beauty_name01}}",
  24095. "host": [
  24096. "{{url}}"
  24097. ],
  24098. "path": [
  24099. "api",
  24100. "vipmember",
  24101. "vipmemberserviceprice",
  24102. ""
  24103. ],
  24104. "query": [
  24105. {
  24106. "key": "name",
  24107. "value": "{{beauty_name01}}"
  24108. }
  24109. ]
  24110. }
  24111. },
  24112. "response": []
  24113. },
  24114. {
  24115. "name": "get_vipproductprice_grade",
  24116. "event": [
  24117. {
  24118. "listen": "test",
  24119. "script": {
  24120. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24121. "exec": [
  24122. "pm.test(\"Status code is 200\", function () {",
  24123. " pm.response.to.have.status(200);",
  24124. "});"
  24125. ],
  24126. "type": "text/javascript"
  24127. }
  24128. }
  24129. ],
  24130. "request": {
  24131. "method": "GET",
  24132. "header": [
  24133. {
  24134. "key": "Authorization",
  24135. "type": "text",
  24136. "value": "Rong {{shoptoken}}"
  24137. }
  24138. ],
  24139. "body": {
  24140. "mode": "raw",
  24141. "raw": ""
  24142. },
  24143. "url": {
  24144. "raw": "{{url}}/api/vipmember/vipmemberproductsprice/?grade={{grade_id01}}",
  24145. "host": [
  24146. "{{url}}"
  24147. ],
  24148. "path": [
  24149. "api",
  24150. "vipmember",
  24151. "vipmemberproductsprice",
  24152. ""
  24153. ],
  24154. "query": [
  24155. {
  24156. "key": "grade",
  24157. "value": "{{grade_id01}}"
  24158. }
  24159. ]
  24160. }
  24161. },
  24162. "response": []
  24163. },
  24164. {
  24165. "name": "get_vipproductprice_productname",
  24166. "event": [
  24167. {
  24168. "listen": "test",
  24169. "script": {
  24170. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24171. "exec": [
  24172. "pm.test(\"Status code is 200\", function () {",
  24173. " pm.response.to.have.status(200);",
  24174. "});"
  24175. ],
  24176. "type": "text/javascript"
  24177. }
  24178. }
  24179. ],
  24180. "request": {
  24181. "method": "GET",
  24182. "header": [
  24183. {
  24184. "key": "Authorization",
  24185. "type": "text",
  24186. "value": "Rong {{shoptoken}}"
  24187. }
  24188. ],
  24189. "body": {
  24190. "mode": "raw",
  24191. "raw": ""
  24192. },
  24193. "url": {
  24194. "raw": "{{url}}/api/vipmember/vipmemberproductsprice/?name={{product_name01}}",
  24195. "host": [
  24196. "{{url}}"
  24197. ],
  24198. "path": [
  24199. "api",
  24200. "vipmember",
  24201. "vipmemberproductsprice",
  24202. ""
  24203. ],
  24204. "query": [
  24205. {
  24206. "key": "name",
  24207. "value": "{{product_name01}}"
  24208. }
  24209. ]
  24210. }
  24211. },
  24212. "response": []
  24213. },
  24214. {
  24215. "name": "get_vipworkprice_grade",
  24216. "event": [
  24217. {
  24218. "listen": "test",
  24219. "script": {
  24220. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24221. "exec": [
  24222. "pm.test(\"Status code is 200\", function () {",
  24223. " pm.response.to.have.status(200);",
  24224. "});"
  24225. ],
  24226. "type": "text/javascript"
  24227. }
  24228. }
  24229. ],
  24230. "request": {
  24231. "method": "GET",
  24232. "header": [
  24233. {
  24234. "key": "Authorization",
  24235. "type": "text",
  24236. "value": "Rong {{shoptoken}}"
  24237. }
  24238. ],
  24239. "body": {
  24240. "mode": "raw",
  24241. "raw": ""
  24242. },
  24243. "url": {
  24244. "raw": "{{url}}/api/vipmember/vipmemberworkprice/?grade={{grade_id01}}",
  24245. "host": [
  24246. "{{url}}"
  24247. ],
  24248. "path": [
  24249. "api",
  24250. "vipmember",
  24251. "vipmemberworkprice",
  24252. ""
  24253. ],
  24254. "query": [
  24255. {
  24256. "key": "grade",
  24257. "value": "{{grade_id01}}"
  24258. }
  24259. ]
  24260. }
  24261. },
  24262. "response": []
  24263. },
  24264. {
  24265. "name": "get_vipworkprice_repairservicename",
  24266. "event": [
  24267. {
  24268. "listen": "test",
  24269. "script": {
  24270. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24271. "exec": [
  24272. "pm.test(\"Status code is 200\", function () {",
  24273. " pm.response.to.have.status(200);",
  24274. "});"
  24275. ],
  24276. "type": "text/javascript"
  24277. }
  24278. }
  24279. ],
  24280. "request": {
  24281. "method": "GET",
  24282. "header": [
  24283. {
  24284. "key": "Authorization",
  24285. "type": "text",
  24286. "value": "Rong {{shoptoken}}"
  24287. }
  24288. ],
  24289. "body": {
  24290. "mode": "raw",
  24291. "raw": ""
  24292. },
  24293. "url": {
  24294. "raw": "{{url}}/api/vipmember/vipmemberworkprice/?name={{repair_service_name01}}",
  24295. "host": [
  24296. "{{url}}"
  24297. ],
  24298. "path": [
  24299. "api",
  24300. "vipmember",
  24301. "vipmemberworkprice",
  24302. ""
  24303. ],
  24304. "query": [
  24305. {
  24306. "key": "name",
  24307. "value": "{{repair_service_name01}}"
  24308. }
  24309. ]
  24310. }
  24311. },
  24312. "response": []
  24313. },
  24314. {
  24315. "name": "get_vipscore_vipid_dates",
  24316. "event": [
  24317. {
  24318. "listen": "test",
  24319. "script": {
  24320. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24321. "exec": [
  24322. "pm.test(\"Status code is 200\", function () {",
  24323. " pm.response.to.have.status(200);",
  24324. "});"
  24325. ],
  24326. "type": "text/javascript"
  24327. }
  24328. }
  24329. ],
  24330. "request": {
  24331. "method": "GET",
  24332. "header": [
  24333. {
  24334. "key": "Authorization",
  24335. "type": "text",
  24336. "value": "Rong {{shoptoken}}"
  24337. }
  24338. ],
  24339. "body": {
  24340. "mode": "raw",
  24341. "raw": ""
  24342. },
  24343. "url": {
  24344. "raw": "{{url}}/api/vipmember/vipmemberscore/?vip_id={{vip_id01}}&begin_date=2019-01-01&end_date={{ymd-date}}",
  24345. "host": [
  24346. "{{url}}"
  24347. ],
  24348. "path": [
  24349. "api",
  24350. "vipmember",
  24351. "vipmemberscore",
  24352. ""
  24353. ],
  24354. "query": [
  24355. {
  24356. "key": "vip_id",
  24357. "value": "{{vip_id01}}"
  24358. },
  24359. {
  24360. "key": "begin_date",
  24361. "value": "2019-01-01"
  24362. },
  24363. {
  24364. "key": "end_date",
  24365. "value": "{{ymd-date}}"
  24366. }
  24367. ]
  24368. }
  24369. },
  24370. "response": []
  24371. },
  24372. {
  24373. "name": "get_integralexchange_repair_type1",
  24374. "event": [
  24375. {
  24376. "listen": "test",
  24377. "script": {
  24378. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24379. "exec": [
  24380. "pm.test(\"Status code is 200\", function () {",
  24381. " pm.response.to.have.status(200);",
  24382. "});"
  24383. ],
  24384. "type": "text/javascript"
  24385. }
  24386. }
  24387. ],
  24388. "request": {
  24389. "method": "GET",
  24390. "header": [
  24391. {
  24392. "key": "Authorization",
  24393. "type": "text",
  24394. "value": "Rong {{shoptoken}}"
  24395. }
  24396. ],
  24397. "body": {
  24398. "mode": "raw",
  24399. "raw": ""
  24400. },
  24401. "url": {
  24402. "raw": "{{url}}/api/basic/integralexchange/?project_type=1",
  24403. "host": [
  24404. "{{url}}"
  24405. ],
  24406. "path": [
  24407. "api",
  24408. "basic",
  24409. "integralexchange",
  24410. ""
  24411. ],
  24412. "query": [
  24413. {
  24414. "key": "project_type",
  24415. "value": "1"
  24416. }
  24417. ]
  24418. }
  24419. },
  24420. "response": []
  24421. },
  24422. {
  24423. "name": "get_integralexchange_beauty_type2",
  24424. "event": [
  24425. {
  24426. "listen": "test",
  24427. "script": {
  24428. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24429. "exec": [
  24430. "pm.test(\"Status code is 200\", function () {",
  24431. " pm.response.to.have.status(200);",
  24432. "});"
  24433. ],
  24434. "type": "text/javascript"
  24435. }
  24436. }
  24437. ],
  24438. "request": {
  24439. "method": "GET",
  24440. "header": [
  24441. {
  24442. "key": "Authorization",
  24443. "type": "text",
  24444. "value": "Rong {{shoptoken}}"
  24445. }
  24446. ],
  24447. "body": {
  24448. "mode": "raw",
  24449. "raw": ""
  24450. },
  24451. "url": {
  24452. "raw": "{{url}}/api/basic/integralexchange/?project_type=2",
  24453. "host": [
  24454. "{{url}}"
  24455. ],
  24456. "path": [
  24457. "api",
  24458. "basic",
  24459. "integralexchange",
  24460. ""
  24461. ],
  24462. "query": [
  24463. {
  24464. "key": "project_type",
  24465. "value": "2"
  24466. }
  24467. ]
  24468. }
  24469. },
  24470. "response": []
  24471. },
  24472. {
  24473. "name": "get_integralexchange_beauty2_bname",
  24474. "event": [
  24475. {
  24476. "listen": "test",
  24477. "script": {
  24478. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24479. "exec": [
  24480. "pm.test(\"Status code is 200\", function () {",
  24481. " pm.response.to.have.status(200);",
  24482. "});"
  24483. ],
  24484. "type": "text/javascript"
  24485. }
  24486. }
  24487. ],
  24488. "request": {
  24489. "method": "GET",
  24490. "header": [
  24491. {
  24492. "key": "Authorization",
  24493. "type": "text",
  24494. "value": "Rong {{shoptoken}}"
  24495. }
  24496. ],
  24497. "body": {
  24498. "mode": "raw",
  24499. "raw": ""
  24500. },
  24501. "url": {
  24502. "raw": "{{url}}/api/basic/integralexchange/?project_type=2&project_name={{beauty_name01}}",
  24503. "host": [
  24504. "{{url}}"
  24505. ],
  24506. "path": [
  24507. "api",
  24508. "basic",
  24509. "integralexchange",
  24510. ""
  24511. ],
  24512. "query": [
  24513. {
  24514. "key": "project_type",
  24515. "value": "2"
  24516. },
  24517. {
  24518. "key": "project_name",
  24519. "value": "{{beauty_name01}}"
  24520. }
  24521. ]
  24522. }
  24523. },
  24524. "response": []
  24525. },
  24526. {
  24527. "name": "get_integralexchange_product_type3",
  24528. "event": [
  24529. {
  24530. "listen": "test",
  24531. "script": {
  24532. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24533. "exec": [
  24534. "pm.test(\"Status code is 200\", function () {",
  24535. " pm.response.to.have.status(200);",
  24536. "});"
  24537. ],
  24538. "type": "text/javascript"
  24539. }
  24540. }
  24541. ],
  24542. "request": {
  24543. "method": "GET",
  24544. "header": [
  24545. {
  24546. "key": "Authorization",
  24547. "type": "text",
  24548. "value": "Rong {{shoptoken}}"
  24549. }
  24550. ],
  24551. "body": {
  24552. "mode": "raw",
  24553. "raw": ""
  24554. },
  24555. "url": {
  24556. "raw": "{{url}}/api/basic/integralexchange/?project_type=3",
  24557. "host": [
  24558. "{{url}}"
  24559. ],
  24560. "path": [
  24561. "api",
  24562. "basic",
  24563. "integralexchange",
  24564. ""
  24565. ],
  24566. "query": [
  24567. {
  24568. "key": "project_type",
  24569. "value": "3"
  24570. }
  24571. ]
  24572. }
  24573. },
  24574. "response": []
  24575. },
  24576. {
  24577. "name": "get_vipmemberappointment_cellphone",
  24578. "event": [
  24579. {
  24580. "listen": "test",
  24581. "script": {
  24582. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24583. "exec": [
  24584. "pm.test(\"Status code is 200\", function () {",
  24585. " pm.response.to.have.status(200);",
  24586. "});"
  24587. ],
  24588. "type": "text/javascript"
  24589. }
  24590. }
  24591. ],
  24592. "request": {
  24593. "method": "GET",
  24594. "header": [
  24595. {
  24596. "key": "Authorization",
  24597. "type": "text",
  24598. "value": "Rong {{shoptoken}}"
  24599. }
  24600. ],
  24601. "body": {
  24602. "mode": "raw",
  24603. "raw": ""
  24604. },
  24605. "url": {
  24606. "raw": "{{url}}/api/vipmember/vipmemberappointment/?cellphone=181",
  24607. "host": [
  24608. "{{url}}"
  24609. ],
  24610. "path": [
  24611. "api",
  24612. "vipmember",
  24613. "vipmemberappointment",
  24614. ""
  24615. ],
  24616. "query": [
  24617. {
  24618. "key": "cellphone",
  24619. "value": "181"
  24620. }
  24621. ]
  24622. }
  24623. },
  24624. "response": []
  24625. },
  24626. {
  24627. "name": "get_vipmemberappointment_dates",
  24628. "event": [
  24629. {
  24630. "listen": "test",
  24631. "script": {
  24632. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24633. "exec": [
  24634. "pm.test(\"Status code is 200\", function () {",
  24635. " pm.response.to.have.status(200);",
  24636. "});"
  24637. ],
  24638. "type": "text/javascript"
  24639. }
  24640. }
  24641. ],
  24642. "request": {
  24643. "method": "GET",
  24644. "header": [
  24645. {
  24646. "key": "Authorization",
  24647. "type": "text",
  24648. "value": "Rong {{shoptoken}}"
  24649. }
  24650. ],
  24651. "body": {
  24652. "mode": "raw",
  24653. "raw": ""
  24654. },
  24655. "url": {
  24656. "raw": "{{url}}/api/vipmember/vipmemberappointment/?start_date=2019-01-01T16:00:00.000Z&end_date={{date}}",
  24657. "host": [
  24658. "{{url}}"
  24659. ],
  24660. "path": [
  24661. "api",
  24662. "vipmember",
  24663. "vipmemberappointment",
  24664. ""
  24665. ],
  24666. "query": [
  24667. {
  24668. "key": "start_date",
  24669. "value": "2019-01-01T16:00:00.000Z"
  24670. },
  24671. {
  24672. "key": "end_date",
  24673. "value": "{{date}}"
  24674. }
  24675. ]
  24676. }
  24677. },
  24678. "response": []
  24679. },
  24680. {
  24681. "name": "get_vipmembersuggestions_cellphone",
  24682. "event": [
  24683. {
  24684. "listen": "test",
  24685. "script": {
  24686. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24687. "exec": [
  24688. "pm.test(\"Status code is 200\", function () {",
  24689. " pm.response.to.have.status(200);",
  24690. "});"
  24691. ],
  24692. "type": "text/javascript"
  24693. }
  24694. }
  24695. ],
  24696. "request": {
  24697. "method": "GET",
  24698. "header": [
  24699. {
  24700. "key": "Authorization",
  24701. "type": "text",
  24702. "value": "Rong {{shoptoken}}"
  24703. }
  24704. ],
  24705. "body": {
  24706. "mode": "raw",
  24707. "raw": ""
  24708. },
  24709. "url": {
  24710. "raw": "{{url}}/api/vipmember/complaintsuggestion/?cellphone=18159",
  24711. "host": [
  24712. "{{url}}"
  24713. ],
  24714. "path": [
  24715. "api",
  24716. "vipmember",
  24717. "complaintsuggestion",
  24718. ""
  24719. ],
  24720. "query": [
  24721. {
  24722. "key": "cellphone",
  24723. "value": "18159"
  24724. }
  24725. ]
  24726. }
  24727. },
  24728. "response": []
  24729. },
  24730. {
  24731. "name": "get_vipmembersuggestions_dates",
  24732. "event": [
  24733. {
  24734. "listen": "test",
  24735. "script": {
  24736. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24737. "exec": [
  24738. "pm.test(\"Status code is 200\", function () {",
  24739. " pm.response.to.have.status(200);",
  24740. "});"
  24741. ],
  24742. "type": "text/javascript"
  24743. }
  24744. }
  24745. ],
  24746. "request": {
  24747. "method": "GET",
  24748. "header": [
  24749. {
  24750. "key": "Authorization",
  24751. "type": "text",
  24752. "value": "Rong {{shoptoken}}"
  24753. }
  24754. ],
  24755. "body": {
  24756. "mode": "raw",
  24757. "raw": ""
  24758. },
  24759. "url": {
  24760. "raw": "{{url}}/api/vipmember/complaintsuggestion/?start_date=2019-01-01T16:00:00.000Z&end_date={{date}}",
  24761. "host": [
  24762. "{{url}}"
  24763. ],
  24764. "path": [
  24765. "api",
  24766. "vipmember",
  24767. "complaintsuggestion",
  24768. ""
  24769. ],
  24770. "query": [
  24771. {
  24772. "key": "start_date",
  24773. "value": "2019-01-01T16:00:00.000Z"
  24774. },
  24775. {
  24776. "key": "end_date",
  24777. "value": "{{date}}"
  24778. }
  24779. ]
  24780. }
  24781. },
  24782. "response": []
  24783. },
  24784. {
  24785. "name": "get_vipmembersuggestions_dates_cellphone",
  24786. "event": [
  24787. {
  24788. "listen": "test",
  24789. "script": {
  24790. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24791. "exec": [
  24792. "pm.test(\"Status code is 200\", function () {",
  24793. " pm.response.to.have.status(200);",
  24794. "});"
  24795. ],
  24796. "type": "text/javascript"
  24797. }
  24798. }
  24799. ],
  24800. "request": {
  24801. "method": "GET",
  24802. "header": [
  24803. {
  24804. "key": "Authorization",
  24805. "type": "text",
  24806. "value": "Rong {{shoptoken}}"
  24807. }
  24808. ],
  24809. "body": {
  24810. "mode": "raw",
  24811. "raw": ""
  24812. },
  24813. "url": {
  24814. "raw": "{{url}}/api/vipmember/complaintsuggestion/?start_date=2019-01-01T16:00:00.000Z&end_date={{date}}&cellphone=1815985",
  24815. "host": [
  24816. "{{url}}"
  24817. ],
  24818. "path": [
  24819. "api",
  24820. "vipmember",
  24821. "complaintsuggestion",
  24822. ""
  24823. ],
  24824. "query": [
  24825. {
  24826. "key": "start_date",
  24827. "value": "2019-01-01T16:00:00.000Z"
  24828. },
  24829. {
  24830. "key": "end_date",
  24831. "value": "{{date}}"
  24832. },
  24833. {
  24834. "key": "cellphone",
  24835. "value": "1815985"
  24836. }
  24837. ]
  24838. }
  24839. },
  24840. "response": []
  24841. },
  24842. {
  24843. "name": "get_vipmemberscoreadjust_phone",
  24844. "event": [
  24845. {
  24846. "listen": "test",
  24847. "script": {
  24848. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24849. "exec": [
  24850. "pm.test(\"Status code is 200\", function () {",
  24851. " pm.response.to.have.status(200);",
  24852. "});"
  24853. ],
  24854. "type": "text/javascript"
  24855. }
  24856. }
  24857. ],
  24858. "request": {
  24859. "method": "GET",
  24860. "header": [
  24861. {
  24862. "key": "Authorization",
  24863. "type": "text",
  24864. "value": "Rong {{shoptoken}}"
  24865. }
  24866. ],
  24867. "body": {
  24868. "mode": "raw",
  24869. "raw": ""
  24870. },
  24871. "url": {
  24872. "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/?vip_phone_number=18159852",
  24873. "host": [
  24874. "{{url}}"
  24875. ],
  24876. "path": [
  24877. "api",
  24878. "vipmember",
  24879. "vipmemberscoreadjust",
  24880. ""
  24881. ],
  24882. "query": [
  24883. {
  24884. "key": "vip_phone_number",
  24885. "value": "18159852"
  24886. }
  24887. ]
  24888. }
  24889. },
  24890. "response": []
  24891. },
  24892. {
  24893. "name": "get_vipmemberscoreadjust_phone_dates",
  24894. "event": [
  24895. {
  24896. "listen": "test",
  24897. "script": {
  24898. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24899. "exec": [
  24900. "pm.test(\"Status code is 200\", function () {",
  24901. " pm.response.to.have.status(200);",
  24902. "});"
  24903. ],
  24904. "type": "text/javascript"
  24905. }
  24906. }
  24907. ],
  24908. "request": {
  24909. "method": "GET",
  24910. "header": [
  24911. {
  24912. "key": "Authorization",
  24913. "type": "text",
  24914. "value": "Rong {{shoptoken}}"
  24915. }
  24916. ],
  24917. "body": {
  24918. "mode": "raw",
  24919. "raw": ""
  24920. },
  24921. "url": {
  24922. "raw": "{{url}}/api/vipmember/vipmemberscoreadjust/?vip_phone_number=18159859&begin_date=2019-01-01&end_date={{ymd-date}}",
  24923. "host": [
  24924. "{{url}}"
  24925. ],
  24926. "path": [
  24927. "api",
  24928. "vipmember",
  24929. "vipmemberscoreadjust",
  24930. ""
  24931. ],
  24932. "query": [
  24933. {
  24934. "key": "vip_phone_number",
  24935. "value": "18159859"
  24936. },
  24937. {
  24938. "key": "begin_date",
  24939. "value": "2019-01-01"
  24940. },
  24941. {
  24942. "key": "end_date",
  24943. "value": "{{ymd-date}}"
  24944. }
  24945. ]
  24946. }
  24947. },
  24948. "response": []
  24949. },
  24950. {
  24951. "name": "get_integralexchangerule_pname",
  24952. "event": [
  24953. {
  24954. "listen": "test",
  24955. "script": {
  24956. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  24957. "exec": [
  24958. "pm.test(\"Status code is 200\", function () {",
  24959. " pm.response.to.have.status(200);",
  24960. "});"
  24961. ],
  24962. "type": "text/javascript"
  24963. }
  24964. }
  24965. ],
  24966. "request": {
  24967. "method": "GET",
  24968. "header": [
  24969. {
  24970. "key": "Authorization",
  24971. "type": "text",
  24972. "value": "Rong {{shoptoken}}"
  24973. }
  24974. ],
  24975. "body": {
  24976. "mode": "raw",
  24977. "raw": ""
  24978. },
  24979. "url": {
  24980. "raw": "{{url}}/api/basic/integralexchangerule/?project_name={{beauty_name01}}",
  24981. "host": [
  24982. "{{url}}"
  24983. ],
  24984. "path": [
  24985. "api",
  24986. "basic",
  24987. "integralexchangerule",
  24988. ""
  24989. ],
  24990. "query": [
  24991. {
  24992. "key": "project_name",
  24993. "value": "{{beauty_name01}}"
  24994. }
  24995. ]
  24996. }
  24997. },
  24998. "response": []
  24999. },
  25000. {
  25001. "name": "get_integralexchangerule_pname_ptype2",
  25002. "event": [
  25003. {
  25004. "listen": "test",
  25005. "script": {
  25006. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25007. "exec": [
  25008. "pm.test(\"Status code is 200\", function () {",
  25009. " pm.response.to.have.status(200);",
  25010. "});"
  25011. ],
  25012. "type": "text/javascript"
  25013. }
  25014. }
  25015. ],
  25016. "request": {
  25017. "method": "GET",
  25018. "header": [
  25019. {
  25020. "key": "Authorization",
  25021. "type": "text",
  25022. "value": "Rong {{shoptoken}}"
  25023. }
  25024. ],
  25025. "body": {
  25026. "mode": "raw",
  25027. "raw": ""
  25028. },
  25029. "url": {
  25030. "raw": "{{url}}/api/basic/integralexchangerule/?project_type=2&project_name={{beauty_name01}}",
  25031. "host": [
  25032. "{{url}}"
  25033. ],
  25034. "path": [
  25035. "api",
  25036. "basic",
  25037. "integralexchangerule",
  25038. ""
  25039. ],
  25040. "query": [
  25041. {
  25042. "key": "project_type",
  25043. "value": "2"
  25044. },
  25045. {
  25046. "key": "project_name",
  25047. "value": "{{beauty_name01}}"
  25048. }
  25049. ]
  25050. }
  25051. },
  25052. "response": []
  25053. },
  25054. {
  25055. "name": "get_corpvipmember_corpname",
  25056. "event": [
  25057. {
  25058. "listen": "test",
  25059. "script": {
  25060. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25061. "exec": [
  25062. "pm.test(\"Status code is 200\", function () {",
  25063. " pm.response.to.have.status(200);",
  25064. "});"
  25065. ],
  25066. "type": "text/javascript"
  25067. }
  25068. }
  25069. ],
  25070. "request": {
  25071. "method": "GET",
  25072. "header": [
  25073. {
  25074. "key": "Authorization",
  25075. "type": "text",
  25076. "value": "Rong {{shoptoken}}"
  25077. }
  25078. ],
  25079. "body": {
  25080. "mode": "raw",
  25081. "raw": ""
  25082. },
  25083. "url": {
  25084. "raw": "{{url}}/api/vipmember/corpvipmember/?name__contains={{corp_name01}}",
  25085. "host": [
  25086. "{{url}}"
  25087. ],
  25088. "path": [
  25089. "api",
  25090. "vipmember",
  25091. "corpvipmember",
  25092. ""
  25093. ],
  25094. "query": [
  25095. {
  25096. "key": "name__contains",
  25097. "value": "{{corp_name01}}"
  25098. }
  25099. ]
  25100. }
  25101. },
  25102. "response": []
  25103. },
  25104. {
  25105. "name": "get_corpbeautypreferential_corpname",
  25106. "event": [
  25107. {
  25108. "listen": "test",
  25109. "script": {
  25110. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25111. "exec": [
  25112. "pm.test(\"Status code is 200\", function () {",
  25113. " pm.response.to.have.status(200);",
  25114. "});"
  25115. ],
  25116. "type": "text/javascript"
  25117. }
  25118. }
  25119. ],
  25120. "request": {
  25121. "method": "GET",
  25122. "header": [
  25123. {
  25124. "key": "Authorization",
  25125. "type": "text",
  25126. "value": "Rong {{shoptoken}}"
  25127. }
  25128. ],
  25129. "body": {
  25130. "mode": "raw",
  25131. "raw": ""
  25132. },
  25133. "url": {
  25134. "raw": "{{url}}/api/vipmember/corpbeautypreferential/?corp_vip__name__contains={{corp_name01}}",
  25135. "host": [
  25136. "{{url}}"
  25137. ],
  25138. "path": [
  25139. "api",
  25140. "vipmember",
  25141. "corpbeautypreferential",
  25142. ""
  25143. ],
  25144. "query": [
  25145. {
  25146. "key": "corp_vip__name__contains",
  25147. "value": "{{corp_name01}}"
  25148. }
  25149. ]
  25150. }
  25151. },
  25152. "response": []
  25153. },
  25154. {
  25155. "name": "get_corprepairpreferential_corpname",
  25156. "event": [
  25157. {
  25158. "listen": "test",
  25159. "script": {
  25160. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25161. "exec": [
  25162. "pm.test(\"Status code is 200\", function () {",
  25163. " pm.response.to.have.status(200);",
  25164. "});"
  25165. ],
  25166. "type": "text/javascript"
  25167. }
  25168. }
  25169. ],
  25170. "request": {
  25171. "method": "GET",
  25172. "header": [
  25173. {
  25174. "key": "Authorization",
  25175. "type": "text",
  25176. "value": "Rong {{shoptoken}}"
  25177. }
  25178. ],
  25179. "body": {
  25180. "mode": "raw",
  25181. "raw": ""
  25182. },
  25183. "url": {
  25184. "raw": "{{url}}/api/vipmember/corprepairpreferential/?corp_vip__name__contains={{corp_name01}}",
  25185. "host": [
  25186. "{{url}}"
  25187. ],
  25188. "path": [
  25189. "api",
  25190. "vipmember",
  25191. "corprepairpreferential",
  25192. ""
  25193. ],
  25194. "query": [
  25195. {
  25196. "key": "corp_vip__name__contains",
  25197. "value": "{{corp_name01}}"
  25198. }
  25199. ]
  25200. }
  25201. },
  25202. "response": []
  25203. },
  25204. {
  25205. "name": "get_corpcarproductspreferential_corpname",
  25206. "event": [
  25207. {
  25208. "listen": "test",
  25209. "script": {
  25210. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25211. "exec": [
  25212. "pm.test(\"Status code is 200\", function () {",
  25213. " pm.response.to.have.status(200);",
  25214. "});"
  25215. ],
  25216. "type": "text/javascript"
  25217. }
  25218. }
  25219. ],
  25220. "request": {
  25221. "method": "GET",
  25222. "header": [
  25223. {
  25224. "key": "Authorization",
  25225. "type": "text",
  25226. "value": "Rong {{shoptoken}}"
  25227. }
  25228. ],
  25229. "body": {
  25230. "mode": "raw",
  25231. "raw": ""
  25232. },
  25233. "url": {
  25234. "raw": "{{url}}/api/vipmember/corpcarproductspreferential/?corp_vip__name__contains={{corp_name01}}",
  25235. "host": [
  25236. "{{url}}"
  25237. ],
  25238. "path": [
  25239. "api",
  25240. "vipmember",
  25241. "corpcarproductspreferential",
  25242. ""
  25243. ],
  25244. "query": [
  25245. {
  25246. "key": "corp_vip__name__contains",
  25247. "value": "{{corp_name01}}"
  25248. }
  25249. ]
  25250. }
  25251. },
  25252. "response": []
  25253. },
  25254. {
  25255. "name": "get_corpbackprofit_corpname",
  25256. "event": [
  25257. {
  25258. "listen": "test",
  25259. "script": {
  25260. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25261. "exec": [
  25262. "pm.test(\"Status code is 200\", function () {",
  25263. " pm.response.to.have.status(200);",
  25264. "});"
  25265. ],
  25266. "type": "text/javascript"
  25267. }
  25268. }
  25269. ],
  25270. "request": {
  25271. "method": "GET",
  25272. "header": [
  25273. {
  25274. "key": "Authorization",
  25275. "type": "text",
  25276. "value": "Rong {{shoptoken}}"
  25277. }
  25278. ],
  25279. "body": {
  25280. "mode": "raw",
  25281. "raw": ""
  25282. },
  25283. "url": {
  25284. "raw": "{{url}}/api/vipmember/corpbackprofit/?corp_vip__name__contains={{corp_name01}}",
  25285. "host": [
  25286. "{{url}}"
  25287. ],
  25288. "path": [
  25289. "api",
  25290. "vipmember",
  25291. "corpbackprofit",
  25292. ""
  25293. ],
  25294. "query": [
  25295. {
  25296. "key": "corp_vip__name__contains",
  25297. "value": "{{corp_name01}}"
  25298. }
  25299. ]
  25300. }
  25301. },
  25302. "response": []
  25303. }
  25304. ],
  25305. "event": [
  25306. {
  25307. "listen": "prerequest",
  25308. "script": {
  25309. "id": "89bda3f3-071b-4344-b383-bc018691fc0a",
  25310. "type": "text/javascript",
  25311. "exec": [
  25312. ""
  25313. ]
  25314. }
  25315. },
  25316. {
  25317. "listen": "test",
  25318. "script": {
  25319. "id": "44043598-154d-4877-a973-98816b011504",
  25320. "type": "text/javascript",
  25321. "exec": [
  25322. ""
  25323. ]
  25324. }
  25325. }
  25326. ]
  25327. },
  25328. {
  25329. "name": "marketmge_search",
  25330. "item": [
  25331. {
  25332. "name": "get_redemptionvoucher_phone",
  25333. "event": [
  25334. {
  25335. "listen": "test",
  25336. "script": {
  25337. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25338. "exec": [
  25339. "pm.test(\"Status code is 200\", function () {",
  25340. " pm.response.to.have.status(200);",
  25341. "});"
  25342. ],
  25343. "type": "text/javascript"
  25344. }
  25345. }
  25346. ],
  25347. "request": {
  25348. "method": "GET",
  25349. "header": [
  25350. {
  25351. "key": "Authorization",
  25352. "type": "text",
  25353. "value": "Rong {{shoptoken}}"
  25354. }
  25355. ],
  25356. "body": {
  25357. "mode": "raw",
  25358. "raw": ""
  25359. },
  25360. "url": {
  25361. "raw": "{{url}}/api/basic/redemptionvoucher/?vip_phone_number=18159859",
  25362. "host": [
  25363. "{{url}}"
  25364. ],
  25365. "path": [
  25366. "api",
  25367. "basic",
  25368. "redemptionvoucher",
  25369. ""
  25370. ],
  25371. "query": [
  25372. {
  25373. "key": "vip_phone_number",
  25374. "value": "18159859"
  25375. }
  25376. ]
  25377. }
  25378. },
  25379. "response": []
  25380. },
  25381. {
  25382. "name": "get_redemptionvoucher_pname",
  25383. "event": [
  25384. {
  25385. "listen": "test",
  25386. "script": {
  25387. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25388. "exec": [
  25389. "pm.test(\"Status code is 200\", function () {",
  25390. " pm.response.to.have.status(200);",
  25391. "});"
  25392. ],
  25393. "type": "text/javascript"
  25394. }
  25395. }
  25396. ],
  25397. "request": {
  25398. "method": "GET",
  25399. "header": [
  25400. {
  25401. "key": "Authorization",
  25402. "type": "text",
  25403. "value": "Rong {{shoptoken}}"
  25404. }
  25405. ],
  25406. "body": {
  25407. "mode": "raw",
  25408. "raw": ""
  25409. },
  25410. "url": {
  25411. "raw": "{{url}}/api/basic/redemptionvoucher/?project_name={{beauty_name01}}",
  25412. "host": [
  25413. "{{url}}"
  25414. ],
  25415. "path": [
  25416. "api",
  25417. "basic",
  25418. "redemptionvoucher",
  25419. ""
  25420. ],
  25421. "query": [
  25422. {
  25423. "key": "project_name",
  25424. "value": "{{beauty_name01}}"
  25425. }
  25426. ]
  25427. }
  25428. },
  25429. "response": []
  25430. },
  25431. {
  25432. "name": "get_redemptionvoucher_phone_pname",
  25433. "event": [
  25434. {
  25435. "listen": "test",
  25436. "script": {
  25437. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25438. "exec": [
  25439. "pm.test(\"Status code is 200\", function () {",
  25440. " pm.response.to.have.status(200);",
  25441. "});"
  25442. ],
  25443. "type": "text/javascript"
  25444. }
  25445. }
  25446. ],
  25447. "request": {
  25448. "method": "GET",
  25449. "header": [
  25450. {
  25451. "key": "Authorization",
  25452. "type": "text",
  25453. "value": "Rong {{shoptoken}}"
  25454. }
  25455. ],
  25456. "body": {
  25457. "mode": "raw",
  25458. "raw": ""
  25459. },
  25460. "url": {
  25461. "raw": "{{url}}/api/basic/redemptionvoucher/?vip_phone_number=1815&project_name={{repair_service_name01}}",
  25462. "host": [
  25463. "{{url}}"
  25464. ],
  25465. "path": [
  25466. "api",
  25467. "basic",
  25468. "redemptionvoucher",
  25469. ""
  25470. ],
  25471. "query": [
  25472. {
  25473. "key": "vip_phone_number",
  25474. "value": "1815"
  25475. },
  25476. {
  25477. "key": "project_name",
  25478. "value": "{{repair_service_name01}}"
  25479. }
  25480. ]
  25481. }
  25482. },
  25483. "response": []
  25484. },
  25485. {
  25486. "name": "get_coupon_phone_status0",
  25487. "event": [
  25488. {
  25489. "listen": "test",
  25490. "script": {
  25491. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25492. "exec": [
  25493. "pm.test(\"Status code is 200\", function () {",
  25494. " pm.response.to.have.status(200);",
  25495. "});"
  25496. ],
  25497. "type": "text/javascript"
  25498. }
  25499. }
  25500. ],
  25501. "request": {
  25502. "method": "GET",
  25503. "header": [
  25504. {
  25505. "key": "Authorization",
  25506. "type": "text",
  25507. "value": "Rong {{shoptoken}}"
  25508. }
  25509. ],
  25510. "body": {
  25511. "mode": "raw",
  25512. "raw": ""
  25513. },
  25514. "url": {
  25515. "raw": "{{url}}/api/basic/coupon/?vip_phone_number=181598&status=0",
  25516. "host": [
  25517. "{{url}}"
  25518. ],
  25519. "path": [
  25520. "api",
  25521. "basic",
  25522. "coupon",
  25523. ""
  25524. ],
  25525. "query": [
  25526. {
  25527. "key": "vip_phone_number",
  25528. "value": "181598"
  25529. },
  25530. {
  25531. "key": "status",
  25532. "value": "0"
  25533. }
  25534. ]
  25535. }
  25536. },
  25537. "response": []
  25538. },
  25539. {
  25540. "name": "get_coupon_phone_status1",
  25541. "event": [
  25542. {
  25543. "listen": "test",
  25544. "script": {
  25545. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25546. "exec": [
  25547. "pm.test(\"Status code is 200\", function () {",
  25548. " pm.response.to.have.status(200);",
  25549. "});"
  25550. ],
  25551. "type": "text/javascript"
  25552. }
  25553. }
  25554. ],
  25555. "request": {
  25556. "method": "GET",
  25557. "header": [
  25558. {
  25559. "key": "Authorization",
  25560. "type": "text",
  25561. "value": "Rong {{shoptoken}}"
  25562. }
  25563. ],
  25564. "body": {
  25565. "mode": "raw",
  25566. "raw": ""
  25567. },
  25568. "url": {
  25569. "raw": "{{url}}/api/basic/coupon/?status=1&vip_phone_number=181",
  25570. "host": [
  25571. "{{url}}"
  25572. ],
  25573. "path": [
  25574. "api",
  25575. "basic",
  25576. "coupon",
  25577. ""
  25578. ],
  25579. "query": [
  25580. {
  25581. "key": "status",
  25582. "value": "1"
  25583. },
  25584. {
  25585. "key": "vip_phone_number",
  25586. "value": "181"
  25587. }
  25588. ]
  25589. }
  25590. },
  25591. "response": []
  25592. },
  25593. {
  25594. "name": "get_coupon_ptype1_phone_status0",
  25595. "event": [
  25596. {
  25597. "listen": "test",
  25598. "script": {
  25599. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25600. "exec": [
  25601. "pm.test(\"Status code is 200\", function () {",
  25602. " pm.response.to.have.status(200);",
  25603. "});"
  25604. ],
  25605. "type": "text/javascript"
  25606. }
  25607. }
  25608. ],
  25609. "request": {
  25610. "method": "GET",
  25611. "header": [
  25612. {
  25613. "key": "Authorization",
  25614. "type": "text",
  25615. "value": "Rong {{shoptoken}}"
  25616. }
  25617. ],
  25618. "body": {
  25619. "mode": "raw",
  25620. "raw": ""
  25621. },
  25622. "url": {
  25623. "raw": "{{url}}/api/basic/coupon/?project_type=1&vip_phone_number=181&status=0",
  25624. "host": [
  25625. "{{url}}"
  25626. ],
  25627. "path": [
  25628. "api",
  25629. "basic",
  25630. "coupon",
  25631. ""
  25632. ],
  25633. "query": [
  25634. {
  25635. "key": "project_type",
  25636. "value": "1"
  25637. },
  25638. {
  25639. "key": "vip_phone_number",
  25640. "value": "181"
  25641. },
  25642. {
  25643. "key": "status",
  25644. "value": "0"
  25645. }
  25646. ]
  25647. }
  25648. },
  25649. "response": []
  25650. },
  25651. {
  25652. "name": "get_coupon_ptype2_phone_status0",
  25653. "event": [
  25654. {
  25655. "listen": "test",
  25656. "script": {
  25657. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25658. "exec": [
  25659. "pm.test(\"Status code is 200\", function () {",
  25660. " pm.response.to.have.status(200);",
  25661. "});"
  25662. ],
  25663. "type": "text/javascript"
  25664. }
  25665. }
  25666. ],
  25667. "request": {
  25668. "method": "GET",
  25669. "header": [
  25670. {
  25671. "key": "Authorization",
  25672. "type": "text",
  25673. "value": "Rong {{shoptoken}}"
  25674. }
  25675. ],
  25676. "body": {
  25677. "mode": "raw",
  25678. "raw": ""
  25679. },
  25680. "url": {
  25681. "raw": "{{url}}/api/basic/coupon/?project_type=2&vip_phone_number=181&status=0",
  25682. "host": [
  25683. "{{url}}"
  25684. ],
  25685. "path": [
  25686. "api",
  25687. "basic",
  25688. "coupon",
  25689. ""
  25690. ],
  25691. "query": [
  25692. {
  25693. "key": "project_type",
  25694. "value": "2"
  25695. },
  25696. {
  25697. "key": "vip_phone_number",
  25698. "value": "181"
  25699. },
  25700. {
  25701. "key": "status",
  25702. "value": "0"
  25703. }
  25704. ]
  25705. }
  25706. },
  25707. "response": []
  25708. },
  25709. {
  25710. "name": "get_coupon_ptype3_phone_status0",
  25711. "event": [
  25712. {
  25713. "listen": "test",
  25714. "script": {
  25715. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25716. "exec": [
  25717. "pm.test(\"Status code is 200\", function () {",
  25718. " pm.response.to.have.status(200);",
  25719. "});"
  25720. ],
  25721. "type": "text/javascript"
  25722. }
  25723. }
  25724. ],
  25725. "request": {
  25726. "method": "GET",
  25727. "header": [
  25728. {
  25729. "key": "Authorization",
  25730. "type": "text",
  25731. "value": "Rong {{shoptoken}}"
  25732. }
  25733. ],
  25734. "body": {
  25735. "mode": "raw",
  25736. "raw": ""
  25737. },
  25738. "url": {
  25739. "raw": "{{url}}/api/basic/coupon/?project_type=3&vip_phone_number=181&status=0",
  25740. "host": [
  25741. "{{url}}"
  25742. ],
  25743. "path": [
  25744. "api",
  25745. "basic",
  25746. "coupon",
  25747. ""
  25748. ],
  25749. "query": [
  25750. {
  25751. "key": "project_type",
  25752. "value": "3"
  25753. },
  25754. {
  25755. "key": "vip_phone_number",
  25756. "value": "181"
  25757. },
  25758. {
  25759. "key": "status",
  25760. "value": "0"
  25761. }
  25762. ]
  25763. }
  25764. },
  25765. "response": []
  25766. },
  25767. {
  25768. "name": "get_bulkcoupon_ptype1_status1",
  25769. "event": [
  25770. {
  25771. "listen": "test",
  25772. "script": {
  25773. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25774. "exec": [
  25775. "pm.test(\"Status code is 200\", function () {",
  25776. " pm.response.to.have.status(200);",
  25777. "});"
  25778. ],
  25779. "type": "text/javascript"
  25780. }
  25781. }
  25782. ],
  25783. "request": {
  25784. "method": "GET",
  25785. "header": [
  25786. {
  25787. "key": "Authorization",
  25788. "type": "text",
  25789. "value": "Rong {{shoptoken}}"
  25790. }
  25791. ],
  25792. "body": {
  25793. "mode": "raw",
  25794. "raw": ""
  25795. },
  25796. "url": {
  25797. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=1&status=1",
  25798. "host": [
  25799. "{{url}}"
  25800. ],
  25801. "path": [
  25802. "api",
  25803. "basic",
  25804. "bulkcoupon",
  25805. ""
  25806. ],
  25807. "query": [
  25808. {
  25809. "key": "project_type",
  25810. "value": "1"
  25811. },
  25812. {
  25813. "key": "status",
  25814. "value": "1"
  25815. }
  25816. ]
  25817. }
  25818. },
  25819. "response": []
  25820. },
  25821. {
  25822. "name": "get_bulkcoupon_ptype2_status1",
  25823. "event": [
  25824. {
  25825. "listen": "test",
  25826. "script": {
  25827. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25828. "exec": [
  25829. "pm.test(\"Status code is 200\", function () {",
  25830. " pm.response.to.have.status(200);",
  25831. "});"
  25832. ],
  25833. "type": "text/javascript"
  25834. }
  25835. }
  25836. ],
  25837. "request": {
  25838. "method": "GET",
  25839. "header": [
  25840. {
  25841. "key": "Authorization",
  25842. "type": "text",
  25843. "value": "Rong {{shoptoken}}"
  25844. }
  25845. ],
  25846. "body": {
  25847. "mode": "raw",
  25848. "raw": ""
  25849. },
  25850. "url": {
  25851. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=1",
  25852. "host": [
  25853. "{{url}}"
  25854. ],
  25855. "path": [
  25856. "api",
  25857. "basic",
  25858. "bulkcoupon",
  25859. ""
  25860. ],
  25861. "query": [
  25862. {
  25863. "key": "project_type",
  25864. "value": "2"
  25865. },
  25866. {
  25867. "key": "status",
  25868. "value": "1"
  25869. }
  25870. ]
  25871. }
  25872. },
  25873. "response": []
  25874. },
  25875. {
  25876. "name": "get_bulkcoupon_ptype3_status1",
  25877. "event": [
  25878. {
  25879. "listen": "test",
  25880. "script": {
  25881. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25882. "exec": [
  25883. "pm.test(\"Status code is 200\", function () {",
  25884. " pm.response.to.have.status(200);",
  25885. "});"
  25886. ],
  25887. "type": "text/javascript"
  25888. }
  25889. }
  25890. ],
  25891. "request": {
  25892. "method": "GET",
  25893. "header": [
  25894. {
  25895. "key": "Authorization",
  25896. "type": "text",
  25897. "value": "Rong {{shoptoken}}"
  25898. }
  25899. ],
  25900. "body": {
  25901. "mode": "raw",
  25902. "raw": ""
  25903. },
  25904. "url": {
  25905. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=1",
  25906. "host": [
  25907. "{{url}}"
  25908. ],
  25909. "path": [
  25910. "api",
  25911. "basic",
  25912. "bulkcoupon",
  25913. ""
  25914. ],
  25915. "query": [
  25916. {
  25917. "key": "project_type",
  25918. "value": "2"
  25919. },
  25920. {
  25921. "key": "status",
  25922. "value": "1"
  25923. }
  25924. ]
  25925. }
  25926. },
  25927. "response": []
  25928. },
  25929. {
  25930. "name": "get_bulkcoupon_ptype1_status2",
  25931. "event": [
  25932. {
  25933. "listen": "test",
  25934. "script": {
  25935. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25936. "exec": [
  25937. "pm.test(\"Status code is 200\", function () {",
  25938. " pm.response.to.have.status(200);",
  25939. "});"
  25940. ],
  25941. "type": "text/javascript"
  25942. }
  25943. }
  25944. ],
  25945. "request": {
  25946. "method": "GET",
  25947. "header": [
  25948. {
  25949. "key": "Authorization",
  25950. "type": "text",
  25951. "value": "Rong {{shoptoken}}"
  25952. }
  25953. ],
  25954. "body": {
  25955. "mode": "raw",
  25956. "raw": ""
  25957. },
  25958. "url": {
  25959. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=2",
  25960. "host": [
  25961. "{{url}}"
  25962. ],
  25963. "path": [
  25964. "api",
  25965. "basic",
  25966. "bulkcoupon",
  25967. ""
  25968. ],
  25969. "query": [
  25970. {
  25971. "key": "project_type",
  25972. "value": "2"
  25973. },
  25974. {
  25975. "key": "status",
  25976. "value": "2"
  25977. }
  25978. ]
  25979. }
  25980. },
  25981. "response": []
  25982. },
  25983. {
  25984. "name": "get_bulkcoupon_ptype2_status2",
  25985. "event": [
  25986. {
  25987. "listen": "test",
  25988. "script": {
  25989. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  25990. "exec": [
  25991. "pm.test(\"Status code is 200\", function () {",
  25992. " pm.response.to.have.status(200);",
  25993. "});"
  25994. ],
  25995. "type": "text/javascript"
  25996. }
  25997. }
  25998. ],
  25999. "request": {
  26000. "method": "GET",
  26001. "header": [
  26002. {
  26003. "key": "Authorization",
  26004. "type": "text",
  26005. "value": "Rong {{shoptoken}}"
  26006. }
  26007. ],
  26008. "body": {
  26009. "mode": "raw",
  26010. "raw": ""
  26011. },
  26012. "url": {
  26013. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=2",
  26014. "host": [
  26015. "{{url}}"
  26016. ],
  26017. "path": [
  26018. "api",
  26019. "basic",
  26020. "bulkcoupon",
  26021. ""
  26022. ],
  26023. "query": [
  26024. {
  26025. "key": "project_type",
  26026. "value": "2"
  26027. },
  26028. {
  26029. "key": "status",
  26030. "value": "2"
  26031. }
  26032. ]
  26033. }
  26034. },
  26035. "response": []
  26036. },
  26037. {
  26038. "name": "get_bulkcoupon_ptype3_status2",
  26039. "event": [
  26040. {
  26041. "listen": "test",
  26042. "script": {
  26043. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26044. "exec": [
  26045. "pm.test(\"Status code is 200\", function () {",
  26046. " pm.response.to.have.status(200);",
  26047. "});"
  26048. ],
  26049. "type": "text/javascript"
  26050. }
  26051. }
  26052. ],
  26053. "request": {
  26054. "method": "GET",
  26055. "header": [
  26056. {
  26057. "key": "Authorization",
  26058. "type": "text",
  26059. "value": "Rong {{shoptoken}}"
  26060. }
  26061. ],
  26062. "body": {
  26063. "mode": "raw",
  26064. "raw": ""
  26065. },
  26066. "url": {
  26067. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=2&status=2",
  26068. "host": [
  26069. "{{url}}"
  26070. ],
  26071. "path": [
  26072. "api",
  26073. "basic",
  26074. "bulkcoupon",
  26075. ""
  26076. ],
  26077. "query": [
  26078. {
  26079. "key": "project_type",
  26080. "value": "2"
  26081. },
  26082. {
  26083. "key": "status",
  26084. "value": "2"
  26085. }
  26086. ]
  26087. }
  26088. },
  26089. "response": []
  26090. },
  26091. {
  26092. "name": "get_bulkcoupon_ptype1_status3",
  26093. "event": [
  26094. {
  26095. "listen": "test",
  26096. "script": {
  26097. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26098. "exec": [
  26099. "pm.test(\"Status code is 200\", function () {",
  26100. " pm.response.to.have.status(200);",
  26101. "});"
  26102. ],
  26103. "type": "text/javascript"
  26104. }
  26105. }
  26106. ],
  26107. "request": {
  26108. "method": "GET",
  26109. "header": [
  26110. {
  26111. "key": "Authorization",
  26112. "type": "text",
  26113. "value": "Rong {{shoptoken}}"
  26114. }
  26115. ],
  26116. "body": {
  26117. "mode": "raw",
  26118. "raw": ""
  26119. },
  26120. "url": {
  26121. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=3&status=3",
  26122. "host": [
  26123. "{{url}}"
  26124. ],
  26125. "path": [
  26126. "api",
  26127. "basic",
  26128. "bulkcoupon",
  26129. ""
  26130. ],
  26131. "query": [
  26132. {
  26133. "key": "project_type",
  26134. "value": "3"
  26135. },
  26136. {
  26137. "key": "status",
  26138. "value": "3"
  26139. }
  26140. ]
  26141. }
  26142. },
  26143. "response": []
  26144. },
  26145. {
  26146. "name": "get_bulkcoupon_ptype2_status3",
  26147. "event": [
  26148. {
  26149. "listen": "test",
  26150. "script": {
  26151. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26152. "exec": [
  26153. "pm.test(\"Status code is 200\", function () {",
  26154. " pm.response.to.have.status(200);",
  26155. "});"
  26156. ],
  26157. "type": "text/javascript"
  26158. }
  26159. }
  26160. ],
  26161. "request": {
  26162. "method": "GET",
  26163. "header": [
  26164. {
  26165. "key": "Authorization",
  26166. "type": "text",
  26167. "value": "Rong {{shoptoken}}"
  26168. }
  26169. ],
  26170. "body": {
  26171. "mode": "raw",
  26172. "raw": ""
  26173. },
  26174. "url": {
  26175. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=3&status=3",
  26176. "host": [
  26177. "{{url}}"
  26178. ],
  26179. "path": [
  26180. "api",
  26181. "basic",
  26182. "bulkcoupon",
  26183. ""
  26184. ],
  26185. "query": [
  26186. {
  26187. "key": "project_type",
  26188. "value": "3"
  26189. },
  26190. {
  26191. "key": "status",
  26192. "value": "3"
  26193. }
  26194. ]
  26195. }
  26196. },
  26197. "response": []
  26198. },
  26199. {
  26200. "name": "get_bulkcoupon_ptype3_status3",
  26201. "event": [
  26202. {
  26203. "listen": "test",
  26204. "script": {
  26205. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26206. "exec": [
  26207. "pm.test(\"Status code is 200\", function () {",
  26208. " pm.response.to.have.status(200);",
  26209. "});"
  26210. ],
  26211. "type": "text/javascript"
  26212. }
  26213. }
  26214. ],
  26215. "request": {
  26216. "method": "GET",
  26217. "header": [
  26218. {
  26219. "key": "Authorization",
  26220. "type": "text",
  26221. "value": "Rong {{shoptoken}}"
  26222. }
  26223. ],
  26224. "body": {
  26225. "mode": "raw",
  26226. "raw": ""
  26227. },
  26228. "url": {
  26229. "raw": "{{url}}/api/basic/bulkcoupon/?project_type=3&status=3",
  26230. "host": [
  26231. "{{url}}"
  26232. ],
  26233. "path": [
  26234. "api",
  26235. "basic",
  26236. "bulkcoupon",
  26237. ""
  26238. ],
  26239. "query": [
  26240. {
  26241. "key": "project_type",
  26242. "value": "3"
  26243. },
  26244. {
  26245. "key": "status",
  26246. "value": "3"
  26247. }
  26248. ]
  26249. }
  26250. },
  26251. "response": []
  26252. },
  26253. {
  26254. "name": "get_preferentialsalescampaign_ptype1_beauty",
  26255. "event": [
  26256. {
  26257. "listen": "test",
  26258. "script": {
  26259. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26260. "exec": [
  26261. "pm.test(\"Status code is 200\", function () {",
  26262. " pm.response.to.have.status(200);",
  26263. "});"
  26264. ],
  26265. "type": "text/javascript"
  26266. }
  26267. }
  26268. ],
  26269. "request": {
  26270. "method": "GET",
  26271. "header": [
  26272. {
  26273. "key": "Authorization",
  26274. "type": "text",
  26275. "value": "Rong {{shoptoken}}"
  26276. }
  26277. ],
  26278. "body": {
  26279. "mode": "raw",
  26280. "raw": ""
  26281. },
  26282. "url": {
  26283. "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=1",
  26284. "host": [
  26285. "{{url}}"
  26286. ],
  26287. "path": [
  26288. "api",
  26289. "business",
  26290. "preferentialsalescampaign",
  26291. ""
  26292. ],
  26293. "query": [
  26294. {
  26295. "key": "project_type",
  26296. "value": "1"
  26297. }
  26298. ]
  26299. }
  26300. },
  26301. "response": []
  26302. },
  26303. {
  26304. "name": "get_preferentialsalescampaign_ptype2_repair",
  26305. "event": [
  26306. {
  26307. "listen": "test",
  26308. "script": {
  26309. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26310. "exec": [
  26311. "pm.test(\"Status code is 200\", function () {",
  26312. " pm.response.to.have.status(200);",
  26313. "});"
  26314. ],
  26315. "type": "text/javascript"
  26316. }
  26317. }
  26318. ],
  26319. "request": {
  26320. "method": "GET",
  26321. "header": [
  26322. {
  26323. "key": "Authorization",
  26324. "type": "text",
  26325. "value": "Rong {{shoptoken}}"
  26326. }
  26327. ],
  26328. "body": {
  26329. "mode": "raw",
  26330. "raw": ""
  26331. },
  26332. "url": {
  26333. "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=2",
  26334. "host": [
  26335. "{{url}}"
  26336. ],
  26337. "path": [
  26338. "api",
  26339. "business",
  26340. "preferentialsalescampaign",
  26341. ""
  26342. ],
  26343. "query": [
  26344. {
  26345. "key": "project_type",
  26346. "value": "2"
  26347. }
  26348. ]
  26349. }
  26350. },
  26351. "response": []
  26352. },
  26353. {
  26354. "name": "get_preferentialsalescampaign_ptype3_product",
  26355. "event": [
  26356. {
  26357. "listen": "test",
  26358. "script": {
  26359. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26360. "exec": [
  26361. "pm.test(\"Status code is 200\", function () {",
  26362. " pm.response.to.have.status(200);",
  26363. "});"
  26364. ],
  26365. "type": "text/javascript"
  26366. }
  26367. }
  26368. ],
  26369. "request": {
  26370. "method": "GET",
  26371. "header": [
  26372. {
  26373. "key": "Authorization",
  26374. "type": "text",
  26375. "value": "Rong {{shoptoken}}"
  26376. }
  26377. ],
  26378. "body": {
  26379. "mode": "raw",
  26380. "raw": ""
  26381. },
  26382. "url": {
  26383. "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=3",
  26384. "host": [
  26385. "{{url}}"
  26386. ],
  26387. "path": [
  26388. "api",
  26389. "business",
  26390. "preferentialsalescampaign",
  26391. ""
  26392. ],
  26393. "query": [
  26394. {
  26395. "key": "project_type",
  26396. "value": "3"
  26397. }
  26398. ]
  26399. }
  26400. },
  26401. "response": []
  26402. },
  26403. {
  26404. "name": "get_preferentialsalescampaign_ptype4_package",
  26405. "event": [
  26406. {
  26407. "listen": "test",
  26408. "script": {
  26409. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26410. "exec": [
  26411. "pm.test(\"Status code is 200\", function () {",
  26412. " pm.response.to.have.status(200);",
  26413. "});"
  26414. ],
  26415. "type": "text/javascript"
  26416. }
  26417. }
  26418. ],
  26419. "request": {
  26420. "method": "GET",
  26421. "header": [
  26422. {
  26423. "key": "Authorization",
  26424. "type": "text",
  26425. "value": "Rong {{shoptoken}}"
  26426. }
  26427. ],
  26428. "body": {
  26429. "mode": "raw",
  26430. "raw": ""
  26431. },
  26432. "url": {
  26433. "raw": "{{url}}/api/business/preferentialsalescampaign/?project_type=3",
  26434. "host": [
  26435. "{{url}}"
  26436. ],
  26437. "path": [
  26438. "api",
  26439. "business",
  26440. "preferentialsalescampaign",
  26441. ""
  26442. ],
  26443. "query": [
  26444. {
  26445. "key": "project_type",
  26446. "value": "3"
  26447. }
  26448. ]
  26449. }
  26450. },
  26451. "response": []
  26452. },
  26453. {
  26454. "name": "get_groupprojectsetting_ptype1_repair",
  26455. "event": [
  26456. {
  26457. "listen": "test",
  26458. "script": {
  26459. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26460. "exec": [
  26461. "pm.test(\"Status code is 200\", function () {",
  26462. " pm.response.to.have.status(200);",
  26463. "});"
  26464. ],
  26465. "type": "text/javascript"
  26466. }
  26467. }
  26468. ],
  26469. "request": {
  26470. "method": "GET",
  26471. "header": [
  26472. {
  26473. "key": "Authorization",
  26474. "type": "text",
  26475. "value": "Rong {{shoptoken}}"
  26476. }
  26477. ],
  26478. "body": {
  26479. "mode": "raw",
  26480. "raw": ""
  26481. },
  26482. "url": {
  26483. "raw": "{{url}}/api/market/groupprojectsetting/?project_type=1",
  26484. "host": [
  26485. "{{url}}"
  26486. ],
  26487. "path": [
  26488. "api",
  26489. "market",
  26490. "groupprojectsetting",
  26491. ""
  26492. ],
  26493. "query": [
  26494. {
  26495. "key": "project_type",
  26496. "value": "1"
  26497. }
  26498. ]
  26499. }
  26500. },
  26501. "response": []
  26502. },
  26503. {
  26504. "name": "get_groupprojectsetting_ptype2_beauty",
  26505. "event": [
  26506. {
  26507. "listen": "test",
  26508. "script": {
  26509. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26510. "exec": [
  26511. "pm.test(\"Status code is 200\", function () {",
  26512. " pm.response.to.have.status(200);",
  26513. "});"
  26514. ],
  26515. "type": "text/javascript"
  26516. }
  26517. }
  26518. ],
  26519. "request": {
  26520. "method": "GET",
  26521. "header": [
  26522. {
  26523. "key": "Authorization",
  26524. "type": "text",
  26525. "value": "Rong {{shoptoken}}"
  26526. }
  26527. ],
  26528. "body": {
  26529. "mode": "raw",
  26530. "raw": ""
  26531. },
  26532. "url": {
  26533. "raw": "{{url}}/api/market/groupprojectsetting/?project_type=2",
  26534. "host": [
  26535. "{{url}}"
  26536. ],
  26537. "path": [
  26538. "api",
  26539. "market",
  26540. "groupprojectsetting",
  26541. ""
  26542. ],
  26543. "query": [
  26544. {
  26545. "key": "project_type",
  26546. "value": "2"
  26547. }
  26548. ]
  26549. }
  26550. },
  26551. "response": []
  26552. },
  26553. {
  26554. "name": "get_groupprojectsetting_ptype3_product",
  26555. "event": [
  26556. {
  26557. "listen": "test",
  26558. "script": {
  26559. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26560. "exec": [
  26561. "pm.test(\"Status code is 200\", function () {",
  26562. " pm.response.to.have.status(200);",
  26563. "});"
  26564. ],
  26565. "type": "text/javascript"
  26566. }
  26567. }
  26568. ],
  26569. "request": {
  26570. "method": "GET",
  26571. "header": [
  26572. {
  26573. "key": "Authorization",
  26574. "type": "text",
  26575. "value": "Rong {{shoptoken}}"
  26576. }
  26577. ],
  26578. "body": {
  26579. "mode": "raw",
  26580. "raw": ""
  26581. },
  26582. "url": {
  26583. "raw": "{{url}}/api/market/groupprojectsetting/?project_type=3",
  26584. "host": [
  26585. "{{url}}"
  26586. ],
  26587. "path": [
  26588. "api",
  26589. "market",
  26590. "groupprojectsetting",
  26591. ""
  26592. ],
  26593. "query": [
  26594. {
  26595. "key": "project_type",
  26596. "value": "3"
  26597. }
  26598. ]
  26599. }
  26600. },
  26601. "response": []
  26602. }
  26603. ],
  26604. "event": [
  26605. {
  26606. "listen": "prerequest",
  26607. "script": {
  26608. "id": "1afebd30-7f36-4707-b57d-42b03d87fd04",
  26609. "type": "text/javascript",
  26610. "exec": [
  26611. ""
  26612. ]
  26613. }
  26614. },
  26615. {
  26616. "listen": "test",
  26617. "script": {
  26618. "id": "3715b015-107a-40ec-ab80-7b8ab14b3c69",
  26619. "type": "text/javascript",
  26620. "exec": [
  26621. ""
  26622. ]
  26623. }
  26624. }
  26625. ]
  26626. },
  26627. {
  26628. "name": "purchase_sales_search",
  26629. "item": [
  26630. {
  26631. "name": "get_sales_dates",
  26632. "event": [
  26633. {
  26634. "listen": "test",
  26635. "script": {
  26636. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26637. "exec": [
  26638. "pm.test(\"Status code is 200\", function () {",
  26639. " pm.response.to.have.status(200);",
  26640. "});"
  26641. ],
  26642. "type": "text/javascript"
  26643. }
  26644. }
  26645. ],
  26646. "request": {
  26647. "method": "GET",
  26648. "header": [
  26649. {
  26650. "key": "Authorization",
  26651. "type": "text",
  26652. "value": "Rong {{shoptoken}}"
  26653. }
  26654. ],
  26655. "body": {
  26656. "mode": "raw",
  26657. "raw": ""
  26658. },
  26659. "url": {
  26660. "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__invoice_date__gte=2019-01-01&sales_order__invoice_date__lte={{ymd-date}}",
  26661. "host": [
  26662. "{{url}}"
  26663. ],
  26664. "path": [
  26665. "api",
  26666. "invoicing",
  26667. "salesorderitem",
  26668. ""
  26669. ],
  26670. "query": [
  26671. {
  26672. "key": "sales_order__invoice_date__gte",
  26673. "value": "2019-01-01"
  26674. },
  26675. {
  26676. "key": "sales_order__invoice_date__lte",
  26677. "value": "{{ymd-date}}"
  26678. }
  26679. ]
  26680. }
  26681. },
  26682. "response": []
  26683. },
  26684. {
  26685. "name": "get_sales_phone",
  26686. "event": [
  26687. {
  26688. "listen": "test",
  26689. "script": {
  26690. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26691. "exec": [
  26692. "pm.test(\"Status code is 200\", function () {",
  26693. " pm.response.to.have.status(200);",
  26694. "});"
  26695. ],
  26696. "type": "text/javascript"
  26697. }
  26698. }
  26699. ],
  26700. "request": {
  26701. "method": "GET",
  26702. "header": [
  26703. {
  26704. "key": "Authorization",
  26705. "type": "text",
  26706. "value": "Rong {{shoptoken}}"
  26707. }
  26708. ],
  26709. "body": {
  26710. "mode": "raw",
  26711. "raw": ""
  26712. },
  26713. "url": {
  26714. "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__vipmember_info__phone_number__contains=181",
  26715. "host": [
  26716. "{{url}}"
  26717. ],
  26718. "path": [
  26719. "api",
  26720. "invoicing",
  26721. "salesorderitem",
  26722. ""
  26723. ],
  26724. "query": [
  26725. {
  26726. "key": "sales_order__invoice_date__gte",
  26727. "value": "2019-01-01",
  26728. "disabled": true
  26729. },
  26730. {
  26731. "key": "sales_order__invoice_date__lte",
  26732. "value": "{{ymd-date}}",
  26733. "disabled": true
  26734. },
  26735. {
  26736. "key": "sales_order__vipmember_info__phone_number__contains",
  26737. "value": "181"
  26738. }
  26739. ]
  26740. }
  26741. },
  26742. "response": []
  26743. },
  26744. {
  26745. "name": "get_sales_phone_dates",
  26746. "event": [
  26747. {
  26748. "listen": "test",
  26749. "script": {
  26750. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26751. "exec": [
  26752. "pm.test(\"Status code is 200\", function () {",
  26753. " pm.response.to.have.status(200);",
  26754. "});"
  26755. ],
  26756. "type": "text/javascript"
  26757. }
  26758. }
  26759. ],
  26760. "request": {
  26761. "method": "GET",
  26762. "header": [
  26763. {
  26764. "key": "Authorization",
  26765. "type": "text",
  26766. "value": "Rong {{shoptoken}}"
  26767. }
  26768. ],
  26769. "body": {
  26770. "mode": "raw",
  26771. "raw": ""
  26772. },
  26773. "url": {
  26774. "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__invoice_date__gte=2019-01-01&sales_order__invoice_date__lte={{ymd-date}}&sales_order__vipmember_info__phone_number__contains=18159852",
  26775. "host": [
  26776. "{{url}}"
  26777. ],
  26778. "path": [
  26779. "api",
  26780. "invoicing",
  26781. "salesorderitem",
  26782. ""
  26783. ],
  26784. "query": [
  26785. {
  26786. "key": "sales_order__invoice_date__gte",
  26787. "value": "2019-01-01"
  26788. },
  26789. {
  26790. "key": "sales_order__invoice_date__lte",
  26791. "value": "{{ymd-date}}"
  26792. },
  26793. {
  26794. "key": "sales_order__vipmember_info__phone_number__contains",
  26795. "value": "18159852"
  26796. }
  26797. ]
  26798. }
  26799. },
  26800. "response": []
  26801. },
  26802. {
  26803. "name": "get_sales_pname_dates",
  26804. "event": [
  26805. {
  26806. "listen": "test",
  26807. "script": {
  26808. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26809. "exec": [
  26810. "pm.test(\"Status code is 200\", function () {",
  26811. " pm.response.to.have.status(200);",
  26812. "});"
  26813. ],
  26814. "type": "text/javascript"
  26815. }
  26816. }
  26817. ],
  26818. "request": {
  26819. "method": "GET",
  26820. "header": [
  26821. {
  26822. "key": "Authorization",
  26823. "type": "text",
  26824. "value": "Rong {{shoptoken}}"
  26825. }
  26826. ],
  26827. "body": {
  26828. "mode": "raw",
  26829. "raw": ""
  26830. },
  26831. "url": {
  26832. "raw": "{{url}}/api/invoicing/salesorderitem/?sales_order__invoice_date__gte=2019-01-01&sales_order__invoice_date__lte={{ymd-date}}&car_products__name__contains={{car_products_name02}}",
  26833. "host": [
  26834. "{{url}}"
  26835. ],
  26836. "path": [
  26837. "api",
  26838. "invoicing",
  26839. "salesorderitem",
  26840. ""
  26841. ],
  26842. "query": [
  26843. {
  26844. "key": "sales_order__invoice_date__gte",
  26845. "value": "2019-01-01"
  26846. },
  26847. {
  26848. "key": "sales_order__invoice_date__lte",
  26849. "value": "{{ymd-date}}"
  26850. },
  26851. {
  26852. "key": "car_products__name__contains",
  26853. "value": "{{car_products_name02}}"
  26854. }
  26855. ]
  26856. }
  26857. },
  26858. "response": []
  26859. },
  26860. {
  26861. "name": "get_salesback_dates",
  26862. "event": [
  26863. {
  26864. "listen": "test",
  26865. "script": {
  26866. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26867. "exec": [
  26868. "pm.test(\"Status code is 200\", function () {",
  26869. " pm.response.to.have.status(200);",
  26870. "});"
  26871. ],
  26872. "type": "text/javascript"
  26873. }
  26874. }
  26875. ],
  26876. "request": {
  26877. "method": "GET",
  26878. "header": [
  26879. {
  26880. "key": "Authorization",
  26881. "type": "text",
  26882. "value": "Rong {{shoptoken}}"
  26883. }
  26884. ],
  26885. "body": {
  26886. "mode": "raw",
  26887. "raw": ""
  26888. },
  26889. "url": {
  26890. "raw": "{{url}}/api/invoicing/salesbackorderitem/?sales_back_order__invoice_date__gte=2019-01-01&sales_back_order__invoice_date__lte={{ymd-date}}",
  26891. "host": [
  26892. "{{url}}"
  26893. ],
  26894. "path": [
  26895. "api",
  26896. "invoicing",
  26897. "salesbackorderitem",
  26898. ""
  26899. ],
  26900. "query": [
  26901. {
  26902. "key": "sales_back_order__invoice_date__gte",
  26903. "value": "2019-01-01"
  26904. },
  26905. {
  26906. "key": "sales_back_order__invoice_date__lte",
  26907. "value": "{{ymd-date}}"
  26908. }
  26909. ]
  26910. }
  26911. },
  26912. "response": []
  26913. },
  26914. {
  26915. "name": "get_salesback_dates_phone",
  26916. "event": [
  26917. {
  26918. "listen": "test",
  26919. "script": {
  26920. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26921. "exec": [
  26922. "pm.test(\"Status code is 200\", function () {",
  26923. " pm.response.to.have.status(200);",
  26924. "});"
  26925. ],
  26926. "type": "text/javascript"
  26927. }
  26928. }
  26929. ],
  26930. "request": {
  26931. "method": "GET",
  26932. "header": [
  26933. {
  26934. "key": "Authorization",
  26935. "type": "text",
  26936. "value": "Rong {{shoptoken}}"
  26937. }
  26938. ],
  26939. "body": {
  26940. "mode": "raw",
  26941. "raw": ""
  26942. },
  26943. "url": {
  26944. "raw": "{{url}}/api/invoicing/salesbackorderitem/?sales_back_order__invoice_date__gte=2019-01-01&sales_back_order__invoice_date__lte={{ymd-date}}&sales_back_order__vipmember_info__phone_number__contains=18159852",
  26945. "host": [
  26946. "{{url}}"
  26947. ],
  26948. "path": [
  26949. "api",
  26950. "invoicing",
  26951. "salesbackorderitem",
  26952. ""
  26953. ],
  26954. "query": [
  26955. {
  26956. "key": "sales_back_order__invoice_date__gte",
  26957. "value": "2019-01-01"
  26958. },
  26959. {
  26960. "key": "sales_back_order__invoice_date__lte",
  26961. "value": "{{ymd-date}}"
  26962. },
  26963. {
  26964. "key": "sales_back_order__vipmember_info__phone_number__contains",
  26965. "value": "18159852"
  26966. }
  26967. ]
  26968. }
  26969. },
  26970. "response": []
  26971. },
  26972. {
  26973. "name": "get_salesback_pname",
  26974. "event": [
  26975. {
  26976. "listen": "test",
  26977. "script": {
  26978. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  26979. "exec": [
  26980. "pm.test(\"Status code is 200\", function () {",
  26981. " pm.response.to.have.status(200);",
  26982. "});"
  26983. ],
  26984. "type": "text/javascript"
  26985. }
  26986. }
  26987. ],
  26988. "request": {
  26989. "method": "GET",
  26990. "header": [
  26991. {
  26992. "key": "Authorization",
  26993. "type": "text",
  26994. "value": "Rong {{shoptoken}}"
  26995. }
  26996. ],
  26997. "body": {
  26998. "mode": "raw",
  26999. "raw": ""
  27000. },
  27001. "url": {
  27002. "raw": "{{url}}/api/invoicing/salesbackorderitem/?sales_order_item__car_products__name__contains={{car_products_name02}}",
  27003. "host": [
  27004. "{{url}}"
  27005. ],
  27006. "path": [
  27007. "api",
  27008. "invoicing",
  27009. "salesbackorderitem",
  27010. ""
  27011. ],
  27012. "query": [
  27013. {
  27014. "key": "sales_order_item__car_products__name__contains",
  27015. "value": "{{car_products_name02}}"
  27016. }
  27017. ]
  27018. }
  27019. },
  27020. "response": []
  27021. },
  27022. {
  27023. "name": "get_salesreport_first_dates",
  27024. "event": [
  27025. {
  27026. "listen": "test",
  27027. "script": {
  27028. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27029. "exec": [
  27030. "pm.test(\"Status code is 200\", function () {",
  27031. " pm.response.to.have.status(200);",
  27032. "});"
  27033. ],
  27034. "type": "text/javascript"
  27035. }
  27036. }
  27037. ],
  27038. "request": {
  27039. "method": "GET",
  27040. "header": [
  27041. {
  27042. "key": "Authorization",
  27043. "type": "text",
  27044. "value": "Rong {{shoptoken}}"
  27045. }
  27046. ],
  27047. "body": {
  27048. "mode": "raw",
  27049. "raw": ""
  27050. },
  27051. "url": {
  27052. "raw": "{{url}}/api/invoicing/salesreport/?type=first&begin_date=2019-01-01&end_date={{ymd-date}}",
  27053. "host": [
  27054. "{{url}}"
  27055. ],
  27056. "path": [
  27057. "api",
  27058. "invoicing",
  27059. "salesreport",
  27060. ""
  27061. ],
  27062. "query": [
  27063. {
  27064. "key": "type",
  27065. "value": "first"
  27066. },
  27067. {
  27068. "key": "begin_date",
  27069. "value": "2019-01-01"
  27070. },
  27071. {
  27072. "key": "end_date",
  27073. "value": "{{ymd-date}}"
  27074. }
  27075. ]
  27076. }
  27077. },
  27078. "response": []
  27079. },
  27080. {
  27081. "name": "get_salesreport_second_dates",
  27082. "event": [
  27083. {
  27084. "listen": "test",
  27085. "script": {
  27086. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27087. "exec": [
  27088. "pm.test(\"Status code is 200\", function () {",
  27089. " pm.response.to.have.status(200);",
  27090. "});"
  27091. ],
  27092. "type": "text/javascript"
  27093. }
  27094. }
  27095. ],
  27096. "request": {
  27097. "method": "GET",
  27098. "header": [
  27099. {
  27100. "key": "Authorization",
  27101. "type": "text",
  27102. "value": "Rong {{shoptoken}}"
  27103. }
  27104. ],
  27105. "body": {
  27106. "mode": "raw",
  27107. "raw": ""
  27108. },
  27109. "url": {
  27110. "raw": "{{url}}/api/invoicing/salesreport/?type=second&begin_date=2019-01-01&end_date={{ymd-date}}",
  27111. "host": [
  27112. "{{url}}"
  27113. ],
  27114. "path": [
  27115. "api",
  27116. "invoicing",
  27117. "salesreport",
  27118. ""
  27119. ],
  27120. "query": [
  27121. {
  27122. "key": "type",
  27123. "value": "second"
  27124. },
  27125. {
  27126. "key": "begin_date",
  27127. "value": "2019-01-01"
  27128. },
  27129. {
  27130. "key": "end_date",
  27131. "value": "{{ymd-date}}"
  27132. }
  27133. ]
  27134. }
  27135. },
  27136. "response": []
  27137. },
  27138. {
  27139. "name": "get_salesreport_third_dates",
  27140. "event": [
  27141. {
  27142. "listen": "test",
  27143. "script": {
  27144. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27145. "exec": [
  27146. "pm.test(\"Status code is 200\", function () {",
  27147. " pm.response.to.have.status(200);",
  27148. "});"
  27149. ],
  27150. "type": "text/javascript"
  27151. }
  27152. }
  27153. ],
  27154. "request": {
  27155. "method": "GET",
  27156. "header": [
  27157. {
  27158. "key": "Authorization",
  27159. "type": "text",
  27160. "value": "Rong {{shoptoken}}"
  27161. }
  27162. ],
  27163. "body": {
  27164. "mode": "raw",
  27165. "raw": ""
  27166. },
  27167. "url": {
  27168. "raw": "{{url}}/api/invoicing/salesreport/?type=third&begin_date=2019-01-01&end_date={{ymd-date}}",
  27169. "host": [
  27170. "{{url}}"
  27171. ],
  27172. "path": [
  27173. "api",
  27174. "invoicing",
  27175. "salesreport",
  27176. ""
  27177. ],
  27178. "query": [
  27179. {
  27180. "key": "type",
  27181. "value": "third"
  27182. },
  27183. {
  27184. "key": "begin_date",
  27185. "value": "2019-01-01"
  27186. },
  27187. {
  27188. "key": "end_date",
  27189. "value": "{{ymd-date}}"
  27190. }
  27191. ]
  27192. }
  27193. },
  27194. "response": []
  27195. },
  27196. {
  27197. "name": "get_purchase_dates",
  27198. "event": [
  27199. {
  27200. "listen": "test",
  27201. "script": {
  27202. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27203. "exec": [
  27204. "pm.test(\"Status code is 200\", function () {",
  27205. " pm.response.to.have.status(200);",
  27206. "});"
  27207. ],
  27208. "type": "text/javascript"
  27209. }
  27210. }
  27211. ],
  27212. "request": {
  27213. "method": "GET",
  27214. "header": [
  27215. {
  27216. "key": "Authorization",
  27217. "type": "text",
  27218. "value": "Rong {{shoptoken}}"
  27219. }
  27220. ],
  27221. "body": {
  27222. "mode": "raw",
  27223. "raw": ""
  27224. },
  27225. "url": {
  27226. "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2019-01-01&end_date={{ymd-date}}",
  27227. "host": [
  27228. "{{url}}"
  27229. ],
  27230. "path": [
  27231. "api",
  27232. "invoicing",
  27233. "purchaseorderitem",
  27234. ""
  27235. ],
  27236. "query": [
  27237. {
  27238. "key": "start_date",
  27239. "value": "2019-01-01"
  27240. },
  27241. {
  27242. "key": "end_date",
  27243. "value": "{{ymd-date}}"
  27244. }
  27245. ]
  27246. }
  27247. },
  27248. "response": []
  27249. },
  27250. {
  27251. "name": "get_purchase_supplier",
  27252. "event": [
  27253. {
  27254. "listen": "test",
  27255. "script": {
  27256. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27257. "exec": [
  27258. "pm.test(\"Status code is 200\", function () {",
  27259. " pm.response.to.have.status(200);",
  27260. "});"
  27261. ],
  27262. "type": "text/javascript"
  27263. }
  27264. }
  27265. ],
  27266. "request": {
  27267. "method": "GET",
  27268. "header": [
  27269. {
  27270. "key": "Authorization",
  27271. "type": "text",
  27272. "value": "Rong {{shoptoken}}"
  27273. }
  27274. ],
  27275. "body": {
  27276. "mode": "raw",
  27277. "raw": ""
  27278. },
  27279. "url": {
  27280. "raw": "{{url}}/api/invoicing/purchaseorderitem/?supplier={{supplier_name01}}",
  27281. "host": [
  27282. "{{url}}"
  27283. ],
  27284. "path": [
  27285. "api",
  27286. "invoicing",
  27287. "purchaseorderitem",
  27288. ""
  27289. ],
  27290. "query": [
  27291. {
  27292. "key": "start_date",
  27293. "value": "2019-01-01",
  27294. "disabled": true
  27295. },
  27296. {
  27297. "key": "end_date",
  27298. "value": "{{ymd-date}}",
  27299. "disabled": true
  27300. },
  27301. {
  27302. "key": "supplier",
  27303. "value": "{{supplier_name01}}"
  27304. }
  27305. ]
  27306. }
  27307. },
  27308. "response": []
  27309. },
  27310. {
  27311. "name": "get_purchase_pname",
  27312. "event": [
  27313. {
  27314. "listen": "test",
  27315. "script": {
  27316. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27317. "exec": [
  27318. "pm.test(\"Status code is 200\", function () {",
  27319. " pm.response.to.have.status(200);",
  27320. "});"
  27321. ],
  27322. "type": "text/javascript"
  27323. }
  27324. }
  27325. ],
  27326. "request": {
  27327. "method": "GET",
  27328. "header": [
  27329. {
  27330. "key": "Authorization",
  27331. "type": "text",
  27332. "value": "Rong {{shoptoken}}"
  27333. }
  27334. ],
  27335. "body": {
  27336. "mode": "raw",
  27337. "raw": ""
  27338. },
  27339. "url": {
  27340. "raw": "{{url}}/api/invoicing/purchaseorderitem/?car_products_name={{car_products_name02}}",
  27341. "host": [
  27342. "{{url}}"
  27343. ],
  27344. "path": [
  27345. "api",
  27346. "invoicing",
  27347. "purchaseorderitem",
  27348. ""
  27349. ],
  27350. "query": [
  27351. {
  27352. "key": "car_products_name",
  27353. "value": "{{car_products_name02}}"
  27354. }
  27355. ]
  27356. }
  27357. },
  27358. "response": []
  27359. },
  27360. {
  27361. "name": "get_purchase_dates_supplier",
  27362. "event": [
  27363. {
  27364. "listen": "test",
  27365. "script": {
  27366. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27367. "exec": [
  27368. "pm.test(\"Status code is 200\", function () {",
  27369. " pm.response.to.have.status(200);",
  27370. "});"
  27371. ],
  27372. "type": "text/javascript"
  27373. }
  27374. }
  27375. ],
  27376. "request": {
  27377. "method": "GET",
  27378. "header": [
  27379. {
  27380. "key": "Authorization",
  27381. "type": "text",
  27382. "value": "Rong {{shoptoken}}"
  27383. }
  27384. ],
  27385. "body": {
  27386. "mode": "raw",
  27387. "raw": ""
  27388. },
  27389. "url": {
  27390. "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&supplier={{supplier_name01}}",
  27391. "host": [
  27392. "{{url}}"
  27393. ],
  27394. "path": [
  27395. "api",
  27396. "invoicing",
  27397. "purchaseorderitem",
  27398. ""
  27399. ],
  27400. "query": [
  27401. {
  27402. "key": "start_date",
  27403. "value": "2019-01-01"
  27404. },
  27405. {
  27406. "key": "end_date",
  27407. "value": "{{ymd-date}}"
  27408. },
  27409. {
  27410. "key": "supplier",
  27411. "value": "{{supplier_name01}}"
  27412. }
  27413. ]
  27414. }
  27415. },
  27416. "response": []
  27417. },
  27418. {
  27419. "name": "get_purchase_dates_pname",
  27420. "event": [
  27421. {
  27422. "listen": "test",
  27423. "script": {
  27424. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27425. "exec": [
  27426. "pm.test(\"Status code is 200\", function () {",
  27427. " pm.response.to.have.status(200);",
  27428. "});"
  27429. ],
  27430. "type": "text/javascript"
  27431. }
  27432. }
  27433. ],
  27434. "request": {
  27435. "method": "GET",
  27436. "header": [
  27437. {
  27438. "key": "Authorization",
  27439. "type": "text",
  27440. "value": "Rong {{shoptoken}}"
  27441. }
  27442. ],
  27443. "body": {
  27444. "mode": "raw",
  27445. "raw": ""
  27446. },
  27447. "url": {
  27448. "raw": "{{url}}/api/invoicing/purchaseorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&car_products_name={{car_products_name02}}",
  27449. "host": [
  27450. "{{url}}"
  27451. ],
  27452. "path": [
  27453. "api",
  27454. "invoicing",
  27455. "purchaseorderitem",
  27456. ""
  27457. ],
  27458. "query": [
  27459. {
  27460. "key": "start_date",
  27461. "value": "2019-01-01"
  27462. },
  27463. {
  27464. "key": "end_date",
  27465. "value": "{{ymd-date}}"
  27466. },
  27467. {
  27468. "key": "car_products_name",
  27469. "value": "{{car_products_name02}}"
  27470. }
  27471. ]
  27472. }
  27473. },
  27474. "response": []
  27475. },
  27476. {
  27477. "name": "get_purchaseback_dates",
  27478. "event": [
  27479. {
  27480. "listen": "test",
  27481. "script": {
  27482. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27483. "exec": [
  27484. "pm.test(\"Status code is 200\", function () {",
  27485. " pm.response.to.have.status(200);",
  27486. "});"
  27487. ],
  27488. "type": "text/javascript"
  27489. }
  27490. }
  27491. ],
  27492. "request": {
  27493. "method": "GET",
  27494. "header": [
  27495. {
  27496. "key": "Authorization",
  27497. "type": "text",
  27498. "value": "Rong {{shoptoken}}"
  27499. }
  27500. ],
  27501. "body": {
  27502. "mode": "raw",
  27503. "raw": ""
  27504. },
  27505. "url": {
  27506. "raw": "{{url}}/api/invoicing/purchasebackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}",
  27507. "host": [
  27508. "{{url}}"
  27509. ],
  27510. "path": [
  27511. "api",
  27512. "invoicing",
  27513. "purchasebackorderitem",
  27514. ""
  27515. ],
  27516. "query": [
  27517. {
  27518. "key": "start_date",
  27519. "value": "2019-01-01"
  27520. },
  27521. {
  27522. "key": "end_date",
  27523. "value": "{{ymd-date}}"
  27524. }
  27525. ]
  27526. }
  27527. },
  27528. "response": []
  27529. },
  27530. {
  27531. "name": "get_purchaseback_dates_supplier",
  27532. "event": [
  27533. {
  27534. "listen": "test",
  27535. "script": {
  27536. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27537. "exec": [
  27538. "pm.test(\"Status code is 200\", function () {",
  27539. " pm.response.to.have.status(200);",
  27540. "});"
  27541. ],
  27542. "type": "text/javascript"
  27543. }
  27544. }
  27545. ],
  27546. "request": {
  27547. "method": "GET",
  27548. "header": [
  27549. {
  27550. "key": "Authorization",
  27551. "type": "text",
  27552. "value": "Rong {{shoptoken}}"
  27553. }
  27554. ],
  27555. "body": {
  27556. "mode": "raw",
  27557. "raw": ""
  27558. },
  27559. "url": {
  27560. "raw": "{{url}}/api/invoicing/purchasebackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&supplier={{supplier_name01}}",
  27561. "host": [
  27562. "{{url}}"
  27563. ],
  27564. "path": [
  27565. "api",
  27566. "invoicing",
  27567. "purchasebackorderitem",
  27568. ""
  27569. ],
  27570. "query": [
  27571. {
  27572. "key": "start_date",
  27573. "value": "2019-01-01"
  27574. },
  27575. {
  27576. "key": "end_date",
  27577. "value": "{{ymd-date}}"
  27578. },
  27579. {
  27580. "key": "supplier",
  27581. "value": "{{supplier_name01}}"
  27582. }
  27583. ]
  27584. }
  27585. },
  27586. "response": []
  27587. },
  27588. {
  27589. "name": "get_purchaseback_supplier_carproduct",
  27590. "event": [
  27591. {
  27592. "listen": "test",
  27593. "script": {
  27594. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27595. "exec": [
  27596. "pm.test(\"Status code is 200\", function () {",
  27597. " pm.response.to.have.status(200);",
  27598. "});"
  27599. ],
  27600. "type": "text/javascript"
  27601. }
  27602. }
  27603. ],
  27604. "request": {
  27605. "method": "GET",
  27606. "header": [
  27607. {
  27608. "key": "Authorization",
  27609. "type": "text",
  27610. "value": "Rong {{shoptoken}}"
  27611. }
  27612. ],
  27613. "body": {
  27614. "mode": "raw",
  27615. "raw": ""
  27616. },
  27617. "url": {
  27618. "raw": "{{url}}/api/invoicing/purchasebackorderitem/?supplier={{supplier_name01}}&car_products_name={{car_products_name02}}",
  27619. "host": [
  27620. "{{url}}"
  27621. ],
  27622. "path": [
  27623. "api",
  27624. "invoicing",
  27625. "purchasebackorderitem",
  27626. ""
  27627. ],
  27628. "query": [
  27629. {
  27630. "key": "start_date",
  27631. "value": "2019-01-01",
  27632. "disabled": true
  27633. },
  27634. {
  27635. "key": "end_date",
  27636. "value": "{{ymd-date}}",
  27637. "disabled": true
  27638. },
  27639. {
  27640. "key": "supplier",
  27641. "value": "{{supplier_name01}}"
  27642. },
  27643. {
  27644. "key": "car_products_name",
  27645. "value": "{{car_products_name02}}"
  27646. }
  27647. ]
  27648. }
  27649. },
  27650. "response": []
  27651. },
  27652. {
  27653. "name": "get_carpurchasestatistics_first",
  27654. "event": [
  27655. {
  27656. "listen": "test",
  27657. "script": {
  27658. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27659. "exec": [
  27660. "pm.test(\"Status code is 200\", function () {",
  27661. " pm.response.to.have.status(200);",
  27662. "});"
  27663. ],
  27664. "type": "text/javascript"
  27665. }
  27666. }
  27667. ],
  27668. "request": {
  27669. "method": "GET",
  27670. "header": [
  27671. {
  27672. "key": "Authorization",
  27673. "type": "text",
  27674. "value": "Rong {{shoptoken}}"
  27675. }
  27676. ],
  27677. "body": {
  27678. "mode": "raw",
  27679. "raw": ""
  27680. },
  27681. "url": {
  27682. "raw": "{{url}}/api/invoicing/carpurchasestatistics/?type=first&year=2019&month=01",
  27683. "host": [
  27684. "{{url}}"
  27685. ],
  27686. "path": [
  27687. "api",
  27688. "invoicing",
  27689. "carpurchasestatistics",
  27690. ""
  27691. ],
  27692. "query": [
  27693. {
  27694. "key": "type",
  27695. "value": "first"
  27696. },
  27697. {
  27698. "key": "year",
  27699. "value": "2019"
  27700. },
  27701. {
  27702. "key": "month",
  27703. "value": "01"
  27704. }
  27705. ]
  27706. }
  27707. },
  27708. "response": []
  27709. },
  27710. {
  27711. "name": "get_carpurchasestatistics_second",
  27712. "event": [
  27713. {
  27714. "listen": "test",
  27715. "script": {
  27716. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27717. "exec": [
  27718. "pm.test(\"Status code is 201\", function () {",
  27719. " pm.response.to.have.status(201);",
  27720. "});"
  27721. ],
  27722. "type": "text/javascript"
  27723. }
  27724. }
  27725. ],
  27726. "request": {
  27727. "method": "GET",
  27728. "header": [
  27729. {
  27730. "key": "Authorization",
  27731. "type": "text",
  27732. "value": "Rong {{shoptoken}}"
  27733. }
  27734. ],
  27735. "body": {
  27736. "mode": "raw",
  27737. "raw": ""
  27738. },
  27739. "url": {
  27740. "raw": "{{url}}/api/invoicing/carpurchasestatistics/?type=second&year=2019&month=01",
  27741. "host": [
  27742. "{{url}}"
  27743. ],
  27744. "path": [
  27745. "api",
  27746. "invoicing",
  27747. "carpurchasestatistics",
  27748. ""
  27749. ],
  27750. "query": [
  27751. {
  27752. "key": "type",
  27753. "value": "second"
  27754. },
  27755. {
  27756. "key": "year",
  27757. "value": "2019"
  27758. },
  27759. {
  27760. "key": "month",
  27761. "value": "01"
  27762. }
  27763. ]
  27764. }
  27765. },
  27766. "response": []
  27767. },
  27768. {
  27769. "name": "get_carpurchasestatistics_third",
  27770. "event": [
  27771. {
  27772. "listen": "test",
  27773. "script": {
  27774. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27775. "exec": [
  27776. "pm.test(\"Status code is 201\", function () {",
  27777. " pm.response.to.have.status(201);",
  27778. "});"
  27779. ],
  27780. "type": "text/javascript"
  27781. }
  27782. }
  27783. ],
  27784. "request": {
  27785. "method": "GET",
  27786. "header": [
  27787. {
  27788. "key": "Authorization",
  27789. "type": "text",
  27790. "value": "Rong {{shoptoken}}"
  27791. }
  27792. ],
  27793. "body": {
  27794. "mode": "raw",
  27795. "raw": ""
  27796. },
  27797. "url": {
  27798. "raw": "{{url}}/api/invoicing/carpurchasestatistics/?type=third&year=2019&month=01",
  27799. "host": [
  27800. "{{url}}"
  27801. ],
  27802. "path": [
  27803. "api",
  27804. "invoicing",
  27805. "carpurchasestatistics",
  27806. ""
  27807. ],
  27808. "query": [
  27809. {
  27810. "key": "type",
  27811. "value": "third"
  27812. },
  27813. {
  27814. "key": "year",
  27815. "value": "2019"
  27816. },
  27817. {
  27818. "key": "month",
  27819. "value": "01"
  27820. }
  27821. ]
  27822. }
  27823. },
  27824. "response": []
  27825. },
  27826. {
  27827. "name": "get_receivematerialsorderitem_product",
  27828. "event": [
  27829. {
  27830. "listen": "test",
  27831. "script": {
  27832. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27833. "exec": [
  27834. "pm.test(\"Status code is 200\", function () {",
  27835. " pm.response.to.have.status(200);",
  27836. "});",
  27837. "",
  27838. "var jsonData = JSON.parse(responseBody);",
  27839. "postman.setEnvironmentVariable(\"rebackmaterail_id01\",jsonData.results[0].id);"
  27840. ],
  27841. "type": "text/javascript"
  27842. }
  27843. }
  27844. ],
  27845. "request": {
  27846. "method": "GET",
  27847. "header": [
  27848. {
  27849. "key": "Authorization",
  27850. "type": "text",
  27851. "value": "Rong {{shoptoken}}"
  27852. }
  27853. ],
  27854. "body": {
  27855. "mode": "raw",
  27856. "raw": ""
  27857. },
  27858. "url": {
  27859. "raw": "{{url}}/api/invoicing/receivematerialsorderitem/?car_products_name={{car_products_name02}}",
  27860. "host": [
  27861. "{{url}}"
  27862. ],
  27863. "path": [
  27864. "api",
  27865. "invoicing",
  27866. "receivematerialsorderitem",
  27867. ""
  27868. ],
  27869. "query": [
  27870. {
  27871. "key": "car_products_name",
  27872. "value": "{{car_products_name02}}"
  27873. }
  27874. ]
  27875. }
  27876. },
  27877. "response": []
  27878. },
  27879. {
  27880. "name": "get_receivematerialsorderitem_dates_product",
  27881. "event": [
  27882. {
  27883. "listen": "test",
  27884. "script": {
  27885. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27886. "exec": [
  27887. "pm.test(\"Status code is 200\", function () {",
  27888. " pm.response.to.have.status(200);",
  27889. "});",
  27890. "// var jsonData = JSON.parse(responseBody);",
  27891. "// postman.setEnvironmentVariable(\"rebackmaterail_id01\",jsonData.results[0].id);"
  27892. ],
  27893. "type": "text/javascript"
  27894. }
  27895. }
  27896. ],
  27897. "request": {
  27898. "method": "GET",
  27899. "header": [
  27900. {
  27901. "key": "Authorization",
  27902. "type": "text",
  27903. "value": "Rong {{shoptoken}}"
  27904. }
  27905. ],
  27906. "body": {
  27907. "mode": "raw",
  27908. "raw": ""
  27909. },
  27910. "url": {
  27911. "raw": "{{url}}/api/invoicing/receivematerialsorderitem/?car_products_name={{car_products_name02}}&start_date=2019-01-01&end_date={{ymd-date}}",
  27912. "host": [
  27913. "{{url}}"
  27914. ],
  27915. "path": [
  27916. "api",
  27917. "invoicing",
  27918. "receivematerialsorderitem",
  27919. ""
  27920. ],
  27921. "query": [
  27922. {
  27923. "key": "car_products_name",
  27924. "value": "{{car_products_name02}}"
  27925. },
  27926. {
  27927. "key": "start_date",
  27928. "value": "2019-01-01"
  27929. },
  27930. {
  27931. "key": "end_date",
  27932. "value": "{{ymd-date}}"
  27933. }
  27934. ]
  27935. }
  27936. },
  27937. "response": []
  27938. },
  27939. {
  27940. "name": "get_receivematerialsbackorderitem_dates",
  27941. "event": [
  27942. {
  27943. "listen": "test",
  27944. "script": {
  27945. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  27946. "exec": [
  27947. "pm.test(\"Status code is 200\", function () {",
  27948. " pm.response.to.have.status(200);",
  27949. "});",
  27950. "",
  27951. ""
  27952. ],
  27953. "type": "text/javascript"
  27954. }
  27955. }
  27956. ],
  27957. "request": {
  27958. "method": "GET",
  27959. "header": [
  27960. {
  27961. "key": "Authorization",
  27962. "type": "text",
  27963. "value": "Rong {{shoptoken}}"
  27964. }
  27965. ],
  27966. "body": {
  27967. "mode": "raw",
  27968. "raw": ""
  27969. },
  27970. "url": {
  27971. "raw": "{{url}}/api/invoicing/receivematerialsbackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}",
  27972. "host": [
  27973. "{{url}}"
  27974. ],
  27975. "path": [
  27976. "api",
  27977. "invoicing",
  27978. "receivematerialsbackorderitem",
  27979. ""
  27980. ],
  27981. "query": [
  27982. {
  27983. "key": "start_date",
  27984. "value": "2019-01-01"
  27985. },
  27986. {
  27987. "key": "end_date",
  27988. "value": "{{ymd-date}}"
  27989. }
  27990. ]
  27991. }
  27992. },
  27993. "response": []
  27994. },
  27995. {
  27996. "name": "get_receivematerialsbackorderitem_dates_ordername",
  27997. "event": [
  27998. {
  27999. "listen": "test",
  28000. "script": {
  28001. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28002. "exec": [
  28003. "pm.test(\"Status code is 200\", function () {",
  28004. " pm.response.to.have.status(200);",
  28005. "});"
  28006. ],
  28007. "type": "text/javascript"
  28008. }
  28009. }
  28010. ],
  28011. "request": {
  28012. "method": "GET",
  28013. "header": [
  28014. {
  28015. "key": "Authorization",
  28016. "type": "text",
  28017. "value": "Rong {{shoptoken}}"
  28018. }
  28019. ],
  28020. "body": {
  28021. "mode": "raw",
  28022. "raw": ""
  28023. },
  28024. "url": {
  28025. "raw": "{{url}}/api/invoicing/receivematerialsbackorderitem/?start_date=2019-01-01&end_date={{ymd-date}}&order_name=rebackmaterail_id01",
  28026. "host": [
  28027. "{{url}}"
  28028. ],
  28029. "path": [
  28030. "api",
  28031. "invoicing",
  28032. "receivematerialsbackorderitem",
  28033. ""
  28034. ],
  28035. "query": [
  28036. {
  28037. "key": "start_date",
  28038. "value": "2019-01-01"
  28039. },
  28040. {
  28041. "key": "end_date",
  28042. "value": "{{ymd-date}}"
  28043. },
  28044. {
  28045. "key": "order_name",
  28046. "value": "rebackmaterail_id01"
  28047. }
  28048. ]
  28049. }
  28050. },
  28051. "response": []
  28052. },
  28053. {
  28054. "name": "get_inventoryadjustmentorder_dates",
  28055. "event": [
  28056. {
  28057. "listen": "test",
  28058. "script": {
  28059. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28060. "exec": [
  28061. "pm.test(\"Status code is 200\", function () {",
  28062. " pm.response.to.have.status(200);",
  28063. "});"
  28064. ],
  28065. "type": "text/javascript"
  28066. }
  28067. }
  28068. ],
  28069. "request": {
  28070. "method": "GET",
  28071. "header": [
  28072. {
  28073. "key": "Authorization",
  28074. "type": "text",
  28075. "value": "Rong {{shoptoken}}"
  28076. }
  28077. ],
  28078. "body": {
  28079. "mode": "raw",
  28080. "raw": ""
  28081. },
  28082. "url": {
  28083. "raw": "{{url}}/api/invoicing/inventoryadjustmentorder/?start_date=2019-01-01&end_date={{ymd-date}}",
  28084. "host": [
  28085. "{{url}}"
  28086. ],
  28087. "path": [
  28088. "api",
  28089. "invoicing",
  28090. "inventoryadjustmentorder",
  28091. ""
  28092. ],
  28093. "query": [
  28094. {
  28095. "key": "start_date",
  28096. "value": "2019-01-01"
  28097. },
  28098. {
  28099. "key": "end_date",
  28100. "value": "{{ymd-date}}"
  28101. }
  28102. ]
  28103. }
  28104. },
  28105. "response": []
  28106. },
  28107. {
  28108. "name": "get_inventoryadjustmentorder_dates_category",
  28109. "event": [
  28110. {
  28111. "listen": "test",
  28112. "script": {
  28113. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28114. "exec": [
  28115. "pm.test(\"Status code is 200\", function () {",
  28116. " pm.response.to.have.status(200);",
  28117. "});"
  28118. ],
  28119. "type": "text/javascript"
  28120. }
  28121. }
  28122. ],
  28123. "request": {
  28124. "method": "GET",
  28125. "header": [
  28126. {
  28127. "key": "Authorization",
  28128. "type": "text",
  28129. "value": "Rong {{shoptoken}}"
  28130. }
  28131. ],
  28132. "body": {
  28133. "mode": "raw",
  28134. "raw": ""
  28135. },
  28136. "url": {
  28137. "raw": "{{url}}/api/invoicing/inventoryadjustmentorder/?start_date=2019-01-01&end_date={{ymd-date}}&category={{category_id01}}",
  28138. "host": [
  28139. "{{url}}"
  28140. ],
  28141. "path": [
  28142. "api",
  28143. "invoicing",
  28144. "inventoryadjustmentorder",
  28145. ""
  28146. ],
  28147. "query": [
  28148. {
  28149. "key": "start_date",
  28150. "value": "2019-01-01"
  28151. },
  28152. {
  28153. "key": "end_date",
  28154. "value": "{{ymd-date}}"
  28155. },
  28156. {
  28157. "key": "category",
  28158. "value": "{{category_id01}}"
  28159. }
  28160. ]
  28161. }
  28162. },
  28163. "response": []
  28164. },
  28165. {
  28166. "name": "get_inventoryadjustmentorder_dates_category_name",
  28167. "event": [
  28168. {
  28169. "listen": "test",
  28170. "script": {
  28171. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28172. "exec": [
  28173. "pm.test(\"Status code is 200\", function () {",
  28174. " pm.response.to.have.status(200);",
  28175. "});"
  28176. ],
  28177. "type": "text/javascript"
  28178. }
  28179. }
  28180. ],
  28181. "request": {
  28182. "method": "GET",
  28183. "header": [
  28184. {
  28185. "key": "Authorization",
  28186. "type": "text",
  28187. "value": "Rong {{shoptoken}}"
  28188. }
  28189. ],
  28190. "body": {
  28191. "mode": "raw",
  28192. "raw": ""
  28193. },
  28194. "url": {
  28195. "raw": "{{url}}/api/invoicing/inventoryadjustmentorder/?start_date=2019-01-01&end_date={{ymd-date}}&category={{category_id01}}&name={{car_products_name02}}",
  28196. "host": [
  28197. "{{url}}"
  28198. ],
  28199. "path": [
  28200. "api",
  28201. "invoicing",
  28202. "inventoryadjustmentorder",
  28203. ""
  28204. ],
  28205. "query": [
  28206. {
  28207. "key": "start_date",
  28208. "value": "2019-01-01"
  28209. },
  28210. {
  28211. "key": "end_date",
  28212. "value": "{{ymd-date}}"
  28213. },
  28214. {
  28215. "key": "category",
  28216. "value": "{{category_id01}}"
  28217. },
  28218. {
  28219. "key": "name",
  28220. "value": "{{car_products_name02}}"
  28221. }
  28222. ]
  28223. }
  28224. },
  28225. "response": []
  28226. },
  28227. {
  28228. "name": "get_inventorycheck_name",
  28229. "event": [
  28230. {
  28231. "listen": "test",
  28232. "script": {
  28233. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28234. "exec": [
  28235. "pm.test(\"Status code is 200\", function () {",
  28236. " pm.response.to.have.status(200);",
  28237. "});"
  28238. ],
  28239. "type": "text/javascript"
  28240. }
  28241. }
  28242. ],
  28243. "request": {
  28244. "method": "GET",
  28245. "header": [
  28246. {
  28247. "key": "Authorization",
  28248. "type": "text",
  28249. "value": "Rong {{shoptoken}}"
  28250. }
  28251. ],
  28252. "body": {
  28253. "mode": "raw",
  28254. "raw": ""
  28255. },
  28256. "url": {
  28257. "raw": "{{url}}/api/invoicing/inventorycheck/?name={{car_products_name02}}",
  28258. "host": [
  28259. "{{url}}"
  28260. ],
  28261. "path": [
  28262. "api",
  28263. "invoicing",
  28264. "inventorycheck",
  28265. ""
  28266. ],
  28267. "query": [
  28268. {
  28269. "key": "name",
  28270. "value": "{{car_products_name02}}"
  28271. }
  28272. ]
  28273. }
  28274. },
  28275. "response": []
  28276. },
  28277. {
  28278. "name": "get_inventorydetail_storehouseid",
  28279. "event": [
  28280. {
  28281. "listen": "test",
  28282. "script": {
  28283. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28284. "exec": [
  28285. "pm.test(\"Status code is 200\", function () {",
  28286. " pm.response.to.have.status(200);",
  28287. "});"
  28288. ],
  28289. "type": "text/javascript"
  28290. }
  28291. }
  28292. ],
  28293. "request": {
  28294. "method": "GET",
  28295. "header": [
  28296. {
  28297. "key": "Authorization",
  28298. "type": "text",
  28299. "value": "Rong {{shoptoken}}"
  28300. }
  28301. ],
  28302. "body": {
  28303. "mode": "raw",
  28304. "raw": ""
  28305. },
  28306. "url": {
  28307. "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}",
  28308. "host": [
  28309. "{{url}}"
  28310. ],
  28311. "path": [
  28312. "api",
  28313. "invoicing",
  28314. "inventorydetail",
  28315. ""
  28316. ],
  28317. "query": [
  28318. {
  28319. "key": "storehouse_ids",
  28320. "value": "{{storehouse_id01}},{{storehouse_id02}},{{storehouse_id03}}"
  28321. }
  28322. ]
  28323. }
  28324. },
  28325. "response": []
  28326. },
  28327. {
  28328. "name": "get_inventorydetail_storehouseid_carproductcategory",
  28329. "event": [
  28330. {
  28331. "listen": "test",
  28332. "script": {
  28333. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28334. "exec": [
  28335. "pm.test(\"Status code is 200\", function () {",
  28336. " pm.response.to.have.status(200);",
  28337. "});"
  28338. ],
  28339. "type": "text/javascript"
  28340. }
  28341. }
  28342. ],
  28343. "request": {
  28344. "method": "GET",
  28345. "header": [
  28346. {
  28347. "key": "Authorization",
  28348. "type": "text",
  28349. "value": "Rong {{shoptoken}}"
  28350. }
  28351. ],
  28352. "body": {
  28353. "mode": "raw",
  28354. "raw": ""
  28355. },
  28356. "url": {
  28357. "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}}&category_ids={{carproduct_category01}}",
  28358. "host": [
  28359. "{{url}}"
  28360. ],
  28361. "path": [
  28362. "api",
  28363. "invoicing",
  28364. "inventorydetail",
  28365. ""
  28366. ],
  28367. "query": [
  28368. {
  28369. "key": "storehouse_ids",
  28370. "value": "{{storehouse_id01}}"
  28371. },
  28372. {
  28373. "key": "category_ids",
  28374. "value": "{{carproduct_category01}}"
  28375. }
  28376. ]
  28377. }
  28378. },
  28379. "response": []
  28380. },
  28381. {
  28382. "name": "get_inventorydetail_storehouseid_carproductcategory_product",
  28383. "event": [
  28384. {
  28385. "listen": "test",
  28386. "script": {
  28387. "id": "0afb1d8c-9a2b-444c-841b-77e4cd1d1597",
  28388. "exec": [
  28389. "pm.test(\"Status code is 200\", function () {",
  28390. " pm.response.to.have.status(200);",
  28391. "});"
  28392. ],
  28393. "type": "text/javascript"
  28394. }
  28395. }
  28396. ],
  28397. "request": {
  28398. "method": "GET",
  28399. "header": [
  28400. {
  28401. "key": "Authorization",
  28402. "type": "text",
  28403. "value": "Rong {{shoptoken}}"
  28404. }
  28405. ],
  28406. "body": {
  28407. "mode": "raw",
  28408. "raw": ""
  28409. },
  28410. "url": {
  28411. "raw": "{{url}}/api/invoicing/inventorydetail/?storehouse_ids={{storehouse_id01}}&category_ids={{carproduct_category01}}&car_products__name__contains={{car_products_name02}}",
  28412. "host": [
  28413. "{{url}}"
  28414. ],
  28415. "path": [
  28416. "api",
  28417. "invoicing",
  28418. "inventorydetail",
  28419. ""
  28420. ],
  28421. "query": [
  28422. {
  28423. "key": "storehouse_ids",
  28424. "value": "{{storehouse_id01}}"
  28425. },
  28426. {
  28427. "key": "category_ids",
  28428. "value": "{{carproduct_category01}}"
  28429. },
  28430. {
  28431. "key": "car_products__name__contains",
  28432. "value": "{{car_products_name02}}"
  28433. }
  28434. ]
  28435. }
  28436. },
  28437. "response": []
  28438. }
  28439. ],
  28440. "event": [
  28441. {
  28442. "listen": "prerequest",
  28443. "script": {
  28444. "id": "52442da5-f2a4-436a-82fa-d878b3942f17",
  28445. "type": "text/javascript",
  28446. "exec": [
  28447. ""
  28448. ]
  28449. }
  28450. },
  28451. {
  28452. "listen": "test",
  28453. "script": {
  28454. "id": "25dfada3-21b3-44c9-b0bc-8941fd23cf9c",
  28455. "type": "text/javascript",
  28456. "exec": [
  28457. ""
  28458. ]
  28459. }
  28460. }
  28461. ]
  28462. },
  28463. {
  28464. "name": "paymentreceived_search",
  28465. "item": [
  28466. {
  28467. "name": "get_receipt_dates",
  28468. "event": [
  28469. {
  28470. "listen": "test",
  28471. "script": {
  28472. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28473. "exec": [
  28474. "pm.test(\"Status code is 200\", function () {",
  28475. " pm.response.to.have.status(200);",
  28476. "});"
  28477. ],
  28478. "type": "text/javascript"
  28479. }
  28480. }
  28481. ],
  28482. "request": {
  28483. "method": "GET",
  28484. "header": [
  28485. {
  28486. "key": "Authorization",
  28487. "value": "Rong {{shoptoken}}",
  28488. "type": "text"
  28489. }
  28490. ],
  28491. "body": {
  28492. "mode": "raw",
  28493. "raw": ""
  28494. },
  28495. "url": {
  28496. "raw": "{{url}}/api/receivepayment/receipt/?start_date=2019-01-01&end_date={{ymd-date}}",
  28497. "host": [
  28498. "{{url}}"
  28499. ],
  28500. "path": [
  28501. "api",
  28502. "receivepayment",
  28503. "receipt",
  28504. ""
  28505. ],
  28506. "query": [
  28507. {
  28508. "key": "start_date",
  28509. "value": "2019-01-01"
  28510. },
  28511. {
  28512. "key": "end_date",
  28513. "value": "{{ymd-date}}"
  28514. }
  28515. ]
  28516. }
  28517. },
  28518. "response": []
  28519. },
  28520. {
  28521. "name": "get_receipt_dates_receiptcategory",
  28522. "event": [
  28523. {
  28524. "listen": "test",
  28525. "script": {
  28526. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28527. "exec": [
  28528. "pm.test(\"Status code is 200\", function () {",
  28529. " pm.response.to.have.status(200);",
  28530. "});"
  28531. ],
  28532. "type": "text/javascript"
  28533. }
  28534. }
  28535. ],
  28536. "request": {
  28537. "method": "GET",
  28538. "header": [
  28539. {
  28540. "key": "Authorization",
  28541. "value": "Rong {{shoptoken}}",
  28542. "type": "text"
  28543. }
  28544. ],
  28545. "body": {
  28546. "mode": "raw",
  28547. "raw": ""
  28548. },
  28549. "url": {
  28550. "raw": "{{url}}/api/receivepayment/receipt/?start_date=2019-01-01&end_date={{ymd-date}}&receipt_category={{receipt_category01}}",
  28551. "host": [
  28552. "{{url}}"
  28553. ],
  28554. "path": [
  28555. "api",
  28556. "receivepayment",
  28557. "receipt",
  28558. ""
  28559. ],
  28560. "query": [
  28561. {
  28562. "key": "start_date",
  28563. "value": "2019-01-01"
  28564. },
  28565. {
  28566. "key": "end_date",
  28567. "value": "{{ymd-date}}"
  28568. },
  28569. {
  28570. "key": "receipt_category",
  28571. "value": "{{receipt_category01}}"
  28572. }
  28573. ]
  28574. }
  28575. },
  28576. "response": []
  28577. },
  28578. {
  28579. "name": "get_payorder_dates",
  28580. "event": [
  28581. {
  28582. "listen": "test",
  28583. "script": {
  28584. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28585. "exec": [
  28586. "pm.test(\"Status code is 200\", function () {",
  28587. " pm.response.to.have.status(200);",
  28588. "});"
  28589. ],
  28590. "type": "text/javascript"
  28591. }
  28592. }
  28593. ],
  28594. "request": {
  28595. "method": "GET",
  28596. "header": [
  28597. {
  28598. "key": "Authorization",
  28599. "type": "text",
  28600. "value": "Rong {{shoptoken}}"
  28601. }
  28602. ],
  28603. "body": {
  28604. "mode": "raw",
  28605. "raw": ""
  28606. },
  28607. "url": {
  28608. "raw": "{{url}}/api/receivepayment/payorder/?start_date=2019-01-01&end_date={{ymd-date}}",
  28609. "host": [
  28610. "{{url}}"
  28611. ],
  28612. "path": [
  28613. "api",
  28614. "receivepayment",
  28615. "payorder",
  28616. ""
  28617. ],
  28618. "query": [
  28619. {
  28620. "key": "start_date",
  28621. "value": "2019-01-01"
  28622. },
  28623. {
  28624. "key": "end_date",
  28625. "value": "{{ymd-date}}"
  28626. }
  28627. ]
  28628. }
  28629. },
  28630. "response": []
  28631. },
  28632. {
  28633. "name": "get_payorder_dates_paycategory",
  28634. "event": [
  28635. {
  28636. "listen": "test",
  28637. "script": {
  28638. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28639. "exec": [
  28640. "pm.test(\"Status code is 200\", function () {",
  28641. " pm.response.to.have.status(200);",
  28642. "});"
  28643. ],
  28644. "type": "text/javascript"
  28645. }
  28646. }
  28647. ],
  28648. "request": {
  28649. "method": "GET",
  28650. "header": [
  28651. {
  28652. "key": "Authorization",
  28653. "type": "text",
  28654. "value": "Rong {{shoptoken}}"
  28655. }
  28656. ],
  28657. "body": {
  28658. "mode": "raw",
  28659. "raw": ""
  28660. },
  28661. "url": {
  28662. "raw": "{{url}}/api/receivepayment/payorder/?start_date=2019-01-01&end_date={{ymd-date}}&pay_category={{paycategory_id01}}",
  28663. "host": [
  28664. "{{url}}"
  28665. ],
  28666. "path": [
  28667. "api",
  28668. "receivepayment",
  28669. "payorder",
  28670. ""
  28671. ],
  28672. "query": [
  28673. {
  28674. "key": "start_date",
  28675. "value": "2019-01-01"
  28676. },
  28677. {
  28678. "key": "end_date",
  28679. "value": "{{ymd-date}}"
  28680. },
  28681. {
  28682. "key": "pay_category",
  28683. "value": "{{paycategory_id01}}"
  28684. }
  28685. ]
  28686. }
  28687. },
  28688. "response": []
  28689. },
  28690. {
  28691. "name": "get_accounttransfer_dates",
  28692. "event": [
  28693. {
  28694. "listen": "test",
  28695. "script": {
  28696. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28697. "exec": [
  28698. "pm.test(\"Status code is 200\", function () {",
  28699. " pm.response.to.have.status(200);",
  28700. "});"
  28701. ],
  28702. "type": "text/javascript"
  28703. }
  28704. }
  28705. ],
  28706. "request": {
  28707. "method": "GET",
  28708. "header": [
  28709. {
  28710. "key": "Authorization",
  28711. "type": "text",
  28712. "value": "Rong {{shoptoken}}"
  28713. }
  28714. ],
  28715. "body": {
  28716. "mode": "raw",
  28717. "raw": ""
  28718. },
  28719. "url": {
  28720. "raw": "{{url}}/api/receivepayment/accounttransfer/?start_date=2019-01-01&end_date={{ymd-date}}",
  28721. "host": [
  28722. "{{url}}"
  28723. ],
  28724. "path": [
  28725. "api",
  28726. "receivepayment",
  28727. "accounttransfer",
  28728. ""
  28729. ],
  28730. "query": [
  28731. {
  28732. "key": "start_date",
  28733. "value": "2019-01-01"
  28734. },
  28735. {
  28736. "key": "end_date",
  28737. "value": "{{ymd-date}}"
  28738. }
  28739. ]
  28740. }
  28741. },
  28742. "response": []
  28743. },
  28744. {
  28745. "name": "get_accounttransfer_dates_accountout_accountin",
  28746. "event": [
  28747. {
  28748. "listen": "test",
  28749. "script": {
  28750. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28751. "exec": [
  28752. "pm.test(\"Status code is 200\", function () {",
  28753. " pm.response.to.have.status(200);",
  28754. "});"
  28755. ],
  28756. "type": "text/javascript"
  28757. }
  28758. }
  28759. ],
  28760. "request": {
  28761. "method": "GET",
  28762. "header": [
  28763. {
  28764. "key": "Authorization",
  28765. "type": "text",
  28766. "value": "Rong {{shoptoken}}"
  28767. }
  28768. ],
  28769. "body": {
  28770. "mode": "raw",
  28771. "raw": ""
  28772. },
  28773. "url": {
  28774. "raw": "{{url}}/api/receivepayment/accounttransfer/?start_date=2019-01-01&end_date={{ymd-date}}&account_out={{account_id01}}&account_in={{account_id02}}",
  28775. "host": [
  28776. "{{url}}"
  28777. ],
  28778. "path": [
  28779. "api",
  28780. "receivepayment",
  28781. "accounttransfer",
  28782. ""
  28783. ],
  28784. "query": [
  28785. {
  28786. "key": "start_date",
  28787. "value": "2019-01-01"
  28788. },
  28789. {
  28790. "key": "end_date",
  28791. "value": "{{ymd-date}}"
  28792. },
  28793. {
  28794. "key": "account_out",
  28795. "value": "{{account_id01}}"
  28796. },
  28797. {
  28798. "key": "account_in",
  28799. "value": "{{account_id02}}"
  28800. }
  28801. ]
  28802. }
  28803. },
  28804. "response": []
  28805. },
  28806. {
  28807. "name": "get_vendorpayable_dates",
  28808. "event": [
  28809. {
  28810. "listen": "test",
  28811. "script": {
  28812. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28813. "exec": [
  28814. "pm.test(\"Status code is 200\", function () {",
  28815. " pm.response.to.have.status(200);",
  28816. "});"
  28817. ],
  28818. "type": "text/javascript"
  28819. }
  28820. }
  28821. ],
  28822. "request": {
  28823. "method": "GET",
  28824. "header": [
  28825. {
  28826. "key": "Authorization",
  28827. "type": "text",
  28828. "value": "Rong {{shoptoken}}"
  28829. }
  28830. ],
  28831. "body": {
  28832. "mode": "raw",
  28833. "raw": ""
  28834. },
  28835. "url": {
  28836. "raw": "{{url}}/api/receivepayment/vendorpayable/?start_date=2019-01-01&end_date={{ymd-date}}",
  28837. "host": [
  28838. "{{url}}"
  28839. ],
  28840. "path": [
  28841. "api",
  28842. "receivepayment",
  28843. "vendorpayable",
  28844. ""
  28845. ],
  28846. "query": [
  28847. {
  28848. "key": "start_date",
  28849. "value": "2019-01-01"
  28850. },
  28851. {
  28852. "key": "end_date",
  28853. "value": "{{ymd-date}}"
  28854. },
  28855. {
  28856. "key": "account_out",
  28857. "value": "{{account_id01}}",
  28858. "disabled": true
  28859. },
  28860. {
  28861. "key": "account_in",
  28862. "value": "{{account_id02}}",
  28863. "disabled": true
  28864. }
  28865. ]
  28866. }
  28867. },
  28868. "response": []
  28869. },
  28870. {
  28871. "name": "get_vendorpayable_dates_status0",
  28872. "event": [
  28873. {
  28874. "listen": "test",
  28875. "script": {
  28876. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28877. "exec": [
  28878. "pm.test(\"Status code is 200\", function () {",
  28879. " pm.response.to.have.status(200);",
  28880. "});"
  28881. ],
  28882. "type": "text/javascript"
  28883. }
  28884. }
  28885. ],
  28886. "request": {
  28887. "method": "GET",
  28888. "header": [
  28889. {
  28890. "key": "Authorization",
  28891. "type": "text",
  28892. "value": "Rong {{shoptoken}}"
  28893. }
  28894. ],
  28895. "body": {
  28896. "mode": "raw",
  28897. "raw": ""
  28898. },
  28899. "url": {
  28900. "raw": "{{url}}/api/receivepayment/vendorpayable/?start_date=2019-01-01&end_date={{ymd-date}}&status=0",
  28901. "host": [
  28902. "{{url}}"
  28903. ],
  28904. "path": [
  28905. "api",
  28906. "receivepayment",
  28907. "vendorpayable",
  28908. ""
  28909. ],
  28910. "query": [
  28911. {
  28912. "key": "start_date",
  28913. "value": "2019-01-01"
  28914. },
  28915. {
  28916. "key": "end_date",
  28917. "value": "{{ymd-date}}"
  28918. },
  28919. {
  28920. "key": "status",
  28921. "value": "0"
  28922. }
  28923. ]
  28924. }
  28925. },
  28926. "response": []
  28927. },
  28928. {
  28929. "name": "get_vendorpayable_verdorname",
  28930. "event": [
  28931. {
  28932. "listen": "test",
  28933. "script": {
  28934. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28935. "exec": [
  28936. "pm.test(\"Status code is 200\", function () {",
  28937. " pm.response.to.have.status(200);",
  28938. "});"
  28939. ],
  28940. "type": "text/javascript"
  28941. }
  28942. }
  28943. ],
  28944. "request": {
  28945. "method": "GET",
  28946. "header": [
  28947. {
  28948. "key": "Authorization",
  28949. "type": "text",
  28950. "value": "Rong {{shoptoken}}"
  28951. }
  28952. ],
  28953. "body": {
  28954. "mode": "raw",
  28955. "raw": ""
  28956. },
  28957. "url": {
  28958. "raw": "{{url}}/api/receivepayment/vendorpayable/?vendor_name={{supplier_name01}}",
  28959. "host": [
  28960. "{{url}}"
  28961. ],
  28962. "path": [
  28963. "api",
  28964. "receivepayment",
  28965. "vendorpayable",
  28966. ""
  28967. ],
  28968. "query": [
  28969. {
  28970. "key": "vendor_name",
  28971. "value": "{{supplier_name01}}"
  28972. }
  28973. ]
  28974. }
  28975. },
  28976. "response": []
  28977. },
  28978. {
  28979. "name": "get_customerreceivable_dates",
  28980. "event": [
  28981. {
  28982. "listen": "test",
  28983. "script": {
  28984. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  28985. "exec": [
  28986. "pm.test(\"Status code is 200\", function () {",
  28987. " pm.response.to.have.status(200);",
  28988. "});"
  28989. ],
  28990. "type": "text/javascript"
  28991. }
  28992. }
  28993. ],
  28994. "request": {
  28995. "method": "GET",
  28996. "header": [
  28997. {
  28998. "key": "Authorization",
  28999. "type": "text",
  29000. "value": "Rong {{shoptoken}}"
  29001. }
  29002. ],
  29003. "body": {
  29004. "mode": "raw",
  29005. "raw": ""
  29006. },
  29007. "url": {
  29008. "raw": "{{url}}/api/receivepayment/customerreceivable/?start_date=2019-01-01&end_date={{ymd-date}}",
  29009. "host": [
  29010. "{{url}}"
  29011. ],
  29012. "path": [
  29013. "api",
  29014. "receivepayment",
  29015. "customerreceivable",
  29016. ""
  29017. ],
  29018. "query": [
  29019. {
  29020. "key": "start_date",
  29021. "value": "2019-01-01"
  29022. },
  29023. {
  29024. "key": "end_date",
  29025. "value": "{{ymd-date}}"
  29026. }
  29027. ]
  29028. }
  29029. },
  29030. "response": []
  29031. },
  29032. {
  29033. "name": "get_customerreceivable_dates_status0",
  29034. "event": [
  29035. {
  29036. "listen": "test",
  29037. "script": {
  29038. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  29039. "exec": [
  29040. "pm.test(\"Status code is 200\", function () {",
  29041. " pm.response.to.have.status(200);",
  29042. "});"
  29043. ],
  29044. "type": "text/javascript"
  29045. }
  29046. }
  29047. ],
  29048. "request": {
  29049. "method": "GET",
  29050. "header": [
  29051. {
  29052. "key": "Authorization",
  29053. "type": "text",
  29054. "value": "Rong {{shoptoken}}"
  29055. }
  29056. ],
  29057. "body": {
  29058. "mode": "raw",
  29059. "raw": ""
  29060. },
  29061. "url": {
  29062. "raw": "{{url}}/api/receivepayment/customerreceivable/?start_date=2019-01-01&end_date={{ymd-date}}&status=0",
  29063. "host": [
  29064. "{{url}}"
  29065. ],
  29066. "path": [
  29067. "api",
  29068. "receivepayment",
  29069. "customerreceivable",
  29070. ""
  29071. ],
  29072. "query": [
  29073. {
  29074. "key": "start_date",
  29075. "value": "2019-01-01"
  29076. },
  29077. {
  29078. "key": "end_date",
  29079. "value": "{{ymd-date}}"
  29080. },
  29081. {
  29082. "key": "status",
  29083. "value": "0"
  29084. }
  29085. ]
  29086. }
  29087. },
  29088. "response": []
  29089. },
  29090. {
  29091. "name": "get_customerreceivable_dates_status0_corpname",
  29092. "event": [
  29093. {
  29094. "listen": "test",
  29095. "script": {
  29096. "id": "1d81908a-d873-40de-b24e-6f5e7c88a8ba",
  29097. "exec": [
  29098. "pm.test(\"Status code is 200\", function () {",
  29099. " pm.response.to.have.status(200);",
  29100. "});"
  29101. ],
  29102. "type": "text/javascript"
  29103. }
  29104. }
  29105. ],
  29106. "request": {
  29107. "method": "GET",
  29108. "header": [
  29109. {
  29110. "key": "Authorization",
  29111. "type": "text",
  29112. "value": "Rong {{shoptoken}}"
  29113. }
  29114. ],
  29115. "body": {
  29116. "mode": "raw",
  29117. "raw": ""
  29118. },
  29119. "url": {
  29120. "raw": "{{url}}/api/receivepayment/customerreceivable/?start_date=2019-01-01&end_date={{ymd-date}}&status=0&vendor_name={{corp_name01}}",
  29121. "host": [
  29122. "{{url}}"
  29123. ],
  29124. "path": [
  29125. "api",
  29126. "receivepayment",
  29127. "customerreceivable",
  29128. ""
  29129. ],
  29130. "query": [
  29131. {
  29132. "key": "start_date",
  29133. "value": "2019-01-01"
  29134. },
  29135. {
  29136. "key": "end_date",
  29137. "value": "{{ymd-date}}"
  29138. },
  29139. {
  29140. "key": "status",
  29141. "value": "0"
  29142. },
  29143. {
  29144. "key": "vendor_name",
  29145. "value": "{{corp_name01}}"
  29146. }
  29147. ]
  29148. }
  29149. },
  29150. "response": []
  29151. }
  29152. ]
  29153. },
  29154. {
  29155. "name": "employee _performance_search",
  29156. "item": [
  29157. {
  29158. "name": "get_employee_name",
  29159. "event": [
  29160. {
  29161. "listen": "test",
  29162. "script": {
  29163. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29164. "exec": [
  29165. "pm.test(\"Status code is 200\", function () {",
  29166. " pm.response.to.have.status(200);",
  29167. "});"
  29168. ],
  29169. "type": "text/javascript"
  29170. }
  29171. }
  29172. ],
  29173. "request": {
  29174. "method": "GET",
  29175. "header": [
  29176. {
  29177. "key": "Authorization",
  29178. "value": "Rong {{shoptoken}}",
  29179. "type": "text"
  29180. }
  29181. ],
  29182. "body": {
  29183. "mode": "raw",
  29184. "raw": ""
  29185. },
  29186. "url": {
  29187. "raw": "{{url}}/api/basic/employee/?emplyee_name={{agent_name02}}",
  29188. "host": [
  29189. "{{url}}"
  29190. ],
  29191. "path": [
  29192. "api",
  29193. "basic",
  29194. "employee",
  29195. ""
  29196. ],
  29197. "query": [
  29198. {
  29199. "key": "emplyee_name",
  29200. "value": "{{agent_name02}}"
  29201. }
  29202. ]
  29203. }
  29204. },
  29205. "response": []
  29206. },
  29207. {
  29208. "name": "get_calendardata",
  29209. "event": [
  29210. {
  29211. "listen": "test",
  29212. "script": {
  29213. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29214. "exec": [
  29215. "pm.test(\"Status code is 200\", function () {",
  29216. " pm.response.to.have.status(200);",
  29217. "});"
  29218. ],
  29219. "type": "text/javascript"
  29220. }
  29221. }
  29222. ],
  29223. "request": {
  29224. "method": "GET",
  29225. "header": [
  29226. {
  29227. "key": "Authorization",
  29228. "value": "Rong {{shoptoken}}",
  29229. "type": "text"
  29230. }
  29231. ],
  29232. "body": {
  29233. "mode": "raw",
  29234. "raw": ""
  29235. },
  29236. "url": {
  29237. "raw": "{{url}}/api/staff/calendardata/?date=2019-01-01",
  29238. "host": [
  29239. "{{url}}"
  29240. ],
  29241. "path": [
  29242. "api",
  29243. "staff",
  29244. "calendardata",
  29245. ""
  29246. ],
  29247. "query": [
  29248. {
  29249. "key": "date",
  29250. "value": "2019-01-01"
  29251. }
  29252. ]
  29253. }
  29254. },
  29255. "response": []
  29256. },
  29257. {
  29258. "name": "get_calendardata_emplyname",
  29259. "event": [
  29260. {
  29261. "listen": "test",
  29262. "script": {
  29263. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29264. "exec": [
  29265. "pm.test(\"Status code is 200\", function () {",
  29266. " pm.response.to.have.status(200);",
  29267. "});"
  29268. ],
  29269. "type": "text/javascript"
  29270. }
  29271. }
  29272. ],
  29273. "request": {
  29274. "method": "GET",
  29275. "header": [
  29276. {
  29277. "key": "Authorization",
  29278. "value": "Rong {{shoptoken}}",
  29279. "type": "text"
  29280. }
  29281. ],
  29282. "body": {
  29283. "mode": "raw",
  29284. "raw": ""
  29285. },
  29286. "url": {
  29287. "raw": "{{url}}/api/staff/calendardata/?date=2019-01-01&employee={{agent_name01}}",
  29288. "host": [
  29289. "{{url}}"
  29290. ],
  29291. "path": [
  29292. "api",
  29293. "staff",
  29294. "calendardata",
  29295. ""
  29296. ],
  29297. "query": [
  29298. {
  29299. "key": "date",
  29300. "value": "2019-01-01"
  29301. },
  29302. {
  29303. "key": "employee",
  29304. "value": "{{agent_name01}}"
  29305. }
  29306. ]
  29307. }
  29308. },
  29309. "response": []
  29310. },
  29311. {
  29312. "name": "get_attendanceabnormal_dates",
  29313. "event": [
  29314. {
  29315. "listen": "test",
  29316. "script": {
  29317. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29318. "exec": [
  29319. "pm.test(\"Status code is 200\", function () {",
  29320. " pm.response.to.have.status(200);",
  29321. "});"
  29322. ],
  29323. "type": "text/javascript"
  29324. }
  29325. }
  29326. ],
  29327. "request": {
  29328. "method": "GET",
  29329. "header": [
  29330. {
  29331. "key": "Authorization",
  29332. "value": "Rong {{shoptoken}}",
  29333. "type": "text"
  29334. }
  29335. ],
  29336. "body": {
  29337. "mode": "raw",
  29338. "raw": ""
  29339. },
  29340. "url": {
  29341. "raw": "{{url}}/api/staff/attendanceabnormal/?year=2019&month=01",
  29342. "host": [
  29343. "{{url}}"
  29344. ],
  29345. "path": [
  29346. "api",
  29347. "staff",
  29348. "attendanceabnormal",
  29349. ""
  29350. ],
  29351. "query": [
  29352. {
  29353. "key": "year",
  29354. "value": "2019"
  29355. },
  29356. {
  29357. "key": "month",
  29358. "value": "01"
  29359. }
  29360. ]
  29361. }
  29362. },
  29363. "response": []
  29364. },
  29365. {
  29366. "name": "get_payrolladjustment_dates",
  29367. "event": [
  29368. {
  29369. "listen": "test",
  29370. "script": {
  29371. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29372. "exec": [
  29373. "pm.test(\"Status code is 200\", function () {",
  29374. " pm.response.to.have.status(200);",
  29375. "});"
  29376. ],
  29377. "type": "text/javascript"
  29378. }
  29379. }
  29380. ],
  29381. "request": {
  29382. "method": "GET",
  29383. "header": [
  29384. {
  29385. "key": "Authorization",
  29386. "value": "Rong {{shoptoken}}",
  29387. "type": "text"
  29388. }
  29389. ],
  29390. "body": {
  29391. "mode": "raw",
  29392. "raw": ""
  29393. },
  29394. "url": {
  29395. "raw": "{{url}}/api/staff/payrolladjustment/?year=2019&month=01",
  29396. "host": [
  29397. "{{url}}"
  29398. ],
  29399. "path": [
  29400. "api",
  29401. "staff",
  29402. "payrolladjustment",
  29403. ""
  29404. ],
  29405. "query": [
  29406. {
  29407. "key": "year",
  29408. "value": "2019"
  29409. },
  29410. {
  29411. "key": "month",
  29412. "value": "01"
  29413. }
  29414. ]
  29415. }
  29416. },
  29417. "response": []
  29418. },
  29419. {
  29420. "name": "get_performancecommissionperson",
  29421. "event": [
  29422. {
  29423. "listen": "test",
  29424. "script": {
  29425. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29426. "exec": [
  29427. "pm.test(\"Status code is 200\", function () {",
  29428. " pm.response.to.have.status(200);",
  29429. "});"
  29430. ],
  29431. "type": "text/javascript"
  29432. }
  29433. }
  29434. ],
  29435. "request": {
  29436. "method": "GET",
  29437. "header": [
  29438. {
  29439. "key": "Authorization",
  29440. "value": "Rong {{shoptoken}}",
  29441. "type": "text"
  29442. }
  29443. ],
  29444. "body": {
  29445. "mode": "raw",
  29446. "raw": ""
  29447. },
  29448. "url": {
  29449. "raw": "{{url}}/api/staff/performancecommissionperson/?monthly_commission=2018-11-01",
  29450. "host": [
  29451. "{{url}}"
  29452. ],
  29453. "path": [
  29454. "api",
  29455. "staff",
  29456. "performancecommissionperson",
  29457. ""
  29458. ],
  29459. "query": [
  29460. {
  29461. "key": "monthly_commission",
  29462. "value": "2018-11-01"
  29463. }
  29464. ]
  29465. }
  29466. },
  29467. "response": []
  29468. },
  29469. {
  29470. "name": "get_performancecommissionperson_emplyname",
  29471. "event": [
  29472. {
  29473. "listen": "test",
  29474. "script": {
  29475. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29476. "exec": [
  29477. "pm.test(\"Status code is 200\", function () {",
  29478. " pm.response.to.have.status(200);",
  29479. "});"
  29480. ],
  29481. "type": "text/javascript"
  29482. }
  29483. }
  29484. ],
  29485. "request": {
  29486. "method": "GET",
  29487. "header": [
  29488. {
  29489. "key": "Authorization",
  29490. "value": "Rong {{shoptoken}}",
  29491. "type": "text"
  29492. }
  29493. ],
  29494. "body": {
  29495. "mode": "raw",
  29496. "raw": ""
  29497. },
  29498. "url": {
  29499. "raw": "{{url}}/api/staff/performancecommissionperson/?monthly_commission=2018-11-01&user__user__username__contains={{agent_name01}}",
  29500. "host": [
  29501. "{{url}}"
  29502. ],
  29503. "path": [
  29504. "api",
  29505. "staff",
  29506. "performancecommissionperson",
  29507. ""
  29508. ],
  29509. "query": [
  29510. {
  29511. "key": "monthly_commission",
  29512. "value": "2018-11-01"
  29513. },
  29514. {
  29515. "key": "user__user__username__contains",
  29516. "value": "{{agent_name01}}"
  29517. }
  29518. ]
  29519. }
  29520. },
  29521. "response": []
  29522. },
  29523. {
  29524. "name": "get_salarycalculation_dates",
  29525. "event": [
  29526. {
  29527. "listen": "test",
  29528. "script": {
  29529. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29530. "exec": [
  29531. "pm.test(\"Status code is 200\", function () {",
  29532. " pm.response.to.have.status(200);",
  29533. "});"
  29534. ],
  29535. "type": "text/javascript"
  29536. }
  29537. }
  29538. ],
  29539. "request": {
  29540. "method": "GET",
  29541. "header": [
  29542. {
  29543. "key": "Authorization",
  29544. "type": "text",
  29545. "value": "Rong {{shoptoken}}"
  29546. }
  29547. ],
  29548. "body": {
  29549. "mode": "raw",
  29550. "raw": ""
  29551. },
  29552. "url": {
  29553. "raw": "{{url}}/api/staff/salarycalculation/?monthly_salary=2018-12-01",
  29554. "host": [
  29555. "{{url}}"
  29556. ],
  29557. "path": [
  29558. "api",
  29559. "staff",
  29560. "salarycalculation",
  29561. ""
  29562. ],
  29563. "query": [
  29564. {
  29565. "key": "monthly_salary",
  29566. "value": "2018-12-01"
  29567. }
  29568. ]
  29569. }
  29570. },
  29571. "response": []
  29572. },
  29573. {
  29574. "name": "get_salarycalculation_dates_emplyname",
  29575. "event": [
  29576. {
  29577. "listen": "test",
  29578. "script": {
  29579. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29580. "exec": [
  29581. "pm.test(\"Status code is 200\", function () {",
  29582. " pm.response.to.have.status(200);",
  29583. "});"
  29584. ],
  29585. "type": "text/javascript"
  29586. }
  29587. }
  29588. ],
  29589. "request": {
  29590. "method": "GET",
  29591. "header": [
  29592. {
  29593. "key": "Authorization",
  29594. "value": "Rong {{shoptoken}}",
  29595. "type": "text"
  29596. }
  29597. ],
  29598. "body": {
  29599. "mode": "raw",
  29600. "raw": ""
  29601. },
  29602. "url": {
  29603. "raw": "{{url}}/api/staff/salarycalculation/?monthly_salary=2018-12-01&user__user__username__contains={{agent_name01}}",
  29604. "host": [
  29605. "{{url}}"
  29606. ],
  29607. "path": [
  29608. "api",
  29609. "staff",
  29610. "salarycalculation",
  29611. ""
  29612. ],
  29613. "query": [
  29614. {
  29615. "key": "monthly_salary",
  29616. "value": "2018-12-01"
  29617. },
  29618. {
  29619. "key": "user__user__username__contains",
  29620. "value": "{{agent_name01}}"
  29621. }
  29622. ]
  29623. }
  29624. },
  29625. "response": []
  29626. },
  29627. {
  29628. "name": "get_salarysetting_emplyname",
  29629. "event": [
  29630. {
  29631. "listen": "test",
  29632. "script": {
  29633. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29634. "exec": [
  29635. "pm.test(\"Status code is 200\", function () {",
  29636. " pm.response.to.have.status(200);",
  29637. "});"
  29638. ],
  29639. "type": "text/javascript"
  29640. }
  29641. }
  29642. ],
  29643. "request": {
  29644. "method": "GET",
  29645. "header": [
  29646. {
  29647. "key": "Authorization",
  29648. "value": "Rong {{shoptoken}}",
  29649. "type": "text"
  29650. }
  29651. ],
  29652. "body": {
  29653. "mode": "raw",
  29654. "raw": ""
  29655. },
  29656. "url": {
  29657. "raw": "{{url}}/api/staff/salarysetting/?employee={{agent_name01}}",
  29658. "host": [
  29659. "{{url}}"
  29660. ],
  29661. "path": [
  29662. "api",
  29663. "staff",
  29664. "salarysetting",
  29665. ""
  29666. ],
  29667. "query": [
  29668. {
  29669. "key": "employee",
  29670. "value": "{{agent_name01}}"
  29671. }
  29672. ]
  29673. }
  29674. },
  29675. "response": []
  29676. },
  29677. {
  29678. "name": "get_monthrestdays_emplyname",
  29679. "event": [
  29680. {
  29681. "listen": "test",
  29682. "script": {
  29683. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29684. "exec": [
  29685. "pm.test(\"Status code is 200\", function () {",
  29686. " pm.response.to.have.status(200);",
  29687. "});"
  29688. ],
  29689. "type": "text/javascript"
  29690. }
  29691. }
  29692. ],
  29693. "request": {
  29694. "method": "GET",
  29695. "header": [
  29696. {
  29697. "key": "Authorization",
  29698. "value": "Rong {{shoptoken}}",
  29699. "type": "text"
  29700. }
  29701. ],
  29702. "body": {
  29703. "mode": "raw",
  29704. "raw": ""
  29705. },
  29706. "url": {
  29707. "raw": "{{url}}/api/staff/monthrestdays/?employee_name={{agent_name01}}",
  29708. "host": [
  29709. "{{url}}"
  29710. ],
  29711. "path": [
  29712. "api",
  29713. "staff",
  29714. "monthrestdays",
  29715. ""
  29716. ],
  29717. "query": [
  29718. {
  29719. "key": "employee_name",
  29720. "value": "{{agent_name01}}"
  29721. }
  29722. ]
  29723. }
  29724. },
  29725. "response": []
  29726. },
  29727. {
  29728. "name": "get_staffperformancereport_daily_saletype",
  29729. "event": [
  29730. {
  29731. "listen": "test",
  29732. "script": {
  29733. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29734. "exec": [
  29735. "pm.test(\"Status code is 200\", function () {",
  29736. " pm.response.to.have.status(200);",
  29737. "});"
  29738. ],
  29739. "type": "text/javascript"
  29740. }
  29741. }
  29742. ],
  29743. "request": {
  29744. "method": "GET",
  29745. "header": [
  29746. {
  29747. "key": "Authorization",
  29748. "value": "Rong {{shoptoken}}",
  29749. "type": "text"
  29750. }
  29751. ],
  29752. "body": {
  29753. "mode": "raw",
  29754. "raw": ""
  29755. },
  29756. "url": {
  29757. "raw": "{{url}}/api/staff/staffperformancereport/?types=salesDaily&monthday={{ymd-date}}",
  29758. "host": [
  29759. "{{url}}"
  29760. ],
  29761. "path": [
  29762. "api",
  29763. "staff",
  29764. "staffperformancereport",
  29765. ""
  29766. ],
  29767. "query": [
  29768. {
  29769. "key": "types",
  29770. "value": "salesDaily"
  29771. },
  29772. {
  29773. "key": "monthday",
  29774. "value": "{{ymd-date}}"
  29775. }
  29776. ]
  29777. }
  29778. },
  29779. "response": []
  29780. },
  29781. {
  29782. "name": "get_staffperformancereport_month_saletype",
  29783. "event": [
  29784. {
  29785. "listen": "test",
  29786. "script": {
  29787. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29788. "exec": [
  29789. "pm.test(\"Status code is 200\", function () {",
  29790. " pm.response.to.have.status(200);",
  29791. "});"
  29792. ],
  29793. "type": "text/javascript"
  29794. }
  29795. }
  29796. ],
  29797. "request": {
  29798. "method": "GET",
  29799. "header": [
  29800. {
  29801. "key": "Authorization",
  29802. "type": "text",
  29803. "value": "Rong {{shoptoken}}"
  29804. }
  29805. ],
  29806. "body": {
  29807. "mode": "raw",
  29808. "raw": ""
  29809. },
  29810. "url": {
  29811. "raw": "{{url}}/api/staff/staffperformancereport/?types=salesMonthlyReport&monthday={{ymd-date}}",
  29812. "host": [
  29813. "{{url}}"
  29814. ],
  29815. "path": [
  29816. "api",
  29817. "staff",
  29818. "staffperformancereport",
  29819. ""
  29820. ],
  29821. "query": [
  29822. {
  29823. "key": "types",
  29824. "value": "salesMonthlyReport"
  29825. },
  29826. {
  29827. "key": "monthday",
  29828. "value": "{{ymd-date}}"
  29829. }
  29830. ]
  29831. }
  29832. },
  29833. "response": []
  29834. },
  29835. {
  29836. "name": "get_staffperformancereport_daily_contype",
  29837. "event": [
  29838. {
  29839. "listen": "test",
  29840. "script": {
  29841. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29842. "exec": [
  29843. "pm.test(\"Status code is 200\", function () {",
  29844. " pm.response.to.have.status(200);",
  29845. "});"
  29846. ],
  29847. "type": "text/javascript"
  29848. }
  29849. }
  29850. ],
  29851. "request": {
  29852. "method": "GET",
  29853. "header": [
  29854. {
  29855. "key": "Authorization",
  29856. "type": "text",
  29857. "value": "Rong {{shoptoken}}"
  29858. }
  29859. ],
  29860. "body": {
  29861. "mode": "raw",
  29862. "raw": ""
  29863. },
  29864. "url": {
  29865. "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionDaily&monthday={{ymd-date}}",
  29866. "host": [
  29867. "{{url}}"
  29868. ],
  29869. "path": [
  29870. "api",
  29871. "staff",
  29872. "staffperformancereport",
  29873. ""
  29874. ],
  29875. "query": [
  29876. {
  29877. "key": "types",
  29878. "value": "constructionDaily"
  29879. },
  29880. {
  29881. "key": "monthday",
  29882. "value": "{{ymd-date}}"
  29883. }
  29884. ]
  29885. }
  29886. },
  29887. "response": []
  29888. },
  29889. {
  29890. "name": "get_staffperformancereport_conmonth_contype",
  29891. "event": [
  29892. {
  29893. "listen": "test",
  29894. "script": {
  29895. "id": "0f0d7ef9-2a19-4ec9-a545-b2e8f14ef100",
  29896. "exec": [
  29897. "pm.test(\"Status code is 200\", function () {",
  29898. " pm.response.to.have.status(200);",
  29899. "});"
  29900. ],
  29901. "type": "text/javascript"
  29902. }
  29903. }
  29904. ],
  29905. "request": {
  29906. "method": "GET",
  29907. "header": [
  29908. {
  29909. "key": "Authorization",
  29910. "type": "text",
  29911. "value": "Rong {{shoptoken}}"
  29912. }
  29913. ],
  29914. "body": {
  29915. "mode": "raw",
  29916. "raw": ""
  29917. },
  29918. "url": {
  29919. "raw": "{{url}}/api/staff/staffperformancereport/?types=constructionMonthlyReport&monthday={{ymd-date}}",
  29920. "host": [
  29921. "{{url}}"
  29922. ],
  29923. "path": [
  29924. "api",
  29925. "staff",
  29926. "staffperformancereport",
  29927. ""
  29928. ],
  29929. "query": [
  29930. {
  29931. "key": "types",
  29932. "value": "constructionMonthlyReport"
  29933. },
  29934. {
  29935. "key": "monthday",
  29936. "value": "{{ymd-date}}"
  29937. }
  29938. ]
  29939. }
  29940. },
  29941. "response": []
  29942. }
  29943. ]
  29944. },
  29945. {
  29946. "name": "basic_search",
  29947. "item": [
  29948. {
  29949. "name": "get_supplier_name",
  29950. "event": [
  29951. {
  29952. "listen": "test",
  29953. "script": {
  29954. "id": "63740b30-aa43-4040-aefc-074668e0467f",
  29955. "exec": [
  29956. "pm.test(\"Status code is 200\", function () {",
  29957. " pm.response.to.have.status(200);",
  29958. "});"
  29959. ],
  29960. "type": "text/javascript"
  29961. }
  29962. }
  29963. ],
  29964. "request": {
  29965. "method": "GET",
  29966. "header": [
  29967. {
  29968. "key": "Authorization",
  29969. "value": "Rong {{shoptoken}}",
  29970. "type": "text"
  29971. }
  29972. ],
  29973. "body": {
  29974. "mode": "raw",
  29975. "raw": ""
  29976. },
  29977. "url": {
  29978. "raw": "{{url}}/api/basic/supplier/?name_contains={{supplier_name01}}",
  29979. "host": [
  29980. "{{url}}"
  29981. ],
  29982. "path": [
  29983. "api",
  29984. "basic",
  29985. "supplier",
  29986. ""
  29987. ],
  29988. "query": [
  29989. {
  29990. "key": "name_contains",
  29991. "value": "{{supplier_name01}}"
  29992. }
  29993. ]
  29994. }
  29995. },
  29996. "response": []
  29997. },
  29998. {
  29999. "name": "get_car_vipname",
  30000. "event": [
  30001. {
  30002. "listen": "test",
  30003. "script": {
  30004. "id": "63740b30-aa43-4040-aefc-074668e0467f",
  30005. "exec": [
  30006. "pm.test(\"Status code is 200\", function () {",
  30007. " pm.response.to.have.status(200);",
  30008. "});"
  30009. ],
  30010. "type": "text/javascript"
  30011. }
  30012. }
  30013. ],
  30014. "request": {
  30015. "method": "GET",
  30016. "header": [
  30017. {
  30018. "key": "Authorization",
  30019. "value": "Rong {{shoptoken}}",
  30020. "type": "text"
  30021. }
  30022. ],
  30023. "body": {
  30024. "mode": "raw",
  30025. "raw": ""
  30026. },
  30027. "url": {
  30028. "raw": "{{url}}/api/basic/car/?vip__name__contains={{vip_name01}}",
  30029. "host": [
  30030. "{{url}}"
  30031. ],
  30032. "path": [
  30033. "api",
  30034. "basic",
  30035. "car",
  30036. ""
  30037. ],
  30038. "query": [
  30039. {
  30040. "key": "vip__name__contains",
  30041. "value": "{{vip_name01}}"
  30042. }
  30043. ]
  30044. }
  30045. },
  30046. "response": []
  30047. },
  30048. {
  30049. "name": "get_car_vipphone",
  30050. "event": [
  30051. {
  30052. "listen": "test",
  30053. "script": {
  30054. "id": "63740b30-aa43-4040-aefc-074668e0467f",
  30055. "exec": [
  30056. "pm.test(\"Status code is 200\", function () {",
  30057. " pm.response.to.have.status(200);",
  30058. "});"
  30059. ],
  30060. "type": "text/javascript"
  30061. }
  30062. }
  30063. ],
  30064. "request": {
  30065. "method": "GET",
  30066. "header": [
  30067. {
  30068. "key": "Authorization",
  30069. "value": "Rong {{shoptoken}}",
  30070. "type": "text"
  30071. }
  30072. ],
  30073. "body": {
  30074. "mode": "raw",
  30075. "raw": ""
  30076. },
  30077. "url": {
  30078. "raw": "{{url}}/api/basic/car/?vip__phone_number__contains={{vip_phone01}}",
  30079. "host": [
  30080. "{{url}}"
  30081. ],
  30082. "path": [
  30083. "api",
  30084. "basic",
  30085. "car",
  30086. ""
  30087. ],
  30088. "query": [
  30089. {
  30090. "key": "vip__phone_number__contains",
  30091. "value": "{{vip_phone01}}"
  30092. }
  30093. ]
  30094. }
  30095. },
  30096. "response": []
  30097. },
  30098. {
  30099. "name": "get_car_carcode",
  30100. "event": [
  30101. {
  30102. "listen": "test",
  30103. "script": {
  30104. "id": "63740b30-aa43-4040-aefc-074668e0467f",
  30105. "exec": [
  30106. "pm.test(\"Status code is 200\", function () {",
  30107. " pm.response.to.have.status(200);",
  30108. "});"
  30109. ],
  30110. "type": "text/javascript"
  30111. }
  30112. }
  30113. ],
  30114. "request": {
  30115. "method": "GET",
  30116. "header": [
  30117. {
  30118. "key": "Authorization",
  30119. "value": "Rong {{shoptoken}}",
  30120. "type": "text"
  30121. }
  30122. ],
  30123. "body": {
  30124. "mode": "raw",
  30125. "raw": ""
  30126. },
  30127. "url": {
  30128. "raw": "{{url}}/api/basic/car/?code_contains={{car_code01}}",
  30129. "host": [
  30130. "{{url}}"
  30131. ],
  30132. "path": [
  30133. "api",
  30134. "basic",
  30135. "car",
  30136. ""
  30137. ],
  30138. "query": [
  30139. {
  30140. "key": "code_contains",
  30141. "value": "{{car_code01}}"
  30142. }
  30143. ]
  30144. }
  30145. },
  30146. "response": []
  30147. },
  30148. {
  30149. "name": "get_car_vipphone_vipname",
  30150. "event": [
  30151. {
  30152. "listen": "test",
  30153. "script": {
  30154. "id": "63740b30-aa43-4040-aefc-074668e0467f",
  30155. "exec": [
  30156. "pm.test(\"Status code is 200\", function () {",
  30157. " pm.response.to.have.status(200);",
  30158. "});"
  30159. ],
  30160. "type": "text/javascript"
  30161. }
  30162. }
  30163. ],
  30164. "request": {
  30165. "method": "GET",
  30166. "header": [
  30167. {
  30168. "key": "Authorization",
  30169. "type": "text",
  30170. "value": "Rong {{shoptoken}}"
  30171. }
  30172. ],
  30173. "body": {
  30174. "mode": "raw",
  30175. "raw": ""
  30176. },
  30177. "url": {
  30178. "raw": "{{url}}/api/basic/car/?vip__phone_number__contains={{vip_phone01}}&vip__name__contains={{vip_name01}}",
  30179. "host": [
  30180. "{{url}}"
  30181. ],
  30182. "path": [
  30183. "api",
  30184. "basic",
  30185. "car",
  30186. ""
  30187. ],
  30188. "query": [
  30189. {
  30190. "key": "vip__phone_number__contains",
  30191. "value": "{{vip_phone01}}"
  30192. },
  30193. {
  30194. "key": "vip__name__contains",
  30195. "value": "{{vip_name01}}"
  30196. }
  30197. ]
  30198. }
  30199. },
  30200. "response": []
  30201. },
  30202. {
  30203. "name": "get_brand_name",
  30204. "event": [
  30205. {
  30206. "listen": "test",
  30207. "script": {
  30208. "id": "63740b30-aa43-4040-aefc-074668e0467f",
  30209. "exec": [
  30210. "pm.test(\"Status code is 200\", function () {",
  30211. " pm.response.to.have.status(200);",
  30212. "});",
  30213. "",
  30214. ""
  30215. ],
  30216. "type": "text/javascript"
  30217. }
  30218. }
  30219. ],
  30220. "request": {
  30221. "method": "GET",
  30222. "header": [
  30223. {
  30224. "key": "Authorization",
  30225. "type": "text",
  30226. "value": "Rong {{shoptoken}}"
  30227. }
  30228. ],
  30229. "body": {
  30230. "mode": "raw",
  30231. "raw": ""
  30232. },
  30233. "url": {
  30234. "raw": "{{url}}/api/basic/brands/?name__contains={{brand_name01}}",
  30235. "host": [
  30236. "{{url}}"
  30237. ],
  30238. "path": [
  30239. "api",
  30240. "basic",
  30241. "brands",
  30242. ""
  30243. ],
  30244. "query": [
  30245. {
  30246. "key": "name__contains",
  30247. "value": "{{brand_name01}}"
  30248. }
  30249. ]
  30250. }
  30251. },
  30252. "response": []
  30253. }
  30254. ]
  30255. }
  30256. ]
  30257. }