Commit daa3a12b authored by gj4210's avatar gj4210 👁
Browse files

UPD: Added comments

parent cadd708c
...@@ -3,11 +3,13 @@ import TransactionService from './transaction.service' ...@@ -3,11 +3,13 @@ import TransactionService from './transaction.service'
export default { export default {
list(config, login_name) { list(config, login_name) {
let ta = [ let ta = [
{"name": "cntl.mgr.list", "old": {"login_name_list": [login_name]}}, // TODO: Main and Subaccounts should be put-togetherable
{"name": "cntl.mgr.list", "old": {"parent_login_name": login_name}}, {"name": "cntl.mgr.list", "old": {"login_name_list": [login_name]}}, // Main Account
{"name": "cntl.wapi_auth.list", "join": {"0": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}}, {"name": "cntl.mgr.list", "old": {"parent_login_name": login_name}}, // Subaccounts
{"name": "cntl.wapi_auth.list", "join": {"1": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}}, {"name": "cntl.wapi_auth.list", "join": {"0": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}}, // Main Accounts (Session-) Tokens TODO: API doesn't return these for some reason
{"name": "cntl.mgr2role.list", "join": {"0": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}} {"name": "cntl.wapi_auth.list", "join": {"1": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}}, // Subaccount Tokens
{"name": "cntl.mgr2role.list", "join": {"0": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}}, // Main Account Roles
{"name": "cntl.mgr2role.list", "join": {"1": "cntl.wapi_auth.fkey_cntl_wapi_auth_mgr"}} // Subaccount Roles
] ]
return TransactionService.execute(config, ta); return TransactionService.execute(config, ta);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment