const repair = '/wechat/water/device/one-key-repair' //一键报修
const getUserList = '/wechat/water/device/list' //获取用户设备列表
const changeDef = '/wechat/water/device/first' //切换默认设备
// const getpackageList = '/wechat/water/device/package-list' //获取套餐列表
const getpackageList = '/wechat/water/device-package' //获取套餐列表

const createPackageOrder = '/wechat/water/device/package-buy'//创建套餐订单
const getCurrentShopMsg = '/wechat/water/device/shop-info' //获取当前商户信息
const getdeviceListByid = '/wechat/water/device/parts-list' //根据id获取可购买设备
const createDeviceOrder = '/wechat/water/device/parts-buy'  //创建配件购买订单


const changeOrderState = '/wechat/water/pay-order-fail' // 已废弃 pay-parts-buy；失败回写请用 payFail / PayJs.payFail


const getOrderPayList = '/wechat/water/device/parts-buy-list' //滤芯购买记录

const getFilterChangeList = '/wechat/water/dealer/part-replace-list' //滤芯购买记录

const resetFilter = '/waters/reset-filter' // 经销商/师傅重置（管理端 JWT / atoken）
const resetFilterUser = '/wechat/water/device/reset-filter' // 用户重置（wechat 域 / ctoken）


// const getUserBanlance = '/wechat/water/device/balance' //我的余额
const getTotalBanlance = '/wechat/water/dealer/statistics-money' //我的收益
const getOrderBuyList = '/wechat/water/device/package-buy-list' //查询套餐订单列表


const getFilterListByid = '/wechat/water/device/device-parts' //根据设备id获取滤芯列表



// const MasterList = '/wechat/water/dealer/master-list' //师傅列表
const MasterList = '/master/list' //师傅列表
const masterDesc = '/wechat/water/dealer/one-master' //师傅详情
const createMaster = '/wechat/water/dealer/create-master' //创建傅信息
const editMaster = '/wechat/water/dealer/set-master' //创建傅信息
const getPhoneByUser = '/wechat/water/dealer/phone-master' //创建师傅的时候 使用


const OrderList = '/wechat/water/dealer/repair-order-list' //维修工单列表
const addOrderItem = '/wechat/water/dealer/repair-order-create' //新增维修工单
const repairOrderOne = '/wechat/water/dealer/repair-order-one' // 维修工单详情

const orderRepairAssign = '/wechat/water/dealer/order-repair-assign' // 维修工单分配师傅
const RecallRepair = '/wechat/water/dealer/complete-repair' //  撤回维修工单
// const RecallNewRepair = '/wechat/water/dealer/complete-new-install' // 撤回新装工单
const RecallNewRepair = '/water/new-install-cancel' // 撤回新装工单


const deviceDesc = '/device/one' //设备详情

// const newOrderList = '/wechat/water/dealer/get_list_new_install' //新装工单列表
const newOrderList = '/new-install/list' //新装工单列表
const userNewOrderList = '/wechat/water/new-install-list' //微信新装工单列表


const newOrderDesc = '/wechat/water/new-install-info' //新装工单详情
const creNewOrder = '/new-install/create' //创建新装工单
// const newInstallAssign = '/wechat/water/dealer/new-install-assign' // 新装工单分配师傅
const newInstallAssign = '/new-install/assign' // 新装工单分配师傅

const packageList = '/package-buy/list' //套餐列表
const packageDesc = '/package-buy/list' //套餐详情

const BXList = '/wechat/water/device/repair-list' //报修列表
const BXOneRepair = '/wechat/water/device/one-repair' // 获取维修工单详情

const BXDeviceList = '/wechat/water/device/list' // 获取用户设备列表

const login = '/wechat/mpusers/login' // 小程序登录
const loginInfo = '/wechat/mpusers/login-info'
const loginGetPhone = '/wechat/mpusers/get-phone'


const rankingList = '/wechat/water/dealer/ranking-team' //销售排行
// const inviteList = '/wechat/water/dealer/statistics-group' //邀请排行
const MyinviteList = '/wechat/water/dealer/statistics-group' //我的邀请统计
const buyProductList = '/wechat/water/dealer/buy_product_list' //进货记录


const getPartner = '/wechat/water/dealer/info' //合伙人详情
const getPartnerOrder = '/wechat/water/dealer/order-statistics' //合伙人订单
const getProduct = '/wechat/water/dealer/product-list' //合伙人所有的产品列表
const createPartnerOrder = '/wechat/water/dealer/buy_product_create' //创建合伙人订单
const deviceList = '/wechat/water/dealer/device-list' // 设备列表
const deviceInfo = '/wechat/water/device/one-device' //设备详情

const createQrcode = '/wechat/water/device/qr-code' //获取小程序码


const getVersion = '/wechat/audit/app_versions' //获取版本信息
const accountLogin = '/wechat/audit/app_login' //审核登录
const updateVersion = '/api/v1/audit/config-update'



//师傅端
const getNewOrder = '/wechat/water/master/get_list_new_install' //获取新装工单
const gerRepairOrder = '/wechat/water/master/repair-order-list' //获取维修工单
const getPartOrder = '/wechat/water/master/part-replace-list' //获取耗材工单

const NewOrderDesc = '/wechat/water/master/new-install-one' //师傅新装工单详情
const RepairOrderDesc = '/wechat/water/master/repair-order-one' //师傅更换工单详情
const PartOrderDesc = '/wechat/water/master/part-replace-one' // 师傅耗材更换详情

const getUninstallOrder = '/wechat/water/master/uninstall/list' //拆卸工单
const getUninstallDesc = '/wechat/water/master/uninstall/info' //拆除工单详情
const unintsall = '/wechat/water/master/uninstall/complete' //拆机
const operate = '/wechat/water/master/uninstall/operate' //入库 报废


const completeNewOrder = '/wechat/water/dealer/complete-new-install' //完成新装工单
const cancelNewOrder = '/wechat/water/new-install-cancel' //取消新装工单

const completeRepairOrder = '/wechat/water/master/complete-repair' //完成维修工单
const completePartOrder = '/wechat/water/master/complete-part-replace' //完成耗材更换工单

const getDeviceByCode = '/wechat/water/dealer/device-code' //根据编码获取设备信息

const masterInfo = '/wechat/water/master/master-info' //师傅信息
const editMasterInfo = '/wechat/water/master/set-master-info' //修改师傅信息

const masterDeviceList = '/wechat/water/master/device/list' //师傅安装的设备列表
const masterDeviceInfo = '/wechat/water/master/device/info' //设备详情
const createUninstallOrder = '/wechat/water/master/uninstall/create' //创建拆除工单


const getDeposit = '/wechat/water/deposit_pay' //获取押金信息
const getDepositList = '/wechat/water/deposit_list' //获取押金信息
const city = '/citys/s/list' // 获取省份列表'
const area = '/citys/c/list' // 获取市列表'
const business = '/citys/x/list' // 获取区列表'
const createPosit = '/wechat/water/create_posit_info' //创建押金缴纳

const openOff = '/waters/board-on-off' //开机关机

const boardInfo = '/waters/board-info-query' //主板信息

const cancelActivation = '/waters/cancel-activation' //主板取消

const scanOrder = '/wechat/trans-order/confirm' //查询是否有转账
const queryOrder = '/wechat/trans-order/success' //确认是否转账

const BeActive = '/wechat/water/dealer/active-device' //激活设备

const UninstallOrder = '/uninstall/create'//创建拆机工单
const deviceActive = '/device/active' //设备激活
const deviceDataForce = '/waters/board-data-force' //流量充值
const deviceDeactivation = '/waters/board-deactivation' //时长充值
const deviceToTime = '/waters/billing-mode-to-time' //转时长
const deviceToTraffic = '/waters/billing-mode-to-traffic' //转流量
const deviceToRetail = '/waters/billing-mode-to-retail' //转零售


const getServerInfo = '/wechat/cus-server-info' //平台客服 二维码
const cusGetServerInfo = '/wechat/water/get-customer-service' //用户获取平台二维码

const getTrans = '/wechat/water/trans'  //品宣金
const apiArr = {
    getServerInfo,
    cusGetServerInfo,
    getTrans,
    deviceDeactivation,
    deviceToTime,
    deviceToTraffic,
    deviceDataForce,
    deviceActive,
    deviceToRetail,
    UninstallOrder,
    cancelActivation,
    queryOrder,
    createUninstallOrder,
    scanOrder,
    BeActive,
    boardInfo,
    createPosit,
    openOff,
    getUninstallOrder,
    getUninstallDesc,
    unintsall,
    city,
    area,
    business,
    getDeposit,
    getDepositList,
    MasterList,
    masterDesc,
    editMaster,
    getPhoneByUser,
    OrderList,
    addOrderItem,
    repairOrderOne,
    getUserList,
    deviceDesc,
    RecallRepair,
    RecallNewRepair,
    newOrderList,
    userNewOrderList,
    newOrderDesc,
    packageList,
    packageDesc,
    login,
    loginInfo,
    loginGetPhone,
    BXList,
    BXOneRepair,
    BXDeviceList,
    creNewOrder,
    createMaster,
    changeDef,
    repair,
    getpackageList,
    createPackageOrder,
    getCurrentShopMsg,
    getFilterListByid,
    getdeviceListByid,
    newInstallAssign,
    orderRepairAssign,
    createDeviceOrder,
    changeOrderState,
    getOrderPayList,
    getFilterChangeList,
    resetFilter,
    resetFilterUser,
    // getUserBanlance,
    getTotalBanlance,
    getOrderBuyList,
    rankingList,
    // inviteList,
    MyinviteList,
    buyProductList,
    getPartner,
    getPartnerOrder,
    getProduct,
    deviceList,
    createPartnerOrder,
    deviceInfo,
    createQrcode,
    getVersion,
    accountLogin,
    updateVersion,
    getNewOrder,
    gerRepairOrder,
    getPartOrder,
    NewOrderDesc,
    RepairOrderDesc,
    PartOrderDesc,
    completeNewOrder,
    cancelNewOrder,
    completeRepairOrder,
    completePartOrder,
    operate,
    masterInfo,
    editMasterInfo,
    masterDeviceList,
    masterDeviceInfo,
    getDeviceByCode
}
module.exports = apiArr; 