model

package
v0.0.0-...-0d81173 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 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 ChatGptMessage

type ChatGptMessage struct {
	*chatgptpb.ChatGptMessage
}

func (*ChatGptMessage) Scan

func (m *ChatGptMessage) Scan(src interface{}) error

Scan 实现 Scan 方法

func (ChatGptMessage) Value

func (m ChatGptMessage) Value() (driver.Value, error)

Value 实现 Value 方法

type ChatLog

type ChatLog struct {
	Id      int            `gorm:"primary_key;AUTO_INCREMENT;not null"`
	UserId  string         `gorm:"type:char(64);not null;index;"`
	Message ChatGptMessage `gorm:"type:text;not null"`
}

func (*ChatLog) TableName

func (m *ChatLog) TableName() string

type ChatScene

type ChatScene struct {
	UserId  string         `gorm:"primary_key;type:char(64);not null"`
	Message ChatGptMessage `gorm:"type:text;not null"`
}

func (*ChatScene) TableName

func (m *ChatScene) TableName() string

type Kv

type Kv struct {
	K string `gorm:"primary_key"`
	V string `gorm:"type:text"`
}

func (*Kv) TableName

func (m *Kv) TableName() string

Jump to

Keyboard shortcuts

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