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