task_finish_list_conditions.go 552 B

123456789101112131415161718
  1. package pack
  2. import (
  3. "youngee_m_api/model/common_model"
  4. "youngee_m_api/model/http_model"
  5. "github.com/caixw/lib.go/conv"
  6. )
  7. func HttpTaskFinishListRequestToCondition(req *http_model.TaskFinishListRequest) *common_model.TalentConditions {
  8. //fmt.Printf("初稿转换 %+v", req)
  9. return &common_model.TalentConditions{
  10. ProjectId: conv.MustInt64(req.ProjectId, 0),
  11. StrategyId: conv.MustInt64(req.StrategyId, 0),
  12. TaskId: conv.MustString(req.TaskId, ""),
  13. PlatformNickname: conv.MustString(req.PlatformNickname, ""),
  14. }
  15. }