server

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SettingPin        = "pin"
	SettingShow       = "show"
	SettingNotDisturb = "not_disturb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountLogin

type AccountLogin struct {
	EnToken string `json:"en_token"` // 加密后的Token
	Address string `json:"address"`  // 地址
}

type CreateNotify

type CreateNotify struct {
	EnToken    string           `json:"en_token,omitempty"`
	RelationID int64            `json:"relation_id,omitempty"`
	AccountID  int64            `json:"account_id,omitempty"`
	MsgContent string           `json:"msg_content,omitempty"`
	MsgExtent  *model.MsgExtend `json:"msg_extent"`
}

type DeleteRelation

type DeleteRelation struct {
	EnToken    string `json:"en_token"`
	RelationID int64  `json:"relation_id"`
}

type DissolveGroup

type DissolveGroup struct {
	EnToken    string `json:"en_token"`
	RelationID int64  `json:"relation_id"`
}

type InviteAccount

type InviteAccount struct {
	EnToken   string `json:"en_token"`
	AccountID int64  `json:"account_id"`
}

type MsgType

type MsgType string
const (
	MsgPin    MsgType = "pin"    // 置顶消息
	MsgTop    MsgType = "top"    // 置顶消息
	MsgRevoke MsgType = "revoke" // 撤回消息
)

type QuitGroup

type QuitGroup struct {
	EnToken   string `json:"en_token"`
	AccountID int64  `json:"account_id"`
}

type ReadMsg

type ReadMsg struct {
	EnToken  string  `json:"en_token"`  // 加密后的Token
	MsgIDs   []int64 `json:"msg_ids"`   // 已读消息IDs
	ReaderID int64   `json:"reader_id"` // 读者账号ID
}

type SendMsg

type SendMsg struct {
	EnToken string               `json:"en_token"` // 加密后的Token
	MsgInfo reply.MsgInfoWithRly `json:"msg_info"`
}

type SettingType

type SettingType string

type TransferGroup

type TransferGroup struct {
	EnToken   string `json:"en_token"`
	AccountID int64  `json:"account_id"`
}

type UpdateAccount

type UpdateAccount struct {
	EnToken   string `json:"en_token"`  // 加密后的Token
	Name      string `json:"name"`      // 昵称
	Gender    string `json:"gender"`    // 性别
	Signature string `json:"signature"` // 签名
}

type UpdateEmail

type UpdateEmail struct {
	EnToken string `json:"en_token"`
	Email   string `json:"email"` // 更新后的邮箱
}

type UpdateMsgState

type UpdateMsgState struct {
	EnToken string  `json:"en_token"` // 加密后的Token
	MsgType MsgType `json:"type"`     // 消息类型 [pin,top,revoke]
	MsgID   int64   `json:"msg_id"`   // 消息ID
	State   bool    `json:"state"`    // 状态设置
}

type UpdateNickName

type UpdateNickName struct {
	EnToken    string `json:"en_token"`
	RelationID int64  `json:"relation_id"`
	NickName   string `json:"nick_name"`
}

type UpdateSettingState

type UpdateSettingState struct {
	EnToken    string      `json:"en_token"`    // 加密token
	Type       SettingType `json:"type"`        // 通知类型 [pin,show,disturb]
	RelationID int64       `json:"relation_id"` // 关系ID
	State      bool        `json:"state"`       // 状态设置
}

Jump to

Keyboard shortcuts

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