request

package
v0.0.0-...-7604275 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 GroupGetUserRequest struct {
	Id       uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" `
	Page     uint64 `form:"page" json:"page" binding:"omitempty,required,min=1,gte=1" `
	PageSize uint64 `form:"page_size" json:"page_size" binding:"omitempty,required,min=1,gte=1" `
}

type GroupJoinRequest

type GroupJoinRequest struct {
	Id     uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" `
	UserId uint64 `form:"user_id" json:"user_id" binding:"required,numeric,min=1,gte=1" `
}

type GroupQueryRequest

type GroupQueryRequest struct {
	Keyword  string `form:"keyword" json:"keyword" binding:"omitempty,required,min=1,max=30" `
	Page     uint64 `form:"page" json:"page" binding:"omitempty,required,min=1,gte=1" `
	PageSize uint64 `form:"page_size" json:"page_size" binding:"omitempty,required,min=1,gte=1" `
}

type GroupQuitRequest

type GroupQuitRequest struct {
	Id     uint64 `form:"id" json:"id" binding:"required,numeric,min=1,gte=1" `
	UserId uint64 `form:"user_id" json:"user_id" binding:"required,numeric,min=1,gte=1" `
}

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 MessageSendGroupFceMessageRequest

type MessageSendGroupFceMessageRequest 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" `
	Symbol    string   `form:"symbol" json:"symbol" binding:"required,max=20" `
}

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 MessageSendUserFaceMessageRequest

type MessageSendUserFaceMessageRequest struct {
	ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" `
	Symbol   string `form:"symbol" json:"symbol" binding:"required,max=20" `
}

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 MessageSendUserTextMessageRequest

type MessageSendUserTextMessageRequest struct {
	ToUserId uint64 `form:"to_user_id" json:"to_user_id" binding:"required,numeric,min=1,gte=1" `
	Content  string `form:"content" json:"content" binding:"omitempty,min=1,max=100"`
}

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 UserLoginRequest 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"`
}

type UserQueryRequest

type UserQueryRequest struct {
	Keyword  string `form:"keyword" json:"keyword" binding:"omitempty,required,min=1,max=30" `
	Page     uint64 `form:"page" json:"page" binding:"omitempty,required,min=1,gte=1" `
	PageSize uint64 `form:"page_size" json:"page_size" binding:"omitempty,required,min=1,gte=1" `
}

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

type UserUpdatePassword struct {
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL