mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
24 lines
384 B
Go
24 lines
384 B
Go
|
package mysql
|
||
|
|
||
|
import (
|
||
|
"database/sql"
|
||
|
|
||
|
"github.com/lyx0/nourybot/pkg/models"
|
||
|
)
|
||
|
|
||
|
type ChannelModel struct {
|
||
|
DB *sql.DB
|
||
|
}
|
||
|
|
||
|
func (m *ChannelModel) Insert(username string, twitchid string) (int, error) {
|
||
|
return 0, nil
|
||
|
}
|
||
|
|
||
|
func (m *ChannelModel) Get(id int) (*models.Channel, error) {
|
||
|
return nil, nil
|
||
|
}
|
||
|
|
||
|
func (m *ChannelModel) Latest() ([]*models.Channel, error) {
|
||
|
return nil, nil
|
||
|
}
|