repo

package
v0.0.0-...-d2e41b5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	ID   int
	Name string
}

type RoleRepo

type RoleRepo interface {
	GetUserRole(id int) (*Role, error)
}

func NewRoleRepo

func NewRoleRepo(db *sql.DB) RoleRepo

type User

type User struct {
	ID     int
	Name   string
	RoleID int
}

type UserRepo

type UserRepo interface {
	GetUser(id int) (*User, error)
}

func NewUserRepo

func NewUserRepo(cc ioc.Container, db *sql.DB) UserRepo

Jump to

Keyboard shortcuts

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