Refactor more stuff

This commit is contained in:
Tobias Reisinger 2023-12-04 23:59:26 +01:00
commit 9394a1ae52
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
15 changed files with 167 additions and 86 deletions

View file

@ -6,8 +6,9 @@ pub use controller_uid::ControllerUid;
pub use schedule_uid::ScheduleUid;
use serde_derive::{Deserialize, Serialize};
use crate::db::DbSchedule;
use crate::errors::EmgauwaError;
use crate::models::Controller;
use crate::models::{Controller, Relay};
pub type Weekday = i64;
@ -15,4 +16,6 @@ pub type Weekday = i64;
#[rtype(result = "Result<(), EmgauwaError>")]
pub enum ControllerWsAction {
Register(Controller),
Schedules(Vec<DbSchedule>),
Relays(Vec<Relay>),
}