90 lines
2.2 KiB
JavaScript
90 lines
2.2 KiB
JavaScript
const actionAuths = [
|
|
{
|
|
id: 'creator-order',
|
|
pathId: 'creator-order',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
{
|
|
id: 'creator-pay',
|
|
pathId: 'creator-pay',
|
|
deActions: ['select', 'create']
|
|
},
|
|
{
|
|
id: 'creator-order-pay',
|
|
pathId: 'creator-order-pay',
|
|
deActions: ['select', 'create', 'startPaying', 'startRefunding', 'close']
|
|
},
|
|
{
|
|
id: 'user-dep-acc-pay',
|
|
pathId: 'user-dep-acc-pay',
|
|
deActions: ['select', 'update', 'startPaying', 'startRefunding', 'close']
|
|
},
|
|
{
|
|
id: 'creator-refund',
|
|
pathId: 'creator-refund',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
{
|
|
id: 'user-acc-pay-refund',
|
|
pathId: 'user-acc-pay-refund',
|
|
deActions: ['select']
|
|
},
|
|
{
|
|
id: 'creator-withdraw',
|
|
pathId: 'creator-withdraw',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
{
|
|
id: 'user-account-withdraw',
|
|
pathId: 'user-account-withdraw',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
//account
|
|
{
|
|
id: 'account-user',
|
|
pathId: 'user-acc',
|
|
deActions: ['select', 'deposit', 'withdraw', 'consume', 'loan'],
|
|
},
|
|
//deposit
|
|
{
|
|
id: 'deposit-creator',
|
|
pathId: 'creator-deposit',
|
|
deActions: ['create'],
|
|
},
|
|
{
|
|
id: 'deposit-account-user',
|
|
pathId: 'user-account-deposit',
|
|
deActions: ['fail', 'select', 'create'],
|
|
},
|
|
// accountOper
|
|
{
|
|
id: 'user-acc-oper',
|
|
pathId: 'user-acc-oper',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
// withdrawAccount
|
|
{
|
|
id: 'user-withdrawAccount',
|
|
pathId: 'user-withdrawAccount',
|
|
deActions: ['select', 'create', 'remove', 'disable', 'update'],
|
|
},
|
|
// withdrawTransfer
|
|
{
|
|
id: 'user-acc-wdtransfer',
|
|
pathId: 'user-acc-wdtransfer',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
//ship
|
|
{
|
|
id: 'user-deposit-ship',
|
|
pathId: 'user-deposit-ship',
|
|
deActions: ['select', 'succeedReceiving', 'reject'],
|
|
},
|
|
{
|
|
id: 'creator-deposit-ship',
|
|
pathId: 'creator-deposit-ship',
|
|
deActions: ['select', 'succeedReceiving', 'reject'],
|
|
}
|
|
];
|
|
export default actionAuths;
|