aiweek-reconstruction/udesk/reply/base.go

32 lines
510 B
Go

package reply
//定义回复结构体。
type Reply struct {
replyContent map[string][]string
}
type Excel struct {
ExcelName string
ExcelPath string
ExcelAddress string
Reply //继承回复
}
// 创建新的回复结构体对象。
func NewExcelObj(ExcelName string) *Excel {
return &Excel{
ExcelName: ExcelName,
ExcelPath: "",
ExcelAddress: "",
Reply: newReplyObj(),
}
}
func newReplyObj() Reply {
return Reply{
replyContent: make(map[string][]string),
}
}