From 1ac2d023bb1e7889a6e52cd7155ef73c9a926d29 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Tue, 11 Mar 2025 19:24:14 +0800 Subject: [PATCH] staff status --- server/controller/staff.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/controller/staff.go b/server/controller/staff.go index fceb216..3bea902 100644 --- a/server/controller/staff.go +++ b/server/controller/staff.go @@ -65,6 +65,7 @@ func (s *Staff) Create(ctx *gin.Context) { staffUser = new(model.StaffUser) staffUser.CorpId = sess.GetAdmin().CorpId staffUser.Username = req.Username + staffUser.Status = model.StaffUserStatusOnline _, err = dao.NewStaffUserDao().Create(staffUser) session.CheckDBError(err) ctx.JSON(http.StatusOK, session.NewRspOk())