entities

package
v0.0.0-...-abeac51 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 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 Config

type Config struct {
	Key   string `json:"key" gorm:"column:key;primary_key;not null"`
	Value string `json:"value" gorm:"column:value;not null"`
}

func (Config) TableName

func (Config) TableName() string

type ForwardRelation

type ForwardRelation struct {
	ID           int64  `gorm:"column:id;primary_key;autoIncrement:true"`
	PeerID       int64  `gorm:"column:peer_id;not null;uniqueIndex:pid"`    //源会话id
	ToPeerID     int64  `gorm:"column:to_peer_id;not null;uniqueIndex:pid"` //目标会话id
	OnlyBot      bool   `gorm:"column:only_bot"`                            //仅转发机器人消息
	ShowOrigin   bool   `gorm:"column:show_origin"`                         //显示消息来源
	RelatedReply bool   `gorm:"column:related_reply"`                       //关联转发回复
	Regex        string `gorm:"column:regex;default:''"`                    //触发转发消息的正则
	MustMedia    bool   `gorm:"column:must_media"`                          //必须是带媒体内容的消息
	PeerTitle    string `gorm:"column:peer_title"`
	ToPeerTitle  string `gorm:"column:to_peer_title"`
}

func (ForwardRelation) TableName

func (ForwardRelation) TableName() string

type FwdMsg

type FwdMsg struct {
	ID           uint64 `gorm:"column:id;primary_key;autoIncrement:true"`
	OriginChatID int64  `gorm:"column:origin_chat_id;not null"`
	OriginMsgID  int    `gorm:"column:origin_msg_id;not null"`
	TargetChatID int64  `gorm:"column:target_chat_id;not null"`
	TargetMsgID  int    `gorm:"column:target_msg_id;not null"`
	FwdTime      int64  `gorm:"column:fwd_time;not null"`
}

func (FwdMsg) TableName

func (FwdMsg) TableName() string

type Peers

type Peers struct {
	ID         int64  `json:"id" gorm:"column:id;primary_key;autoIncrement:true"`
	AccessHash int64  `json:"access_hash" gorm:"column:access_hash"`
	Type       int64  `json:"type" gorm:"column:type"`
	Username   string `json:"username" gorm:"column:username;"`
}

func (Peers) TableName

func (Peers) TableName() string

type Sessions

type Sessions struct {
	Version int64  `json:"version" gorm:"column:version;primary_key;autoIncrement:true"`
	Data    []byte `json:"data" gorm:"column:data;not null"`
}

func (Sessions) TableName

func (Sessions) TableName() string

Jump to

Keyboard shortcuts

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