package models import ( "go-admin/common/models" "time" ) type ShopeeSyncTask struct { models.Model ShopeeID string `json:"shopeeId" gorm:"size:128;index;not null"` ProductID string `json:"productId" gorm:"size:128"` TaskID string `json:"taskId" gorm:"size:255;uniqueIndex;not null"` Status int `json:"status"` Processing int `json:"processing"` Tip string `json:"tip" gorm:"size:512"` Success int `json:"success"` Fail int `json:"fail"` ErrorMessage string `json:"errorMessage" gorm:"size:1000"` CompletedAt *time.Time `json:"completedAt"` models.ModelTime models.ControlBy } func (*ShopeeSyncTask) TableName() string { return "shopee_sync_task" } func (e *ShopeeSyncTask) Generate() models.ActiveRecord { o := *e; return &o } func (e *ShopeeSyncTask) GetId() interface{} { return e.Id }