aiweek-reconstruction/udesk/reply/base.go

32 lines
510 B
Go
Raw Normal View History

2024-05-18 01:46:35 +08:00
package reply
//定义回复结构体。
type Reply struct {
replyContent map[string][]string
}
type Excel struct {
ExcelName string
ExcelPath string
ExcelAddress string
Reply //继承回复
}
// 创建新的回复结构体对象。
2024-06-01 23:48:00 +08:00
func NewExcelObj(ExcelName string) *Excel {
2024-05-18 01:46:35 +08:00
return &Excel{
ExcelName: ExcelName,
2024-05-20 01:00:09 +08:00
ExcelPath: "",
2024-05-18 01:46:35 +08:00
ExcelAddress: "",
2024-05-20 01:00:09 +08:00
Reply: newReplyObj(),
}
}
func newReplyObj() Reply {
return Reply{
replyContent: make(map[string][]string),
2024-05-18 01:46:35 +08:00
}
}