index.js
731 Bytes
import api from "../index";
import urls from "./urls";
export default {
//登陆
login(params, id) {
return api.post(urls.login, params);
},
logout(userid, params) {
return api.get(urls.logout(userid), params);
},
getMenus(params, id) {
return api.get(urls.menus, params);
},
algocombs(params, id) {
return api.get(urls.algocombs, params);
},
storeconfs(params, id) {
return api.get(urls.storeconfs, params);
},
ddlogout:(params) => {
return api.post(urls.ddout,params)
},
ddlogin:(params) => {
return api.get(urls.ddlogin,params)
},
getloginset(params){
return api.get(urls.loginset,params)
},
loginset(params){
return api.post(urls.loginset,params)
}
};