hainan
parent
af30f6cf41
commit
fc1d3c074f
2
pom.xml
2
pom.xml
|
|
@ -94,7 +94,7 @@
|
|||
<dependency>
|
||||
<groupId>cn.cloudowr</groupId>
|
||||
<artifactId>sdk</artifactId>
|
||||
<version>1.3.4</version>
|
||||
<version>1.3.6</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -10,24 +10,43 @@ upload (json optional, file) {
|
|||
download (String id required) {
|
||||
return attach's oss url
|
||||
}
|
||||
attach (key-value pairs) {
|
||||
return attach list json
|
||||
index (
|
||||
pageSize optional default 20,
|
||||
pageNum optional default 1,
|
||||
json optional,
|
||||
proj optional,
|
||||
sort optional
|
||||
) {
|
||||
special json: {
|
||||
key: $ex //exists
|
||||
key: $nex //not exists
|
||||
key: $revalue //模糊查询,例:$re^te te开头的value
|
||||
},
|
||||
proj json: {
|
||||
key1: 1,
|
||||
key2:0
|
||||
//必须全是1或者全是0,id除外
|
||||
},
|
||||
sort: {
|
||||
key1: 'desc',
|
||||
key2: 'asc'
|
||||
}
|
||||
attAchList (int pageNum default 0, int pageSize default 20) {
|
||||
return attach list json
|
||||
return dict list json
|
||||
}
|
||||
addAttach (String name required, key-value pairs) {
|
||||
return attach json
|
||||
show (id required) {
|
||||
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...}
|
||||
}
|
||||
updateAttach (String id required, String action optional, String[] keys optional) {
|
||||
if (actions === 'unset') {
|
||||
删除指定id的attach的指定key
|
||||
return {result: true or false}
|
||||
} else {
|
||||
覆盖指定id的attach的指定key的对应value
|
||||
return {result : true or false}
|
||||
}
|
||||
}
|
||||
deleteAttach (String id required) {
|
||||
return return {result: true or false}
|
||||
delete (id required) {
|
||||
return {result: true or false}
|
||||
}
|
||||
Loading…
Reference in New Issue