28 lines
957 B
JavaScript
28 lines
957 B
JavaScript
|
import variable from '@/api/commonVariable.js'
|
||
|
|
||
|
// 司机端接口
|
||
|
let api = {
|
||
|
|
||
|
// 公共key
|
||
|
baseUrl: variable.baseUrl,
|
||
|
|
||
|
|
||
|
user_login:'/user/login',// 登录
|
||
|
selFs_time:'/selFs/time',//主页查看施肥机历史数据
|
||
|
user_logout:'/user/logout',//退出
|
||
|
user_upload:'/user/upload',//上传logo
|
||
|
update_user:"/api/update/user",//用户更新个人信息,修改昵称密码等
|
||
|
sel_user:"/api/sel/user",//根据id查询用户信息
|
||
|
getFs_rtdata:"/getFs/rtdata",//主页查看施肥机实时数据
|
||
|
selFs_time:"/selFs/time",//主页查看施肥机历史数据
|
||
|
sel_eqbyid:"/sel/eqbyid/",//根据用户id查询对应的设备数据
|
||
|
chart_fsdata:"/chart/fsdata",//实时数据折线图
|
||
|
user_update_pwd:"/user/update/pwd",//用户修改密码
|
||
|
|
||
|
readFs_state:"/readFs/state",//根据设备ID获取实时数据
|
||
|
writeFs:"/writeFs",//根据设备ID获取实时数据
|
||
|
readFs_reg:"/readFs/reg",//根据设备ID获取实时数据
|
||
|
|
||
|
}
|
||
|
export default api
|