add twitch api
This commit is contained in:
1 parent
fc007136db
commit
f70d11517c
6 files changed
+250
-8
No files matched your search
@@ -12,3 +12,9 @@ type TwitchChannel struct {
|
||||
Ctime time.Time `db:"ctime" cc:"ctime"`
|
||||
Mtime time.Time `db:"mtime" cc:"ctime"`
|
||||
}
|
||||
|
||||
// GetAllChannel -
|
||||
func GetAllChannel() (channels []*TwitchChannel, err error) {
|
||||
err = x.Select(&channels, `select * from "public"."twitch_channel"`)
|
||||
return
|
||||
}
|
||||
Reference in new issue
Block a user