64 lines
1.9 KiB
JavaScript
64 lines
1.9 KiB
JavaScript
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 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 plantdetail = (data) => syhttp.get('/plant/detail', 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('/land/bind', data)
|
|
|
|
//首页
|
|
export const lindexist = (data) => syhttp.get('/index/index', data)
|
|
//产品列表
|
|
export const landproduct = (data) => syhttp.get('/land/product', data)
|
|
|
|
//绑定产品
|
|
export const bindproduct = (data) => syhttp.post('/land/bind', 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)
|
|
|
|
|