use dao pattern

This commit is contained in:
Jay
2019-09-16 14:06:23 +00:00
parent 4f8749a969
commit 9936519c70
9 changed files with 184 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package public
import "time"
// Commands -
type Command struct {
Key string `db:"key"`
Platform string `db:"platform"`
Binding string `db:"binding"`
RequireManage bool `db:"require_manage"`
RequireInit bool `db:"require_init"`
Value string `db:"value"`
Ctime time.Time `db:"ctime"`
Mtime time.Time `db:"mtime"`
}
+11
View File
@@ -0,0 +1,11 @@
package public
import "time"
// FacebookPage -
type FacebookPage struct {
ID string `db:"id"`
LastPost string `db:"lastpost"`
Ctime time.Time `db:"ctime"`
Mtime time.Time `db:"mtime"`
}
+11
View File
@@ -0,0 +1,11 @@
package public
import "time"
// Instagram -
type Instagram struct {
ID string `db:"id"`
LastPost string `db:"lastpost"`
Ctime time.Time `db:"ctime"`
Mtime time.Time `db:"mtime"`
}