ControlProxy/access-control-template/actemplate/IODAC.yjs
2023-11-17 21:37:42 +08:00

43 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
};
}
}