lyf666 2017-03-03 10:27:24 +08:00
parent af30f6cf41
commit fc1d3c074f
2 changed files with 38 additions and 19 deletions

View File

@ -94,7 +94,7 @@
<dependency> <dependency>
<groupId>cn.cloudowr</groupId> <groupId>cn.cloudowr</groupId>
<artifactId>sdk</artifactId> <artifactId>sdk</artifactId>
<version>1.3.4</version> <version>1.3.6</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -10,24 +10,43 @@ upload (json optional, file) {
download (String id required) { download (String id required) {
return attach's oss url return attach's oss url
} }
attach (key-value pairs) { index (
return attach list json pageSize optional default 20,
} pageNum optional default 1,
attAchList (int pageNum default 0, int pageSize default 20) { json optional,
return attach list json proj optional,
} sort optional
addAttach (String name required, key-value pairs) { ) {
return attach json special json: {
} key: $ex //exists
updateAttach (String id required, String action optional, String[] keys optional) { key: $nex //not exists
if (actions === 'unset') { key: $revalue //模糊查询,例:$re^te te开头的value
删除指定id的attach的指定key },
return {result: true or false} proj json: {
} else { key1: 1,
覆盖指定id的attach的指定key的对应value key2:0
return {result: true or false} //必须全是1或者全是0id除外
},
sort: {
key1: 'desc',
key2: 'asc'
} }
return dict list json
} }
deleteAttach (String id required) { show (id required) {
return return {result: true or false} return dict json
}
save (json required) {
return saved dict json with id
}
update (id required, json required) {
json {
$set: {k,v...},
$unset: [k1,k2...],
$rename: {k,newK...}
}
return {result : true or false}
}
delete (id required) {
return {result: true or false}
} }