def test_send_para(self): """ Test get exist option """ OrcTest.test_print_begin() init_log() _para_01 = OrcParameter().send_para("abc") OrcTest.test_print_result("Parameter para_01 is: %s, type is %s" % (_para_01, type(_para_01))) _para_02 = OrcParameter().send_para(["abc", "def"]) OrcTest.test_print_result("Parameter para_02 is: %s, type is %s" % (_para_02, type(_para_02))) _para_03 = OrcParameter().send_para(None) OrcTest.test_print_result("Parameter para_03 is: %s, type is %s" % (_para_03, type(_para_03))) _para_04 = OrcParameter().send_para(120) OrcTest.test_print_result("Parameter para_04 is: %s, type is %s" % (_para_04, type(_para_04))) OrcTest.test_print_end()
def post(self): """ 执行 :return: """ parameter = OrcParameter.receive_para() return self.__model.run(parameter)
def put(self): """ 调试 :return: """ parameter = OrcParameter.receive_para() return self.__model.debug(parameter)
def put(self): """ start """ parameter = OrcParameter.receive_para() self.__logger.info("Run, parameter is: %s" % parameter) return self.__model.run_start(parameter)
def get(self): """ Search :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Search dict, parameter is: %s" % parameter) return self.__business.bus_list_search(parameter)
def delete(self): """ 删除 :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Delete dict, parameter is: %s" % parameter) return self.__business.bus_list_delete(parameter)
def post(self): """ 新增 :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Add dict, parameter is: %s" % parameter) return self.__business.bus_list_add(parameter)
def delete(self): """ Delete :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Delete data, parameter is: %s" % parameter) return self.__model.bus_list_delete(parameter)
def post(self): """ Add :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Add data, parameter is: %s" % parameter) return self.__model.bus_list_add(parameter)
def post(self): """ Add :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Add batch, parameter is: %s" % parameter) return dict(id=self.__business.bus_list_add(parameter))
def get(self): """ Search :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Search step, parameter is: %s" % parameter) return self.__model.bus_list_search(parameter)
def delete(self): """ Delete :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Delete step, parameter is: %s" % parameter) return self.__business.bus_delete(parameter)
def get(self): """ Search :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Add run time, parameter is: %s" % parameter) return self.__model.usr_search(parameter)
def put(self, p_id): """ Update :param p_id: :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Update case, parameter is: %s, %s" % (p_id, parameter)) return self.__business.bus_update(p_id, parameter)
def put(self, p_id): """ Update :param p_id: :return: """ parameter = OrcParameter.receive_para() self.__logger.info("Update run_times, parameter is: %s, %s" % (p_id, parameter)) return self.__model.bus_update(p_id, parameter)