Skip to content

Commit b710745

Browse files
authored
Update README.md
1 parent eb030b5 commit b710745

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ APIJSON是一种JSON传输结构协议。<br />
149149
------------ | ------------ | ------------
150150
"key[]":{},后面是标准的JSONObject | 查询数组 | ["User[]":{"User":{"sex":1}}](http://139.196.140.118:8080/get/{"User[]":{"count":3,"User":{"sex":1}}}),查询性别为女的一个的User数组,请求完成后会变为 "User[]":{"0":{"User":{"id":38710,"sex":1,"name":"Tommy"...}}, "1":{"User":{"id":82001,"sex":1,"name":"Lemon"...}} ...}
151151
"key{}":[],后面是标准的JSONArray,作为key可取的值的选项 | 匹配选项范围 | "id{}":[38710,82001,70793],查询id符合38710,82001,70793中任意一个的Object。一般用于查询一个数组。请求[{"[]":{"User":{"id{}":[38710,82001,70793]}}}](http://139.196.140.118:8080/get/{"[]":{"count":3,"User":{"id{}":[38710,82001,70793]}}})会返回一个User数组,例如上面那个。
152-
"key{}":"条件0,条件1...",非Number类型必须用''包含条件的值 | 匹配条件范围 | "id{}":">=80000,\<=100000",查询id在80000,100000中任意一个的Object。一般用于查询一个数组。请求[{"[]":{"User":{"id{}":">=80000,\<=100000"}}}](http://139.196.140.118:8080/get/{"[]":{"count":3,"User":{"id{}":">=80000,\<=100000"}}})会返回一个User数组,例如上面那个。
152+
"key{}":"条件0,条件1...",非Number类型必须用''包含条件的值,如'a' | 匹配条件范围 | "id{}":">=80000,\<=100000",查询id在80000,100000中任意一个的Object。一般用于查询一个数组。请求[{"[]":{"User":{"id{}":">=80000,\<=100000"}}}](http://139.196.140.118:8080/get/{"[]":{"count":3,"User":{"id{}":">=80000,\<=100000"}}})会返回一个User数组,例如上面那个。
153153
"key()":"函数表达式", 函数表达式为 function(Type0:value0,Type1:value1...) | 远程调用函数 | ["isPraised()":"contains(Collection:praiseUserIdList,userId)"](http://139.196.140.118:8080/get/{"Moment":{"id":301,"isPraised()":"contains(Collection:praiseUserIdList,userId)"}}),请求完成后会调用 boolean contains(Collection collection, Object object) 函数,然后变为 "isPraised":true 这种(假设点赞用户id列表包含了userId,即这个User点了赞)。函数参数类型为Object时可用 value 替代 Object:value。
154154
"key@":"依赖路径",依赖路径为用/分隔的字符串 | 依赖引用 | ["userId@":"/User/id"](http://139.196.140.118:8080/get/%7B%22User%22%3A%7B%22id%22%3A38710%7D%2C%22Moment%22%3A%7B%22userId%40%22%3A%22%252FUser%252Fid%22%7D%7D),userId依赖引用同级User内的id值,假设id=1,则请求完成后会变成 "userId":1
155155
"key$":"SQL搜索表达式",任意标准SQL搜索表达式字符串,如 %key%, %k%e%y% 等 | 模糊搜索 | "name$":"%Tommy%",搜索包含Tommy的名字。一般用于查询一个数组。请求 [{"[]":{"User":{"name$":"%Tommy%"}}}](http://139.196.140.118:8080/get/%7B%22%5B%5D%22%3A%7B%22User%22%3A%7B%22name%24%22%3A%22%2525Tommy%2525%22%7D%2C%22count%22%3A3%2C%22page%22%3A0%7D%7D) 会返回name包含"Tommy"的User数组。

0 commit comments

Comments
 (0)