Open dpc761218914 opened 5 years ago
接口设计:全部用POST请求。
URL:根据手机IMEI查询该手机是否可用。 GET:id/v1/permission?IMEI=XXX; 返回用户信息,通过isPay和deadline来判断该手机是否存在权限。
GET:phone/v1/user/add; GET:phone/v1/user/delete; GET:phone/v1/user/update; GET:phone/v1/user/find; GET:phone/v1/user/findAll;
GET:phone/v1/templet/add; GET:phone/v1/templet/delete; GET:phone/v1/templet/update; GET:phone/v1/templet/find; GET:phone/v1/templet/findAll;
GET:phone/v1/customer/add; GET:phone/v1/customer/delete; GET:phone/v1/customer/update; GET:phone/v1/customer/find; GET:phone/v1/customer/findAll;
GET:phone/v1/msg/add; GET:phone/v1/msg/find; GET:phone/v1/msg/findAll;
GongZhonghao:
id:主键; customerName:客户姓名; address:客户小区地址; phoneNum:客户电话; roomNum:房间号; remark:备注; temperature:温度 湿度:humidity 大气压:ATM 密封时间:sealTime 采样时间:collectTime 检测时间:checkTime 使用仪器:device
id: 报告主键:reportId 踩点位置:pointAddress 甲醛:jiaQuan 苯:Ben 甲苯:jiaBen TVOC:TVOC
数据库设计:
1、用户:user
id:主键; userName:用户姓名; phoneNum:手机号码; IMEI:手机唯一标识码; isPay:是否付钱; deadline:截止时间; createTime:账户创建时间; updateTime:信息更新时间;
2、客户;customer
id:主键; userId:用户id; customerName:客户姓名; address:客户小区地址; phoneNum:客户电话; roomNum:房间号; remark:备注; currentMsg:最新收到的短信信息;
3、模板;templet
id:主键; userId:创建者id; templetName:模板名称; content:模板内容; createTime:创建时间; updateTime:更新时间;
4、短信记录;msg
id:主键; userId:发送人id; customerId:接收人id; msg:短信内容; msgTime:短信发送时间;