task_logistics_list_conditions.go 944 B

1234567891011121314151617181920212223242526
  1. package pack
  2. import (
  3. "github.com/caixw/lib.go/conv"
  4. "youngee_m_api/model/common_model"
  5. "youngee_m_api/model/http_model"
  6. )
  7. func HttpTaskLogisticsListRequestToCondition(req *http_model.TaskLogisticsListRequest) *common_model.TalentConditions {
  8. return &common_model.TalentConditions{
  9. ProjectId: req.ProjectId,
  10. LogisticsStatus: conv.MustInt64(req.LogisticsStatus, 0),
  11. StrategyId: conv.MustInt64(req.StrategyId, 0),
  12. TaskId: conv.MustString(req.TaskId, ""),
  13. PlatformNickname: conv.MustString(req.PlatformNickname, ""),
  14. }
  15. }
  16. func HttpSpecialProjectTaskRequestToCondition(req *http_model.GetSpecialLogisticListRequest) *common_model.TalentConditions {
  17. return &common_model.TalentConditions{
  18. //ProjectId: req.ProjectId,
  19. LogisticsStatus: conv.MustInt64(req.LogisticsStatus, 0),
  20. TaskId: conv.MustString(req.TaskId, ""),
  21. PlatformNickname: conv.MustString(req.PlatformNickname, ""),
  22. }
  23. }