use dao pattern
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
@@ -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"`
|
||||
}
|
||||
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user