Permission management and resource control
A server receives an association request initiated by a user of a first account. Based on the association request, an account identifier of a second account is identified. The first account is associated with the second account based on the account identifier. In response to associating the first account with the second account, a partial permission is granted to the first account for accessing the second account.
1. A computer-implemented method, comprising:
receiving, by a server, an association request initiated by a user of a first account;
identifying an account identifier of a second account based on the association request;
associating the first account with the second account based on the account identifier;
in response to associating the first account with the second account, granting a partial permission to the first account for accessing the second account, wherein the partial permission comprises permission to vote on an operation to be performed by the second account;
determining, by the server, that a requested operation on the second account is an operation to be voted on by the first account;
initiating, by the server, a voting operation by the first account;
determining, by the server, whether a result of the voting operation meets a predetermined condition; and
in response to determining that the result of the voting operation meets the predetermined condition, allowing the requested operation on the second account, or
in response to determining that the result of the voting operation does not meet the predetermined condition, rejecting the requested operation on the second account.
2. The computer-implemented method of claim 1 , wherein the first account is a private account and the second account is a public account.
3. The computer-implemented method according to claim 1 , wherein the partial permission further comprises at least one of:
permission to query resource information corresponding to the second account; and
permission to transfer a resource to the second account.
4. The computer-implemented method of claim 1 , comprising:
associating the first account with a plurality of second accounts; or
associating the second account with a plurality of first accounts.
5. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
receiving, by a server, an association request initiated by a user of a first account;
identifying an account identifier of a second account based on the association request;
associating the first account with the second account based on the account identifier;
in response to associating the first account with the second account, granting a partial permission to the first account for accessing the second account, wherein the partial permission comprises permission to vote on an operation to be performed by the second account;
determining, by the server, that a requested operation on the second account is an operation to be voted on by the first account;
initiating, by the server, a voting operation by the first account;
determining, by the server, whether a result of the voting operation meets a predetermined condition; and
in response to determining that the result of the voting operation meets the predetermined condition, allowing the requested operation on the second account, or
in response to determining that the result of the voting operation does not meet the predetermined condition, rejecting the requested operation on the second account.
6. The non-transitory, computer-readable medium of claim 5 , wherein the first account is a private account and the second account is a public account.
7. The non-transitory, computer-readable medium of claim 5 , wherein the partial permission further comprises at least one of:
permission to query resource information corresponding to the second account; and
permission to transfer a resource to the second account.
8. The non-transitory, computer-readable medium of claim 5 , comprising:
associating the first account with a plurality of second accounts; or
associating the second account with a plurality of first accounts.
9. A computer-implemented system, comprising:
one or more computers; and
one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform operations comprising:
receiving, by a server, an association request initiated by a user of a first account;
identifying an account identifier of a second account based on the association request;
associating the first account with the second account based on the account identifier;
in response to associating the first account with the second account, granting a partial permission to the first account for accessing the second account, wherein the partial permission comprises permission to vote on an operation to be performed by the second account;
determining, by the server, that a requested operation on the second account is an operation to be voted on by the first account;
initiating, by the server, a voting operation by the first account;
determining, by the server, whether a result of the voting operation meets a predetermined condition; and
in response to determining that the result of the voting operation meets the predetermined condition, allowing the requested operation on the second account, or
in response to determining that the result of the voting operation does not meet the predetermined condition, rejecting the requested operation on the second account.
10. The computer-implemented system of claim 9 , wherein the first account is a private account and the second account is a public account.
11. The computer-implemented system of claim 9 , wherein the partial permission further comprises at least one of:
permission to query resource information corresponding to the second account; and
permission to transfer a resource to the second account.
12. The computer-implemented system of claim 9 , comprising:
associating the first account with a plurality of second accounts; or
associating the second account with a plurality of first accounts.