2021-11-04 23:49:56 +08:00
|
|
|
from extensions.permissions import InterfacePermission
|
|
|
|
|
|
|
|
|
2021-11-09 02:26:16 +08:00
|
|
|
class WarehousePermission(InterfacePermission):
|
|
|
|
code = 'warehouse'
|
|
|
|
|
|
|
|
|
|
|
|
class ClientPermission(InterfacePermission):
|
|
|
|
code = 'client'
|
|
|
|
|
|
|
|
|
|
|
|
class SupplierPermission(InterfacePermission):
|
|
|
|
code = 'supplier'
|
|
|
|
|
|
|
|
|
|
|
|
class AccountPermission(InterfacePermission):
|
|
|
|
code = 'account'
|
|
|
|
|
|
|
|
|
|
|
|
class ChargeItemPermission(InterfacePermission):
|
|
|
|
code = 'charge_item'
|
|
|
|
|
2021-11-04 23:49:56 +08:00
|
|
|
|
2021-11-09 02:26:16 +08:00
|
|
|
class ClientCategoryPermission(InterfacePermission):
|
|
|
|
code = 'client_category'
|
|
|
|
|
|
|
|
|
|
|
|
class SupplierCategoryPermission(InterfacePermission):
|
|
|
|
code = 'supplier_category'
|
|
|
|
|
|
|
|
|
|
|
|
class GoodsCategoryPermission(InterfacePermission):
|
|
|
|
code = 'goods_category'
|
|
|
|
|
|
|
|
|
|
|
|
class GoodsUnitPermission(InterfacePermission):
|
|
|
|
code = 'goods_unit'
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
'WarehousePermission', 'ClientPermission', 'SupplierPermission', 'AccountPermission',
|
|
|
|
'ChargeItemPermission', 'ClientCategoryPermission', 'SupplierCategoryPermission',
|
|
|
|
'GoodsCategoryPermission', 'GoodsUnitPermission',
|
2021-11-04 23:49:56 +08:00
|
|
|
]
|