repository

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package repository Date: 2024/3/27 16:39 Author: Amu Description:

Package repository Date: 2024/3/27 16:39 Author: Amu Description:

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthRepo

type AuthRepo struct {
	DB *database.DB
}

func NewAuthRepo

func NewAuthRepo(db *database.DB) *AuthRepo

func (*AuthRepo) Login

func (a *AuthRepo) Login(ctx context.Context, args *schema.LoginArgs) (*model.User, error)

func (*AuthRepo) PassUpdate

func (a *AuthRepo) PassUpdate(ctx context.Context, args *schema.PasswordUpdateArgs) error

type IAuthRepository

type IAuthRepository interface {
	Login(ctx context.Context, args *schema.LoginArgs) (*model.User, error)
	PassUpdate(ctx context.Context, args *schema.PasswordUpdateArgs) error
}

Jump to

Keyboard shortcuts

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