From a57a94f5da644a133c52a027127d3a2a46dcfcdf Mon Sep 17 00:00:00 2001 From: Matrix-X Date: Wed, 9 Oct 2024 12:10:28 +0800 Subject: [PATCH] refact(model): seperate model with different schema --- internal/logic/admin/department/createdepartmentlogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logic/admin/department/createdepartmentlogic.go b/internal/logic/admin/department/createdepartmentlogic.go index 84e26f6f..e1311785 100644 --- a/internal/logic/admin/department/createdepartmentlogic.go +++ b/internal/logic/admin/department/createdepartmentlogic.go @@ -27,7 +27,7 @@ func (l *CreateDepartmentLogic) CreateDepartment(req *types.CreateDepartmentRequ dep := organization.Department{ Name: req.DepName, PId: req.PId, - LeaderUuid: req.LeaderUuid, + LeaderUuid: &req.LeaderUuid, Desc: req.Desc, PhoneNumber: req.PhoneNumber, Email: req.Email,