user.go 587 字节
package repository

import "ability/models"

type IUserRepository interface {
	GetUsersByMobile(mobile string) (v *models.Users, err error)
	GetUserInfoByMobile(mobile string) (v *models.UserInfo, err error)
}

func assertImplement() {
	var _ IUserRepository = (*UserRepository)(nil)
}

type UserRepository struct{}

func (r *UserRepository) GetUsersByMobile(mobile string) (v *models.Users, err error) {
	return models.GetUsersByMobile(mobile)
}

func (r *UserRepository) GetUserInfoByMobile(mobile string) (v *models.UserInfo, err error) {
	return models.GetUserInfoByMobile(mobile)
}