staff status

This commit is contained in:
jiangyong27 2025-03-11 19:24:14 +08:00
parent f8233d6746
commit 1ac2d023bb
1 changed files with 1 additions and 0 deletions
server/controller

View File

@ -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())