17 lines
173 B
Go
17 lines
173 B
Go
package models
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jmoiron/sqlx"
|
|
)
|
|
|
|
type Chat struct {
|
|
ID int
|
|
Name string
|
|
}
|
|
|
|
type ChatModel struct {
|
|
ctx context.Context
|
|
db *sqlx.DB
|
|
}
|