10 lines
401 B
Python
10 lines
401 B
Python
from apps.shop.models import Cart as CartModel
|
|
|
|
|
|
def list_cart(cuser_role_uuid: str, workspace_uuid: str) -> CartModel:
|
|
return CartModel.objects.filter(sys_ws__uuid=workspace_uuid, cuser_role__uuid=cuser_role_uuid)
|
|
|
|
|
|
def clean_cart(cuser_role_uuid: str, workspace_uuid: str) -> CartModel:
|
|
return CartModel.objects.filter(sys_ws__uuid=workspace_uuid, cuser_role__uuid=cuser_role_uuid).delete()
|