28 lines
944 B
Python
28 lines
944 B
Python
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)
|
|
return db.get_free_drink_list_history_by_user(user)
|
|
|
|
def get_free_drink_list_reasons(self):
|
|
return db.get_free_drink_list_reasons() |