123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package pack
- import (
- "youngee_m_api/model/common_model"
- "youngee_m_api/model/http_model"
- "github.com/caixw/lib.go/conv"
- )
- func HttpTaskDefaultReviewListRequestToCondition(req *http_model.TaskDefaultReviewListRequest) *common_model.TalentConditions {
- return &common_model.TalentConditions{
- ProjectId: conv.MustInt64(req.ProjectId, 0),
- DefaultStatus: conv.MustInt64(req.DefaultStatus, 0),
- StrategyId: conv.MustInt64(req.StrategyId, 0),
- TaskId: conv.MustString(req.TaskId, ""),
- PlatformNickname: conv.MustString(req.PlatformNickname, ""),
- }
- }
- func HttpTaskDefaultDataListRequestToCondition(req *http_model.TaskDefaultDataListRequest) *common_model.TalentConditions {
- return &common_model.TalentConditions{
- ProjectId: conv.MustInt64(req.ProjectId, 0),
- DefaultStatus: conv.MustInt64(req.DefaultStatus, 0),
- StrategyId: conv.MustInt64(req.StrategyId, 0),
- TaskId: conv.MustString(req.TaskId, ""),
- PlatformNickname: conv.MustString(req.PlatformNickname, ""),
- }
- }
- func HttpTaskTerminatingListRequestToCondition(req *http_model.TaskTerminatingListRequest) *common_model.TalentConditions {
- return &common_model.TalentConditions{
- ProjectId: conv.MustInt64(req.ProjectId, 0),
- DefaultStatus: conv.MustInt64(req.DefaultStatus, 0),
- StrategyId: conv.MustInt64(req.StrategyId, 0),
- TaskId: conv.MustString(req.TaskId, ""),
- PlatformNickname: conv.MustString(req.PlatformNickname, ""),
- }
- }
- func HttpTaskTerminatedListRequestToCondition(req *http_model.TaskTerminatedListRequest) *common_model.TalentConditions {
- return &common_model.TalentConditions{
- ProjectId: conv.MustInt64(req.ProjectId, 0),
- DefaultStatus: conv.MustInt64(req.DefaultStatus, 0),
- StrategyId: conv.MustInt64(req.StrategyId, 0),
- TaskId: conv.MustString(req.TaskId, ""),
- PlatformNickname: conv.MustString(req.PlatformNickname, ""),
- }
- }
|