diff --git a/internal/demo/register/set_password.go b/internal/demo/register/set_password.go index 0c1a065fc..ce2ca417e 100644 --- a/internal/demo/register/set_password.go +++ b/internal/demo/register/set_password.go @@ -27,7 +27,7 @@ type ParamsSetPassword struct { PhoneNumber string `json:"phoneNumber"` Password string `json:"password" binding:"required"` VerificationCode string `json:"verificationCode"` - Platform int32 `json:"platform" binding:"required,min=1,max=7"` + Platform int32 `json:"platform" binding:"required,min=1,max=12"` Ex string `json:"ex"` FaceURL string `json:"faceURL"` OperationID string `json:"operationID" binding:"required"` diff --git a/internal/push/logic/init.go b/internal/push/logic/init.go index b73d0bd53..b15882541 100644 --- a/internal/push/logic/init.go +++ b/internal/push/logic/init.go @@ -11,6 +11,7 @@ import ( fcm "Open_IM/internal/push/fcm" "Open_IM/internal/push/getui" jpush "Open_IM/internal/push/jpush" + "Open_IM/internal/push/mobpush" "Open_IM/pkg/common/config" "Open_IM/pkg/common/constant" "Open_IM/pkg/common/kafka" diff --git a/pkg/base_info/auth_api_struct.go b/pkg/base_info/auth_api_struct.go index 85aa2301e..93eebc2b5 100644 --- a/pkg/base_info/auth_api_struct.go +++ b/pkg/base_info/auth_api_struct.go @@ -11,7 +11,7 @@ package base_info type UserRegisterReq struct { Secret string `json:"secret" binding:"required,max=32"` - Platform int32 `json:"platform" binding:"required,min=1,max=7"` + Platform int32 `json:"platform" binding:"required,min=1,max=12"` ApiUserInfo OperationID string `json:"operationID" binding:"required"` } @@ -28,7 +28,7 @@ type UserRegisterResp struct { type UserTokenReq struct { Secret string `json:"secret" binding:"required,max=32"` - Platform int32 `json:"platform" binding:"required,min=1,max=9"` + Platform int32 `json:"platform" binding:"required,min=1,max=12"` UserID string `json:"userID" binding:"required,min=1,max=64"` LoginIp string `json:"loginIp"` OperationID string `json:"operationID" binding:"required"` @@ -40,7 +40,7 @@ type UserTokenResp struct { } type ForceLogoutReq struct { - Platform int32 `json:"platform" binding:"required,min=1,max=9"` + Platform int32 `json:"platform" binding:"required,min=1,max=12"` FromUserID string `json:"fromUserID" binding:"required,min=1,max=64"` OperationID string `json:"operationID" binding:"required"` }