creator_list_conditions.go 857 B

123456789101112131415161718192021222324252627
  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. InBlacklist: req.InBlacklist,
  13. }
  14. }
  15. func HttpAccountInfoRequestToCondition(req *http_model.AccountInfoRequest) *common_model.AccountInfoConditions {
  16. return &common_model.AccountInfoConditions{
  17. PlatformID: conv.MustInt64(req.PlatformID, 0),
  18. BindDate: req.BindDate,
  19. FansLow: req.FansLow,
  20. FansHigh: req.FansHigh,
  21. TalentId: req.TalentId,
  22. PlatformNickname: req.PlatformNickname,
  23. }
  24. }