export default class Command {
  constructor(service) {
    this.service = service;
    this.type = 'Command';
    this.name = '命令';
    this.updatable = false;
    this.inMemory = true;
  }

  execute() {}

  undo() {}

  canUpdate() {
    return false;
  }

  update() {}

  getObject() {
    return this.object || null;
  }

  getChangedKeys() {
    return [];
  }

  toJSON() {
    return {
      type: this.type,
      name: this.name,
    };
  }

  fromJSON() {}
}
