goods

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GOODS_NAME_KEY  = "goods::name::"
	GOODS_PRICE_KEY = "goods::price::"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodsInterface

type GoodsInterface interface {
	GetGoodsName(ctx context.Context, id int) (string, error)
	CrudGoods(ctx context.Context) (goods respository.Test, err error)
}
var Instance GoodsInterface

type GoodsService

type GoodsService struct{}

func (*GoodsService) CrudGoods

func (gs *GoodsService) CrudGoods(ctx context.Context) (goods respository.Test, err error)

func (*GoodsService) GetGoodsName

func (gs *GoodsService) GetGoodsName(ctx context.Context, id int) (string, error)

Jump to

Keyboard shortcuts

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