trash

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpTrashDao

type ImpTrashDao struct {
	markup.Component `id:"TrashDAO"`

	Agent dbagent.GormDBAgent `inject:"#GormDBAgent"`
}

ImpTrashDao ...

func (*ImpTrashDao) Delete

func (inst *ImpTrashDao) Delete(holders ...*entity.Holder) error

Delete ...

func (*ImpTrashDao) ListAll

func (inst *ImpTrashDao) ListAll() ([]*entity.Holder, error)

ListAll ...

func (*ImpTrashDao) Recover

func (inst *ImpTrashDao) Recover(h ...*entity.Holder) error

Recover ...

type ImpTrashService

type ImpTrashService struct {
	markup.Component `id:"TrashService" initMethod:"Init"`

	TrashDao dao.TrashDAO `inject:"#TrashDAO"`

	AutoClean bool `inject:"${wpm.auto-clean-trash.enabled}"`
	// contains filtered or unexported fields
}

ImpTrashService ...

func (*ImpTrashService) Clean

func (inst *ImpTrashService) Clean() error

Clean ...

func (*ImpTrashService) EnableAutoCleanBeforeInsert added in v0.1.3

func (inst *ImpTrashService) EnableAutoCleanBeforeInsert(en bool)

EnableAutoCleanBeforeInsert ...

func (*ImpTrashService) Init added in v0.1.3

func (inst *ImpTrashService) Init() error

Init ...

func (*ImpTrashService) OnDelete added in v0.1.3

func (inst *ImpTrashService) OnDelete()

OnDelete ...

func (*ImpTrashService) OnInsert added in v0.1.3

func (inst *ImpTrashService) OnInsert()

OnInsert ...

type TheTrashController

type TheTrashController struct {
	markup.RestController `class:"rest-controller"`

	TrashSer  service.TrashService `inject:"#TrashService"`
	TrashDao  dao.TrashDAO         `inject:"#TrashDAO"`
	Responder glass.MainResponder  `inject:"#glass-main-responder"`
}

TheTrashController Trash 控制器

func (*TheTrashController) Init

Init 初始化

Jump to

Keyboard shortcuts

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