@@ -18,7 +18,6 @@ public interface Verifier<T> {
18
18
19
19
/**验证权限是否通过
20
20
* @param config
21
- * @param visitor
22
21
* @return
23
22
* @throws Exception
24
23
*/
@@ -37,12 +36,10 @@ public interface Verifier<T> {
37
36
void verifyRole (SQLConfig config , String table , RequestMethod method , String role ) throws Exception ;
38
37
39
38
/**登录校验
40
- * @param config
41
39
* @throws Exception
42
40
*/
43
41
void verifyLogin () throws Exception ;
44
42
/**管理员角色校验
45
- * @param config
46
43
* @throws Exception
47
44
*/
48
45
void verifyAdmin () throws Exception ;
@@ -67,24 +64,36 @@ public interface Verifier<T> {
67
64
void verifyRepeat (String table , String key , Object value , long exceptId ) throws Exception ;
68
65
69
66
/**验证请求参数的数据和结构
70
- * @param table
71
- * @param key
72
- * @param value
73
- * @param exceptId 不包含id
67
+ * @param method
68
+ * @param name
69
+ * @param target
70
+ * @param request
71
+ * @param maxUpdateCount
72
+ * @param globalDatabase
73
+ * @param globalSchema
74
+ * @param creator
75
+ * @return
74
76
* @throws Exception
75
77
*/
76
78
JSONObject verifyRequest (RequestMethod method , String name , JSONObject target , JSONObject request ,
77
79
int maxUpdateCount , String globalDatabase , String globalSchema , SQLCreator creator ) throws Exception ;
78
80
79
81
/**验证返回结果的数据和结构
80
- * @param table
81
- * @param key
82
- * @param value
83
- * @param exceptId 不包含id
82
+ * @param method
83
+ * @param name
84
+ * @param target
85
+ * @param response
86
+ * @param database
87
+ * @param schema
88
+ * @param creator
89
+ * @param callback
90
+ * @return
84
91
* @throws Exception
85
92
*/
86
- JSONObject verifyResponse (RequestMethod method , String name , JSONObject target , JSONObject response ,
87
- String database , String schema , SQLCreator creator , OnParseCallback callback ) throws Exception ;
93
+ JSONObject verifyResponse (
94
+ RequestMethod method , String name , JSONObject target , JSONObject response ,
95
+ String database , String schema , SQLCreator creator , OnParseCallback callback
96
+ ) throws Exception ;
88
97
89
98
90
99
@ NotNull
0 commit comments