接口前缀修改

dev
yujialong 4 years ago
parent ebd717f0c8
commit 2db626b9e0
  1. 115
      src/utils/api.js

@ -5,53 +5,52 @@ let host2 = 'http://192.168.31.125:9000'//林
let host3 = 'http://192.168.31.140:9000'//7 let host3 = 'http://192.168.31.140:9000'//7
let host = 'http://192.168.31.137:9000'// 陈赓 let host = 'http://192.168.31.137:9000'// 陈赓
export default { export default {
logins: `${host}/users/user/login`, //登录 logins: `${host}/users/users/user/login`, //登录
verification:`${host}/users/user/captcha`,// 验证码 verification:`${host}/users/users/user/captcha`,// 验证码
// 订单管理 // 订单管理
orderAdd:`${host}/nakadai/order/add`,// 订单添加 orderAdd:`${host}/nakadai/nakadai/order/add`,// 订单添加
orderDelete:`${host}/nakadai/order/delete`,// 删除定单 orderDelete:`${host}/nakadai/nakadai/order/delete`,// 删除定单
orderDetail:`${host}/nakadai/order/get`,// 订单详情 orderDetail:`${host}/nakadai/nakadai/order/get`,// 订单详情
orderList:`${host}/nakadai/order/list`,// 订单列表 orderList:`${host}/nakadai/nakadai/order/list`,// 订单列表
orderUpdate:`${host}/nakadai/order/update`,// 订单更新 orderUpdate:`${host}/nakadai/nakadai/order/update`,// 订单更新
queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在 queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在
queryWorkNumberIsExist:`${host}/liuwanr/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在
// 客户管理 // 客户管理
delCustomers: `${host}/nakadai/customer/delCustomers`, delCustomers: `${host}/nakadai/nakadai/customer/delCustomers`,
updateCustomer: `${host}/nakadai/customer/updateCustomer`, updateCustomer: `${host}/nakadai/nakadai/customer/updateCustomer`,
addCustomer: `${host}/nakadai/customer/addCustomer`, addCustomer: `${host}/nakadai/nakadai/customer/addCustomer`,
// /nakadai/customer/queryCustomerDetails // /nakadai/nakadai/customer/queryCustomerDetails
queryCustomer: `${host}/nakadai/customer/queryCustomer`, queryCustomer: `${host}/nakadai/nakadai/customer/queryCustomer`,
queryCustomerDetails: `${host}/nakadai/customer/queryCustomerDetails`, queryCustomerDetails: `${host}/nakadai/nakadai/customer/queryCustomerDetails`,
resetPwdCustomer: `${host}/nakadai/customer/resetPwd`, resetPwdCustomer: `${host}/nakadai/nakadai/customer/resetPwd`,
queryCustomerIsExists: `${host}/nakadai/customer/queryCustomerIsExists`, queryCustomerIsExists: `${host}/nakadai/nakadai/customer/queryCustomerIsExists`,
updateEnabled: `${host}/nakadai/customer/updateEnabled`, updateEnabled: `${host}/nakadai/nakadai/customer/updateEnabled`,
queryCustomerIndustryClass: `${host}/nakadai/hrIndustryClass/queryIndustryClass`, queryCustomerIndustryClass: `${host}/nakadai/nakadai/hrIndustryClass/queryIndustryClass`,
queryCustomerIndustry: `${host}/nakadai/hrIndustry/queryIndustry`, queryCustomerIndustry: `${host}/nakadai/nakadai/hrIndustry/queryIndustry`,
querySchoolData: `${host}/nakadai/school/querySchool`, querySchoolData: `${host}/nakadai/nakadai/school/querySchool`,
queryPhone: `${host}/liuwanr/user/queryPhone`, queryPhone: `${host}/liuwanr/user/queryPhone`,
queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`,
// 用户管理 // 用户管理
delUserAccounts: `${host3}/users/userAccount/delUserAccounts`, delUserAccounts: `${host3}/users/users/userAccount/delUserAccounts`,
queryUserInfoDetails: `${host3}/users/userAccount/queryUserInfoDetails`, queryUserInfoDetails: `${host3}/users/users/userAccount/queryUserInfoDetails`,
queryUserInfoList: `${host3}/users/userAccount/queryUserInfoList`, queryUserInfoList: `${host3}/users/users/userAccount/queryUserInfoList`,
resetPwd: `${host3}/users/userAccount/resetPwd`, resetPwd: `${host3}/users/users/userAccount/resetPwd`,
selectAccountDetail: `${host3}/users/userAccount/selectAccountDetail`, selectAccountDetail: `${host3}/users/users/userAccount/selectAccountDetail`,
selectUserSysBind: `${host3}/users/userAccount/selectUserSysBind`, selectUserSysBind: `${host3}/users/users/userAccount/selectUserSysBind`,
updatePersonCenter: `${host3}/users/userAccount/updatePersonCenter`, updatePersonCenter: `${host3}/users/users/userAccount/updatePersonCenter`,
updateUserAvatars: `${host2}/users/userAccount/updateUserAvatars`, updateUserAvatars: `${host2}/users/users/userAccount/updateUserAvatars`,
userInfo: `${host3}/users/userAccount/userInfo`, userInfo: `${host3}/users/users/userAccount/userInfo`,
bindPhoneOrEmail: `${host3}/users/userAccount/bindPhoneOrEmail`, bindPhoneOrEmail: `${host3}/users/users/userAccount/bindPhoneOrEmail`,
sendPhoneOrEmailCode: `${host3}/users/userAccount/sendPhoneOrEmailCode`, sendPhoneOrEmailCode: `${host3}/users/users/userAccount/sendPhoneOrEmailCode`,
updateAccountEnable: `${host3}/users/userAccount/updateAccountEnable`, updateAccountEnable: `${host3}/users/users/userAccount/updateAccountEnable`,
updateAccountAllEnable: `${host3}/users/userAccount/updateAccountAllEnable`, updateAccountAllEnable: `${host3}/users/users/userAccount/updateAccountAllEnable`,
examinePassword: `${host3}/users/userAccount/examinePassword`, examinePassword: `${host3}/users/users/userAccount/examinePassword`,
queryOrder: `${host}/liuwanr/order/queryOrder`, //查询订单 queryOrder: `${host}/liuwanr/order/queryOrder`, //查询订单
queryOrderDetails: `${host}/liuwanr/order/queryOrderDetails`, //查询订单详情 queryOrderDetails: `${host}/liuwanr/order/queryOrderDetails`, //查询订单详情
@ -81,12 +80,12 @@ export default {
queryServiceConfig: `${host}/liuwanr/serviceConfig/queryServiceConfig`, //查询服务配置 queryServiceConfig: `${host}/liuwanr/serviceConfig/queryServiceConfig`, //查询服务配置
queryServiceConfigDetails: `${host}/liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情 queryServiceConfigDetails: `${host}/liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情
queryProvince: `${host}/nakadai/province/queryProvince`, //查询省份 queryProvince: `${host}/nakadai/nakadai/province/queryProvince`, //查询省份
queryCity: `${host}/nakadai/city/queryCity`, //查询城市 queryCity: `${host}/nakadai/nakadai/city/queryCity`, //查询城市
queryCourseDiscipline: `${host3}/nakadai/discipline/queryDiscipline`, //查询课程学科 queryCourseDiscipline: `${host3}/nakadai/nakadai/discipline/queryDiscipline`, //查询课程学科
queryCourseProfessionalClass: `${host3}/nakadai/professionalClass/queryProfessionalClass`, //查询专业类 queryCourseProfessionalClass: `${host3}/nakadai/nakadai/professionalClass/queryProfessionalClass`, //查询专业类
queryCourseProfessional: `${host3}/nakadai/professional/queryProfessional`, //查询专业 queryCourseProfessional: `${host3}/nakadai/nakadai/professional/queryProfessional`, //查询专业
queryAppConfig: `${host}/liuwanr/course/queryAppConfig`, //查询应用配置 queryAppConfig: `${host}/liuwanr/course/queryAppConfig`, //查询应用配置
queryTrainingConfig: `${host}/liuwanr/course/queryConfig`, //查询实训配置 queryTrainingConfig: `${host}/liuwanr/course/queryConfig`, //查询实训配置
deleteTrainingConfig: `${host}/liuwanr/course/deleteTrainingConfig`, //删除实训配置 deleteTrainingConfig: `${host}/liuwanr/course/deleteTrainingConfig`, //删除实训配置
@ -101,23 +100,23 @@ export default {
downloadFiles: `${host}/liuwanr/aliyun/downloadFiles`, //下载文件 downloadFiles: `${host}/liuwanr/aliyun/downloadFiles`, //下载文件
// 数据管理 // 数据管理
getIdQueryTable:`${host1}/data/table/getIdQueryTable`, getIdQueryTable:`${host1}/data/data/table/getIdQueryTable`,
getTableByClassification:`${host1}/data/table/getTableByClassification`, getTableByClassification:`${host1}/data/data/table/getTableByClassification`,
getTableByCondition:`${host1}/data/table/getTableByCondition`, getTableByCondition:`${host1}/data/data/table/getTableByCondition`,
originalList:`${host1}/data/table/originalList`, originalList:`${host1}/data/data/table/originalList`,
originalListById:`${host1}/data/table/originalListById`, originalListById:`${host1}/data/data/table/originalListById`,
saveCategory:`${host1}/data/table/saveCategory`, saveCategory:`${host1}/data/data/table/saveCategory`,
saveTable:`${host1}/data/table/saveTable`, saveTable:`${host1}/data/data/table/saveTable`,
updateCategory:`${host1}/data/table/updateCategory`, updateCategory:`${host1}/data/data/table/updateCategory`,
deleteCategory:`${host1}/data/table/deleteCategory`, deleteCategory:`${host1}/data/data/table/deleteCategory`,
deleteTable:`${host1}/data/table/deleteTable`, deleteTable:`${host1}/data/data/table/deleteTable`,
previewData:`${host1}/data/preview`, previewData:`${host1}/data/data/preview`,
// 产品管理 // 产品管理
deleteProduct:`${host1}/data/product/delete`, deleteProduct:`${host1}/data/data/product/delete`,
findById:`${host1}/data/product/findById`, findById:`${host1}/data/data/product/findById`,
listByEntity:`${host1}/data/product/listByEntity`, listByEntity:`${host1}/data/data/product/listByEntity`,
saveProduct:`${host1}/data/product/save`, saveProduct:`${host1}/data/data/product/save`,
updateProduct:`${host1}/data/product/update`, updateProduct:`${host1}/data/data/product/update`,
saveRecord:`${host1}/data/dataRecord/saveRecord`, saveRecord:`${host1}/data/data/dataRecord/saveRecord`,
} }
Loading…
Cancel
Save