Files
erpgo/app/admin/models/shopee_sync_task.go
T
2026-09-14 09:28:27 +08:00

27 lines
924 B
Go

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 }