package data_manage

import "eta_gn/eta_api/utils"

// 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
}