fix bug: args error

This commit is contained in:
wangchuxiao
2023-07-13 11:49:51 +08:00
parent 549721ec8e
commit 9d6f46b7f9
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -23,9 +23,6 @@ func (x *CreateGroupReq) Check() error {
if x.GroupInfo == nil {
return errs.ErrArgs.Wrap("groupInfo is empty")
}
if x.GroupInfo.OwnerUserID == "" {
return errs.ErrArgs.Wrap("GroupInfo.ownerUserID")
}
if x.GroupInfo.GroupType > 2 || x.GroupInfo.GroupType < 0 {
return errs.ErrArgs.Wrap("GroupType is invalid")
}