data

package
v0.0.0-...-8f419a9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT, MIT Imports: 18 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewDB

func NewDB(c *conf.Data) (*gorm.DB, error)

NewDB .

func NewPermissionRepo

func NewPermissionRepo(data *Data, logger log.Logger) (biz.PermissionRepo, error)

NewPermissionRepo 新建DAO操作仓库

func NewRoleRepo

func NewRoleRepo(data *Data, logger log.Logger) (biz.RoleRepo, error)

NewRoleRepo 新建DAO操作仓库

func NewUserRepo

func NewUserRepo(data *Data, logger log.Logger) (biz.UserRepo, error)

NewUserRepo 新建DAO操作仓库

Types

type Data

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

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger, db *gorm.DB) (*Data, func(), error)

NewData .

Directories

Path Synopsis
orm

Jump to

Keyboard shortcuts

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