Exemple #1
0
 def get_data(self, models, is_dict=False):
     state, model = BaseOperate.get_data(self, models, is_dict)
     return self.__new_res(state, model)
Exemple #2
0
 def delete(self):
     state, model = BaseOperate.delete(self)
     return self.__new_res(state, model)
Exemple #3
0
 def get(self, **kwargs):
     state, model = BaseOperate.get(self, **kwargs)
     return self.__new_res(state, model)
Exemple #4
0
 def delete_model(self, ids):
     state, model = BaseOperate.delete_model(self, ids)
     return self.__new_res(state, model)
Exemple #5
0
 def update(self):
     state, model = BaseOperate.update(self)
     return self.__new_res(state, model)
Exemple #6
0
 def update_model(self, model, *arg, **kwargs):
     state, model = BaseOperate.update_model(self, model, *arg, **kwargs)
     return self.__new_res(state, model)
Exemple #7
0
 def add_model(self, *args, **kwargs):
     state, model = BaseOperate.add_model(self, *args, **kwargs)
     return self.__new_res(state, model)
Exemple #8
0
 def add(self):
     state, model = BaseOperate.add(self)
     return self.__new_res(state, model)