store

package
v0.0.0-...-491cb66 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New, wire.Bind(new(UserStore), new(*userStore)))

ProviderSet 一个 Wire provider sets,用来初始化 store 实例对象,并将 UserStore 接口绑定到 *userStore 类型实现上

Functions

func New

func New(db *gorm.DB) *userStore

New userStore 构造函数

Types

type UserStore

type UserStore interface {
	Create(ctx context.Context, user *model.UserM) error
}

UserStore 定义 user 暴露的 CRUD 方法

Jump to

Keyboard shortcuts

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