Limit the number of members invited to join the group

This commit is contained in:
skiffer-git
2022-07-13 14:28:49 +08:00
parent d4e575f777
commit 58f4ebe411
4 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ type ApiUserInfo struct {
type GroupAddMemberInfo struct {
UserID string `json:"userID" binding:"required"`
RoleLevel int32 `json:"roleLevel" binding:"required"`
RoleLevel int32 `json:"roleLevel" binding:"required,oneof= 1 3"`
}
func SetErrCodeMsg(c *gin.Context, status int) *CommResp {