ControlProxy/access-control-template/actemplate/IODAC.yjs

43 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-11-17 13:37:42 +00:00
module DOAuth {
@Description("针对某一DO添加用户的访问权限")
@ArgSchema({
"doId" : "string", "publicKey" : "string"
})
export function addAuthedUser(arg) {
return {
"code" : 0
};
}
@Description("针对某一DO删除用户的访问权限")
@ArgSchema({
"doId" : "string", "publicKey" : "string"
})
export function deleteAuthedUser(arg) {
return {
"code" : 0
};
}
@Description("针对某一DO添加节点的访问权限所有调用进带该节点授权的用户均可访问")
@ArgSchema({
"doId" : "string", "publicKey" : "string"
})
export function addAuthedNode(arg) {
return {
"code" : 0
};
}
@Description("针对某一DO删除节点的访问权限")
@ArgSchema({
"doId" : "string", "publicKey" : "string"
})
export function deleteAuthedNode(arg) {
return {
"code" : 0
};
}
}