This commit is contained in:
苏尹岚
2020-12-29 16:57:00 +08:00
parent 269b7fa710
commit e3747c81f5

View File

@@ -394,6 +394,9 @@ func DeleteMessageGroup(ctx *jxcontext.Context, groupID int, userID string, flag
}
//解散群
if flag {
if messageGroup.UserID != ctx.GetUserID() {
return errCode, fmt.Errorf("只有群主才能解散群!")
}
messageGroup.DeletedAt = time.Now()
messageGroup.LastOperator = ctx.GetUserName()
dao.UpdateEntity(db, messageGroup, "DeletedAt", "LastOperator")