You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import request from "utils/axios.js";
|
|
|
|
|
//登录
|
|
|
|
|
const login = (params) => {
|
|
|
|
|
return request.postJson("/oil-identity/oilRefinery/loginCOMSByPwd", params);
|
|
|
|
|
};
|
|
|
|
|
//关联企业
|
|
|
|
|
const getRefineryByCustomerId = (phone) => {
|
|
|
|
|
return request.get(
|
|
|
|
|
`/oil-user/oilCustomerRefineryRelation/getRefineryByCustomerId/${phone}`
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
const loginOut = () => {
|
|
|
|
|
return request.get("/oil-identity/authorization/logout");
|
|
|
|
|
};
|
|
|
|
|
//路由
|
|
|
|
|
const getCustomerRouters = () => {
|
|
|
|
|
return request.get(
|
|
|
|
|
"/oil-identity/oilRefinery/getCustomerRouters/REFINERY_COMS_WEB"
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default { login, getRefineryByCustomerId, getCustomerRouters,loginOut };
|