locations

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpLocationDao

type ImpLocationDao struct {
	markup.Component `id:"LocationDAO"`

	Agent          dbagent.GormDBAgent    `inject:"#GormDBAgent"`
	TrashService   service.TrashService   `inject:"#TrashService"`
	UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"`
}

ImpLocationDao ...

func (*ImpLocationDao) Find

func (inst *ImpLocationDao) Find(id dxo.LocationID) (*entity.Location, error)

Find ...

func (*ImpLocationDao) FindByPath

func (inst *ImpLocationDao) FindByPath(path string) (*entity.Location, error)

FindByPath ...

func (*ImpLocationDao) Insert

func (inst *ImpLocationDao) Insert(o *entity.Location) (*entity.Location, error)

Insert ...

func (*ImpLocationDao) ListAll

func (inst *ImpLocationDao) ListAll() ([]*entity.Location, error)

ListAll ...

func (*ImpLocationDao) Remove

func (inst *ImpLocationDao) Remove(id dxo.LocationID) error

Remove ...

func (*ImpLocationDao) Update

func (inst *ImpLocationDao) Update(id dxo.LocationID, o1 *entity.Location) (*entity.Location, error)

Update ...

type ImpLocationService

type ImpLocationService struct {
	markup.Component `id:"LocationService"`

	DAO dao.LocationDAO `inject:"#LocationDAO"`
}

ImpLocationService ...

func (*ImpLocationService) Find

Find ...

func (*ImpLocationService) FindByPath

func (inst *ImpLocationService) FindByPath(ctx context.Context, path string, opt *service.LocationOptions) (*dto.Location, error)

FindByPath ...

func (*ImpLocationService) Insert

func (inst *ImpLocationService) Insert(ctx context.Context, o1 *dto.Location) (*dto.Location, error)

Insert ...

func (*ImpLocationService) InsertOrFetch

func (inst *ImpLocationService) InsertOrFetch(ctx context.Context, o1 *dto.Location, opt *service.LocationOptions) (*dto.Location, error)

InsertOrFetch ...

func (*ImpLocationService) ListAll

func (inst *ImpLocationService) ListAll(ctx context.Context, opt *service.LocationOptions) ([]*dto.Location, error)

ListAll ...

func (*ImpLocationService) Remove

func (inst *ImpLocationService) Remove(ctx context.Context, id dxo.LocationID) error

Remove ...

func (*ImpLocationService) Update

func (inst *ImpLocationService) Update(ctx context.Context, id dxo.LocationID, o1 *dto.Location) (*dto.Location, error)

Update ...

Jump to

Keyboard shortcuts

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