| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /**
- * @ File:
- * @ Date: 2021/1/25 10:07
- * @ Author: JYQ
- * @ Description:
- */
- package service
- type User struct {
- base
- }
- //会员用户列表查询带分页
- func (u User) ShopUserListQuery(
- sess string,
- phone string,
- name string,
- pageIndex int,
- tableMax int) (rs string, pageCount int64, err error) {
- //offset := utils.PageIndex2RowOffset(pageIndex, tableMax)
- //// todo 做session校验
- //
- //dao := u.getUserDao()
- //userrs, allCount, err := dao.ShopUserListQuery(phone, name, vipType, user.ShopId, expDay, tableMax, offset)
- //if err != nil {
- // return
- //}
- //
- //pageCount = utils.CountPage(allCount, tableMax)
- return
- }
- //会员用户基本信息查询
- func (u User) ShopUserSimpleQuery(sess string, classId *int) (rs string, err error) {
- // todo 做session校验
- //user := u.getUser(sess)
- //dao := u.getUserDao()
- //rs, err = dao.ShopUserSimpleQuery(classId, user.ShopId)
- return
- }
|