adminsrv

package
v0.0.0-...-4e2b7d2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminServiceProvider = wire.NewSet(
	NewUserService,
)

Functions

This section is empty.

Types

type ProductService

type ProductService interface {
	AddProduct(ctx context.Context, req *adminmodel.AddProductParams) error
}

func NewProductService

func NewProductService(repo adminrepo.ProductRepo) ProductService

type UserService

type UserService interface {
	Login(ctx context.Context, req *adminmodel.UserLoginRequest) (*adminmodel.UserLoginResp, error)
	Register(ctx context.Context, req *adminmodel.UserRegisterRequest) error
	GetUserInfo(ctx context.Context, userId int) (userInfo *adminmodel.UserInfo, err error)
	UpdateUserInfo(ctx context.Context, req *adminmodel.UpdateUserInfoRequest) error
}

func NewUserService

func NewUserService(repo adminrepo.UserRepo, jwt *jwt.JWT, data *data.Data) UserService

Jump to

Keyboard shortcuts

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