def delete(self, data): """ :param data: :return: """ model = KeywordModel.query.get(data['id']) if model is not None: soft_delete(model)
def delete(self, data): """ :param data: :return: """ id = data.get('id') result = ReportModel.query.get(id) soft_delete(result)
def delete(self, data): """ :param data: :return: """ id = data.pop('id') result = MockModel.query.get(id) soft_delete(result)
def delete(self, data): """ :param data: :return: """ id_list = data.pop('id_list') for id in id_list: result = InterfaceModel.query.get(id) soft_delete(result)
def detele(self, data): """ :param data: :return: """ model = TeamModel.query.get(data['id']) if model is not None: soft_delete(model) return model.id
def delete(self, data): """ :param data: :return: """ id = data.get('id') model = KeywordModel.query.get(id) if model is not None: soft_delete(model)
def delete(self, data): """ :param data: :return: """ id = data.pop('id') ids = [id] if isinstance(id, ( int, str, )) else list(id) for id in ids: result = TaskModel.query.get(id) soft_delete(result)