user.go 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * @ File:
  3. * @ Date: 2021/1/25 10:07
  4. * @ Author: JYQ
  5. * @ Description:
  6. */
  7. package service
  8. type User struct {
  9. base
  10. }
  11. //会员用户列表查询带分页
  12. func (u User) ShopUserListQuery(
  13. sess string,
  14. phone string,
  15. name string,
  16. pageIndex int,
  17. tableMax int) (rs string, pageCount int64, err error) {
  18. //offset := utils.PageIndex2RowOffset(pageIndex, tableMax)
  19. //// todo 做session校验
  20. //
  21. //dao := u.getUserDao()
  22. //userrs, allCount, err := dao.ShopUserListQuery(phone, name, vipType, user.ShopId, expDay, tableMax, offset)
  23. //if err != nil {
  24. // return
  25. //}
  26. //
  27. //pageCount = utils.CountPage(allCount, tableMax)
  28. return
  29. }
  30. //会员用户基本信息查询
  31. func (u User) ShopUserSimpleQuery(sess string, classId *int) (rs string, err error) {
  32. // todo 做session校验
  33. //user := u.getUser(sess)
  34. //dao := u.getUserDao()
  35. //rs, err = dao.ShopUserSimpleQuery(classId, user.ShopId)
  36. return
  37. }