task_script_list_conditions.go 553 B

1234567891011121314151617181920
  1. package pack
  2. import (
  3. "fmt"
  4. "youngee_b_api/model/common_model"
  5. "youngee_b_api/model/http_model"
  6. "github.com/issue9/conv"
  7. )
  8. func HttpTaskScriptListRequestToCondition(req *http_model.TaskScriptListRequest) *common_model.TalentConditions {
  9. fmt.Printf("%+v", req)
  10. return &common_model.TalentConditions{
  11. ProjectId: req.ProjectId,
  12. ScriptStatus: conv.MustInt64(req.ScriptStatus),
  13. StrategyId: conv.MustInt64(req.StrategyId),
  14. // TaskId: conv.MustString(req.TaskId),
  15. PlatformNickname: conv.MustString(req.PlatformNickname),
  16. }
  17. }