package entity import ( "go.mongodb.org/mongo-driver/bson" "time" ) type Export struct { Id string `json:"id"` Type string `json:"type"` Target string `json:"target"` Query bson.M `json:"query"` Status string `json:"status"` StartedAt time.Time `json:"started_at"` EndedAt time.Time `json:"ended_at"` FileName string `json:"file_name"` DownloadPath string `json:"-"` Limit int `json:"-"` } func (e *Export) GetId() string { return e.Id } func (e *Export) GetType() string { return e.Type } func (e *Export) GetTarget() string { return e.Target } func (e *Export) GetQuery() bson.M { return e.Query } func (e *Export) GetStatus() string { return e.Status } func (e *Export) GetStartTs() time.Time { return e.StartedAt } func (e *Export) GetEndTs() time.Time { return e.EndedAt } func (e *Export) GetDownloadPath() string { return e.DownloadPath }