import syhttp from "@/utils/syhttp.js"; import http from "@/utils/http.js"; //登录 export const login = (data) => syhttp.post('/login/account', data) //验证码 export const xinregister = (data) => syhttp.post('/index/code', data) //用户注册 export const logregister = (data) => syhttp.post('/login/register', data) //修改密码 export const changePassword = (data) => syhttp.post('/user/changePassword', data) //退出登录 export const logout = (data) => syhttp.get('/login/logout', data) //养殖基地列表 export const farmLists = (data) => syhttp.get('/farm/list', data); //养殖基地类型 export const farmTypeLists = (data) => syhttp.get('/farm_type', data); //新增养殖基地 export const farmAdd = (data) => syhttp.post('/farm/add', data);