model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 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 ChatMessage

type ChatMessage struct {
	gorm.Model
	Uid string `gorm:"index:idx_chat_message_uid,unique"`
	commons.BotMessage
}

func (*ChatMessage) BeforeSave

func (instance *ChatMessage) BeforeSave(_ *gorm.DB) (err error)

func (*ChatMessage) BeforeUpdate

func (instance *ChatMessage) BeforeUpdate(_ *gorm.DB) (err error)

func (*ChatMessage) ToMap

func (instance *ChatMessage) ToMap() (response map[string]interface{})

type ChatUser

type ChatUser struct {
	gorm.Model
	Uid        string `gorm:"index:idx_chat_user_uid,unique"`
	Driver     string
	DriverID   string
	Username   string
	FirstName  string
	LastName   string
	Lang       string
	IsBot      bool
	LastUpdate time.Time
}

func (*ChatUser) BeforeSave

func (instance *ChatUser) BeforeSave(_ *gorm.DB) (err error)

func (*ChatUser) BeforeUpdate

func (instance *ChatUser) BeforeUpdate(_ *gorm.DB) (err error)

func (*ChatUser) ToMap

func (instance *ChatUser) ToMap() (response map[string]interface{})

Jump to

Keyboard shortcuts

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