creator_list_conditions.go 831 B

1234567891011121314151617181920212223242526
  1. package pack
  2. import (
  3. "github.com/caixw/lib.go/conv"
  4. "youngee_m_api/model/common_model"
  5. "youngee_m_api/model/http_model"
  6. )
  7. func HttpCreatorListRequestToCondition(req *http_model.CreatorListRequest) *common_model.CreatorListConditions {
  8. return &common_model.CreatorListConditions{
  9. Id: req.Id,
  10. TalentWxNickname: req.TalentWxNickname,
  11. CreateDate: req.CreateDate,
  12. }
  13. }
  14. func HttpAccountInfoRequestToCondition(req *http_model.AccountInfoRequest) *common_model.AccountInfoConditions {
  15. return &common_model.AccountInfoConditions{
  16. PlatformID: conv.MustInt64(req.PlatformID, 0),
  17. BindDate: req.BindDate,
  18. FansLow: conv.MustInt64(req.FansLow, 0),
  19. FansHigh: conv.MustInt64(req.FansHigh, 0),
  20. TalentId: req.TalentId,
  21. PlatformNickname: req.PlatformNickname,
  22. }
  23. }