chart_info_resp.go 1023 B

12345678910111213141516171819202122232425262728293031
  1. package data_manage
  2. import "eta_gn/eta_api/utils"
  3. // ConvertToResp
  4. // @Description: 转成需要输出的格式
  5. // @receiver m
  6. func (m *ChartEdbInfoMapping) ConvertToResp() {
  7. m.ModifyTime = utils.GormDateStrToDateTimeStr(m.ModifyTime)
  8. m.StartDate = utils.GormDateStrToDateStr(m.StartDate)
  9. m.EndDate = utils.GormDateStrToDateStr(m.EndDate)
  10. m.LatestDate = utils.GormDateStrToDateStr(m.LatestDate)
  11. m.MoveLatestDate = utils.GormDateStrToDateStr(m.MoveLatestDate)
  12. return
  13. }
  14. // ConvertToResp
  15. // @Description: 转成需要输出的格式
  16. // @receiver m
  17. func (m *ChartInfoView) ConvertToResp() {
  18. m.CreateTime = utils.GormDateStrToDateTimeStr(m.CreateTime)
  19. m.ModifyTime = utils.GormDateStrToDateTimeStr(m.ModifyTime)
  20. m.StartDate = utils.GormDateStrToDateStr(m.StartDate)
  21. m.EndDate = utils.GormDateStrToDateStr(m.EndDate)
  22. m.SeasonStartDate = utils.GormDateStrToDateStr(m.SeasonStartDate)
  23. m.SeasonEndDate = utils.GormDateStrToDateStr(m.SeasonEndDate)
  24. m.EdbEndDate = utils.GormDateStrToDateStr(m.EdbEndDate)
  25. return
  26. }