add twitch api

This commit is contained in:
Jay
2018-09-12 00:29:38 +08:00
parent fc007136db
commit f70d11517c
6 changed files with 250 additions and 8 deletions
+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
}