add handlers for setting donat

This commit is contained in:
harold 2025-02-24 20:57:51 +05:00
parent ff4830d144
commit a0c8b3c833
2 changed files with 41 additions and 0 deletions

View File

@ -147,3 +147,33 @@ func UpdateDonatePage(donatService model.DonatService) echo.HandlerFunc {
return nil
}
}
func GetVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
}
}
func UpdateVoiceSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
}
}
func GetFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
}
}
func UpdateFiltersSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
}
}
func GetModerationSettings(donatService model.DonatService) echo.HandlerFunc {
return func(c echo.Context) error {
return nil
}
}

View File

@ -46,6 +46,17 @@ CREATE TABLE IF NOT EXISTS targets (
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS donate_pages (
id SERIAL PRIMARY KEY,
streamer_id INTEGER NOT NULL,
description TEXT DEFAULT '',
text_after_donat TEXT DEFAULT '',
page_background TEXT DEFAULT '',
avatar TEXT DEFAULT '',
background_img TEXT DEFAULT '',
)
CREATE OR REPLACE FUNCTION update_updated_at()