TraceabilityAPP/api/api.js

75 lines
2.4 KiB
JavaScript
Raw Permalink Normal View History

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-25 16:18:54 +08:00
//登录
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)
2024-01-02 18:18:57 +08:00
//用户注册验证码
export const registerCode = (data) => syhttp.post('/sms/sendCode', 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)
2023-11-27 18:23:17 +08:00
//种植详情
export const plantdetail = (data) => syhttp.get('/plant/detail', data)
2023-11-25 16:18:54 +08:00
//操作列表
export const actionlist = (data) => syhttp.get('/action/list', data)
//添加操作
export const addaction = (data) => syhttp.post('/action/add', data)
2023-11-27 18:23:17 +08:00
2023-11-25 16:18:54 +08:00
//添加操作
2023-11-27 18:23:17 +08:00
export const binddevice = (data) => syhttp.post('/land/bind', data)
2023-11-25 16:18:54 +08:00
2023-11-29 18:11:21 +08:00
//操作具体
export const listForType = (data) => syhttp.get('/action/listForType', data)
2023-11-25 16:18:54 +08:00
//首页
export const lindexist = (data) => syhttp.get('/index/index', data)
2023-12-20 08:42:32 +08:00
2023-11-27 18:23:17 +08:00
//产品列表
export const landproduct = (data) => syhttp.get('/land/product', data)
2023-11-25 16:18:54 +08:00
2023-11-27 18:23:17 +08:00
//绑定产品
export const bindproduct = (data) => syhttp.post('/land/bind', data)
2023-11-25 16:18:54 +08:00
//溯源结果展示
export const suYuan = (data) => syhttp.get('/index/suYuan', data)
2023-11-25 16:18:54 +08:00
//省
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)
//小组
2024-01-02 18:18:57 +08:00
export const groups = (data) => http.get('/common/geo/groups', data)
//视频推流
export const videoPush = (data) => http.get('/video', data)
2024-01-08 16:49:03 +08:00
//上传视频封面
export const videoCover = (data) => http.post('api/upload/uploadVideoCover', data)
2024-01-02 18:18:57 +08:00
// http: //127.0.0.1:8001/video/17378971117/lihai_lot_walnutpi_dev_1