model

package
v0.0.0-...-f8b371d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileItemInfo

type FileItemInfo struct {
	Id          string `json:"id"`
	Title       string `json:"title"`
	Size        int    `json:"size"`
	UrlDownload string `json:"url_download"`
	UrlPreview  string `json:"url_preview"`
}

type History

type History struct {
	MsgId string `json:"msg_id"`
	//IsBot       bool            `json:"is_bot"`
	SType       int             `json:"s_type"` // 发布者类型 1用户 2机器人 3模拟用户
	MType       string          `json:"m_type"`
	Text        string          `json:"text"`
	User        string          `json:"user"`
	Team        string          `json:"team"`
	Ts          string          `json:"ts"`
	ThreadTs    string          `json:"thread_ts"`
	CreateTs    int64           `json:"create_ts"`   // 创建时间戳
	EditTs      int64           `json:"edit_ts"`     // 编辑时间戳
	ReplyCount  int             `json:"reply_count"` // 回复项数量
	Reactions   []string        `json:"reactions"`
	Files       []*FileItemInfo `json:"files"`
	IsReply     bool            `json:"is_reply"`     // 是否为回复项
	LatestReply string          `json:"latest_reply"` // 最新回复时间,为空则没有回复
}

type Mysql

type Mysql struct {
	Username    string `koanf:"username"`
	Password    string `koanf:"password"`
	Path        string `koanf:"path"`          // 数据库地址:端口号
	Dbname      string `koanf:"db_name"`       // 数据库名称
	Config      string `koanf:"config"`        // 数据库连接时的其他配置
	MaxIdleConn int    `koanf:"max_idle_conn"` // 最大空闲连接数
	MaxOpenConn int    `koanf:"max_open_conn"` // 最大并发连接数
}

type Redis

type Redis struct {
	Addr     string `koanf:"addr"`     // redis服务地址:端口号
	Password string `koanf:"password"` // redis密码
	DB       int    `koanf:"db"`       // redis数据库
}

type Slack

type Slack struct {
	ChannelID string `koanf:"channel_id"`
	BotToken  string `koanf:"bot_token"`
	UserToken string `koanf:"user_token"`
	UserID    string `koanf:"user_id"`
	Mysql     Mysql  `koanf:"mysql"`
	Redis     Redis  `koanf:"redis"`
}

Jump to

Keyboard shortcuts

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