whyclj
2020-04-28 74328e2638ce3b09a126e8343af651256250b8ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package com.fgkj.actions;
 
import com.fgkj.services.AuthService;
import com.fgkj.services.FaceDetect;
 
 
public class FaceIdentify extends ActionUtil{
    private String json;    
    private String result;
    
    /**
     *     获取refresh_token 值
     * @return
     */
    public String Auth(){
        String json = AuthService.getAuth();
        result = getGson().toJson(json);
        return SUCCESS;
    }
 
    /**
     *   检测人脸
     * @return
     */
    public String faceDetect(){
        String str = FaceDetect.faceDetect(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    /**
     *     人脸搜索
     * @return
     */
    public String faceSearch(){
        String str = FaceDetect.faceSearch(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    /**
     * 添加人脸
     * @return
     */
    public String faceAdd(){
        String str = FaceDetect.faceAdd(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    /**
     * 删除人脸
     * @return
     */
    public String faceDelete(){
        String str = FaceDetect.faceDelete(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    /**
     * 人脸更新
     * @return
     */
    public String faceUpdate(){
        String str = FaceDetect.faceUpdate(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    /**
     * 获取用户人脸列表
     * @return
     */
    public String faceGetList(){
        String str = FaceDetect.faceGetList(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
 
    /**
     * 获取用户列表
     * @return
     */
    public String groupGetusers(){
        String str = FaceDetect.groupGetusers(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    /**
     * 获取人脸复制{用户从一个班组复制到另一个班组}
     * @return
     */
    public String faceCopy(){
        String str = FaceDetect.faceCopy(json);
        result = getGson().toJson(str);
        return SUCCESS;
    }
    
    public String getResult() {
        return result;
    }
 
 
    public void setJson(String json) {
        this.json = json;
    }
}