2023-10-25 19:55:18 +08:00
|
|
|
import syhttp from "@/utils/syhttp.js";
|
2023-11-25 16:18:54 +08:00
|
|
|
import http from "@/utils/http.js";
|
2023-10-25 19:55:18 +08:00
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-25 16:18:54 +08:00
|
|
|
//登录
|
|
|
|
export const login = (data) => syhttp.post('/login/account', data)
|
2023-11-23 10:58:26 +08:00
|
|
|
//验证码
|
|
|
|
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)
|
|
|
|
//退出登录
|
2023-11-25 16:18:54 +08:00
|
|
|
export const logout = (data) => syhttp.get('/login/logout', data)
|
|
|
|
//土地列表
|
|
|
|
export const landlist = (data) => syhttp.get('/land/list', data)
|
|
|
|
//土地详情
|
|
|
|
export const landdetail = (data) => syhttp.get('/land/detail', data)
|
|
|
|
//新增土地
|
|
|
|
export const addland = (data) => syhttp.post('/land/add', data)
|
|
|
|
//种植列表
|
|
|
|
export const plantlist = (data) => syhttp.get('/plant/list', data)
|
|
|
|
//新增种植
|
|
|
|
export const addplant = (data) => syhttp.post('/plant/add', data)
|
|
|
|
//操作列表
|
|
|
|
export const actionlist = (data) => syhttp.get('/action/list', data)
|
|
|
|
//添加操作
|
|
|
|
export const addaction = (data) => syhttp.post('/action/add', data)
|
|
|
|
//添加操作
|
|
|
|
export const binddevice = (data) => syhttp.post('/device/bind', data)
|
|
|
|
|
|
|
|
//首页
|
|
|
|
export const lindexist = (data) => syhttp.get('/index/index', data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//省
|
|
|
|
export const province = (data) => http.get('/common/geo/province', data)
|
|
|
|
//市
|
|
|
|
export const city = (data) => http.get('/common/geo/city', data)
|
|
|
|
//区县
|
|
|
|
export const county = (data) => http.get('/common/geo/county', data)
|
|
|
|
//镇街
|
|
|
|
export const towns = (data) => http.get('/common/geo/towns', data)
|
|
|
|
//乡村
|
|
|
|
export const villages = (data) => http.get('/common/geo/villages', data)
|
|
|
|
//小组
|
|
|
|
export const groups = (data) => http.get('/common/geo/groups', data)
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|