Refactor/group page (#666)

* refactor(backend): ♻️ Refactor base class to be abstract and create a router factory method

* feat(frontend):  add group edit

* refactor(backend):  add group edit support

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-09-01 21:39:40 -08:00
committed by GitHub
parent 9b1bf56a5d
commit 990244e37e
37 changed files with 749 additions and 196 deletions

View File

@@ -0,0 +1 @@
from .webhook import *

View File

@@ -0,0 +1,19 @@
from fastapi_camelcase import CamelModel
class CreateWebhook(CamelModel):
enabled: bool = True
name: str = ""
url: str = ""
time: str = "00:00"
class SaveWebhook(CreateWebhook):
group_id: int
class ReadWebhook(SaveWebhook):
id: int
class Config:
orm_mode = True