端口修改

This commit is contained in:
yxh
2021-07-20 14:24:35 +08:00
parent 1994cc11a2
commit fb1de45299
3 changed files with 15 additions and 11 deletions
+3
View File
@@ -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
}