service

package
v0.0.0-...-364eef1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoSet = wire.NewSet(wire.Struct(new(DemoSrv), "*"))
View Source
var ServiceSet = wire.NewSet(
	DemoSet,

) // end

ServiceSet bll注入

Functions

This section is empty.

Types

type DemoSrv

type DemoSrv struct {
	TransRepo *dao.TransRepo
	DemoRepo  *dao.DemoRepo
}

func (*DemoSrv) Create

func (a *DemoSrv) Create(ctx context.Context, item schema.Demo) (*schema.IDResult, error)

func (*DemoSrv) Delete

func (a *DemoSrv) Delete(ctx context.Context, id uint64) error

func (*DemoSrv) Get

func (a *DemoSrv) Get(ctx context.Context, id uint64, opts ...schema.DemoQueryOptions) (*schema.Demo, error)

func (*DemoSrv) Query

func (*DemoSrv) Update

func (a *DemoSrv) Update(ctx context.Context, id uint64, item schema.Demo) error

func (*DemoSrv) UpdateStatus

func (a *DemoSrv) UpdateStatus(ctx context.Context, id uint64, status int) error

Jump to

Keyboard shortcuts

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