Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserDAO ¶
type UserDAO interface { // 根据邮箱查询 SelectByEmail(email string) (*UserEntity, error) // 保存 Save(user *UserEntity) error }
用户数据访问接口
type UserDAOImpl ¶
type UserDAOImpl struct { }
用户数据访问实现
func (*UserDAOImpl) SelectByEmail ¶
func (u *UserDAOImpl) SelectByEmail(email string) (*UserEntity, error)
根据邮箱查询
Click to show internal directories.
Click to hide internal directories.