feat: expose credit limit functions via ServerEnv and register RBAC paths
This commit is contained in:
parent
9696d4334b
commit
5da6ddd7d5
@ -10,6 +10,7 @@ from .getaccount import getAccountBalance, getCustomerBalance, getAccountByName,
|
|||||||
from .stats import get_accounting_stats
|
from .stats import get_accounting_stats
|
||||||
from .recharge import RechargeBiz, recharge_accounting
|
from .recharge import RechargeBiz, recharge_accounting
|
||||||
from .consume import consume_accounting
|
from .consume import consume_accounting
|
||||||
|
from .creditlimit import get_credit_limit_for_account, update_used_credit, set_credit_limit
|
||||||
|
|
||||||
async def all_my_accounts(request):
|
async def all_my_accounts(request):
|
||||||
env = request._run_ns
|
env = request._run_ns
|
||||||
@ -73,3 +74,6 @@ def load_accounting():
|
|||||||
g.all_my_accounts = all_my_accounts
|
g.all_my_accounts = all_my_accounts
|
||||||
g.openRetailRelationshipAccounts = openRetailRelationshipAccounts
|
g.openRetailRelationshipAccounts = openRetailRelationshipAccounts
|
||||||
g.get_accounting_stats = get_accounting_stats
|
g.get_accounting_stats = get_accounting_stats
|
||||||
|
g.get_credit_limit_for_account = get_credit_limit_for_account
|
||||||
|
g.update_used_credit = update_used_credit
|
||||||
|
g.set_credit_limit = set_credit_limit
|
||||||
|
|||||||
@ -68,7 +68,13 @@ PATHS_LOGINED = [
|
|||||||
f"/accounting/stat_month_consumption.ui",
|
f"/accounting/stat_month_consumption.ui",
|
||||||
f"/accounting/stat_today_consumption.ui",
|
f"/accounting/stat_today_consumption.ui",
|
||||||
f"/accounting/stat_total_balance.ui",
|
f"/accounting/stat_total_balance.ui",
|
||||||
f"/accounting/subject",]
|
f"/accounting/subject",
|
||||||
|
f"/accounting/credit_limit",
|
||||||
|
f"/accounting/credit_limit/index.ui",
|
||||||
|
f"/accounting/credit_limit/get_credit_limit.dspy",
|
||||||
|
f"/accounting/credit_limit/add_credit_limit.dspy",
|
||||||
|
f"/accounting/credit_limit/update_credit_limit.dspy",
|
||||||
|
f"/accounting/credit_limit/delete_credit_limit.dspy",]
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# 执行注册
|
# 执行注册
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user