👽️ Apply last Handle API changes

This commit is contained in:
Manuel Cillero 2023-11-03 22:50:06 +01:00
parent 68c551bfb3
commit 088ffe7272
10 changed files with 37 additions and 63 deletions

View file

@ -1,18 +1,14 @@
use pagetop::prelude::*;
new_handle!(MODULE_USER);
new_static_locales!(LOCALES_USER);
mod migration;
pub struct User;
impl ModuleTrait for User {
fn handle(&self) -> Handle {
MODULE_USER
}
impl_handle!(MODULE_USER for User);
impl ModuleTrait for User {
fn name(&self) -> L10n {
L10n::t("module_name", &LOCALES_USER)
}