1、新增用户
请求:
post:
http://localhost:8082/api/user//insertUserEntity
参数:
{
“username”:”顾君邪小儿子的小孙子2”,
“password”:”123456”,
“parentId”:34,
“userType”:3,
“userPermissions”:”6,7”,
“productMode”:”0”,
“sumCuts”:10,
“cuts”:10,
“halfFrozenState”:0,
“shopName”:”天南”,
“address”:”南京”,
“application”:”publicApplication”
}
2、更新用户
请求:
post:
http://localhost:8082/api/user/updateUserEntity
参数:
{
“parentId”:27,
“userType”:1,
“id”:32,
“sumCuts”:2000,
“username”:”顾君邪”,
“shopName”:”天南”,
“address”:”南京建业”
}
3、删除用户
请求:
post:
http://localhost:8082/api/user/deleteUserEntity
参数:
{
“parentId”:34,
“userType”:3,
“id”:38
}
4、查询用户
请求:
post:
http://localhost:8082/api/user/selectUserList
参数:
{
“id”:32
}
结果:
{
“code”: 0,
“messages”: [],
“bizData”: {
“totalCount”: 5,
“pageSize”: 20,
“totalPage”: 1,
“pageNumber”: 1,
“list”: [
{
“id”: 33,
“username”: “顾君邪儿子”,
“email”: “顾君邪儿子”,
“createdTime”: “2020-11-27 11:01:32”,
“devices”: [
{
“createdBy”: null,
“createdTime”: “2020-07-12 10:28:43”,
“lastModifiedBy”: null,
“lastModifiedTime”: “2020-07-12 10:28:43”,
“version”: 0,
“id”: 4,
“name”: “设备4”,
“deviceNo”: “DN444”,
“factory”: “手机膜厂商2”,
“logoId”: null,
“type”: 16,
“typeTag”: null,
“state”: “disEnable”,
“balance”: 0.00
}
],
“application”: “publicApplication”,
“source”: “主动注册”,
“parentId”: 32,
“userType”: 2,
“userPermissions”: “5,6,7”,
“productMode”: 0,
“sumCuts”: 100,
“cuts”: 80,
“halfFrozenState”: 0,
“halfFrozenTime”: “1970-01-01 00:00:00”,
“shopName”: “”,
“address”: “”,
“enabled”: true,
“nonLocked”: false
},
{
“id”: 34,
“username”: “顾君邪小儿子”,
“email”: “顾君邪小儿子”,
“createdTime”: “2020-11-27 11:01:57”,
“devices”: [],
“application”: “publicApplication”,
“source”: “主动注册”,
“parentId”: 32,
“userType”: 2,
“userPermissions”: “5,6,7”,
“productMode”: 0,
“sumCuts”: 100,
“cuts”: 80,
“halfFrozenState”: 0,
“halfFrozenTime”: “1970-01-01 00:00:00”,
“shopName”: “”,
“address”: “”,
“enabled”: true,
“nonLocked”: false
},
{
“id”: 40,
“username”: “aaa983613519@qq.com”,
“email”: “aaa983613519@qq.com”,
“createdTime”: “2020-11-29 12:34:33”,
“devices”: [],
“application”: “publicApplication”,
“source”: “主动注册”,
“parentId”: 32,
“userType”: 3,
“userPermissions”: “7”,
“productMode”: 0,
“sumCuts”: 9,
“cuts”: 9,
“halfFrozenState”: 0,
“halfFrozenTime”: “1970-01-01 00:00:00”,
“shopName”: “”,
“address”: “”,
“enabled”: true,
“nonLocked”: false
},
{
“id”: 41,
“username”: “任继培”,
“email”: “任继培”,
“createdTime”: “2020-11-29 12:41:42”,
“devices”: [],
“application”: “adminApplication”,
“source”: “主动注册”,
“parentId”: 32,
“userType”: 2,
“userPermissions”: “6,7”,
“productMode”: 0,
“sumCuts”: 14,
“cuts”: 2,
“halfFrozenState”: 0,
“halfFrozenTime”: “1970-01-01 00:00:00”,
“shopName”: “”,
“address”: “”,
“enabled”: true,
“nonLocked”: false
},
{
“id”: 44,
“username”: “123456”,
“email”: “123456”,
“createdTime”: “2020-11-29 23:52:41”,
“devices”: [],
“application”: “publicApplication”,
“source”: “主动注册”,
“parentId”: 32,
“userType”: 2,
“userPermissions”: “5”,
“productMode”: 0,
“sumCuts”: 0,
“cuts”: 0,
“halfFrozenState”: 0,
“halfFrozenTime”: “1970-01-01 00:00:00”,
“shopName”: “”,
“address”: “”,
“enabled”: true,
“nonLocked”: false
}
]
}
}
5、登录
请求:
post:
http://localhost:8082/api//auth/login
参数:
{
“application”:”publicApplication”,
“username”:”顾君邪”,
“password”:123456
}
结果
{
“code”: 0,
“messages”: [],
“bizData”: {
“id”: 32,
“username”: “顾君邪”,
“email”: “顾君邪”,
“sessionId”: “9d798471-f28a-4892-ac04-bb2ffc014f9d”,
“expireTime”: null,
“others”: [],
“deviceCount”: 0,
“fileCount”: 0,
“registeredDay”: 1,
“parentId”: 27,
“userType”: 1,
“userPermissions”: “2,3,4,5,6,7”,
“productMode”: 0,
“sumCuts”: 2000,
“cuts”: 1800,
“halfFrozenState”: 0,
“halfFrozenTime”: “1970-01-01 00:00:00”
}
}
6、批量加设备
请求:
post:
http://localhost:8082/api/device/addBatch
参数:
{
“name”:”许七安”,
“englishName”:”senvan”,
“type”:16,
“state”:”enable”,
“deviceNos”:[“D1001”,”D1002”,”D1003”]
}
7、查询产品列表
请求:
post:
http://localhost:8082/api/product/list
参数:
{
“name”:”彩膜”,
“type”:162
}
8、查询设备列表
请求:
post:
http://localhost:8082/api/device/list
参数:
{
“name”:”彩膜”,
“deviceNo”:162,
“state”:”disEnable”
}
9、剪切详情
请求:
post:
http://localhost:8082/api/product/curt
参数:
{
“id”:16,
“deviceNos”:”D1003”
}
