mediae

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaController

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

	FileSystemService service.FileSystemService `inject:"#FileSystemService"`
	MediaService      service.MediaService      `inject:"#MediaService"`
	Responder         glass.MainResponder       `inject:"#glass-main-responder"`
}

MediaController Media 控制器

func (*MediaController) Init

Init 初始化

type MediaDaoImpl

type MediaDaoImpl struct {
	markup.Component `id:"MediaDAO"`

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

MediaDaoImpl ...

func (*MediaDaoImpl) Find

func (inst *MediaDaoImpl) Find(id dxo.MediaID) (*entity.Media, error)

Find ...

func (*MediaDaoImpl) FindByPath

func (inst *MediaDaoImpl) FindByPath(path string) (*entity.Media, error)

FindByPath ...

func (*MediaDaoImpl) Insert

func (inst *MediaDaoImpl) Insert(o *entity.Media) (*entity.Media, error)

Insert ...

func (*MediaDaoImpl) ListAll

func (inst *MediaDaoImpl) ListAll() ([]*entity.Media, error)

ListAll ...

func (*MediaDaoImpl) ListByIDs

func (inst *MediaDaoImpl) ListByIDs(ids []dxo.MediaID) ([]*entity.Media, error)

ListByIDs ...

func (*MediaDaoImpl) Remove

func (inst *MediaDaoImpl) Remove(id dxo.MediaID) error

Remove ...

func (*MediaDaoImpl) Update

func (inst *MediaDaoImpl) Update(id dxo.MediaID, o1 *entity.Media) (*entity.Media, error)

Update ....

type MediaServiceImpl

type MediaServiceImpl struct {
	markup.Component `id:"MediaService"`

	AC                 application.Context           `inject:"context"`
	MediaDAO           dao.MediaDAO                  `inject:"#MediaDAO"`
	SysMainRepoService service.MainRepositoryService `inject:"#MainRepositoryService"`
	FileSystemService  service.FileSystemService     `inject:"#FileSystemService"`
	ContentTypeService service.ContentTypeService    `inject:"#ContentTypeService"`
	HTTPClientService  service.HTTPClientService     `inject:"#HTTPClientService"`

	ResPathPrefix string `inject:"${wpm.presets.res-path-prefix-list}"`
	WebPathPrefix string `inject:"${wpm.presets.web-path-prefix}"`
}

MediaServiceImpl ...

func (*MediaServiceImpl) ComputeMediaPath added in v0.1.1

func (inst *MediaServiceImpl) ComputeMediaPath(ctx context.Context, me *dto.Media) (afs.Path, error)

ComputeMediaPath ...

func (*MediaServiceImpl) Find

func (inst *MediaServiceImpl) Find(ctx context.Context, id dxo.MediaID, opt *service.MediaOptions) (*dto.Media, error)

Find ...

func (*MediaServiceImpl) FindByIDs

func (inst *MediaServiceImpl) FindByIDs(ctx context.Context, ids []dxo.MediaID, opt *service.MediaOptions) ([]*dto.Media, error)

FindByIDs ...

func (*MediaServiceImpl) FindByPath

func (inst *MediaServiceImpl) FindByPath(ctx context.Context, path string, opt *service.MediaOptions) (*dto.Media, error)

FindByPath ...

func (*MediaServiceImpl) ImportPresets

func (inst *MediaServiceImpl) ImportPresets(ctx context.Context) error

ImportPresets ...

func (*MediaServiceImpl) Insert

func (inst *MediaServiceImpl) Insert(ctx context.Context, o *dto.Media, opt *service.MediaOptions) (*dto.Media, error)

Insert ...

func (*MediaServiceImpl) ListAll

func (inst *MediaServiceImpl) ListAll(ctx context.Context, opt *service.MediaOptions) ([]*dto.Media, error)

ListAll ...

func (*MediaServiceImpl) PrepareForDownload

func (inst *MediaServiceImpl) PrepareForDownload(ctx context.Context, me *dto.Media) (*dto.Media, error)

PrepareForDownload ...

func (*MediaServiceImpl) Remove

func (inst *MediaServiceImpl) Remove(ctx context.Context, id dxo.MediaID) error

Remove ...

func (*MediaServiceImpl) Update

func (inst *MediaServiceImpl) Update(ctx context.Context, id dxo.MediaID, o *dto.Media, opt *service.MediaOptions) (*dto.Media, error)

Update ...

Jump to

Keyboard shortcuts

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