From 135d0683b0e289c148c31d0ae8e2694502072a03 Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Mon, 11 Dec 2023 21:40:25 +0800 Subject: [PATCH] fix fix use user mod --- src/template/src/entities/mod.hbs | 2 +- src/template/src/services/user.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template/src/entities/mod.hbs b/src/template/src/entities/mod.hbs index 50cc60b..35b728f 100644 --- a/src/template/src/entities/mod.hbs +++ b/src/template/src/entities/mod.hbs @@ -1,5 +1,5 @@ {{#if is_sqlx}} -pub mod user; +pub mod users; {{/if}} {{#if is_sea_orm}} //! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.3 diff --git a/src/template/src/services/user.hbs b/src/template/src/services/user.hbs index 1b5714a..a2fafde 100644 --- a/src/template/src/services/user.hbs +++ b/src/template/src/services/user.hbs @@ -8,7 +8,7 @@ use crate::{ UserUpdateRequest, }, middleware::jwt::get_token, - entities::user::User, + entities::users::User, utils::rand_utils, }; {{/if}}