package export type Batch struct { ResellerId int ResellerName string OursProductId int OursProductTitle string PlatformName string PlatformProductCode string PlatformProductName string Status int OrderOrderNumber string SerialNumber string TerminalAccount string TradePrice float32 PlatformPrice float32 CreateTime string ExecuteTime string DingTalkSn string Remark string } type Batchs []*Batch func (o Batchs) Title() []string { return []string{ "分销商id", "分销商名称", "我们的商品id", "订单商品名称", "接口平台", "接口平台产品编码", "接口平台产品名称", "充值状态", "系统订单号", "流水号", "充值账号", "成交价格", "接口平台价格", "创建时间", "执行时间", "钉钉审批序号", "批量备注", } } func (o Batchs) Size() int { return len(o) } func (o Batchs) Data() []interface{} { d := make([]interface{}, o.Size()) for i, v := range o { d[i] = v } return d }