81 lines
2.0 KiB
JavaScript
81 lines
2.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const actionAuths = [
|
|
{
|
|
id: 'creator-order',
|
|
pathId: 'creator-order',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
{
|
|
id: 'creator-pay',
|
|
pathId: 'creator-pay',
|
|
deActions: ['select', 'create']
|
|
},
|
|
{
|
|
id: 'user-acc-pay',
|
|
pathId: 'user-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: 'user-withdrawAccount',
|
|
pathId: 'user-withdrawAccount',
|
|
deActions: ['select', 'create', 'update', 'remove'],
|
|
},
|
|
{
|
|
id: 'creator-withdraw',
|
|
pathId: 'creator-withdraw',
|
|
deActions: ['select', 'create'],
|
|
},
|
|
{
|
|
id: 'user-account-withdraw',
|
|
pathId: 'user-account-withdraw',
|
|
deActions: ['select'],
|
|
},
|
|
//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'],
|
|
},
|
|
// 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'],
|
|
}
|
|
];
|
|
exports.default = actionAuths;
|