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-11-09 02:26:16 +08:00
|
|
|
__all__ = [
|
|
|
|
'WarehousePermission', 'ClientPermission', 'SupplierPermission', 'AccountPermission',
|
2022-03-07 16:11:30 +08:00
|
|
|
'ChargeItemPermission',
|
2021-11-04 23:49:56 +08:00
|
|
|
]
|