36 lines
585 B
Go
36 lines
585 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,
|
|
ExcelPath: "",
|
|
ExcelAddress: "",
|
|
Reply: newReplyObj(),
|
|
}
|
|
}
|
|
|
|
func newReplyObj() Reply {
|
|
return Reply{
|
|
replyContent: make(map[string][]string),
|
|
}
|
|
}
|