组织架构服务
一.绑定手机号,返回基础信息
1./bind/phone 参数:isVisitor 是否访客 ;type:客户端类型 ;key:openid;phone:手机号;tenantUuid:租户标识
// 云平台
1. 获取鉴权token:http://client.chinaidts.com/api/tecsun-security-sso/authentication/social?socialType="+socialType+"&principal="+principal+"&orgId="+orgId
参数:socialType:客户端类型;principal:openid;orgId:企业
2.注册:http://client.chinaidts.com/api/tecsun-security-sso/api/tecsun-security-sso/v1/social/register/"+orgId
参数:orgId:企业;socialType:客户端类型;principal:openid;username:手机号
3.获取基础信息: http://client.chinaidts.com/api/app-organization-service-provider/v1/user-info/tree
参数:token
4.新增访客 :http://client.chinaidts.com/api/app-organization-service-provider/v1/external
参数:name:姓名;phone:手机号;company:单位
二.微信解绑
1./unbind 参数:uuid:用户uuid,tenantUuid:租户标识
//云平台
1. http://client.chinaidts.com/api/app-organization-service-provider/v1/social-user-info/my?socialType="+socialType+"&clientKey="+clientKey
参数:token;socialType:客户端类型;clientKey:openid;
三.获取基础信息
1. /base || /base/avatar || /base/fast || /base/card || /unit/base 参数:uuid:用户uuid,tenantUuid:租户标识
//云平台
1. 获取基础信息:http://client.chinaidts.com/api/app-organization-service-provider/v1/user-info/"+uuid
参数:token;uuid:userInfoId
2.新增访客 :http://client.chinaidts.com/api/app-organization-service-provider/v1/external
四.修改基础信息
1./modify 参数:uuid:用户uuid;name:姓名;avatar:人脸uuid;company:单位;gender:性别;idCard:证件号码;country:国家;city:城市;province:省份;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/user-info/tree
参数: company:单位;sex:性别;certNumber:身份证号码;name:姓名;modify:1;city:城市;country:国家;province:省份
2.oss:http://client.chinaidts.com/v1/oss-upload/upload
参数: 文件名 存储路径
五.获取用户uuid列表
1./getUserIds 参数:name:姓名;idCard:证件号码;phone:手机号
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/external/page?page=10000&size=1
参数: token;name:姓名;idCard:证件号码;phone:手机号
六.获取员工uuid列表
1./getUnitMemberIds 参数:name:姓名;
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/page/like?page=1&size=100"+param;
参数: token;name:姓名
七.精准查询预约对象,通过手机 姓名 部门
1./like 参数:work:搜索字段;userUuid:用户uuid;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/page?page=1&size=100&phone=
参数: token;phone:手机
2.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/page?page=1&size=100&name=
参数: token;name:姓名
3.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/page?unitName=
参数: token;name:部门名称
八.模糊查询员工,通过手机 姓名
1./workflow/emp 参数:work:搜索字段;userUuid:用户uuid;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/page/like?page=1&size=100&name=
参数: token;name:姓名
2.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/page/like?page=1&size=100&phone=
参数: token;phone:手机号
九.新增一个访客
1./add/nature/people 参数:uuid:用户uuid;phone:手机号;name:姓名;companytenantUuid:租户标识
//云平台
1.新增访客 :http://client.chinaidts.com/api/app-organization-service-provider/v1/external
参数:name:姓名;phone:手机号;company:单位
九.返回绑定状态
1./isBind 参数:uuid:用户uuid;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/user-info/"+uuid;
参数:token;uuid:userInfoId
十.通过人员uuid,主管级别,返回主管uuid
1./leader 参数:userUuid:用户uuid;tenantUuid:租户标识;rank:级别
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/staff-tree/"+userInfoId
参数:userInfoId;token
2.http://client.chinaidts.com/api/app-organization-service-provider/v1/staff/staff-unit-tree/"+staffId;
参数:token;staffId:员工id
十一.模糊查询访客,通过手机 姓名
1./visitor 参数:work:搜索字段;userUuid:用户uuid;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/external/batch/ids?name="+name
参数:name;姓名
2.http://client.chinaidts.com/api/app-organization-service-provider/v1/external/batch/ids?phone="+phone
参数:token;phone:手机号
3.http://client.chinaidts.com/api/app-organization-service-provider/v1/external/batch?1=1&ids="+req;
参数:token;ids:访客ids
十二.通过手机查询访客
1./visitor/by/phone 参数:phone:手机号;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/external/batch/ids?phone="+phone;
参数:phone;手机号
十三.获取多端主键
1./ids 参数:userUuid:用户uuid;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/social-user-info/by-user-info-id/" + uuid;
参数:userUuid:userInfoId;手机号
2. 获取基础信息:http://client.chinaidts.com/api/app-organization-service-provider/v1/user-info/"+uuid
十四.根据员工uuid获取所有部门
1./user-all-dep 参数:userUuid:用户uuid;tenantUuid:租户标识
//云平台
1.http://client.chinaidts.com/api/app-organization-service-provider/v1/organization/all-unit-by-staff-id/+uuid
参数:uuid:userInfoId
设备服务
1.上传预约数据
url:http://client.chinaidts.com/swagger-ui/index.html?urls.primaryName=app-device-manager-service-provider
Authorization:token
data:{
"address": "string",
"avatar": "string",
"carNumber": "string",
"endTime": "2021-08-02T07:39:51.765Z",
"idCard": "string",
"insideName": "string",
"insidePhone": "string",
"name": "string",
"note": "string",
"phone": "string",
"qrcode": "string",
"reason": "string",
"sex": 0,
"startTime": "2021-08-02T07:39:51.765Z",
"tenant": "string",
"type": 0,
"unit": "string",
"userInfoId": 0,
"userUuid": "string",
"uuid": "string",
"visitAddress": "string"
}
2.(预约数据)访客到访
url:/v1/device/yun/arrival
header:tenant
data:{
"catchPhoto": "",
"deviceName": "string",
"deviceNo": "string",
"leaveTime": "string",
"personId": "string",
"type": 1, //1到访,2离开
"visitTime": "2021-08-03 15:00:00"
}
3.(现场登记)上传访客记录
url:/v1/device/yun/addVisitor
header:tenant
data={
"belongsList": "string",
"carKind": "string",
"carNumber": "string",
"cardNo": "string",
"catchPhoto": "string",
"certKind": "string",
"certNumber": "string",
"certPhoto": "string",
"deviceNo": "string",
"extend": "string",
"faceScore": "string",
"inDoorName": "string",
"leaveTime": "2021-08-02 16:00:00",
"outDoorName": "string",
"reason": "string",
"status": 0,
"visitNo": "string",
"visitTime": "2021-08-02 15:00:00",
"visitedCompany": "string",
"visitedDept": "string",
"visitedMobilePhone": "string",
"visitedName": "string",
"visitedPost": "string",
"visitedRoomNum": "string",
"visitedSex": 0,
"visitedTel": "string",
"visitorAddress": "string",
"visitorCompany": "string",
"visitorCount": 0,
"visitorName": "string",
"visitorPhone": "string",
"visitorSex": 0
}
4.(现场登记)上传访客记录(访客离访)
url:/v1/device/yun/leave
header:tenant
data={
"deviceName": "string",
"deviceNo": "string",
"leaveTime": "2021-08-02 16:00:00",
"visitNo": "string"
}