add twitch api

This commit is contained in:
root committed 2018-09-12 00:29:38 +08:00
1 parent fc007136db
commit f70d11517c
6 files changed
+250 -8

No files matched your search

+6
View File
@@ -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
}