HimoolERP/apps/statistic/permissions.py

29 lines
602 B
Python
Raw Normal View History

2021-12-16 17:54:31 +08:00
from extensions.permissions import ModelPermission
2021-11-04 23:49:56 +08:00
2021-12-26 23:00:08 +08:00
class PurchaseReportPermission(ModelPermission):
code = 'purchase_report'
class SalesReportPermission(ModelPermission):
code = 'sales_report'
2021-11-04 23:49:56 +08:00
2021-12-26 23:00:08 +08:00
2021-12-28 00:26:32 +08:00
class SalesHotGoodsPermission(ModelPermission):
code = 'sales_hot_goods'
class SalesTrendPermission(ModelPermission):
code = 'sales_trend'
2021-12-29 02:07:37 +08:00
class FinanceStatisticPermission(ModelPermission):
code = 'finance_statistic'
2021-12-26 23:00:08 +08:00
__all__ = [
'PurchaseReportPermission', 'SalesReportPermission',
2021-12-28 00:26:32 +08:00
'SalesHotGoodsPermission', 'SalesTrendPermission',
2022-03-07 16:23:36 +08:00
'FinanceStatisticPermission',
2021-11-04 23:49:56 +08:00
]