parent
ddeea128a4
commit
494ae5e1a2
|
@ -31,6 +31,7 @@ const (
|
|||
maxFcmToken = "164"
|
||||
maxAccountStatus = "4" // Indicates the maximum compatible account status. Look for reference in the API
|
||||
maxDescription = "128"
|
||||
maxRoomState = "2" // Look for reference in the API
|
||||
|
||||
accountNameRegex = "^[a-zA-Z0-9_.]+$"
|
||||
)
|
||||
|
@ -46,6 +47,7 @@ var (
|
|||
"Token": "required,min=" + minFcmToken + ",max=" + maxFcmToken, // fcm token
|
||||
"AccountStatus": "number,max=" + maxAccountStatus,
|
||||
"Description": "max=" + maxDescription,
|
||||
"RoomState": "required,max=" + maxRoomState,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue