75 lines
2.4 KiB
JavaScript
75 lines
2.4 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 registerCode = (data) => syhttp.post('/sms/sendCode', 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 listForType = (data) => syhttp.get('/action/listForType', 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 suYuan = (data) => syhttp.get('/index/suYuan', 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)
|
|
//视频推流
|
|
export const videoPush = (data) => http.get('/video', data)
|
|
//上传视频封面
|
|
export const videoCover = (data) => http.post('api/upload/uploadVideoCover', data)
|
|
|
|
|
|
// http: //127.0.0.1:8001/video/17378971117/lihai_lot_walnutpi_dev_1
|