|
@@ -18,6 +18,13 @@ type Model struct {
|
|
UpdatedAt time.Time `json:"update_at"`
|
|
UpdatedAt time.Time `json:"update_at"`
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (m Model) GetId() uint64 {
|
|
|
|
+ return m.ID
|
|
|
|
+}
|
|
|
|
+func (m Model) GetType() string {
|
|
|
|
+ return m.Type
|
|
|
|
+}
|
|
|
|
+
|
|
type SyncLog struct {
|
|
type SyncLog struct {
|
|
Model
|
|
Model
|
|
DataType string `json:"data_type"` // data type
|
|
DataType string `json:"data_type"` // data type
|