houxiao
2017-03-14 2831568cfe3e53c56fa10ee9652b9efa0d75c880
添加接口描述 sql

git-svn-id: http://192.168.1.226/svn/proxy@152 454eff88-639b-444f-9e54-f578c98de674
1个文件已修改
18 ■■■■ 已修改文件
VisitFace/document/erdb api接口描述.txt 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/document/erdb api½Ó¿ÚÃèÊö.txt
@@ -241,7 +241,6 @@
    name : "",
    companyName : "",
    // ...
    imgIdentity : "image base64"
}
Response:
{
@@ -249,17 +248,30 @@
    personID : 123
}
2.4. æ³¨å†Œäººè„¸
a) find by name, (IdentityTypeID, identity), phone ... from Person
b) if Person exists return error
c) else insert into Person
d) companyID = (select * from or insert Company where name = "$companyName")
2.4. æ³¨å†Œè®¿å®¢äººè„¸(visit face register)
Request:
{
    registerCompanyID : 123,
    personID : 123,
    imgs : [ "image base64" ] // å¯¹åº”一个人的若干个人脸图像
    imgIdentity : "image base64"
}
Response:
{
    faceIDs : [ 123 ]
}
a)select exists(*) from person where id="$personID"
b)if not exists return error
c)保存imgIdentity到文件存储,并插入Image表
d)VisitFace.imagePath = ä¿å­˜imgs到文件存储
e)调用人脸识别服务[faceids]=(registerCompanyID, dbid=0, img)
f)对于每一个faceid,insert into VisitFace ("$FaceID", $PersonID, "$VisitFace.imagePath")
3. æ¥è®¿ç™»è®°
3.1. èŽ·å¾—æ¥è®¿äººå‘˜åˆ—è¡¨
@@ -343,6 +355,8 @@
Response:
成功/错误结果
insert or update VisitStat
3.5. èŽ·å¾—æ‹œè®¿äº‹ç”±é€‰é¡¹åˆ—è¡¨
Request:
{