mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 18:20:47 +00:00
端口修改
This commit is contained in:
@@ -37,5 +37,8 @@ func (ctxUser *CtxUser) GetUserId() (id uint64) {
|
||||
// GetDept 获取登录用户所属部门
|
||||
func (ctxUser *CtxUser) GetDept() (err error, dept *model.SysDept) {
|
||||
err = g.DB().Model(SysDept.Table).WherePri(ctxUser.DeptId).Scan(&dept)
|
||||
if dept == nil {
|
||||
dept = &model.SysDept{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user