Esempio n. 1
0
 def delete(self, data):
     """
     :param data:
     :return:
     """
     model = KeywordModel.query.get(data['id'])
     if model is not None:
         soft_delete(model)
Esempio n. 2
0
 def delete(self, data):
     """
     :param data:
     :return:
     """
     id = data.get('id')
     result = ReportModel.query.get(id)
     soft_delete(result)
Esempio n. 3
0
 def delete(self, data):
     """
     :param data:
     :return:
     """
     id = data.pop('id')
     result = MockModel.query.get(id)
     soft_delete(result)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def detele(self, data):
     """
     :param data:
     :return:
     """
     model = TeamModel.query.get(data['id'])
     if model is not None:
         soft_delete(model)
     return model.id
Esempio n. 6
0
 def delete(self, data):
     """
     :param data:
     :return:
     """
     id = data.get('id')
     model = KeywordModel.query.get(id)
     if model is not None:
         soft_delete(model)
Esempio n. 7
0
    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)