s_project_list_condition.go 655 B

1234567891011121314151617181920
  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 HttpSProjectListRequestToCondition(req *http_model.SProjectListRequest) *common_model.SProjectCondition {
  8. return &common_model.SProjectCondition{
  9. SProjectId: req.SProjectId,
  10. ProjectId: req.ProjectId,
  11. ProjectName: req.ProjectName,
  12. ProjectStatus: conv.MustInt(req.ProjectStatus, 0),
  13. ProjectType: conv.MustInt(req.ProjectType, 0),
  14. ProjectPlatform: conv.MustInt(req.ProjectPlatform, 0),
  15. ProjectForm: conv.MustInt(req.ProjectForm, 0),
  16. ContentType: conv.MustInt(req.ContentType, 0),
  17. }
  18. }