28 lines
443 B
Go
28 lines
443 B
Go
|
package reply
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
//定义回复结构体。
|
||
|
|
||
|
type Reply struct {
|
||
|
replyContent map[string][]string
|
||
|
}
|
||
|
|
||
|
type Excel struct {
|
||
|
ExcelName string
|
||
|
ExcelPath string
|
||
|
ExcelAddress string
|
||
|
Reply //继承回复
|
||
|
}
|
||
|
|
||
|
var ExcelName = "weeklyReport" + time.Now().Format("2006-01-02") + ".xlsx"
|
||
|
|
||
|
// 创建新的回复结构体对象。
|
||
|
|
||
|
func NewExcelObj() *Excel {
|
||
|
return &Excel{
|
||
|
ExcelName: ExcelName,
|
||
|
ExcelAddress: "",
|
||
|
}
|
||
|
}
|