package data_manage import ( "eta_gn/eta_api/utils" "github.com/rdlucklib/rdluck_tools/paging" ) // ConvertToResp // @Description: 转成需要输出的格式 // @receiver m func (m *ChartEdbInfoMapping) ConvertToResp() { m.ModifyTime = utils.GormDateStrToDateTimeStr(m.ModifyTime) m.StartDate = utils.GormDateStrToDateStr(m.StartDate) m.EndDate = utils.GormDateStrToDateStr(m.EndDate) m.LatestDate = utils.GormDateStrToDateStr(m.LatestDate) m.MoveLatestDate = utils.GormDateStrToDateStr(m.MoveLatestDate) return } // ConvertToResp // @Description: 转成需要输出的格式 // @receiver m func (m *ChartInfoView) ConvertToResp() { m.CreateTime = utils.GormDateStrToDateTimeStr(m.CreateTime) m.ModifyTime = utils.GormDateStrToDateTimeStr(m.ModifyTime) m.StartDate = utils.GormDateStrToDateStr(m.StartDate) m.EndDate = utils.GormDateStrToDateStr(m.EndDate) m.SeasonStartDate = utils.GormDateStrToDateStr(m.SeasonStartDate) m.SeasonEndDate = utils.GormDateStrToDateStr(m.SeasonEndDate) m.EdbEndDate = utils.GormDateStrToDateStr(m.EdbEndDate) return } // ChartInfoFilterDataResp 搜索指标列表数据返回 type ChartInfoFilterDataResp struct { Paging *paging.PagingItem List []*ChartInfoView }