Best JavaScript code snippet using frisby
appUrls.js
Source:appUrls.js
1/**2 * å¼åå°å3 */4//export const BASEURL = 'http://dev.api-gateway.dycd.com/';5/**6 * æµè¯å°å7 */8// export const BASEURL = 'http://api-gateway.test.dycd.com/';9/**10 * æµè¯å°å211 */12// export const BASEURL = 'http://10.3.11.99:80/';13/**14 * æ£å¼å°å15 */16export const BASEURL = 'https://gatewayapi.dycd.com/';17/**18 * é¢åå¸å°å19 */20// export const BASEURL = 'https://stgatewayapi.dycd.com/';21/**22 * çæ¬å·123 */24export const V = "v1/";25/**26 * çæ¬å·227 *28 export const V2 = "v2/";29 /**30 * çæ¬å·331 */32// export const V3 = "v3/";33/**34 * å享äºæ车æµè¯å°å35 */36export const FENXIANGTEST = 'http://test.bms.dycd.com/platform/car_detail.html';37/**38 * å享äºææ£å¼å°å39 */40export const FENXIANGOPEN = 'http://m.dycd.com/platform/car_detail.html';41/**42 * å享æ°æ车æµè¯å°å43 */44export const CAR_NEW_SHARE_TEST = 'http://test.bms.dycd.com/platform/car_detail_share.html';45/**46 * å享æ°ææ£å¼å°å47 */48export const CAR_NEW_SHARE_OPEN = 'http://m.dycd.com/platform/car_detail_share.html';49/**50 * ä¸ä¼ å¾ç51 */52export const INDEX_UPLOAD = BASEURL + V + 'index/upload';53/**54 *å±æ§é
ç½®55 */56export const CAR_CONFIG = BASEURL + V + 'car/config';57/**58 * è·å车åç59 */60export const CAR_HOME_BRAND = BASEURL + V + 'home/brand';61/**62 * è·å车系63 */64export const CAR_HOME_SERIES = BASEURL + V + 'home/series';65/**66 * å享次æ°ç»è®¡67 */68export const INVITE_SHARECOUNT = BASEURL + V + "invite/shareCount";// v1/index/captcha69/**70 * 注åé请ç å享æ¥å£71 */72export const INVITE_SHARE = BASEURL + V + "invite/share";// v1/index/captcha73/**74 * è·å车å75 */76export const CAR_HOME_MODELS = BASEURL + V + 'home/models';77/**78 * è·åç份79 */80export const GET_PROVINCE = BASEURL + V + 'home/getProvince';81/**82 * è·å83 */84export const INDEX_CITY = BASEURL + V + 'index/city';85/**86 * è·å车æºå表87 */88export const CAR_INDEX = BASEURL + V + 'car/index';89/**90 * è·å车è¾æç´¢åå²91 */92export const CAR_HiSTORY = BASEURL + V + 'car/searchHistory';93/**94 * è·å车è¾æç´¢å¹é
ä¿¡æ¯95 */96export const CAR_SEARCH_TOP = BASEURL + V + 'car/searchTop';97/**98 * äºæ车è¾è¯¦æ
99 */100export const CAR_DETAIL = BASEURL + V + 'car/detail';101/**102 * æ°è½¦è¯¦æ
æ¨è103 */104export const CAR_DETAIL_RELATION = BASEURL + V + 'car/detailRelation';105/**106 * å建ãä¿®æ¹åºå107 */108export const CAR_STOCK_SAVE = BASEURL + V + 'car.stock/save';109/**110 * è·å车è¾é
置信æ¯111 */112export const CAR_CONFIGURATION = BASEURL + V + 'car/modelsConfig';113/**114 * è·å车è¾ä¿å
»115 */116export const CAR_GET_ERPORT = BASEURL + V + 'che/report';117/**118 * è·å车è¾è¿ç« è®°å½119 */120export const CAR_GET_ILLEGAL = BASEURL + V + 'che/illegal';121/**122 * è·å车è¾åèä»·123 */124export const CAR_GET_REFERENCEPRICE = BASEURL + V + 'che/referencePrice';125/**126 * è·å车è¾æ®å¼ä»·æ ¼127 */128export const CAR_GET_RESIDUALS = BASEURL + V + 'che/residuals';129/**130 * 车è¾ä¸è®¢å131 */132export const CAR_ORDER_SAVE = BASEURL + V + 'order/save';133/**134 * è·å客æçµè¯å·ç 135 */136export const GET_CUSTOM_SERVICE = BASEURL + V + '/index/getCustomService';137/**138 * è·å客æçµè¯å·ç -åæ·å·ç 139 */140export const CAR_CUSTOMER_PHONE_NUMBER = BASEURL + V + '/index/companyPhone';141/**142 * è·åæç车æº-å·²ä¸æ¶/ä¸æ¶143 */144export const CAR_USER_CAR = BASEURL + V + 'user/car';145/**146 * è·ååºå车è¾å表147 */148export const CAR_STOCK_LIST = BASEURL + V + 'car.stock/lists';149/**150 * åºå车è¾åºåº151 */152export const CAR_STOCK_SOLD_OUT = BASEURL + V + 'car.stock/soldOut';153/**154 * ä¿®æ¹åºåæ°éåä»·æ ¼155 */156export const CAR_MODIFY_QUANTITY_ORICE = BASEURL + V + 'car/modify_quantity_price';157/**158 * æç车æº-å·²ä¸æ¶/ä¸æ¶-æä½159 */160export const CAR_STATUS = BASEURL + V + 'car/status';161/**162 * æç车æº-æ´æ°è½¦è¾åå¸æ¶é´163 */164export const CAR_REFRESH_TIME = BASEURL + V + 'car/refreshPublisherTime';165/**166 * æç车æº-å é¤è½¦è¾167 */168export const CAR_DELETE = BASEURL + V + 'car/delete';169/**170 * æç车æº-å·²å®æä½171 */172export const CAR_SALE = BASEURL + V + 'car/sale';173// /**174// * æç车æº-å建已å®æ¶æ¯175// */176// export const CAR_SASS_SALED = BASEURL + 'cheshang/sass/saled';177/**178 * æç车æº-å建已å®æ¶æ¯179 */180export const CAR_SASS_SALED = BASEURL + 'cheshang/sass_php/addSaledMessage';181/**182 * è·åæç车æº-æªå®¡æ ¸183 */184export const CAR_PERLIST = BASEURL + V + 'car/preList';185/**186 * å建æ¶è½¦ä»»å¡187 */188export const CAR_SASS_PUBLISH = BASEURL + 'cheshang/sass/publish';189/**190 * å建æ¶è½¦ç®¡çå表191 */192export const CAR_SASS_SELECT_LIST = BASEURL + 'cheshang/sass/selectList';193/**194 * æ¶è½¦ä»»å¡è¯¦æ
195 */196export const CAR_SASS_SELECT_MSG = BASEURL + 'cheshang/sass/selectMsg';197/**198 * æ´å¤è½¦è¾ä»»å¡å表199 */200export const CAR_CHESHANG_TASKS = BASEURL + 'cheshang/sass/tasks';201/**202 * å建æ´å¤ä»»å¡203 */204export const CAR_CHESHANG_PUBLISHTASK = BASEURL + 'cheshang/sass/publishTask';205/**206 * saas-åå¸è½¦è¾207 */208export const CAR_CHESHANG_PUBLISHCAR = BASEURL + 'cheshang/sass/publishCar';209/**210 * æ¥çæ´å¤ä»»å¡211 */212export const CAR_CHESHANG_TASKINFO = BASEURL + 'cheshang/sass/taskInfo';213/**214 * æ´å¤ä»»å¡ - è¯ä¼°å¸æ交任å¡215 */216export const CAR_CHESHANG_PGS_EDIT_TASK = BASEURL + 'cheshang/sass/pgsEditTask';217/**218 * æ´å¤ä»»å¡ - æ´å¤åæ交任å¡219 */220export const CAR_CHESHANG_ZBY_EDIT_TASK = BASEURL + 'cheshang/sass/zbyEditTask';221/**222 * æ´å¤ä»»å¡ - ç»çæ交任å¡223 */224export const CAR_CHESHANG_MANAGER_EDIT_TASK = BASEURL + 'cheshang/sass/managerEditTask';225/**226 * æ´å¤ä»»å¡ - è¿è¥ä¸å交任å¡227 */228export const CAR_CHESHANG_YYZY_EDIT_TASK = BASEURL + 'cheshang/sass/updateTaskByyyzy';229/**230 * è·åéå®å231 */232export const CAR_CHESHANG_GET_ALLCHILD = BASEURL + 'cheshang/sass_php/subAccountGetAllChild';233/**234 * å享æååè°235 */236export const CAR_CHESHANG_SHARE_MOMENT_COUNT = BASEURL + 'cheshang/sass/shareMomentCount';237/**238 * è·åç»è®°äººä¿¡æ¯239 */240export const GET_REGISTRANT = BASEURL + V + 'car.borrower/getRegistrants';241/**242 * æ·»å ç»è®°äººä¿¡æ¯243 */244export const ADD_REGISTRANT = BASEURL + V + 'car.borrower/addRegistrant';245/**246 * éªè¯è½¦æ¶å·247 */248export const VIN_CHECK = BASEURL + V + 'car/checkVin';249/**250 * æ ¹æ®VINè·å车è¾è¯¦æ
251 */252export const VININFO = BASEURL + V + 'car/vininfo';253/**254 * æ·»å &ä¿®æ¹è½¦æº255 */256export const CAR_SAVE = BASEURL + V + 'car/save';257/**258 * å¾å½¢éªè¯ç 259 */260export const IDENTIFYING = BASEURL + V + "index/captcha";// v1/index/captcha261/**262 * é¦é¡µæ°æ®263 */264export const HOME = BASEURL + V + "home";//265/**266 * éè转å267 */268export const FINANCE = BASEURL + V + "finance/index";//269/**270 * æ¶èå表271 */272export const FAVORITES = BASEURL + V + "user.favorites/index";//273/**274 * æµè§åå²275 */276export const USER_HISTORY = BASEURL + V + "user.history/index";//277/**278 * åæ¶æ¶è279 */280export const DELETE = BASEURL + V + "user.favorites/delete";//281/**282 * æ¸
空æµè§åå²283 */284export const USER_HISTORY_DELETE = BASEURL + V + "user.history/delete";//285/**286 * åå·¥å表287 */288export const USER_EMPLOYE = BASEURL + V + "user.employe/index";289/**290 * éæ©çå½åä¼ä¸ä¿¡æ¯291 */292export const USER_GET_SELECT_ENTERPRISE_INFO = BASEURL + V + "user/getSelectEnterpriseInfo";293/**294 * from @zhaojian295 *296 * è·åå款主ä½297 **/298export const LOAN_SUBJECT = 'api/v1/user/get_loan_subject_list';299/**300 * from @zhaojian301 *302 * è·åä¼ä¸ååå表303 **/304export const USER_GET_USER_LIST = 'api/v1/user/get_user_list';305/**306 * from @zhaojian307 *308 * è·åæ´æ°ä¿¡æ¯309 **/310export const APP_UPDATE = BASEURL + 'v1/system/index';311/**312 * from @zhaojian313 *314 * è·åè¿æ¬¾å表315 **/316export const REPAYMENT_GETLIST = 'api/v2/Repayment/getList';317/**318 * from @zhaojian319 *320 * è·åè¿æ¬¾åå²321 **/322export const GETHISTORICALLIST = 'api/v1/Repayment/getHistoricalList';323/**324 * from @zhaojian325 *326 * æ·»å éè´è´·è½¦è¾327 **/328export const PURCHAAUTO_ADDAUTO = 'api/v2/purchaAuto/addAuto';329/**330 * from @zhaojian331 *332 * è·åè§è²å表333 **/334export const USER_ROLE = BASEURL + 'v1/user/role';335/**336 * from @zhaojian337 *338 * æ·»å ||ç¼è¾åå·¥339 **/340export const USER_EMPLOYEE_SAVE = BASEURL + 'v1/user.employee/save';341/**342 * from @zhaojian343 *344 * æ¥çåå·¥345 **/346export const USER_EMPLOYEE_VIEW = BASEURL + 'v1/user.employee/view';347/**348 * from @zhaojian349 *350 * å¼é个人账æ·351 **/352export const USER_OPEN_ACCOUNT_PERSONAL = BASEURL + 'v1/user.open_account/personal';353/**354 * from @zhaojian355 *356 * ä¿®æ¹ä¸ªäººè´¦æ·357 **/358export const USER_ACCOUNT_SAVEPERSONAL = BASEURL + 'v1/user.account/savePersonal';359/**360 * from @zhaojian361 *362 * ä¿®æ¹äº¤æå¯ç 363 **/364export const USER_ACCOUNT_EDITPAYPWD = BASEURL + 'v1/user.account/editPayPwd';365/**366 * from @zhaojian367 *368 * éè¿åæ·IDè·åè´¢å¡æ¯å¦æè´¦æ·ç®¡çæé369 **/370export const GETACCOUNTSTATUSBYUID = BASEURL + 'v1/user.account/getAccountStatusByUID';371/**372 * from @zhaojian373 *374 * é置交æå¯ç 375 **/376export const USER_ACCOUNT_RESETPAYPWD = BASEURL + 'v1/user.account/resetPayPwd';377/**378 * from @zhaojian379 *380 * ä¿®æ¹ç»å®é¶è¡å¡ææºå·381 **/382export const USER_BANK_EDITPHONE = BASEURL + 'v1/user.bank/editPhone';383/**384 * from @zhaojian385 *386 * ç»å®é¶è¡å¡387 **/388export const USER_BANK_BIND = BASEURL + 'v1/user.bank/bind';389/**390 * from @zhaojian391 *392 * å¼éä¼ä¸è´¦æ·393 **/394export const USER_OPEN_ACCOUNT_COMPANY = BASEURL + 'v1/user.open_account/company';395/**396 * from @zhaojian397 *398 * ä¿®æ¹ä¼ä¸è´¦æ·399 **/400export const USER_ACCOUNT_SAVECOMPANY = BASEURL + 'v1/user.account/saveCompany';401/**402 * from @zhaojian403 *404 * è·åè´¦æ·ä¿¡æ¯405 **/406export const USER_ACCOUNT_INFO = BASEURL + 'v1/user.account/info';407/**408 * from @zhaojian409 *410 * è·åç¨æ·åè½æé411 **/412export const GETFUNCTIONBYTOKENENTER = BASEURL + 'v1/user/getFunctionByTokenEnter';413/**414 * from @zhaojian415 *416 * è·åè´¦æ·ç®¡çé¦é¡µ417 **/418export const USER_ACCOUNT_INDEX = BASEURL + 'v1/user.account/index';419/**420 * from @zhaojian421 *422 * è·å交ææµæ°´423 **/424export const USER_ACCOUNT_PAYLOG = BASEURL + 'v1/user.account/payLog';425/**426 * from @huangning427 *428 * è·å交ææµæ°´429 **/430export const ACCOUNT_PAYLOG = BASEURL + 'v2/user.account/payLog';431/**432 * from @huangning433 *434 * è·åè¿è¾ç±»å435 **/436export const GETTRANSPORTTYPE = BASEURL + 'v2/order.logistics/getTransportType';437/**438 * from @zhaojian439 *440 * 注éåå·¥441 **/442export const USER_EMPLOYEE_DESTROY = BASEURL + 'v1/user.employee/destroy';443/**444 * from @zhaojian445 *446 * 解ç»é¶è¡å¡447 **/448export const USER_BANK_UNBIND = BASEURL + 'v1/user.bank/unBind';449/**450 * from @zhaojian451 *452 * æç°æ¥å£453 **/454export const USER_ACCOUNT_WITHDRAW = BASEURL + 'v1/user.account/withdraw';455/**456 * from @zhaojian457 *458 * è·åç»å®é¶è¡å¡ä¿¡æ¯459 **/460export const USER_BANK_QUERY = BASEURL + 'v1/user.bank/query';461/**462 * from @zhaojian463 *464 * åå¨é误信æ¯465 **/466export const ADDACCOUNTMESSAGEINFO = BASEURL + 'v1/user.account/addAccountMessageInfo';467/**468 * from @zhaojian469 *470 * æ ¹æ®å¡å·è·åèæè´¦å·ä¿¡æ¯471 **/472export const USER_ACCOUNT_COMPANYINFO = BASEURL + 'v1/user.account/companyInfo';473/**474 * from @zhaojian475 *476 * çæ订ååå477 **/478export const CONTRACT_APPLYPLSEAL = BASEURL + 'v1/contract/applyPlSeal';479/**480 * from @zhaojian481 *482 * ç¨æ·å起转账483 **/484export const USER_ACCOUNT_TRANSFER = BASEURL + 'v1/user.account/transfer';485/**486 * from @zhaojian487 *488 * æ´æ°éè´è´·è½¦è¾489 **/490export const PURCHAAUTO_UPDATEAUTO = 'api/v2/purchaAuto/updateAuto';491/**492 * from @zhaojian493 *494 * è·åè¿æ¬¾è®¡åå表495 **/496export const GETPLANLIST = 'api/v2/Repayment/getPlanList';497/**498 * from @zhaojian499 *500 * è·åè¿æ¬¾è®¡å详æ
501 **/502export const GETPLANINFO = 'api/v2/Repayment/getPlanInfo';503/**504 * from @zhaojian505 *506 * æ°è·åè¿æ¬¾è®¡å详æ
507 **/508export const REPAYMENT_GET_PLAN_INFO = 'api/v5/Repayment/get_plan_info';509/**510 * from @zhaojian511 *512 * è·åéè´è´·è½¦è¾ç
§çåç±»513 **/514export const PURCHAAUTO_GETPURCHAAUTOPICCATE = 'api/v2/purchaAuto/getPurchaAutoPicCate';515/**516 * from @zhaojian517 *518 * è·åè¿æ¬¾è¯¦æ
519 **/520export const REPAYMENT_GETINFO = 'api/v2/Repayment/getInfo';521/**522 * from @zhaojian523 *524 * è·åæåè¿æ¬¾è¯¦æ
525 **/526export const NEWREPAYMENT_CREDIT_APPLY_REPAYMENT = 'api/v5/NewRepayment/credit_apply_repayment';527/**528 * from @zhaojian529 *530 * è·åæ°è¿æ¬¾è¯¦æ
531 **/532export const NEWREPAYMENT_GET_INFO = 'api/v5/NewRepayment/get_info';533/**534 * from @zhaojian535 *536 * è·åæ°è¿æ¬¾è®¡å537 **/538export const REPAYMENT_GET_ADJUST_INFO = 'api/v5/Repayment/get_adjust_info';539/**540 * from @zhaojian541 *542 * ç³è¯·æåè¿æ¬¾543 **/544export const APPLYREPAYMENT = 'api/v1/Repayment/applyRepayment';545/**546 * from @zhaojian547 *548 * å个ä¼ä¸ä¼æ å¸549 **/550export const COUPON_LISTBYUID = BASEURL + 'v1/user.coupon/listByUid';551/**552 * from @zhaojian553 *554 * æ°ç³è¯·æåè¿æ¬¾555 **/556export const NEWREPAYMENT_APPLY_REPAYMENT = 'api/v5/NewRepayment/apply_repayment';557/**558 * from @zhaojian559 *560 * è·åä¼æ å¸å表561 **/562export const REPAYMENT_GET_ADJUST_USE = 'api/v5/Repayment/get_adjust_use';563/**564 * from @zhaojian565 *566 * 使ç¨ä¼æ å¸567 **/568export const REPAYMENT_GET_ADJUST_SAVE = 'api/v5/Repayment/get_adjust_save';569/**570 * from @zhaojian571 *572 * è·ååºèè¿æ¬¾è®¡å详æ
573 **/574export const REPAYMENT_GETONLINEINFO = 'api/v2/Repayment/getOnlineInfo';575/**576 * from @zhaojian577 *578 * è·åååæ°æ®579 **/580export const GET_CONTRACT_DATA = 'api/v1/account/get_contract_data';581/**582 * from @zhaojian583 *584 * è·åå款åååæ°æ®585 **/586export const CONTRACTBYLIST = 'api/V1/Contract/contractbylist';587/**588 * from @zhaojian589 *590 * 线ä¸åºå®¹è·åååæ°æ®591 **/592export const CONTRACT_LOAN_CONTRACT_LIST = 'api/v1/contract/loan_contract_list';593/**594 * from @zhaojian595 *596 * ç¾ç½²åå597 **/598export const CONTRACT_SIGN = 'api/v1/account/contract_sign';599/**600 * from @zhaojian601 *602 * æ°ç¾ç½²åå603 **/604export const SIGN_CONTRACT_BY_ONE = 'api/v1/contract/sign_contract_by_one';605/**606 * from @zhaojian607 *608 * è·ååºèè°æ´è¯¦æ
609 **/610export const REPAYMENT_GETADJUSTINFO = 'api/v2/Repayment/getAdjustInfo';611/**612 * from @zhaojian613 *614 * å
éæ¥çåå615 **/616export const CONTRACT_CONTRACTDETAIL = 'api/v1/Contract/contractDetail';617/**618 * from @zhaojian619 *620 * è·åå款é¦é¡µæ°æ®621 **/622export const GET_MNY = 'api/v3/account/get_mny';623/**624 * from @lhc625 *626 * è·åå款é¦é¡µæ°æ®627 **/628export const GET_APPLY_INFO = 'api/v3/account/get_apply_info';629/**630 * from @huangning631 *632 * è·åå款é¦é¡µæ°æ®633 * è·åå款详æ
634 **/635export const CARLOAN_LOAN_INFO = 'api/v3/carloan/loan_info';636/**637 * from @lhc638 *639 * è·åå款è¿åº¦å表640 **/641export const GET_PAYMENT_SCHEDULE_ALL = 'api/v1/account/get_payment_schedule'642/**643 * from @lhc644 *645 * ä¿®æ¹å款éé¢646 **/647export const SET_APPLY_MNY = 'api/v3/account/set_apply_mny'648/**649 * from é»å®650 *651 * 车æµè´· ä¿®æ¹å款éé¢652 **/653export const CARLOAN_SET_APPLY_MNY = 'api/v3/carloan/set_apply_mny'654/**655 * from @lhc656 * è·å订å车è¾å表657 **/658export const GET_APPLY_CARLIST = 'api/v2/account/get_apply_carlist';659/**660 * from @lhc661 * å é¤è½¦è¾662 **/663export const DELETEAUTO = 'api/v2/purchaAuto/deleteAuto'664/**665 * from @lhc666 * è·å订å车è¾è¯¦æ
667 **/668export const GET_CAR_INFO = 'api/v1/account/get_car_info'669/**670 * from @lhc671 * åæ¶å款å车/åºå®¹672 **/673export const CANCEL_LOAN = 'api/v3/account/cancel_loan'674/**675 * from @huangning676 * åæ¶å款677 **/678export const CARLOAN_CANCEL_LOAN = 'api/v3/carloan/cancel_loan'679/**680 * from @zhaojian681 *682 * è·åå款记å½683 **/684export const GET_APPLY_LIST = 'api/v3/account/get_apply_list';685/**686 * from @zhaojian687 *688 * éæ©å款主ä½689 **/690export const OPT_LOAN_SUBJECT = 'api/v1/user/opt_loan_subject';691/**692 * from @zhaojian693 *694 * å车å款信æ¯695 **/696export const GET_APPLY_LOAN_DATA = 'api/v3/account/get_apply_loan_data';697/**698 * from @lhc699 *700 * éè´è´·å款车è¾å表701 **/702export const AUTOLIST = 'api/v2/purchaAuto/autoList'703/**704 * from @lhc705 *706 * 订åèèµè½¦è¾å表707 **/708export const DDAUTOLIST = 'api/v1/Order/autoList'709/**710 * from @huangning711 *712 * ç³è¯·å±æ713 **/714export const DO_EXTENSION = 'api/v1/account/do_extension';715/**716 * from @huangning717 *718 * ç»å®OBD设å¤719 **/720export const BINDOBD = 'api/v1/purchaAuto/bindObd';721/**722 * from @huangning723 *724 * ç»å®OBDè®¾å¤ è®¢åèèµ725 **/726export const BINDOBDDDRZ = 'api/v5/PlatformOrder/bind_obd';727/**728 * è·åå¾®ä¼ç³è¯·é¡µé¢æ°æ®729 */730export const GETAPPLYDATA = "/api/v1/microchinese/get_apply_data";731/**732 * è·ååæ®æ°æ®å表733 */734export const GET_IOU_LIST = "/api/v1/microchinese/get_iou_list";735/**736 * 确认åæ®æä½737 */738export const CONFIRM_APPLY = "/api/v1/microchinese/confirm_apply";739/**740 * å¾®ä¼é¢åº¦ç³è¯·741 */742export const APPLY_MNY = "/api/v1/microchinese/apply_mny";743/**744 * è·åçä¿¡éªè¯ç 745 */746export const GET_SMS_VERIFY_CODE = "/api/v1/public/get_sms_verify_code";747/**748 * from @huangning749 *750 * æ£æµOBD751 **/752export const AUTODETECTOBD = "api/v1/purchaAuto/autoDetectObd";753/**754 * from @huangning755 *756 * æ´æ°è®¢åèèµè½¦è¾757 **/758export const DDUPDATEAUTO = "api/v1/Order/updateAuto";759/**760 * from @huangning761 *762 * è·åéè´è´·è½¦è¾ç
§çåç±»763 **/764export const GETPURCHAAUTOPICCATE = "api/v2/purchaAuto/getPurchaAutoPicCate";765/**766 * from @huangning767 *768 * è·å订åèèµè½¦è¾ç
§çåç±»769 **/770export const GETDINGDANAUTOPICCATE = "api/v1/Order/getOrderAutoPicCate";771/**772 * from @huangning773 *774 * è·åéè´è´·è½¦è¾å表775 **/776export const PURCHAAUTOAUTOLIST = "api/v1/purchaAuto/autoList";777/**778 * from @ZN779 *780 * éè´è´·éæ©æ¨¡å¼781 **/782export const APPLY_PATTERN_LIST = 'api/v3/account/apply_pattern_list';783/**784 * from @huangning785 *786 * éè´è´·ç¡®è®¤å款éé¢787 **/788export const ACCOUNTCONFIRM_AMOUNT = "api/v3/account/confirm_amount";789/**790 * from @huangning791 *792 * ç³è¯·å±æ-çæåå793 **/794export const DO_EXTENSIONPC = 'api/v3/account/extension_contract_pc';795/**796 * from @huangning797 *798 * ç³è¯·å±æ799 **/800export const APPLY_EXTENSION_CARLIST = 'api/v1/account/apply_extension_carlist';801/**802 * from @zhaojian803 *804 * ç³è¯·å款805 **/806export const APPLY_LOAN = 'api/v3/account/apply_loan'807/**808 * from huangning809 * 车æµè´·ç³è¯·å款810 */811export const CARLOAN_APPLY_LOAN = 'api/v3/carloan/apply_loan'812/**813 * from @huagnning814 *815 * è·å订åèèµè½¦è¾è¯¦æ
816 **/817export const AUTODETAIL = 'api/v1/Order/autoDetail'818/**819 * from @huagnning820 *821 * è·ååæ·ç»è®°äºº/æ¶è½¦äººå表822 **/823export const GETBUSINESSLIST = 'api/v1/Order/getBusinessList'824/**825 * çä¿¡éªè¯ç 826 *827 * device_code 设å¤ç å¿
å¡«828 * name æ件èµæº object 'name' åå¯ä»¥èªå®ä¹829 * user_id å¯ç©º830 */831export const SEND_SMS = BASEURL + V + "auth/sendSmsCode";832/**833 * ç»å½834 *835 *code çä¿¡éªè¯ç ãå¿
å¡«ã string836 *device_code 设å¤è¯å«ç ãå¿
å¡«ã string837 *img_code å¾çéªè¯ç ãå¿
å¡«ã string838 *phone ææºå·ãå¿
å¡«ã string839 *pwd å¯ç ãå¿
å¡«ã840 */841export const LOGIN = BASEURL + V + "auth/login";// auth/login842/**843 * 注å844 code çä¿¡éªè¯ç ãå¿
å¡«ã number845 confirm_pwd 确认å¯ç ãå¿
å¡«ã string846 device_code 设å¤ä»£å·ãå¿
å¡«ã string847 idcard_img 身份è¯ç
§çä¸ä¼ idãå¿
å¡«ã string848 license_img è¥ä¸æ§ç
§ç
§çä¸ä¼ idãå¿
å¡«ã string849 merchant_name åæ·å称ãå¿
å¡«ã string850 phone ææºå·ãå¿
å¡«ã string851 pwd å¯ç ãå¿
å¡«ã string852 user_name ç¨æ·å§åãå¿
å¡«ã string853 */854export const REGISTER = BASEURL + V + "auth/register";// auth/register855/**856 * 设置å¯ç 857 *858 * token=859 * device_code=860 * confirm_pwd 确认å¯ç ãå¿
å¡«ã string861 * pwd å¯ç ãå¿
å¡«ã862 */863export const SETPWD = BASEURL + V + "user/setPwd";864/**865 * ä¿®æ¹å¯ç 866 *867 * åéå å«ä¹ ç±»å å¤æ³¨868 * code çä¿¡éªè¯ç ãå¿
å¡«ã number869 * confirm_pwd 确认å¯ç ãå¿
å¡«ã string870 * phone ç¨æ·ææºå·ãå¿
å¡«ã number871 * pwd872 */873export const CHANGEPWD = BASEURL + V + "user/resetPwd";874/**875 * 注åï¼å¾çä¸ä¼ 876 */877export const AUTH_UPLOAD_FILE = BASEURL + V + "auth/upload";878/**879 * ååå表880 */881export const CONTRACTLIST = 'api/v1/Contract/contract_list';882/**883 * å
éååå表884 */885export const CONTRACT_CONTRACT_LIST = 'api/v1/Contract/contract_list';886/**887 * 转åºæååå表888 */889export const GET_CTC_CONTRACT_LIST_FOR_APP = 'api/v1/contract/get_ctc_contract_list_for_app';890/**891 * è·åååæ示信æ¯892 */893export const GET_CONTRACT_REMIND = 'api/v1/contract/get_contract_remind';894/**895 * 线ä¸ååå表896 */897export const CONTRACT_LOAN_LIST = 'api/v1/contract/loan_list';898/**899 * æ¥çåå详æ
900 */901export const CHECKOUT_CONTRACT = '/api/v1/Contract/contractDetail';902/**903 * from @ch904 *905 * ç¾ç½²åå906 **/907export const CONTRACT_SIGN_MINE = 'api/v1/Contract/signContract';908/**909 * è·ååæ·ç»è®°äºº/æ¶è½¦äººå表910 **/911export const GET_BUSINESS_LIST = 'api/v1/purchaseloanBusiness/getBusinessList';912/**913 * è·åéè´è´·è½¦è¾è¯¦æ
914 **/915export const PURCHA_AUTO_DETAIL = 'api/v2/purchaAuto/autoDetail';916/**917 * è·å车æ¶å¥½æ¯å¦å·²åå¨ä»¥åæ ¡éªè§å918 **/919export const PURCHA_CHECK_IN = 'api/v2/purchaAuto/checkVin';920/**921 * 订åå表922 */923export const ORDER_INDEX = BASEURL + V + 'order/index';924/**925 * 订åæç´¢926 */927export const ORDER_SEARCH = BASEURL + V + 'order/search';928/**929 * 订å详æ
930 */931export const ORDER_DETAIL = BASEURL + V + 'order/detail';932/**933 * 订éã尾款æ¯ä»934 */935export const ORDER_PAY = BASEURL + V + 'order/pay';936/**937 * å
¨æ¬¾æ¯ä»938 */939export const ORDER_PAY_FULL = BASEURL + 'v2/order.pay/full';940/**941 * æ¯ä»å
¨æ¬¾åè°942 */943export const ORDER_CHECK_PAY_FULL = BASEURL + 'v2/order.pay/fullCallback';944/**945 * 车è¾æ交价æ交946 */947export const ORDER_SAVE_PRICE = BASEURL + V + 'order/savePrice';948/**949 * å家&买家åæ¶è®¢å950 */951export const ORDER_CANCEL = BASEURL + V + 'order/cancel';952/**953 * 确认æ¶è½¦954 */955export const ORDER_CONFIRM_CAR = BASEURL + V + 'order/confirmCar';956/**957 * 买家æ¤éåæ¶è®¢å958 */959export const ORDER_REVERT = BASEURL + V + 'order/revert';960/**961 * å家å¤çåæ¶è®¢å962 */963export const ORDER_CANCEL_HANDLER = BASEURL + V + 'order/cancelHandler';964/**965 * 车è¾å®ä»·æ£æ¥966 */967export const ORDER_CHECK_PRICE = BASEURL + V + 'order/checkPrice';968/**969 * è·åçé订åç¶æ970 */971export const ORDER_FIELD_DICT = BASEURL + V + 'order/fieldDict';972/**973 * æ¯ä»ç¶æ974 */975export const ORDER_CHECK_PAY = BASEURL + V + 'order/checkPay';976/**977 * å家åæåæ¶è®¢å978 */979export const ORDER_ALLOW_CANCEL = BASEURL + V + 'order/allowCancel';980/**981 * å家ä¸åæåæ¶è®¢å982 */983export const ORDER_DENY_CANCEL = BASEURL + V + 'order/denyCancel';984/**985 * æ¥ç订åæ个类ååå986 */987export const ORDER_GET_CONTRACT = BASEURL + V + 'order/getContractByType';988/**989 * è·åå款人æå±ç½ååç¶æã订åèèµè°ç¨ã990 */991export const ORDER_GET_MERGE_WHITE_PO_STATUS = 'api/v3/account/get_merge_white_po_status';992/**993 * æ·»å 订åèèµè½¦è¾994 */995export const ADD_PLATFORM_ORDER_CAR = BASEURL + V + 'order_finance_car/add';996/**997 * èèµè®¢å贷款å
¨é¢æ£æ¥998 */999export const ORDER_LOAN_AMOUNT_CHECK = BASEURL + V + 'order_finance/orderLoanAmountCheck';1000/**1001 * èèµæµç¨ç¡®è®¤éªæ¶è¯·æ±1002 */1003export const CONFIRM_FINANCING_ORDER = BASEURL + V + 'order_finance/confirmFinancingOrder';1004/**1005 * èèµè®¢åæ¯ä»é¦ä»æ¬¾1006 */1007export const FIRST_PAYMENT_PAY = BASEURL + V + 'order_finance/firstPaymentPay';1008/**1009 * èèµè®¢åæ¯ä»é¦ä»æ¬¾åè°1010 */1011export const FIRST_PAYMENT_PAY_CALLBACK = BASEURL + V + 'order_finance/firstPaymentPayCallback';1012/**1013 * æ£æ¬¾åè®®åå1014 */1015export const FIRST_REPAYMENT_CONTRACT = '/api/v1/Contract/see_electron_repayment_contract';1016/**1017 * ç¾ç½²-æ£æ¬¾åè®®åå1018 */1019export const FIRST_REPAYMENT_CONTRACT_SIGN = '//api/v1/Contract/sign_electron_repayment_contract';1020//CRM TEST1021export const PRE = "http://10.3.10.35:8080/";1022/**1023 * é¨åºç®¡çweb页1024 */1025export const STORE_RECEPTION_MANAGE = PRE + "ceshi.do?mobile=15102373842";1026/**1027 * 软æä¸å¿web页1028 */1029export const SOFT_ARTICLES_CENTER = "http://saas-static.dycd.com/inc/carmarket/articleList.html";1030/**1031 * æ·»å æ½å¨å®¢æ·1032 */1033export const CUSTOMER_ADD_URL = BASEURL + "cheshang/customer/create";1034/**1035 * è·åå¾
åæ¶æ¯æ°é1036 */1037export const HANDLE_COUNT = BASEURL + "cheshang/sass/handleCount";1038/**1039 * è·åç³»ç»æ¶æ¯æ车å¸å¤´æ¡æ¶æ¯æ°é1040 */1041export const SELECT_UNREAD_MESSAGE_COUNT = BASEURL + "cheshang/sass/selectUnReadMessageCount";1042/**1043 * å¾
åäºé¡¹ãç³»ç»æ¶æ¯ã车å¸å¤´æ¡å表æ°æ®1044 */1045export const SELECT_MSG_BY_CONTENT_TYPE = BASEURL + "cheshang/sass/selectMsgByContentType";1046/**1047 * é¨åºæ¥è¯¢å½å人æ¯å¦åå¨1048 */1049export const SELECT_CUST_IF_EXIST = BASEURL + "cheshang/customer/selectCustIfExist";1050/**1051 * æ¯æ¥ï¼å¨ï¼ææé1052 */1053export const DAILY_REMINDER_RANK_LEVEL = BASEURL + "cheshang/sass/rankLevel";1054/**1055 * æ¯æ¥ï¼å¨ï¼æç»è®¡1056 */1057export const DAILY_REMINDER_STATISTICS = BASEURL + "cheshang/sass/statistics";1058/**1059 * è·åæ½å¨å®¢æ·å表1060 */1061export const POTENTIAL_CUSTOMER_LISTS = BASEURL + "cheshang/customer/lists";1062//export const POTENTIAL_CUSTOMER_LISTS = PRE + "customer/querycustomerList.do";1063/**1064 * è·åæ½å¨å®¢æ·è¯¦æ
1065 */1066//export const POTENTIAL_CUSTOMER_DETAIL = "http://10.3.10.35:8080/customer/selectDetail.do";1067export const POTENTIAL_CUSTOMER_DETAIL = BASEURL + "cheshang/customer/selectDetail";1068/**1069 * è·åææè·è¿ä¿¡æ¯1070 */1071export const SELECT_ALL_FLOW = BASEURL + "cheshang/customer/selectAllFlow";1072/**1073 * è·åå½åä»»å¡ä¿¡æ¯1074 */1075export const SELECT_FLOW = BASEURL + "cheshang/customer/selectFlow";1076/**1077 * æ交å½åä»»å¡ä¿¡æ¯1078 */1079export const CUSTOMER_FLOW = BASEURL + "cheshang/customer/customerFlow";1080/**1081 * æç´¢æ½å¨å®¢æ·å表1082 */1083export const QUERY_CUSTOMER_BY_SEARCH_KEY = BASEURL + "cheshang/customer/querycustomerBysearchkey";1084/**1085 * è·åä¿æ客æ·æ°æ®å表1086 */1087export const TENURE_PERFECT_IF_LIST = BASEURL + "cheshang/tenure_customer/tenurePerfectIfList";1088/**1089 * è·åä¿æ客æ·æ°æ®è¯¦æ
1090 */1091export const TENURE_CAR_PEOPLE_MSG = BASEURL + "cheshang/tenure_customer/tenureCarPeopleMsg";1092/**1093 * è·åä¿æ客æ·æ°æ®æ交1094 */1095export const UPDATE_CAR_WELFARE = BASEURL + "cheshang/tenure_customer/updateCarWelfare";1096/**1097 * æç´¢ä¿æ客æ·æ°æ®1098 */1099export const SELECT_BY_SEARCH = BASEURL + "cheshang/tenure_customer/selectBySearch";1100/**1101 * åæ·æ¯å¦å¨(æµå)ç½ååä¸æ¥è¯¢1102 */1103export const IS_IN_WHITE_LIST = BASEURL + "v1/account.cz_bank/isInWhiteList";1104/**1105 * from @dingnyonggang1106 *1107 * çæèµéè´¦æ·1108 */1109export const ZS_GENERATE_E_ACCOUNT = BASEURL + "v1/account.cz_bank/accountBuild";1110/**1111 * from @dingnyonggang1112 *1113 * åéçä¿¡éªè¯ç 1114 */1115export const ZS_SEND_SMS_CODE = BASEURL + "v1/account.cz_bank/sendSmsCode";1116/**1117 * from @dingnyonggang1118 *1119 * å¼æ·1120 */1121export const ZS_OPEN_ACCOUNT = BASEURL + "v1/account.cz_bank/customerAccountOpen";1122/**1123 * from @dingnyonggang1124 *1125 * æ ¹æ®é¶è¡å¡å·æ¥è¯¢èè¡å·1126 */1127export const ZS_PARSE_BANK = BASEURL + "v1/account.cz_bank/getBankNoByBankCard";1128/**1129 * from @dingnyonggang1130 *1131 * æ¥è¯¢åå¸1132 */1133export const ZS_GET_CITY = BASEURL + "v1/bankRoute.query/findCity";1134/**1135 * æ¥è¯¢æ¯å¦å¼å¯æµåé¶è¡å¯è§1136 */1137export const ZS_BANK_IS_SHOW = BASEURL + "v1/account.cz_bank/zsBankIsShow";1138/**1139 * from @dingnyonggang1140 *1141 * æµåè´¦æ·å
å¼1142 */1143export const ZS_DEPOSIT = BASEURL + "v1/account.cz_bank/deposit";1144/**1145 * from @dingnyonggang1146 *1147 * æµåè´¦æ·æç°1148 */1149export const ZS_WITHDRAW = BASEURL + "v1/account.cz_bank/withdraw";1150/**1151 * from @dingnyonggang1152 *1153 * æµåè´¦æ·æµæ°´1154 */1155export const ZS_WORTER_FLOW = BASEURL + "v2/user.account/payLog";1156/**1157 * from @dingnyonggang1158 *1159 * æµåè´¦æ·ä¿®æ¹é¶è¡é¢çææºå·1160 */1161export const ZS_BANK_MODIFY_MOBILE = BASEURL + "v1/account.cz_bank/modifyMobile";1162/**1163 * from @dingnyonggang1164 *1165 * æµåè´¦æ·ä¿®æ¹ç»å®çé¶è¡å¡å·1166 */1167export const ZS_MODIFY_BANK_CARD = BASEURL + "v1/account.cz_bank/modifyAccountInfo";1168/**1169 * from @dingnyonggang1170 *1171 * æµåè´¦æ·æ¥è¯¢äº¤æç¸å
³çéé¢ä¿¡æ¯ï¼å¯åéé¢ï¼å¯ç¨éé¢1172 */1173export const ZS_QUOTA = BASEURL + "v1/account.cz_bank/getPaymentRelatedInfo";1174/**1175 * from @dingnyonggang1176 *1177 * æµåè´¦æ·æ¥è¯¢äº¤æç¸å
³çéé¢ä¿¡æ¯ï¼å¯åéé¢ï¼å¯ç¨éé¢1178 */1179export const ZS_FETCH_STATUS = BASEURL + "v1/user.account/getTransferRecordStatus";1180/**1181 * from @dingnyonggang1182 *1183 * å¤æå½åæ¶é´æ¯å¦å¨æµåé¶è¡çæå¡æ¶é´æ®µå
1184 */1185export const ZS_IN_SERVICE = BASEURL + "v1/account.cz_bank/isOutOfService";1186/**1187 * from @dingnyonggang1188 *1189 * æ¥è¯¢å¤§è¡ä¿¡æ¯ï¼å¯¹å
¬)1190 */1191export const ZS_HEAD_BANK = BASEURL + "v1/bankRoute.query/findSubBankNo";1192/**1193 * from @dingnyonggang1194 *1195 * æ¥è¯¢æ¯è¡ä¿¡æ¯ï¼å¯¹å
¬ï¼1196 */1197export const ZS_SUB_BANK = BASEURL + "v1/bankRoute.query/findChildBankNo";1198/**1199 * è·åç¨æ·çè´¦æ·è¯¦æ
(æçè´¦æ·é¡µé¢-å¡ç页 è°ç¨)1200 */1201export const GET_USER_ACCOUNT_DETAIL = BASEURL + "v1/user.account/getUserAccountDetail";1202/**1203 * ä¿¡æå¼æ·1204 */1205export const OPEN_PERSON_TRUST_ACCOUNT = BASEURL + "v1/account.zsyxt/openPersonAccount";1206/**1207 * å¾®ä¼åæ®è¯¦æ
API(ä¿¡æå¼æ·)1208 */1209export const AGREEMENT_LISTS = BASEURL + "v1/contract/agreementLists";1210/**1211 * è·ååè½è®¤è¯ä¿¡æ¯1212 */1213export const USER_IDENTITY_GET_INFO = BASEURL + V + "user.identity/getInfo";1214/**1215 * æ·»å 个人认è¯ç³è¯·1216 */1217export const PERSONCERTIFICATE = BASEURL + V + "user.identity/applyAuthUserInfo";//æ·»å 个人认è¯ç³è¯·1218/**1219 *1220 * æ·»å ä¼ä¸è®¤è¯ç³è¯·1221 */1222export const ENTERPRISECERTIFICATE = BASEURL + V + "user.identity/applyEnterpriseInfo";//æ·»å ä¼ä¸è®¤è¯ç³è¯·1223/**1224 *1225 * 注å(æ°)1226 */1227export const ZHUCE = BASEURL + "v2/auth/register";//注å(æ°)1228/**1229 *1230 * éè¿ç¨æ·base_id,ä¼ä¸base_id æ¥çå®¡æ ¸ç¶æ1231 */1232export const GETCHECKSTATUS = BASEURL + V + "user.identity/getCheckStatus";//éè¿ç¨æ·base_id,ä¼ä¸base_id æ¥çå®¡æ ¸ç¶æ1233/**1234 *1235 * éæ°ç³è¯·ä¸ªäººè®¤è¯è·åç¨æ·ä¿¡æ¯1236 */1237export const GETAPPLYAUTHUSERINFO = BASEURL + V + "user.identity/getApplyAuthUserInfo";//éæ°ç³è¯·ä¸ªäººè®¤è¯è·åç¨æ·ä¿¡æ¯1238/**1239 *1240 * éæ°ç³è¯·ä¼ä¸è®¤è¯è·åä¼ä¸ä¿¡æ¯1241 */1242export const GETAPPLYENTERPRISEINFO = BASEURL + V + "user.identity/getApplyEnterpriseInfo";//éæ°ç³è¯·ä¼ä¸è®¤è¯è·åä¼ä¸ä¿¡æ¯1243/**1244 * ç¨æ·æ¯å¦"线ä¸æ¯ä»"ç½ååç¨æ·1245 */1246export const IS_CONFIG_USER_AUTH = BASEURL + "v2/order.index/isConfigUserAuth";1247/**1248 * é¼åèèµä»£ä»çæ¹å¼ä»æ¬¾1249 */1250export const DING_CHENG = BASEURL + "v2/order.pay/dingCheng";1251/**1252 * 线ä¸æ¯ä»æ¹å¼ä»æ¬¾1253 */1254export const OFFLINE_PAY = BASEURL + "v2/order.pay/offline";1255/**1256 * ç管费å表1257 */1258export const SUPERVISE_LIST = BASEURL + V + "finance/superviseList";1259/**1260 *1261 * ç管费æ¶é¶å°1262 */1263export const CASHIER_TABLE = BASEURL + V + "finance.supervise/cashierTable";1264/**1265 *1266 * ç管费æ¯ä»1267 */1268export const SUPERVISE_PAY = BASEURL + V + "finance.supervise/pay";1269/**1270 *1271 * ç管费æ¯ä»1272 */1273export const ACCOUNT_HOME = BASEURL + "v2/account.home/index";1274/**1275 *1276 * æ车人å表1277 */1278export const GET_GETER_LIST = BASEURL + "v2/order.car_picker/lists";1279/**1280 *1281 * æ°å¢æ车人1282 */1283export const ADD_GETER = BASEURL + "v2/order.car_picker/save";1284/**1285 *1286 * ç¼è¾æ车人1287 */1288export const PUT_GETER = BASEURL + "v2/order.car_picker/save";1289/**1290 *1291 * 设置é»è®¤æ车人1292 */1293export const SET_DEFAULT_GETER = BASEURL + "v2/order.car_picker/setDefault";1294/**1295 *1296 * å é¤æ车人1297 */1298export const DEL_GETER = BASEURL + "v2/order.car_picker/delete";1299/**1300 *1301 * å°åå表1302 */1303export const GET_FLOWSOTHER_LIST = BASEURL + "v2/order.address/lists";1304/**1305 *1306 * æ°å¢æ¶å车å°å1307 */1308export const ADD_ADDRESS = BASEURL + "v2/order.address/save";1309/**1310 *1311 * ç¼è¾å°å1312 */1313export const PUT_ADDRESS = BASEURL+ "v2/order.address/save";1314/**1315 *1316 * 设置é»è®¤å°å1317 */1318export const SET_DEFAULT_ADDRESS = BASEURL + "v2/order.address/setDefault";1319/**1320 *1321 * å é¤å°å1322 */1323export const DEL_ADDRESS = BASEURL + "v2/order.address/delete";1324/**1325 *1326 * è·ååå¸ä¸åºåå表1327 */1328export const GET_DIST_LIST = BASEURL + "v2/home.index/getDistList";1329/**1330 *1331 * ç©æµå¡«å订å1332 */1333export const WAYBILL = BASEURL + "v2/order.logistics/waybill";1334/**1335 *1336 * ç©æµè¿å订å(è¿å详æ
)1337 */1338export const WAYBILL_DETAIL = BASEURL + "v2/order.logistics/detail";1339/**1340 *1341 *ç©æµè¿ä»·æ°æ®æ£æ¥ï¼è·åè¿è¾ç±»å对åºçè´¹ï¼1342 */1343export const CHECKTRANSTYPE = BASEURL + "v2/order.logistics/check";1344/**1345 *1346 *ç©æµè¿ä»·æ¥è¯¢1347 */1348export const ORDER_LOGISTICS_QUERY = BASEURL + "v2//order.logistics/query";1349/**1350 *1351 *è·åå票信æ¯1352 */1353export const GETINVOICEINFO = BASEURL + "v2/order.invoice/info";1354/**1355 * æ¯ä»å°¾æ¬¾è·³è½¬1356 */1357export const PAY_BALANCE = BASEURL + "v2/order.pay/balance";1358/**1359 * å¾®æå¡è·ååºå¿1360 */1361export const REGION_COUNTY = BASEURL + "v2/api.region/county";1362/**1363 * å¾®æå¡è·ååºå¿1364 */1365export const REGION_CITY = BASEURL + "v2/api.region/city";1366/**1367 * å¾®æå¡è·ååºå¿1368 */1369export const REGION_PROVINCE = BASEURL + "v2/api.region/province";1370/**1371 * ç©æµæ交æ°æ®1372 */1373export const SUBMITTRANFERINFO = BASEURL + "v2/order.logistics/submit";1374/**1375 * ä¿åå票信æ¯1376 */1377export const SAVEINVOICE = BASEURL + "v2/order.invoice/add";1378/**1379 * è·åä»åºæå¨å°å1380 **/1381export const GETWAREHOUSEINFO = BASEURL + "v2/order.home/getWarehouseInfo";1382/**1383 * 车æ¯å¦å¨åºå®¡æ ¸1384 **/1385export const IS_CAR_STORE_CHECK = BASEURL + "v2/order.home/isCarStoreCheck";1386/**1387 * æ¯ä»åºå°åºçç©æµåä»å¨è´¹1388 */1389export const PAY_WAREHOUSE_TO_STORE_AMOUNT = BASEURL + "v2/order.home/payWarehouseToStoreAmount";1390/**1391 * ç³è¯·æ车å½åæ¯ä»ä»å¨è´¹1392 */1393export const PAY_STORE_AMOUNT = BASEURL + "v2/order.home/payStoreAmount";1394/**1395 * ç³è¯·æ车å½åæ¯ä»ä»å¨è´¹åè°1396 */1397export const PAY_STORE_AMOUNT_CALLBACK = BASEURL + "v2/order.home/payStoreAmountCallback";1398/**1399 * æ¯ä»åºå°åºçç©æµåä»å¨è´¹åè°1400 */1401export const PAY_WAREHOUSE_TO_STORE_AMOUNT_CALLBACK = BASEURL + "v2/order.home/payWarehouseToStoreAmountCallback";1402/**1403 * 转å车1404 */1405export const CHANGE_CAR_SINGLE_FINANCE = BASEURL + "v2/order.home/changeCarSingleFinance";1406/**1407 * ç³è¯·æ车å½1408 */1409export const APPLY_GET_CAR_LETTER = BASEURL + "v2/order.home/applyGetCarLetter";1410/**1411 * è·åè¿è¾ç±»å1412 */1413export const GETTRANSTYPE = BASEURL + "v2/order.home/getTransType";1414/**1415 * 2æ8æ¥ç©æµé¡¹ç®å
¥å£å¼å
³1416 */1417export const LOGISTICS_SWITCH = BASEURL + "v2/index/status";1418/**1419 * æ·»å è¿åæ车人1420 **/1421export const STORE_GETER_REQUEST = BASEURL + "v2/order.home/storeGeterRequest";1422/**1423 * è¿åæ车人信æ¯1424 **/...
user.service.ts
Source:user.service.ts
1import { Injectable } from '@angular/core';2import { HttpClient, HttpHeaders } from '@angular/common/http';3import { User } from '../_models';4import { config } from '../config/config';5import { Router } from '@angular/router';6@Injectable({ providedIn: 'root' })7export class UserService {8 userToken: any;9 constructor(private http: HttpClient, private router: Router) {10 11 const token = JSON.parse(localStorage.getItem('currentUser'));12 // console.log(token);13 if (token == null) {14 //this.userToken = token.token;15 this.router.navigate(['/pages/auth/login']);16 }17 }18 vesselRecordsServerSide(req)19 {20 return this.http.post(`${config.baseUrl}/vesselRecordsServerSide`,req)21 }22 23 clausesCategoryRecords(){24 // console.log('here in clauses Categoory services');25 return this.http.get(`${config.baseUrl}/clusesCategorylist`)26 }27 28 getUserList() {29 return this.http.get(`${config.baseUrl}/userList`);30 }31 getCompanyList() {32 return this.http.get(`${config.baseUrl}/companylist`);33 }34 getUsersCompanyList(req)35 {36 return this.http.post(`${config.baseUrl}/getUsersCompanyList`,req);37 }38 getChartererList() {39 return this.http.get(`${config.baseUrl}/charterlist`);40 }41 getbrokererList() {42 return this.http.get(`${config.baseUrl}/AllBrokerlist`);43 }44 addCompanyList(req) {45 return this.http.post(`${config.baseUrl}/companycreate`, req);46 }47 updateCompanyList(req) {48 return this.http.post(`${config.baseUrl}/companyupdate`, req);49 }50 updateCompanyadminList(req) {51 return this.http.post(`${config.baseUrl}/companyadminupdate`, req);52 }53 updateUserManagement(req) {54 return this.http.post(`${config.baseUrl}/userupdate`, req);55 }56 getCompanyadminList() {57 return this.http.get(`${config.baseUrl}/companyadminlist`);58 }59 updateCharterer(req) {60 return this.http.post(`${config.baseUrl}/charterupdate`, req);61 }62 getChartererDetail(req) {63 return this.http.post(`${config.baseUrl}/charterdetails`, req);64 }65 getbrokererDetail(req) {66 return this.http.post(`${config.baseUrl}/BrokerDetails`, req);67 }68 getvesselDetail(req) {69 return this.http.post(`${config.baseUrl}/vesseldetails`, req);70 }71 VesselList() {72 return this.http.get(`${config.baseUrl}/vessellist`);73 }74 getactivitylist() {75 return this.http.get(`${config.baseUrl}/vesselactivity`);76 }77 AddVessel(req) {78 return this.http.post(`${config.baseUrl}/vesseladd`, req);79 }80 getstateList() {81 return this.http.get(`${config.baseUrl}/vesselbase`);82 }83 getbuilderList() {84 return this.http.get(`${config.baseUrl}/vesselbuilder`);85 }86 getflagList() {87 return this.http.get(`${config.baseUrl}/vesselflag`);88 }89 getstatusList() {90 return this.http.get(`${config.baseUrl}/vesselstatus`);91 }92 getcommmentList() {93 return this.http.get(`${config.baseUrl}/vesselcomment`);94 }95 getenginedesignList() {96 return this.http.get(`${config.baseUrl}/auxenginedesignlist`);97 }98 getenginetypeList() {99 return this.http.get(`${config.baseUrl}/auxenginetypelist`);100 }101 getfueltypeList() {102 return this.http.get(`${config.baseUrl}/fueltypeslist`);103 }104 getnationalityList() {105 return this.http.get(`${config.baseUrl}/nationalitylist`);106 }107 getvesseltypeeList() {108 return this.http.get(`${config.baseUrl}/shiptypelist`);109 }110 getcompanyList() {111 return this.http.get(`${config.baseUrl}/companylist`);112 }113 getregistryList() {114 return this.http.get(`${config.baseUrl}/portregistrylist`);115 }116 addSubAlert(req) {117 return this.http.post(`${config.baseUrl}/subcategoryAdd`, req);118 }119 deleteVessel(req) {120 return this.http.post(`${config.baseUrl}/vesseldelete`, req);121 }122 updateVessel(req) {123 return this.http.post(`${config.baseUrl}/vesselupdate`, req);124 }125 addFile(req) {126 return this.http.post(`${config.baseUrl}/fileupload`, req);127 }128 roleActiveInactive(req) {129 return this.http.post(`${config.baseUrl}/userroleactive`, req);130 }131 selectList(req) {132 return this.http.post(`${config.baseUrl}/selectrolelist`, req);133 }134 moduleAction(req) {135 return this.http.post(`${config.baseUrl}/moduleactioncreate`, req);136 }137 PositionList() {138 return this.http.get(`${config.baseUrl}/vesselpositionlist`)139 }140 roleListshow() {141 return this.http.get(`${config.baseUrl}/roleAccessmoduleView`)142 }143 // charter party type144 getcharterpartytypeList() {145 return this.http.get(`${config.baseUrl}/charterpartylist`)146 }147 getcharterpartytypeadd(req) {148 return this.http.post(`${config.baseUrl}/charterpartytypecreate`, req);149 }150 getcharterpartytypeupdate(req) {151 return this.http.post(`${config.baseUrl}/charterpartypeupdate`, req);152 }153 getcharterpartytypedelete(req) {154 return this.http.post(`${config.baseUrl}/charterpartytypedelete`, req);155 }156 // cluses category detail157 getclusesCategoryList() {158 return this.http.get(`${config.baseUrl}/clusesCategorylist`)159 }160 getclusesCategoryadd(req) {161 return this.http.post(`${config.baseUrl}/clusesCategorycreate`, req);162 }163 getclusesCategoryupdate(req) {164 return this.http.post(`${config.baseUrl}/clusesCategoryupdate`, req);165 }166 getclusesCategorydelete(req) {167 return this.http.post(`${config.baseUrl}/clusesCategorydelete`, req);168 }169 // cluses term detail170 getclusesList() {171 return this.http.get(`${config.baseUrl}/cluseslist`)172 }173 getclusesadd(req) {174 return this.http.post(`${config.baseUrl}/clusescreate`, req);175 }176 getclusesupdate(req) {177 return this.http.post(`${config.baseUrl}/clusesupdate`, req);178 }179 getclusesdelete(req) {180 return this.http.post(`${config.baseUrl}/clusesdelete`, req);181 }182 //Cp Form 183 getFormList() {184 return this.http.get(`${config.baseUrl}/cpFromlist`)185 }186 getFormadd(req) {187 return this.http.post(`${config.baseUrl}/cpFromcreate`, req)188 }189 getFormedit(req) {190 return this.http.post(`${config.baseUrl}/cpFromupdate`,req)191 }192 getFormdelete(req) {193 return this.http.post(`${config.baseUrl}/cpFromdelete`,req)194 }195 // Draw Form Routes196 // Draw Form Records Service197 drawFormRecords()198 {199 // console.log('here in user services');200 return this.http.get(`${config.baseUrl}/drawFormRecords`)201 }202 // Draw Records Server Side203 drawRecordsServerSide(req)204 {205 // console.log(req);206 return this.http.post(`${config.baseUrl}/drawRecordsServerSide`, req)207 }208 // Draw Form Create Service209 DrawFormCreate(req)210 {211 return this.http.post(`${config.baseUrl}/DrawFormCreate`, req)212 }213 // Draw Form Update Service214 drawFormUpdate(req)215 {216 return this.http.post(`${config.baseUrl}/drawFormUpdate`,req)217 }218 drawFormUpdateByCharter(req)219 {220 return this.http.post(`${config.baseUrl}/drawFormUpdateByCharterCheck`,req)221 } 222 223 drawFormUpdateBybroker(req)224 {225 return this.http.post(`${config.baseUrl}/drawFormUpdateByBrokerCheck`,req)226 } 227 228 drawFormUpdateByowner(req)229 {230 return this.http.post(`${config.baseUrl}/drawFormUpdateByOwnerCheck`,req)231 }232 // Draw Form Remove Service233 drawDataRemove(req)234 {235 return this.http.post(`${config.baseUrl}/drawDataRemove`,req)236 }237 // CityForm Routes238 // CityForm Records Service239 CityRecords()240 {241 return this.http.get(`${config.baseUrl}/CityRecords`)242 }243 // CityForm Create Service244 CityCreate(req)245 {246 return this.http.post(`${config.baseUrl}/CityCreate`, req)247 }248 // CityForm Update Service249 CityUpdate(req)250 {251 return this.http.post(`${config.baseUrl}/CityUpdate`,req)252 }253 // CityForm Remove Service254 CityRemove(req)255 {256 return this.http.post(`${config.baseUrl}/CityRemove`,req)257 }258 // Draw Invite Routes259 // Draw Invite Records Server Side260 DrawInviteRecordsServerSide(req)261 {262 // console.log(req);263 return this.http.post(`${config.baseUrl}/DrawInviteRecordsServerSide`, req)264 }265 // Draw Invite Form Create Service266 DrawInviteCreate(req)267 {268 return this.http.post(`${config.baseUrl}/DrawInviteCreate`, req)269 }270 // Draw Invite Form Update Service271 DrawInviteUpdate(req)272 {273 return this.http.post(`${config.baseUrl}/DrawInviteUpdate`,req)274 }275 // Draw Invite Form Remove Service276 DrawInviteRemove(req)277 {278 return this.http.post(`${config.baseUrl}/DrawInviteRemove`,req)279 }280// ******************** // clause amendment281// clause amendment add282 customeClauseadd(req)283 {284 return this.http.post(`${config.baseUrl}/clauseamendmentCreate`,req)285 }286 customeClauseuUpdate(req)287 {288 return this.http.post(`${config.baseUrl}/clauseamendmentUpdate`,req)289 }290 customeClauseremove(req)291 {292 return this.http.post(`${config.baseUrl}/clauseamendmentRemove`,req)293 }294 295 customeClauseList()296 {297 return this.http.get(`${config.baseUrl}/clauseamendmentlist`)298 }299 clauseCategoryServerSideRecordsServerSide(req)300 {301 return this.http.post(`${config.baseUrl}/clauseCategoryServerSideRecords`,req)302 }303 // Clause Terms Data Records Server Side304 clauseTermsDetailsRecordsServerSide(req)305 {306 return this.http.post(`${config.baseUrl}/clauseTermsDetailsRecordsServerSide`,req)307 }308 // Clause Reviews Records Server Side309 clauseTermsReviewsRecordsServerSide(req)310 {311 return this.http.post(`${config.baseUrl}/clauseTermsReviewsRecordsServerSide`,req)312 }313 // Clause Reviews Records Server Side Custom314 clauseTermsReviewsRecordsServerSideCustom(req)315 {316 return this.http.post(`${config.baseUrl}/clauseTermsReviewsRecordsServerSideCustom`,req)317 }318 319 clauseTermsUpdate (req)320 {321 return this.http.post(`${config.baseUrl}/claueseDetailInsertUpdate`,req)322 }323 clauseCustomeTermsUpdate(req)324 {325 return this.http.post(`${config.baseUrl}/claueseDetailCustomInsertUpdate`,req)326 }327 // Clause Terms Review Insert Update328 claueseDetailInsertUpdate(req)329 {330 return this.http.post(`${config.baseUrl}/claueseDetailInsertUpdate`,req)331 }332 // Clause Category Records Server Side333 clauseCategoryServerSideRecords(req)334 {335 return this.http.post(`${config.baseUrl}/clauseCategoryServerSideRecords`,req)336 }337 // Notification Create338 notificationCreate(req)339 {340 return this.http.post(`${config.baseUrl}/notificationCreate`,req)341 }342 // Notification Records343 notificationRecords(req)344 {345 return this.http.post(`${config.baseUrl}/notificationRecords`,req)346 }347 // Charter Data Accept / Reject348 CharterDrawAcceptReject(req)349 {350 return this.http.post(`${config.baseUrl}/CharterDrawAcceptReject`,req)351 }352 // Charter Data Accept / Reject Status Update353 charterPartyRequestStatusUpdate(req)354 {355 return this.http.post(`${config.baseUrl}/charterPartyRequestStatusUpdate`,req)356 }357 // Draw Setver Side Records For Charterer358 drawRecordsServerSideCharterer(req)359 {360 return this.http.post(`${config.baseUrl}/drawRecordsServerSideCharterer`,req)361 }362 drawFormCopyRecords(req)363 {364 return this.http.post(`${config.baseUrl}/drawFormCopyRecords`,req)365 }366 companyRecordsServerSide(req)367 {368 return this.http.post(`${config.baseUrl}/companyRecordsServerSide`,req)369 }370 fetchTradingStdBidReady(req)371 {372 return this.http.post(`${config.baseUrl}/fetchTradingStdBidReady`,req)373 }374 DrawFormCopyCreate(req)375 {376 return this.http.post(`${config.baseUrl}/DrawFormCopyCreate`,req)377 }378 // Draw Request Create379 DrawRequestToChartererCreate(req)380 {381 return this.http.post(`${config.baseUrl}/DrawRequestToChartererCreate`,req)382 }383 // Clause Category Upload384 clauseCategoryUpload(req)385 {386 return this.http.post(`${config.baseUrl}/clauseCategoryUpload`,req)387 }388 // Draw Request Create389 mainClauseScreenDataRecords(req)390 {391 return this.http.post(`${config.baseUrl}/mainClauseScreenDataRecords`,req)392 }393 394 // Draw Request Create395 mainClauseScreenDataRecordsTrading(req)396 {397 return this.http.post(`${config.baseUrl}/mainClauseScreenDataRecordsTrading`,req)398 }399 // Trading Platform Routes400 TradingFormRecords()401 {402 return this.http.get(`${config.baseUrl}/TradingFormRecords`)403 }404 405 TradingFormCreate(req)406 {407 return this.http.post(`${config.baseUrl}/TradingFormCreate`,req)408 }409 410tradeStatusData(req)411{412 return this.http.post(`${config.baseUrl}/tradeStatusData`,req)413}414 TradingFormRecordsServerSide(req)415 {416 return this.http.post(`${config.baseUrl}/TradingFormRecordsServerSide`,req)417 }418 419 TradingFormUpdate(req)420 {421 return this.http.post(`${config.baseUrl}/TradingFormUpdate`,req)422 }423 424 TradingPlatformDataRemove(req)425 {426 return this.http.post(`${config.baseUrl}/TradingPlatformDataRemove`,req)427 }428 429 TradingPlatformAcceptReject(req)430 {431 return this.http.post(`${config.baseUrl}/TradingPlatformAcceptReject`,req)432 }433 434 TradingPlatformRequestToChartererCreate(req)435 {436 return this.http.post(`${config.baseUrl}/TradingPlatformRequestToChartererCreate`,req)437 }438 439 TradingPlatformRequestStatusUpdate(req)440 {441 return this.http.post(`${config.baseUrl}/TradingPlatformRequestStatusUpdate`,req)442 }443 444 TradingPlatformRecordsServerSideCharterer(req)445 {446 return this.http.post(`${config.baseUrl}/TradingPlatformRecordsServerSideCharterer`,req)447 }448 TradingCounterInsert(req)449 {450 return this.http.post(`${config.baseUrl}/TradingCounterInsert`,req)451 }452 getCounterNumber(req)453 {454 return this.http.post(`${config.baseUrl}/getCounterNumber`,req)455 }456 TradingData(req)457 {458 return this.http.post(`${config.baseUrl}/TradingData`,req)459 }460 CustomClauseInsert(req)461 {462 return this.http.post(`${config.baseUrl}/CustomClauseInsert`,req)463 }464 CustomClauseTermsInsert(req)465 {466 return this.http.post(`${config.baseUrl}/CustomClauseTermsInsert`,req)467 }468 customClauseRecords(req)469 {470 return this.http.post(`${config.baseUrl}/customClauseRecords`,req)471 }472 473 getCustomTermDataOfCustomClause(req)474 {475 return this.http.post(`${config.baseUrl}/getCustomTermDataOfCustomClause`,req)476 }477 CustomClauseTermsUpdateParentID(req)478 {479 return this.http.post(`${config.baseUrl}/CustomClauseTermsUpdateParentID`,req)480 }481 viewCustomTermDataOfCustomClause(req)482 {483 return this.http.post(`${config.baseUrl}/viewCustomTermDataOfCustomClause`,req)484 }485 getClauseTermDataForUpdate(req)486 {487 return this.http.post(`${config.baseUrl}/getClauseTermDataForUpdate`,req)488 }489 viewClauseTermUpdateRecordsOfMainClause(req)490 {491 return this.http.post(`${config.baseUrl}/viewClauseTermUpdateRecordsOfMainClause`,req)492 }493 getCustomClauseTermDataForUpdate(req)494 {495 return this.http.post(`${config.baseUrl}/getCustomClauseTermDataForUpdate`,req)496 }497 customClauseDetailsInsert(req)498 {499 return this.http.post(`${config.baseUrl}/customClauseDetailsInsert`,req)500 }501 viewCustomClauseTermUpdateRecordsOfMainClause(req)502 {503 return this.http.post(`${config.baseUrl}/viewCustomClauseTermUpdateRecordsOfMainClause`,req)504 }505 drawProgressUpdate(req)506 {507 return this.http.post(`${config.baseUrl}/drawProgressUpdate`,req)508 }509 tradingProgressUpdate(req)510 {511 return this.http.post(`${config.baseUrl}/tradingProgressUpdate`,req)512 }513 drawStatusInfoUpdate(req)514 {515 return this.http.post(`${config.baseUrl}/drawStatusInfoUpdate`,req)516 }517 tradingStatusInfoUpdate(req)518 {519 return this.http.post(`${config.baseUrl}/tradingStatusInfoUpdate`,req)520 }521 drawDataUpdate(req)522 {523 return this.http.post(`${config.baseUrl}/drawDataUpdate`,req)524 }525 fetchDrawData(req)526 {527 return this.http.post(`${config.baseUrl}/fetchDrawData`,req)528 }529 fetchTradingData(req)530 {531 return this.http.post(`${config.baseUrl}/fetchTradingData`,req)532 }533 tradingDataUpdate(req)534 {535 return this.http.post(`${config.baseUrl}/tradingDataUpdate`,req)536 }537 fetchCompanyData(req)538 {539 return this.http.post(`${config.baseUrl}/fetchCompanyData`,req)540 }541 updateCheckedClauses(req)542 {543 return this.http.post(`${config.baseUrl}/updateCheckedClauses`,req)544 }545 clauseCategoryRecordsServerSide(req)546 {547 return this.http.post(`${config.baseUrl}/clauseCategoryRecordsServerSide`,req)548 }549 cpFormData(req)550 {551 return this.http.post(`${config.baseUrl}/cpFormData`,req)552 }553 fetchVesselData(req)554 {555 return this.http.post(`${config.baseUrl}/fetchVesselData`,req)556 }557 customInputDrawDataUpdate(req)558 {559 return this.http.post(`${config.baseUrl}/customInputDrawDataUpdate`,req)560 }561 updateCheckedClausesTrading(req)562 {563 return this.http.post(`${config.baseUrl}/updateCheckedClausesTrading`,req)564 }565 customInputTradingDataUpdate(req)566 {567 return this.http.post(`${config.baseUrl}/customInputTradingDataUpdate`,req)568 }569 clauseCategoryStatusUpdate(req)570 {571 return this.http.post(`${config.baseUrl}/clauseCategoryStatusUpdate`,req)572 }573 cpFormStatusUpdate(req)574 {575 return this.http.post(`${config.baseUrl}/cpFormStatusUpdate`,req)576 }577 clauseTermsStatusUpdate(req)578 {579 return this.http.post(`${config.baseUrl}/clauseTermsStatusUpdate`,req)580 }581 // Owner Routes582 OwnerRecords()583 {584 return this.http.get(`${config.baseUrl}/OwnerRecords`)585 }586 OwnerCreate(req)587 {588 return this.http.post(`${config.baseUrl}/OwnerCreate`,req)589 }590 OwnerDetails(req)591 {592 return this.http.post(`${config.baseUrl}/OwnerDetails`,req)593 }594 OwnerEdit(req)595 {596 return this.http.post(`${config.baseUrl}/OwnerEdit`,req)597 }598 OwnerDelete(req)599 {600 return this.http.post(`${config.baseUrl}/OwnerDelete`,req)601 }602 signatureFileUpload(req)603 {604 return this.http.post(`${config.baseUrl}/signatureFileUpload`,req)605 }606 drawDataSignatureUpadate(req)607 {608 return this.http.post(`${config.baseUrl}/drawDataSignatureUpadate`,req)609 }610 tradingDataSignatureUpadate(req)611 {612 return this.http.post(`${config.baseUrl}/tradingDataSignatureUpadate`,req)613 }614 userRecordsServerSide(req)615 {616 return this.http.post(`${config.baseUrl}/userRecordsServerSide`,req)617 }618 TradingStandardFormCreate(req)619 {620 return this.http.post(`${config.baseUrl}/TradingStandardFormCreate`,req)621 }622 tradingEmailIDAndNotificationSend(req)623 {624 return this.http.post(`${config.baseUrl}/tradingEmailIDAndNotificationSend`,req)625 }626 getCompanyName(req)627 {628 return this.http.post(`${config.baseUrl}/getCompanyName`,req)629 }630 drawDataUpdateCommon(req)631 {632 return this.http.post(`${config.baseUrl}/drawDataUpdateCommon`,req)633 }634 sendNotificationToCharterer(req)635 {636 return this.http.post(`${config.baseUrl}/sendNotificationToCharterer`,req)637 }638 TradingPlatformRequestStatusUpdateCommon(req)639 {640 return this.http.post(`${config.baseUrl}/TradingPlatformRequestStatusUpdateCommon`,req)641 }642 updateChartererToTrade(req)643 {644 return this.http.post(`${config.baseUrl}/updateChartererToTrade`,req)645 }646 updateOwnerToTrade(req)647 {648 return this.http.post(`${config.baseUrl}/updateOwnerToTrade`,req)649 }650 updateChartererToDraw(req)651 {652 return this.http.post(`${config.baseUrl}/updateChartererToDraw`,req)653 }654 messageCenterCreate(req)655 {656 return this.http.post(`${config.baseUrl}/messageCenterCreate`,req)657 }658 messageCenterRecordsServerSide(req)659 {660 return this.http.post(`${config.baseUrl}/messageCenterRecordsServerSide`,req)661 }662 messageCenterDataUpdate(req)663 {664 return this.http.post(`${config.baseUrl}/messageCenterDataUpdate`,req)665 }666 // Chat Management Routes667 chatCreate(req)668 {669 return this.http.post(`${config.baseUrl}/chatCreate`,req)670 }671 chatRecordsServerSide(req)672 {673 return this.http.post(`${config.baseUrl}/chatRecordsServerSide`,req)674 }675 fetchChatDetails(req)676 {677 return this.http.post(`${config.baseUrl}/fetchChatDetails`,req)678 }679 chatDataUpdate(req)680 {681 return this.http.post(`${config.baseUrl}/chatDataUpdate`,req)682 }683 fetchRealTimeChatData(req)684 {685 return this.http.post(`${config.baseUrl}/fetchRealTimeChatData`,req)686 }687 realTimeChatRecordsServerSide(req)688 {689 return this.http.post(`${config.baseUrl}/realTimeChatRecordsServerSide`,req)690 }691 faqlist()692 {693 return this.http.get(`${config.baseUrl}/faqlist`)694 }695 tclist()696 {697 return this.http.get(`${config.baseUrl}/tclist`)698 }699 700 tradingMessageInsert(req)701 {702 return this.http.post(`${config.baseUrl}/tradingMessageInsert`,req)703 }704 tradingProgressInsert(req)705 {706 return this.http.post(`${config.baseUrl}/tradingProgressInsert`,req)707 }708 tradingDataUpdateCommon(req)709 {710 return this.http.post(`${config.baseUrl}/tradingDataUpdateCommon`,req)711 }712 tradingNotificationInsert(req)713 {714 return this.http.post(`${config.baseUrl}/tradingNotificationInsert`,req)715 }716 copyTradingData(req)717 {718 return this.http.post(`${config.baseUrl}/copyTradingData`,req)719 }720 chartererInviteOwnerForTrade(req)721 {722 return this.http.post(`${config.baseUrl}/chartererInviteOwnerForTrade`,req)723 }724 clauseCategoryRecordsServerSideTrading(req)725 {726 return this.http.post(`${config.baseUrl}/clauseCategoryRecordsServerSideTrading`,req)727 }728 ownerInviteChartererForTrade(req)729 {730 return this.http.post(`${config.baseUrl}/ownerInviteChartererForTrade`,req)731 }732 tradingProgressRecordsServerSide(req)733 {734 return this.http.post(`${config.baseUrl}/tradingProgressRecordsServerSide`,req)735 }736 newUsersRecords(req)737 {738 return this.http.post(`${config.baseUrl}/newUsersRecords`,req)739 }740 741 tradingRecordsServerSideAccordingToVessel(req)742 {743 return this.http.post(`${config.baseUrl}/tradingRecordsServerSideAccordingToVessel`,req)744 }745 tradingMessagesDataRecordsServerSide(req)746 {747 return this.http.post(`${config.baseUrl}/tradingMessagesDataRecordsServerSide`,req)748 }749 drawMessageInsert(req)750 {751 return this.http.post(`${config.baseUrl}/drawMessageInsert`,req)752 }753 drawNotificationInsert(req)754 {755 return this.http.post(`${config.baseUrl}/drawNotificationInsert`,req)756 }757 invitationEmailSend(req)758 {759 return this.http.post(`${config.baseUrl}/invitationEmailSend`,req)760 }761 invitedUserRecordsServerSide(req)762 {763 return this.http.post(`${config.baseUrl}/invitedUserRecordsServerSide`,req)764 }765 invitationEmailSendCompanyAdmin(req)766 {767 return this.http.post(`${config.baseUrl}/invitationEmailSendCompanyAdmin`,req)768 }769 770 changeOwnerShip(req)771 {772 return this.http.post(`${config.baseUrl}/changeOwnerShip`,req)773 }774 emailSendCommon(req)775 {776 return this.http.post(`${config.baseUrl}/emailSendCommon`,req)777 }778 ownerShipRecordsServerSide(req)779 {780 return this.http.post(`${config.baseUrl}/ownerShipRecordsServerSide`,req)781 }782 ...
request.js
Source:request.js
1import axios from "axios"2import qs from "qs"3import Vue from "vue"4import store from "../store"5//å¼åç¯å¢ä¸ä½¿ç¨6Vue.prototype.$imgurl = "http://localhost:3000"7let baseUrl = "/api";8// æå
9// Vue.prototype.$imgPre=""10// let baseUrl = "";11// 请æ±æ¦æª //请æ±æ¦æª åå° app.js å端ç»å½æ¦æªæå¼12axios.interceptors.request.use(req => {13 // console.log(req,"req");14 if (req.url != baseUrl + "/api/userlogin") {15 req.headers.authorization = store.state.userinfo.token;16 }17 return req18})19//ååºæ¦æª20axios.interceptors.response.use((res) => {21 console.group("=====æ¬æ¬¡è¯·æ±è·¯å¾æ¯:" + res.config.url)22 /**23 * æ示: ä½¿ç¨ console.group() æ¹æ³ç¨äºè®¾ç½®åç»ä¿¡æ¯çèµ·å§ä½ç½®ã24 * æ示: ä½¿ç¨ console. groupCollapsed() æ¹æ³æ¥è®¾ç½®æå çåç»ä¿¡æ¯ã25 */26 console.log("res", res);27 console.log(res.data.list, "res.data.list");28 console.groupEnd()29 return res;30})31// **************èå管ç******************32// èåå表 读åæ°æ®33export const reqmenulist = () => {34 return axios({35 url: baseUrl + "/api/menulist",36 method: "get",37 params: {38 istree: true39 }40 })41}42// èåæ·»å 43export const reqmenuadd = (params) => {44 return axios({45 url: baseUrl + "/api/menuadd",46 method: "post",47 data: qs.stringify(params)48 })49}50// èåå é¤ /api/menudelete 51export const reqMenudelete = (id) => {52 return axios({53 url: baseUrl + "/api/menudelete",54 method: "post",55 data: qs.stringify({ id: id })56 })57}58// èåè·åï¼ä¸æ¡ï¼ /api/menuinfo59export const reqMenuinfo = (id) => {60 return axios({61 url: baseUrl + "/api/menuinfo",62 method: "get",63 params: {64 id,65 }66 })67}68// èåä¿®æ¹69export const reqMenuedit = (params) => {70 return axios({71 url: baseUrl + "/api/menuedit",72 method: "post",73 data: qs.stringify(params)74 })75}76// **************è§è²ç®¡ç******************77// **1.è§è²æ·»å ** 78export const reqroleadd = (params) => {79 return axios({80 url: baseUrl + "/api/roleadd",81 method: "post",82 data: qs.stringify(params)83 })84}85// **2.è§è²å表** 86export const reqrolelist = (params) => {87 return axios({88 url: baseUrl + "/api/rolelist",89 method: "get",90 })91}92// 5.è§è²å é¤93export const reqroledelete = (id) => {94 return axios({95 url: baseUrl + "/api/roledelete",96 method: "post",97 data: qs.stringify({ id: id })98 })99}100// 3.è§è²è·åï¼ä¸æ¡ï¼101export const reqroleinfo = (id) => {102 return axios({103 url: baseUrl + "/api/roleinfo",104 method: "get",105 params: {106 id: id107 }108 })109}110// 4.è§è²ä¿®æ¹111export const reqroleedit = (params) => {112 return axios({113 url: baseUrl + "/api/roleedit",114 method: "post",115 data: qs.stringify(params)116 })117}118// **************è§è²ç®¡ç******************119// **1.管çåæ·»å ** 120export const requseradd = (params) => {121 return axios({122 url: baseUrl + "/api/useradd",123 method: "post",124 data: qs.stringify(params)125 })126}127// **2.管çåæ»æ°ï¼ç¨äºè®¡ç®å页ï¼**128export const requsercount = () => {129 return axios({130 url: baseUrl + "/api/usercount",131 method: "get",132 })133}134// **3.管çåå表ï¼å页ï¼** params={page:1,size:10}135export const requserlist = (params) => {136 return axios({137 url: baseUrl + "/api/userlist",138 method: "get",139 params: params140 })141}142// 4.管çåè·åï¼ä¸æ¡ï¼143export const requserinfo = (uid) => {144 return axios({145 url: baseUrl + "/api/userinfo",146 method: "get",147 params: {148 uid: uid149 }150 })151}152// 5.管çåä¿®æ¹153export const requseredit = (params) => {154 return axios({155 url: baseUrl + "/api/useredit",156 method: "post",157 data: qs.stringify(params)158 })159}160// 6.管çåå é¤161export const requserdelete = (uid) => {162 return axios({163 url: baseUrl + "/api/userdelete",164 method: "post",165 data: qs.stringify({ uid: uid })166 })167}168// 7.管çåç»å½169export const requserlogin = (params) => {170 return axios({171 url: baseUrl + "/api/userlogin",172 method: "post",173 data: qs.stringify(params)174 })175}176// **************åååç±»******************177// **1.ååå类添å ** 178export const reqcateadd = (params) => {179 let data = new FormData()180 /*data.append("pid", 1)181 data.append("cataanme", "123")182 data.append("img", File)183 data.append("status", 1)*/184 for (let i in params) {185 data.append(i, params[i])186 }187 return axios({188 url: baseUrl + "/api/cateadd",189 method: "post",190 data: data191 })192}193// **2.åååç±»å表** params={istree:true} {pid:0}194export const reqcatelist = (params) => {195 return axios({196 url: baseUrl + "/api/catelist",197 method: "get",198 params: params199 })200}201// 3.åååç±»è·åï¼ä¸æ¡ï¼202export const reqcateinfo = (id) => {203 return axios({204 url: baseUrl + "/api/cateinfo",205 method: "get",206 params: {207 id: id208 }209 })210}211// 4.ååå类修æ¹212export const reqcateedit = (params) => {213 let data = new FormData()214 for (let i in params) {215 data.append(i, params[i])216 }217 return axios({218 url: baseUrl + "/api/cateedit",219 method: "post",220 data: data221 })222}223// 5.åååç±»å é¤224export const reqcatedelete = (id) => {225 return axios({226 url: baseUrl + "/api/catedelete",227 method: "post",228 data: qs.stringify({ id: id })229 })230}231// **************ååè§æ ¼ç®¡ç******************232// ååè§æ ¼ç®¡ç233export const reqspecsadd = (params) => {234 return axios({235 url: baseUrl + "/api/specsadd",236 method: "post",237 data: qs.stringify(params)238 })239}240// ååè§æ ¼æ»æ°ï¼ç¨äºè®¡ç®å页ï¼241export const reqspecscount = () => {242 return axios({243 url: baseUrl + "/api/specscount",244 method: "get",245 })246}247// ååè§æ ¼å表ï¼å页ï¼248export const reqspecslist = (params) => {249 return axios({250 url: baseUrl + "/api/specslist",251 method: "get",252 params: params253 })254}255// ååè§æ ¼è·åï¼ä¸æ¡ï¼256export const reqspecsinfo = (id) => {257 return axios({258 url: baseUrl + "/api/specsinfo",259 method: "get",260 params: {261 id: id262 }263 })264}265// ååè§æ ¼ä¿®æ¹266export const reqspecsedit = (params) => {267 return axios({268 url: baseUrl + "/api/specsedit",269 method: "post",270 data: qs.stringify(params)271 })272}273// ååè§æ ¼å é¤274export const reqspecsdelete = (id) => {275 return axios({276 url: baseUrl + "/api/specsdelete",277 method: "post",278 data: qs.stringify({ id: id })279 })280}281// *************åå管ç*****************282// ååæ·»å 283export const reqgoodsadd = (params) => {284 let data = new FormData()285 for (let i in params) {286 data.append(i, params[i])287 }288 return axios({289 url: baseUrl + "/api/goodsadd",290 method: "post",291 data: data292 })293}294// ååæ»æ°ï¼ç¨äºè®¡ç®å页ï¼295export const reqgoodscount = () => {296 return axios({297 url: baseUrl + "/api/goodscount",298 method: "get",299 })300}301// ååå表ï¼å页ï¼302export const reqgoodslist = (params) => {303 return axios({304 url: baseUrl + "/api/goodslist",305 method: "get",306 params: params307 })308}309// ååè·åï¼ä¸æ¡ï¼310export const reqgoodsinfo = (params) => {311 return axios({312 url: baseUrl + "/api/goodsinfo",313 method: "get",314 params: params315 })316}317// ååä¿®æ¹318export const reqgoodsedit = (params) => {319 let data = new FormData()320 for (let i in params) {321 data.append(i, params[i])322 }323 return axios({324 url: baseUrl + "/api/goodsedit",325 method: "post",326 data: data327 })328}329// ååå é¤330export const reqgoodsdelete = (id) => {331 return axios({332 url: baseUrl + "/api/goodsdelete",333 method: "post",334 data: qs.stringify({ id: id })335 })336}337// *************ä¼å管ç*****************338// ä¼åå表339export const reqmemberlist = () => {340 return axios({341 url: baseUrl + "/api/memberlist",342 method: "get",343 })344}345//ä¼åè·åï¼ä¸æ¡ï¼346export const reqmemberinfo = (uid) => {347 return axios({348 url: baseUrl + "/api/memberinfo",349 method: "get",350 params: {351 uid: uid352 }353 })354}355// ä¼åä¿®æ¹356export const reqmemberedit = (params) => {357 return axios({358 url: baseUrl + "/api/memberedit",359 method: "post",360 data: qs.stringify(params)361 })362}363// *************è½®æå¾ç®¡ç*****************364// **1.è½®æå¾æ·»å ** 365export const reqbanneradd = (params) => {366 let data = new FormData()367 /*data.append("pid", 1)368 data.append("cataanme", "123")369 data.append("img", File)370 data.append("status", 1)*/371 for (let i in params) {372 data.append(i, params[i])373 }374 return axios({375 url: baseUrl + "/api/banneradd",376 method: "post",377 data: data378 })379}380// **2.è½®æå¾å表** ** 381export const reqbannerlist = () => {382 return axios({383 url: baseUrl + "/api/bannerlist",384 method: "get",385 })386}387// 3.è½®æå¾è·åï¼ä¸æ¡ï¼388export const reqbannerinfo = (id) => {389 return axios({390 url: baseUrl + "/api/bannerinfo",391 method: "get",392 params: {393 id: id394 }395 })396}397// 4.è½®æå¾ä¿®æ¹398export const reqbanneredit = (params) => {399 let data = new FormData()400 for (let i in params) {401 data.append(i, params[i])402 }403 return axios({404 url: baseUrl + "/api/banneredit",405 method: "post",406 data: data407 })408}409// 5.è½®æå¾å é¤410export const reqbannerdelete = (id) => {411 return axios({412 url: baseUrl + "/api/bannerdelete",413 method: "post",414 data: qs.stringify({ id: id })415 })416}417// *************ç§æ管ç*****************418// éæ¶ç§ææ·»å 419export const reqseckadd = (data) => {420 return axios({421 url: baseUrl + "/api/seckadd",422 method: "post",423 data: qs.stringify(data)424 })425}426// éæ¶ç§æå表 427export const reqsecklist = () => {428 return axios({429 url: baseUrl + "/api/secklist",430 method: "get",431 })432}433// éæ¶ç§æè·åï¼ä¸æ¡ï¼434export const reqseckinfo = (id) => {435 return axios({436 url: baseUrl + "/api/seckinfo",437 method: "get",438 params: {439 id: id440 }441 })442}443// éæ¶ç§æä¿®æ¹444export const reqseckedit = (data) => {445 return axios({446 url: baseUrl + "/api/seckedit",447 method: "post",448 data: qs.stringify(data)449 })450}451// éæ¶ç§æå é¤452export const reqseckdelete = (id) => {453 return axios({454 url: baseUrl + "/api/seckdelete",455 method: "post",456 data: qs.stringify({ id: id })457 })...
Using AI Code Generation
1var frisby = require('frisby');2frisby.create('Test GET Request')3 .expectStatus(200)4 .toss();5var frisby = require('frisby');6frisby.create('Test GET Request')7 .expectStatus(200)8 .toss();9var frisby = require('frisby');10frisby.create('Test GET Request')11 .expectStatus(200)12 .toss();13var frisby = require('frisby');14frisby.create('Test GET Request')15 .expectStatus(200)16 .toss();17var frisby = require('frisby');18frisby.create('Test GET Request')19 .expectStatus(200)20 .toss();21var frisby = require('frisby');22frisby.create('Test GET Request')23 .expectStatus(200)24 .toss();25var frisby = require('frisby');26frisby.create('Test GET Request')27 .expectStatus(200)28 .toss();29var frisby = require('frisby');30frisby.create('Test GET Request')31 .expectStatus(200)32 .toss();33var frisby = require('frisby');34frisby.create('Test GET Request')
Using AI Code Generation
1var frisby = require('frisby');2frisby.create('Test Suite')3 .get(baseUrl + '/users')4 .expectStatus(200)5 .toss();63. [Jasmine Node](
Using AI Code Generation
1var frisby = require('frisby');2var fs = require('fs');3var path = require('path');4var URL = require('url-parse');5var URL = require('url-parse');6var frisby = require('frisby');7frisby.create('GET request for a list of all posts')8 .expectStatus(200)9 .expectHeaderContains('content-type', 'application/json')10 .expectJSONTypes('*', {11 })12 .toss();13frisby.create('GET request for a list of all comments')14 .expectStatus(200)15 .expectHeaderContains('content-type', 'application/json')16 .expectJSONTypes('*', {17 })18 .toss();19frisby.create('GET request for a list of all albums')20 .expectStatus(200)21 .expectHeaderContains('content-type', 'application/json')22 .expectJSONTypes('*', {23 })24 .toss();25frisby.create('GET request for a list of all photos')26 .expectStatus(200)27 .expectHeaderContains('content-type', 'application/json')28 .expectJSONTypes('*', {29 })30 .toss();31frisby.create('GET request for a list of all users')32 .expectStatus(200)33 .expectHeaderContains('content-type', 'application/json')34 .expectJSONTypes('*', {35 address: {36 geo: {
Using AI Code Generation
1var frisby = require('frisby');2var URL = require('url-parse');3var Joi = require('joi');4var url = new URL(baseUrl);5var path = "api/v1/products";6var url = url + path;7frisby.globalSetup({8 request: {9 }10});11frisby.create('Get all products')12 .get(url)13 .expectStatus(200)14 .expectHeaderContains('content-type', 'application/json')15 .expectJSONTypes('*', {16 name: Joi.string(),17 price: Joi.number(),18 _id: Joi.string()19 })20 .toss();21frisby.create('Get a single product')22 .get(url + '/1')23 .expectStatus(200)24 .expectHeaderContains('content-type', 'application/json')25 .expectJSONTypes({26 name: Joi.string(),27 price: Joi.number(),28 _id: Joi.string()29 })30 .toss();31frisby.create('Get a single product')32 .get(url + '/1')33 .expectStatus(200)34 .expectHeaderContains('content-type', 'application/json')35 .expectJSONTypes({36 name: Joi.string(),37 price: Joi.number(),38 _id: Joi.string()39 })40 .toss();41frisby.create('Get a single product')42 .get(url + '/1')43 .expectStatus(200)44 .expectHeaderContains('content-type', 'application/json')45 .expectJSONTypes({46 name: Joi.string(),47 price: Joi.number(),48 _id: Joi.string()49 })50 .toss();51frisby.create('Get a single product')52 .get(url + '/1')53 .expectStatus(200)54 .expectHeaderContains('content-type', 'application/json')55 .expectJSONTypes({56 name: Joi.string(),57 price: Joi.number(),58 _id: Joi.string()59 })60 .toss();61frisby.create('Get a single product')62 .get(url + '/1')63 .expectStatus(200)64 .expectHeaderContains('content-type', 'application/json')65 .expectJSONTypes({66 name: Joi.string(),67 price: Joi.number(),68 _id: Joi.string()69 })70 .toss();71frisby.create('Get a single product')72 .get(url + '/1')73 .expectStatus(200)74 .expectHeaderContains('content-type', '
Using AI Code Generation
1var frisby = require('frisby');2frisby.create('Testing the api')3.get(URL + '/users')4.expectStatus(200)5.expectHeaderContains('content-type', 'application/json')6.expectJSONTypes('?', {7})8.toss();9module.exports = function(grunt) {10grunt.initConfig({11frisby: {12api: {13}14}15});16grunt.loadNpmTasks('grunt-frisby');17grunt.registerTask('default', ['frisby']);18};19var frisby = require('mocha-frisby');20frisby.create('Testing the api')21.get(URL + '/users')22.expectStatus(200)23.expectHeaderContains('content-type', 'application/json')24.expectJSONTypes('?', {25})26.toss();
Using AI Code Generation
1var frisby = require('frisby');2var url = require('url');3frisby.baseUrl(baseUrl);4frisby.create('Get list of all users')5 .get('/users')6 .expectStatus(200)7 .expectHeaderContains('content-type', 'application/json')8 .expectJSONTypes({9 })10.toss();11frisby.create('Get list of all users')12 .get('/users')13 .expectStatus(200)14 .expectHeaderContains('content-type', 'application/json')15 .expectJSONTypes({16 })17.toss();18frisby.create('Get list of all users')19 .get('/users')20 .expectStatus(200)21 .expectHeaderContains('content-type', 'application/json')22 .expectJSONTypes({23 })24.toss();25frisby.create('Get list of all users')26 .get('/users')27 .expectStatus(200)28 .expectHeaderContains('content-type', 'application/json')29 .expectJSONTypes({30 })31.toss();32frisby.create('Get list of all users')33 .get('/users')34 .expectStatus(200)35 .expectHeaderContains('content-type', 'application/json')36 .expectJSONTypes({37 })38.toss();39frisby.create('Get list of all users')40 .get('/users')41 .expectStatus(200)42 .expectHeaderContains('content-type', 'application/json')43 .expectJSONTypes({44 })45.toss();46frisby.create('Get list of all users')47 .get('/users')48 .expectStatus(200)49 .expectHeaderContains('content-type', 'application/json')50 .expectJSONTypes({51 })52.toss();53frisby.create('Get list of all users')54 .get('/users')55 .expectStatus(200)56 .expectHeaderContains('
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!