cultivationApp/api/index.js

31 lines
878 B
JavaScript
Raw Normal View History

2024-01-23 19:52:15 +08:00
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);
2024-01-26 17:29:25 +08:00
//养殖基地列表
export const fenceHouseData = (data) => syhttp.get('/fence_house/datas', data);