|
@@ -44,6 +44,8 @@ type SmartReport struct {
|
|
|
PreMsgSend int `description:"定时发布后是否推送模版消息:0-否;1-是"`
|
|
|
MsgIsSend int `description:"消息是否已发送:0-否;1-是"`
|
|
|
MsgSendTime time.Time `description:"模版消息发送时间"`
|
|
|
+ DetailImgUrl string `description:"报告详情长图地址"`
|
|
|
+ DetailPdfUrl string `description:"报告详情PDF地址"`
|
|
|
CreateTime time.Time `description:"创建时间"`
|
|
|
ModifyTime time.Time `description:"修改时间"`
|
|
|
}
|
|
@@ -182,6 +184,8 @@ type SmartReportItem struct {
|
|
|
State int `description:"发布状态:1-待发布;2-已发布"`
|
|
|
PublishTime string `description:"发布时间"`
|
|
|
MsgIsSend int `description:"消息是否已发送:0-否;1-是"`
|
|
|
+ DetailImgUrl string `description:"报告详情长图地址"`
|
|
|
+ DetailPdfUrl string `description:"报告详情PDF地址"`
|
|
|
CreateTime string `description:"创建时间"`
|
|
|
ModifyTime string `description:"修改时间"`
|
|
|
CanEdit bool `description:"是否可编辑"`
|
|
@@ -217,6 +221,8 @@ func FormatSmartReport2Item(origin *SmartReport) (item *SmartReportItem) {
|
|
|
item.State = origin.State
|
|
|
item.PublishTime = utils.TimeTransferString(utils.FormatDateTime, origin.PublishTime)
|
|
|
item.MsgIsSend = origin.MsgIsSend
|
|
|
+ item.DetailImgUrl = origin.DetailImgUrl
|
|
|
+ item.DetailPdfUrl = origin.DetailPdfUrl
|
|
|
item.CreateTime = utils.TimeTransferString(utils.FormatDateTime, origin.CreateTime)
|
|
|
item.ModifyTime = utils.TimeTransferString(utils.FormatDateTime, origin.ModifyTime)
|
|
|
return
|