use dao pattern

This commit is contained in:
root committed 2019-09-16 14:06:23 +00:00
1 parent 4f8749a969
commit 9936519c70
9 files changed
+184

No files matched your search

+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"`
}