新增用户相关接口

This commit is contained in:
2023-06-29 16:16:21 +08:00
parent 966057fa5b
commit 98aa3263bb
11 changed files with 475 additions and 114 deletions
+2
View File
@@ -18,6 +18,8 @@ type AdminUser struct {
RoleID int64 `gorm:"column:role_id;type:bigint(19);comment:'角色id'" json:"role_id"`
DeptID int64 `gorm:"column:dept_id;type:bigint(19);comment:'部门id'" json:"dept_id"`
PostID int64 `gorm:"column:post_id;type:bigint(19);comment:'岗位id'" json:"post_id"`
CreateBy int64 `gorm:"column:create_by;type:bigint(19);comment:'创建者id(用户表id'" json:"create_by"`
UpdateBy int64 `gorm:"column:update_by;type:bigint(19);comment:'更新者id(用户表id'" json:"update_by"`
Role *AdminRole `gorm:"foreignKey:RoleID"` // 角色
Dept *AdminDept `gorm:"foreignKey:DeptID"` // 部门
Post *AdminPost `gorm:"foreignKey:PostID"` // 岗位