reply

package
v0.0.0-...-b89eba7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountFriendInfo

type AccountFriendInfo struct {
	AccountInfo
	RelationID int64 `json:"relation_id"` // 好友关系ID,0表示没有好友关系
}

type AccountInfo

type AccountInfo struct {
	ID     int64  `json:"account_id"` // 账号ID
	Name   string `json:"name"`       // 名称
	Avatar string `json:"avatar"`     // 头像
	Gender string `json:"gender"`     // 性别 [男,女,未知]
}

type ApplicationInfo

type ApplicationInfo struct {
	Account1ID int64     `json:"account1_id"` // 申请者账号ID
	Account2ID int64     `json:"account2_id"` // 目标账号ID
	ApplyMsg   string    `json:"apply_msg"`   // 申请信息
	RefuseMsg  string    `json:"refuse_msg"`  // 拒绝信息
	Status     string    `json:"status"`      // 状态 [已申请,已拒绝,已同意]
	CreateAt   time.Time `json:"create_at"`   // 创建时间
	UpdateAt   time.Time `json:"update_at"`   // 更新时间
	Name       string    `json:"name"`        // 对方账号名称
	Avatar     string    `json:"avatar"`      // 对方头像
}

type BriefMsgInfo

type BriefMsgInfo struct {
	ID         int64            `json:"id"`          // 消息ID
	NotifyType string           `json:"notify_type"` // 通知类型 [system,common]
	MsgType    string           `json:"msg_type"`    // 消息类型 [text,file]
	MsgContent string           `json:"msg_content"` // 消息内容 文件则为url,文本则为文本内容,由拓展信息进行补充
	Extend     *model.MsgExtend `json:"msg_extend"`  // 消息扩展信息 可能为null
	FileID     int64            `json:"file_id"`     // 文件ID 当消息类型为file时>0
	AccountID  int64            `json:"account_id"`  // 账号ID 发送者ID
	RelationID int64            `json:"relation_id"` // 关系ID
	CreateAt   time.Time        `json:"create_at"`   // 创建时间
}

BriefMsgInfo 简要消息详情

type CreateAccount

type CreateAccount struct {
	ID           int64        `json:"id"`            // 账号ID
	Name         string       `json:"name"`          // 名称
	Avatar       string       `json:"avatar"`        // 头像
	AccountToken common.Token `json:"account_token"` // 账号Token
}

type CreateFileMsg

type CreateFileMsg struct {
	ID         int64     `json:"id"`          // 消息ID
	MsgContent string    `json:"msg_content"` // 消息内容 文件则为url,
	FileID     int64     `json:"file_id"`     // 文件ID
	CreateAt   time.Time `json:"create_at"`   // 创建时间
}

type CreateGroup

type CreateGroup struct {
	Name        string `json:"name"`
	AccountID   int64  `json:"account_id"`
	RelationID  int64  `json:"relation_id"`
	Description string `json:"description"`
	Avatar      string `json:"avatar"`
}

type DeleteFile

type DeleteFile struct {
}

type DissolveGroup

type DissolveGroup struct {
}

type ExistEmail

type ExistEmail struct {
	Exist bool `json:"exist"` // 是否已经存在
}

type FeedMsgsByAccountIDAndTime

type FeedMsgsByAccountIDAndTime struct {
	List  []*MsgInfoWithRlyAndHasRead `json:"list"`
	Total int64                       `json:"total"`
}

type File

type File struct {
	FileID    int64     `json:"file_id"`
	FileName  string    `json:"file_name"`
	FileType  string    `json:"file_type"`
	FileSize  int64     `json:"file_size"`
	Url       string    `json:"url"`
	AccountID int64     `json:"account_id"`
	CreateAt  time.Time `json:"create_at"`
}

type GetAccountByID

type GetAccountByID struct {
	ID         int64     `json:"id"`          // 账号ID
	Name       string    `json:"name"`        // 名称
	Avatar     string    `json:"avatar"`      // 头像
	Gender     string    `json:"gender"`      // 性别 [男,女,未知]
	Signature  string    `json:"signature"`   // 个性签名
	CreateAt   time.Time `json:"create_at"`   // 创建时间
	RelationID int64     `json:"relation_id"` // 关系ID,如果不存在则为0
}

type GetAccountToken

type GetAccountToken struct {
	AccountToken common.Token `json:"account_token"` // 账号Token
}

type GetAccountsByName

type GetAccountsByName struct {
	List  []*AccountFriendInfo `json:"list"`  // 账号列表
	Total int64                `json:"total"` // 总数
}

type GetAccountsByUserID

type GetAccountsByUserID struct {
	List  []*AccountInfo `json:"list"`  // 账号列表
	Total int64          `json:"total"` // 总数
}

type GetFriends

type GetFriends struct {
	List  []*model.SettingFriend `json:"list"`
	Total int64                  `json:"total"`
}

type GetFriendsByName

type GetFriendsByName struct {
	List  []*model.SettingFriend `json:"list"`
	Total int64                  `json:"total"`
}

type GetGroup

type GetGroup struct {
	List  []model.SettingGroup
	Total int64
}

type GetGroupMembers

type GetGroupMembers struct {
	ID       int64  `json:"account_id"` // 账号ID
	Name     string `json:"name"`       // 名称
	Avatar   string `json:"avatar"`     // 头像
	NickName string `json:"nick_name"`
	IsLeader bool   `json:"is_leader"`
}

type GetMsgsByContent

type GetMsgsByContent struct {
	List  []*BriefMsgInfo `json:"list"`
	Total int64           `json:"total"`
}

type GetMsgsByRelationIDAndTime

type GetMsgsByRelationIDAndTime struct {
	List  []*MsgInfoWithRly `json:"list"`
	Total int64             `json:"total"`
}

type GetNotify

type GetNotify struct {
	List  []Notify `json:"list"`
	Total int64    `json:"total,omitempty"`
}

type GetPinMsgsByRelationID

type GetPinMsgsByRelationID struct {
	List  []*MsgInfo `json:"list"`
	Total int64      `json:"total"`
}

type GetPins

type GetPins struct {
	List  []*model.SettingPin `json:"list"`
	Total int64               `json:"total"`
}

type GetRelationFile

type GetRelationFile struct {
	FileList []*File `json:"file_list"`
}

type GetRlyMsgsInfoByMsgID

type GetRlyMsgsInfoByMsgID struct {
	List  []*MsgInfo `json:"list"`
	Total int64      `json:"total"`
}

type GetShows

type GetShows struct {
	List  []*model.Setting `json:"list"`
	Total int64            `json:"total"`
}

type GetTopMsgByRelationID

type GetTopMsgByRelationID struct {
	MsgInfo MsgInfo `json:"msg_info"` // 置顶消息详情
}

type GroupNotify

type GroupNotify struct {
	ID         int64            `json:"id"`
	RelationID int64            `json:"relation_id"`
	MsgContent string           `json:"msg_content"`
	MsgExpand  *model.MsgExtend `json:"msg_expand"`
	AccountID  int64            `json:"account_id"`
	CreateAt   time.Time        `json:"create_at"`
	ReadIds    []int64          `json:"read_ids"`
}

type InviteAccount

type InviteAccount struct {
	InviteMember []int64 `json:"invite_member"`
}

type ListApplications

type ListApplications struct {
	List  []*ApplicationInfo `json:"list"`
	Total int64              `json:"total"`
}

type Login

type Login struct {
	UserInfo  UserInfo     `json:"user_info"`  // 用户信息
	UserToken common.Token `json:"user_token"` // 用户令牌
}

type MsgInfo

type MsgInfo struct {
	ID         int64            `json:"id"`          // 消息ID
	NotifyType string           `json:"notify_type"` // 通知类型 [system,common]
	MsgType    string           `json:"msg_type"`    // 消息类型 [text,file]
	MsgContent string           `json:"msg_content"` // 消息内容 文件则为url,文本则为文本内容,由拓展信息进行补充
	Extend     *model.MsgExtend `json:"msg_extend"`  // 消息扩展信息 可能为null
	FileID     int64            `json:"file_id"`     // 文件ID 当消息类型为file时>0
	AccountID  int64            `json:"account_id"`  // 账号ID 发送者ID
	RelationID int64            `json:"relation_id"` // 关系ID
	CreateAt   time.Time        `json:"create_at"`   // 创建时间
	IsRevoke   bool             `json:"is_revoke"`   // 是否撤回
	IsTop      bool             `json:"is_top"`      // 是否置顶
	IsPin      bool             `json:"is_pin"`      // 是否pin
	PinTime    time.Time        `json:"pin_time"`    // pin时间
	ReadIds    []int64          `json:"read_ids"`    // 已读的账号ID 当请求者不为发送者时为空
	ReplyCount int64            `json:"reply_count"` // 回复数
}

MsgInfo 完整的消息详情

type MsgInfoWithRly

type MsgInfoWithRly struct {
	MsgInfo
	RlyMsg *RlyMsg `json:"rly_msg"` // 回复消息详情 可能为null
}

MsgInfoWithRly 完整的消息详情 包含回复消息

type MsgInfoWithRlyAndHasRead

type MsgInfoWithRlyAndHasRead struct {
	MsgInfoWithRly
	HasRead bool `json:"has_read"` // 是否已读
}

MsgInfoWithRlyAndHasRead 完整的消息详情 包含回复消息 包含是否已读

type Notify

type Notify struct {
	ID         int64            `json:"id"`
	RelationID int64            `json:"relation_id"`
	MsgContent string           `json:"msg_content"`
	MsgExpand  *model.MsgExtend `json:"msg_expand"`
	AccountID  int64            `json:"account_id"`
	CreateAt   time.Time        `json:"create_at"`
	ReadIds    []int64          `json:"read_ids"`
}

type PublishFile

type PublishFile struct {
	ID       int64     `json:"id"`
	FileType string    `json:"file_type"`
	FileSize int64     `json:"file_size"`
	Url      string    `json:"url"`
	CreateAt time.Time `json:"create_at"`
}

type QuitGroup

type QuitGroup struct {
}

type Register

type Register struct {
	UserInfo  UserInfo     `json:"user_info"`  // 用户信息
	UserToken common.Token `json:"user_token"` // 用户令牌
}

type RlyMsg

type RlyMsg struct {
	MsgID      int64            `json:"msg_id"`      // 回复消息ID
	MsgType    string           `json:"msg_type"`    // 消息类型 [text,file]
	MsgContent string           `json:"msg_content"` // 消息内容 文件则为url,文本则为文本内容,由拓展信息进行补充
	MsgExtend  *model.MsgExtend `json:"msg_extend"`  // 消息扩展信息 可能为null
	IsRevoke   bool             `json:"is_revoke"`   // 是否撤回
}

RlyMsg 回复消息详情 可能为null

type TransferGroup

type TransferGroup struct {
}

type UpdateGroup

type UpdateGroup struct {
	Name        string `json:"name" form:"name" binding:"required"`
	Description string `json:"description" form:"description" binding:"required"`
}

type UpdateNotify

type UpdateNotify struct {
}

type UploadAvatar

type UploadAvatar struct {
	Url string `json:"url"`
}

type UserInfo

type UserInfo struct {
	ID       int64     `json:"id"`        // user id
	Email    string    `json:"email"`     // 邮箱
	CreateAt time.Time `json:"create_at"` // 创建时间
}

UserInfo 用户信息

Jump to

Keyboard shortcuts

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