How to use baseUrl method in frisby

Best JavaScript code snippet using frisby

appUrls.js

Source:appUrls.js Github

copy

Full Screen

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 **/...

Full Screen

Full Screen

user.service.ts

Source:user.service.ts Github

copy

Full Screen

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 ...

Full Screen

Full Screen

request.js

Source:request.js Github

copy

Full Screen

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 })...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

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')

Full Screen

Using AI Code Generation

copy

Full Screen

1var frisby = require('frisby');2frisby.create('Test Suite')3 .get(baseUrl + '/users')4 .expectStatus(200)5 .toss();63. [Jasmine Node](

Full Screen

Using AI Code Generation

copy

Full Screen

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: {

Full Screen

Using AI Code Generation

copy

Full Screen

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', '

Full Screen

Using AI Code Generation

copy

Full Screen

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();

Full Screen

Using AI Code Generation

copy

Full Screen

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('

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run frisby automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful