From b70bb7d03a63a905f05cfccead4770bb1f6337d0 Mon Sep 17 00:00:00 2001 From: Odboy Date: Mon, 5 Feb 2024 20:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=B3=E8=81=94=E8=A1=A8?= =?UTF-8?q?=E5=92=8C=E9=83=A8=E9=97=A8=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/system/domain/user_department.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/modules/system/domain/user_department.go diff --git a/src/modules/system/domain/user_department.go b/src/modules/system/domain/user_department.go new file mode 100644 index 0000000..0956534 --- /dev/null +++ b/src/modules/system/domain/user_department.go @@ -0,0 +1,13 @@ +package domain + +import "github.com/jinzhu/gorm" + +type UserDepartment struct { + gorm.Model + UserId uint `gorm:"not null"` + DepartmentId uint `gorm:"not null"` +} + +func (UserDepartment) TableName() string { + return "system_user_department" +}