Ehance update change set

This commit is contained in:
wqy
2022-09-07 20:53:55 +08:00
parent bca5f61fff
commit fb28c3c610
3 changed files with 7 additions and 7 deletions

View File

@@ -10,5 +10,5 @@ class ChangeSet:
def delete(self, type: str, id: str) -> None:
self.deleted.append({ 'type': type, 'id': id })
def update(self, type: str, id: str, property: str) -> None:
self.updated.append({ 'type': type, 'id': id, 'property': property })
def update(self, type: str, id: str, property_name: str, property_type: str, property_value: str) -> None:
self.updated.append({ 'type': type, 'id': id, 'property': property, 'property_type': property_type, 'property_value': property_value })