2020-08-20 06:37:24 +00:00
|
|
|
import geruecht.controller.databaseController as dc
|
|
|
|
from geruecht.logger import getDebugLogger
|
|
|
|
|
|
|
|
db = dc.DatabaseController()
|
|
|
|
debug = getDebugLogger()
|
|
|
|
|
|
|
|
class Base:
|
|
|
|
def get_free_drink_list_configs(self):
|
|
|
|
return db.get_free_drink_list_configs()
|
|
|
|
|
|
|
|
def set_free_drink_list_config(self, data):
|
|
|
|
return db.set_free_drink_list_config(data)
|
|
|
|
|
|
|
|
def set_free_drink_list_history(self, user, data):
|
|
|
|
return db.set_free_drink_list_history(user, data)
|
|
|
|
|
|
|
|
def get_free_drink_list_history(self, user):
|
|
|
|
return db.get_free_drink_list_history_by_user(user)
|
|
|
|
|
|
|
|
def delete_free_drink_list_history(self, data):
|
|
|
|
return db.delete_free_drink_list_history(data)
|
|
|
|
|
|
|
|
def update_free_drink_list_history(self, user, data):
|
|
|
|
db.update_free_drink_list_history(data)
|
2020-08-20 20:03:43 +00:00
|
|
|
return db.get_free_drink_list_history_by_user(user)
|
|
|
|
|
|
|
|
def get_free_drink_list_reasons(self):
|
2020-08-21 19:59:39 +00:00
|
|
|
return db.get_free_drink_list_reasons()
|
|
|
|
|
|
|
|
def get_free_drink_types(self):
|
|
|
|
return db.get_free_drink_list_types()
|