user_subscription_service.go 703 B

12345678910111213141516171819202122232425
  1. package user
  2. import (
  3. subscribeDao "eta/eta_mini_ht_api/models/merchant"
  4. )
  5. func GetUserSubscribe(productIds []int, userId int) (list []subscribeDao.UserSubscriptionAccessList, err error) {
  6. return subscribeDao.GetUserSubscribe(productIds, userId)
  7. }
  8. func GetNeedExpiredAccessCount(deadLine string) (count int) {
  9. return subscribeDao.GetNeedExpiredAccessCount(deadLine)
  10. }
  11. type accessDTO struct {
  12. ID int
  13. TemplateUserId int
  14. ProductID int
  15. ProductName string
  16. ProductType string
  17. Status string
  18. }
  19. func GetExpiredAccessList(num int, deadLine string) (list []subscribeDao.UserSubscriptionAccessList, err error) {
  20. return subscribeDao.GetExpiredAccessList(num, deadLine)
  21. }