special_project_condition.go 671 B

12345678910111213141516171819
  1. package pack
  2. import (
  3. "github.com/issue9/conv"
  4. "youngee_b_api/model/common_model"
  5. "youngee_b_api/model/http_model"
  6. )
  7. func HttpSpecialProjectRequestToCondition(req *http_model.SpecialProjectListRequest) *common_model.SpecialSProjectCondition {
  8. return &common_model.SpecialSProjectCondition{
  9. ProjectName: req.ProjectName,
  10. ProjectStatus: conv.MustInt(req.ProjectStatus, 4),
  11. ProjectType: conv.MustInt(req.ProjectType, 2),
  12. ProjectPlatform: conv.MustInt(req.ProjectPlatform, 0),
  13. ProjectForm: conv.MustInt(req.ProjectForm, 0),
  14. ContentType: conv.MustInt(req.ProjectContentType, 0),
  15. SProjectStatus: conv.MustInt(req.SProjectStatus, 0),
  16. }
  17. }