Documentation ¶
Index ¶
- type CommonImageRequest
- type CommonUploadImageRequest
- type GroupCreateRequest
- type GroupDeleteRequest
- type GroupGetRequest
- type GroupGetUserRequest
- type GroupJoinRequest
- type GroupQueryRequest
- type GroupQuitRequest
- type GroupUpdateRequest
- type MessageSendGroupFceMessageRequest
- type MessageSendGroupFileMessageRequest
- type MessageSendGroupImageMessageRequest
- type MessageSendGroupLocationMessageRequest
- type MessageSendGroupSoundMessageRequest
- type MessageSendGroupTextMessageRequest
- type MessageSendGroupVideoMessageRequest
- type MessageSendUserFaceMessageRequest
- type MessageSendUserFileMessageRequest
- type MessageSendUserImageMessageRequest
- type MessageSendUserLocationMessageRequest
- type MessageSendUserSoundMessageRequest
- type MessageSendUserTextMessageRequest
- type MessageSendUserVideoMessageRequest
- type UserGetRequest
- type UserLoginRequest
- type UserQueryRequest
- type UserRegisterRequest
- type UserUpdateAvatar
- type UserUpdatePassword
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonImageRequest ¶
type CommonImageRequest struct {
Ext string `form:"ext" json:"ext" binding:"required,oneof=jpg|jpeg|png"`
}
type CommonUploadImageRequest ¶
type CommonUploadImageRequest struct {
File *multipart.FileHeader `form:"file" json:"file" binding:"required,image" `
}
type GroupCreateRequest ¶
type GroupCreateRequest struct { Name string `form:"name" json:"name" binding:"required,min=2,max=30" ` Introduction string `form:"introduction" json:"introduction" binding:"omitempty,min=1,max=30"` AvatarUrl string `form:"avatar_url" json:"avatar_url" binding:"required,url,max=30,endswith=jpg|jpeg|png" ` }
type GroupDeleteRequest ¶
type GroupDeleteRequest struct {
Id uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" `
}
type GroupGetRequest ¶
type GroupGetRequest struct {
Id uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" `
}
type GroupGetUserRequest ¶
type GroupJoinRequest ¶
type GroupQueryRequest ¶
type GroupQuitRequest ¶
type GroupUpdateRequest ¶
type GroupUpdateRequest struct { Id uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" ` Name string `form:"name" json:"name" binding:"required,min=2,max=30" ` Introduction string `form:"introduction" json:"introduction" binding:"omitempty,min=1,max=30"` AvatarUrl string `form:"avatar_url" json:"avatar_url" binding:"required,url,max=30,endswith=jpg|jpeg|png" ` }
type MessageSendGroupFileMessageRequest ¶
type MessageSendGroupFileMessageRequest struct { ToGroupId uint64 `form:"to_group_id" json:"to_group_id" binding:"required,numeric,min=1,gte=1" ` AtUserId []uint64 `form:"at_user_id" json:"at_user_id" binding:"required" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Name string `form:"name" json:"name" binding:"required,min=2,max=50" ` Url string `form:"url" json:"url" binding:"required,url" ` }
type MessageSendGroupImageMessageRequest ¶
type MessageSendGroupImageMessageRequest struct { ToGroupId uint64 `form:"to_group_id" json:"to_group_id" binding:"required,numeric,min=1,gte=1" ` AtUserId []uint64 `form:"at_user_id" json:"at_user_id" binding:"required" ` Type uint64 `form:"type" json:"type" binding:"required,oneof=0 1 2 " ` Format uint64 `form:"format" json:"format" binding:"required,oneof=0 1 2 3 255" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Width uint64 `form:"width" json:"width" binding:"required,numeric,min=1,gte=1" ` Height uint64 `form:"height" json:"height" binding:"required,numeric,min=1,gte=1" ` Url string `form:"url" json:"url" binding:"required,url,endswith=jpg|jpeg|png" ` }
type MessageSendGroupLocationMessageRequest ¶
type MessageSendGroupLocationMessageRequest struct { ToGroupId uint64 `form:"to_group_id" json:"to_group_id" binding:"required,numeric,min=1,gte=1" ` AtUserId []uint64 `form:"at_user_id" json:"at_user_id" binding:"required" ` CoverImage string `form:"cover_image" json:"cover_image" binding:"required,url,endswith=jpg|jpeg|png" ` Lat float64 `form:"lat" json:"lat" binding:"required"` Lng float64 `form:"lng" json:"lng" binding:"required"` MapLink string `form:"map_link" json:"map_link" binding:"required,url" ` Desc string `form:"desc" json:"desc" binding:"required,url,max=100" ` }
type MessageSendGroupSoundMessageRequest ¶
type MessageSendGroupSoundMessageRequest struct { ToGroupId uint64 `form:"to_group_id" json:"to_group_id" binding:"required,numeric,min=1,gte=1" ` AtUserId uint64 `form:"at_user_id" json:"at_user_id" binding:"required,numeric,min=1,gte=1" ` Url string `form:"url" json:"url" binding:"required,url" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Seconds uint64 `form:"seconds" json:"seconds" binding:"required,numeric,min=1,gte=1" ` }
type MessageSendGroupTextMessageRequest ¶
type MessageSendGroupTextMessageRequest struct { ToGroupId uint64 `form:"to_group_id" json:"to_group_id" binding:"required,numeric,min=1,gte=1" ` AtUserId []uint64 `form:"at_user_id" json:"at_user_id" binding:"required" ` Content string `form:"content" json:"content" binding:"omitempty,min=1,max=100"` }
type MessageSendGroupVideoMessageRequest ¶
type MessageSendGroupVideoMessageRequest struct { ToGroupId uint64 `form:"to_group_id" json:"to_group_id" binding:"required,numeric,min=1,gte=1" ` AtUserId []uint64 `form:"at_user_id" json:"at_user_id" binding:"required" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Url string `form:"url" json:"url" binding:"required,url" ` Format string `form:"format" json:"format" binding:"required" ` ThumbUrl string `form:"thumb_url" json:"thumb_url" binding:"required,url" ` ThumbSize uint64 `form:"thumb_size" json:"thumb_size" binding:"required,numeric,min=1,gte=1" ` ThumbWidth uint64 `form:"thumb_width" json:"thumb_width" binding:"required,numeric,min=1,gte=1" ` ThumbHeight uint64 `form:"thumb_height" json:"thumb_height" binding:"required,numeric,min=1,gte=1" ` ThumbFormat uint64 `form:"thumb_format" json:"thumb_format" binding:"required,oneof=0 1 2 3 255" ` }
type MessageSendUserFileMessageRequest ¶
type MessageSendUserFileMessageRequest struct { ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Name string `form:"name" json:"name" binding:"required,min=2,max=50" ` Url string `form:"url" json:"url" binding:"required,url" ` }
type MessageSendUserImageMessageRequest ¶
type MessageSendUserImageMessageRequest struct { ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" ` Type uint64 `form:"type" json:"type" binding:"required,oneof=0 1 2 " ` Format uint64 `form:"format" json:"format" binding:"required,oneof=0 1 2 3 255" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Width uint64 `form:"width" json:"width" binding:"required,numeric,min=1,gte=1" ` Height uint64 `form:"height" json:"height" binding:"required,numeric,min=1,gte=1" ` Url string `form:"url" json:"url" binding:"required,url,endswith=jpg|jpeg|png" ` }
type MessageSendUserLocationMessageRequest ¶
type MessageSendUserLocationMessageRequest struct { ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" ` CoverImage string `form:"cover_image" json:"cover_image" binding:"required,url,endswith=jpg|jpeg|png" ` Lat float64 `form:"lat" json:"lat" binding:"required"` Lng float64 `form:"lng" json:"lng" binding:"required"` MapLink string `form:"map_link" json:"map_link" binding:"required,url" ` Desc string `form:"desc" json:"desc" binding:"required,url,max=100" ` }
type MessageSendUserSoundMessageRequest ¶
type MessageSendUserSoundMessageRequest struct { ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" ` Url string `form:"url" json:"url" binding:"required,url" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Seconds uint64 `form:"seconds" json:"seconds" binding:"required,numeric,min=1,gte=1" ` }
type MessageSendUserVideoMessageRequest ¶
type MessageSendUserVideoMessageRequest struct { ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" ` Size uint64 `form:"size" json:"size" binding:"required,numeric,min=1,gte=1" ` Seconds uint64 `form:"seconds" json:"seconds" binding:"required,numeric,min=1,gte=1" ` Url string `form:"url" json:"url" binding:"required,url" ` Format string `form:"format" json:"format" binding:"required" ` ThumbUrl string `form:"thumb_url" json:"thumb_url" binding:"required,url" ` ThumbSize uint64 `form:"thumb_size" json:"thumb_size" binding:"required,numeric,min=1,gte=1" ` ThumbWidth float64 `form:"thumb_width" json:"thumb_width" binding:"required,numeric,min=1,gte=1" ` ThumbHeight float64 `form:"thumb_height" json:"thumb_height" binding:"required,numeric,min=1,gte=1" ` ThumbFormat uint64 `form:"thumb_format" json:"thumb_format" binding:"required,oneof=0 1 2 3 255" ` }
type UserGetRequest ¶
type UserGetRequest struct {
Id uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" `
}
type UserLoginRequest ¶
type UserQueryRequest ¶
type UserRegisterRequest ¶
type UserRegisterRequest struct { Nickname string `form:"nickname" json:"nickname" binding:"required,min=2,max=30" ` Password string `form:"password" json:"password" binding:"required,min=6,max=18,alphanum"` PasswordRpt string `form:"password_rpt" json:"password_rpt" binding:"required,min=6,max=18,alphanum,eqfield=password"` }
type UserUpdateAvatar ¶
type UserUpdateAvatar struct {
AvatarUrl string `form:"avatar_url" json:"avatar_url" binding:"required,url,endswith=jpg|jpeg|png" `
}
type UserUpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.