傅行帆 6 jaren geleden
bovenliggende
commit
fb3df07109

+ 24
- 0
CODE/smart-community/hardware-server/src/main/java/com/community/huiju/controller/HardwareController.java Bestand weergeven

@@ -8,6 +8,8 @@ import org.springframework.cloud.context.config.annotation.RefreshScope;
8 8
 import org.springframework.web.bind.annotation.RequestMapping;
9 9
 import org.springframework.web.bind.annotation.RestController;
10 10
 
11
+import javax.xml.bind.util.JAXBSource;
12
+
11 13
 /**
12 14
  * @author FXF
13 15
  * @date 2019-07-03
@@ -23,4 +25,26 @@ public class HardwareController {
23 25
 	
24 26
 	@Autowired
25 27
 	private HkHardwareServiceI hkHardwareService;
28
+	
29
+	
30
+	public String addFace(String jsonString){
31
+		//解析json
32
+		//厂家信息
33
+		if ("HK".equals(jsonString)){
34
+			//硬件信息
35
+			if ("KSDJ".equals(jsonString)){
36
+				//下发人脸权限
37
+			}else if ("MJ".equals(jsonString)){
38
+				//下发人脸权限
39
+			}
40
+		}else if ("FS".equals(jsonString)){
41
+			//硬件信息
42
+			if ("KSDJ".equals(jsonString)){
43
+				//下发人脸权限
44
+			}else if ("MJ".equals(jsonString)){
45
+				//下发人脸权限
46
+			}
47
+		}
48
+		return "";
49
+	}
26 50
 }

+ 0
- 39
CODE/smart-community/hardware-server/src/main/java/com/community/huiju/feign/TaUserFeignService.java Bestand weergeven

@@ -1,39 +0,0 @@
1
-package com.community.huiju.feign;
2
-
3
-import com.community.commom.mode.ResponseBean;
4
-import com.community.huiju.feign.impl.TaUserFeignFallBack;
5
-import org.springframework.cloud.openfeign.FeignClient;
6
-import org.springframework.web.bind.annotation.*;
7
-
8
-@FeignClient(value = "app-api", fallback = TaUserFeignFallBack.class)
9
-public interface TaUserFeignService {
10
-
11
-    /**
12
-     * 注册
13
-     *      JSON类型
14
-     *      userName用户姓名;idCard身份证;gender性别(1:男  2:女);loginName手机号;code验证码
15
-     *
16
-     * @param parameter
17
-     * @return
18
-     */
19
-    @RequestMapping(value = "/user/register",method = RequestMethod.POST)
20
-    ResponseBean register(@RequestBody String parameter);
21
-
22
-    /**
23
-     * 推送海康人员添加
24
-     * @param appUserId
25
-     * @return
26
-     */
27
-    @RequestMapping(value = "/pushHKPerson/{appUserId}", method = RequestMethod.POST)
28
-    ResponseBean pushHKPerson(@PathVariable("appUserId") Integer appUserId, @RequestParam("userVerifyId") Integer userVerifyId);
29
-
30
-    /**
31
-     * 异动下载门禁权限
32
-     * @return
33
-     */
34
-    @RequestMapping(value = "/downloadAuthorityByDeviceUuids", method = RequestMethod.POST)
35
-    ResponseBean downloadAuthorityByDeviceUuids();
36
-
37
-
38
-
39
-}

+ 0
- 31
CODE/smart-community/hardware-server/src/main/java/com/community/huiju/feign/impl/TaUserFeignFallBack.java Bestand weergeven

@@ -1,31 +0,0 @@
1
-package com.community.huiju.feign.impl;
2
-
3
-import com.community.commom.mode.ResponseBean;
4
-import com.community.huiju.feign.TaUserFeignService;
5
-import lombok.extern.slf4j.Slf4j;
6
-
7
-@Slf4j
8
-public class TaUserFeignFallBack implements TaUserFeignService {
9
-
10
-    @Override
11
-    public ResponseBean register(String parameter) {
12
-        return back();
13
-    }
14
-
15
-    @Override
16
-    public ResponseBean pushHKPerson(Integer appUserId,Integer userVerifyId) {
17
-        return back();
18
-    }
19
-
20
-    @Override
21
-    public ResponseBean downloadAuthorityByDeviceUuids() {
22
-        return back();
23
-    }
24
-
25
-    private ResponseBean back() {
26
-        log.error("app-api 远端服务请求失败!");
27
-        ResponseBean responseBean = new ResponseBean();
28
-        responseBean.addError("app-api 远端服务请求失败!");
29
-        return responseBean;
30
-    }
31
-}