| | |
| | | name : "",
|
| | | companyName : "",
|
| | | // ...
|
| | | imgIdentity : "image base64"
|
| | | }
|
| | | Response:
|
| | | {
|
| | |
| | | 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. è·å¾æ¥è®¿äººåå表
|
| | |
| | | Response:
|
| | | æå/éè¯¯ç»æ
|
| | |
|
| | | insert or update VisitStat
|
| | |
|
| | | 3.5. è·å¾æè®¿äºç±é项å表
|
| | | Request:
|
| | | {
|