chart_info_resp.go 869 B

12345678910111213141516171819202122232425
  1. package data_manage
  2. import "eta_gn/eta_api/utils"
  3. func (m *ChartEdbInfoMapping) ConvertToResp() {
  4. m.ModifyTime = utils.GormDateStrToDateTimeStr(m.ModifyTime)
  5. m.StartDate = utils.GormDateStrToDateStr(m.StartDate)
  6. m.EndDate = utils.GormDateStrToDateStr(m.EndDate)
  7. m.LatestDate = utils.GormDateStrToDateStr(m.LatestDate)
  8. m.MoveLatestDate = utils.GormDateStrToDateStr(m.MoveLatestDate)
  9. return
  10. }
  11. func (m *ChartInfoView) ConvertToResp() {
  12. m.CreateTime = utils.GormDateStrToDateTimeStr(m.CreateTime)
  13. m.ModifyTime = utils.GormDateStrToDateTimeStr(m.ModifyTime)
  14. m.StartDate = utils.GormDateStrToDateStr(m.StartDate)
  15. m.EndDate = utils.GormDateStrToDateStr(m.EndDate)
  16. m.SeasonStartDate = utils.GormDateStrToDateStr(m.SeasonStartDate)
  17. m.SeasonEndDate = utils.GormDateStrToDateStr(m.SeasonEndDate)
  18. m.EdbEndDate = utils.GormDateStrToDateStr(m.EdbEndDate)
  19. return
  20. }