dao

package
v0.0.0-...-8625c6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* @Author: lihuan * @Date: 2021-12-14 21:11:59 * @LastEditors: lihuan * @LastEditTime: 2021-12-19 16:30:12 * @Email: 17719495105@163.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDao

type UserDao struct {
	// contains filtered or unexported fields
}

func NewUserDao

func NewUserDao(ctx context.Context, db *gorm.DB) *UserDao

func (*UserDao) Create

func (u *UserDao) Create(user *models.User) (*models.User, error)

func (*UserDao) FindByPhone

func (u *UserDao) FindByPhone(phone string) (*models.User, error)

func (*UserDao) FindUserInfoById

func (u *UserDao) FindUserInfoById(id int64) (*models.User, error)

func (*UserDao) UpdateUserInfo

func (u *UserDao) UpdateUserInfo(user *models.User) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL