task_logistics_list_conditions.go 925 B

123456789101112131415161718192021222324252627
  1. package pack
  2. import (
  3. "youngee_b_api/model/common_model"
  4. "youngee_b_api/model/http_model"
  5. "github.com/issue9/conv"
  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),
  11. StrategyId: conv.MustInt64(req.StrategyId),
  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. }