application

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodsService

type GoodsService struct {
	Runtime   freedom.Runtime
	GoodsRepo repositorys.GoodsInterface
}

GoodsService .

func (*GoodsService) AddStock

func (srv *GoodsService) AddStock(goodsID, num int) error

func (*GoodsService) Get

func (srv *GoodsService) Get(id int) (rep dto.GoodsRep, e error)

func (*GoodsService) GetAll

func (srv *GoodsService) GetAll() (result []dto.GoodsRep, e error)

type OrderService

type OrderService struct {
	Runtime   freedom.Runtime
	GoodsRepo repositorys.GoodsInterface
	OrderRepo repositorys.OrderInterface
	Tx        transaction.Transaction
}

OrderService .

func (*OrderService) Add

func (srv *OrderService) Add(goodsID, num, userId int) (resp string, e error)

func (*OrderService) Get

func (srv *OrderService) Get(id, userId int) (result dto.OrderRep, e error)

func (*OrderService) GetAll

func (srv *OrderService) GetAll(userId int) (result []dto.OrderRep, e error)

Directories

Path Synopsis
Code generated by 'freedom new-crud' Code generated by 'freedom new-crud'
Code generated by 'freedom new-crud' Code generated by 'freedom new-crud'

Jump to

Keyboard shortcuts

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