Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
daa3a12b
Commit
daa3a12b
authored
Jan 23, 2020
by
gj4210
👽
Browse files
UPD: Added comments
parent
cadd708c
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/api-services/account_token.service.js
View file @
daa3a12b
...
...
@@ -3,11 +3,13 @@ import TransactionService from './transaction.service'
export
default
{
list
(
config
,
login_name
)
{
let
ta
=
[
{
"
name
"
:
"
cntl.mgr.list
"
,
"
old
"
:
{
"
login_name_list
"
:
[
login_name
]}},
{
"
name
"
:
"
cntl.mgr.list
"
,
"
old
"
:
{
"
parent_login_name
"
:
login_name
}},
{
"
name
"
:
"
cntl.wapi_auth.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
"
}},
{
"
name
"
:
"
cntl.mgr2role.list
"
,
"
join
"
:
{
"
0
"
:
"
cntl.wapi_auth.fkey_cntl_wapi_auth_mgr
"
}}
// TODO: Main and Subaccounts should be put-togetherable
{
"
name
"
:
"
cntl.mgr.list
"
,
"
old
"
:
{
"
login_name_list
"
:
[
login_name
]}},
// Main Account
{
"
name
"
:
"
cntl.mgr.list
"
,
"
old
"
:
{
"
parent_login_name
"
:
login_name
}},
// Subaccounts
{
"
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.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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment