Documentation ¶
Index ¶
- type MediaController
- type MediaDaoImpl
- func (inst *MediaDaoImpl) Find(id dxo.MediaID) (*entity.Media, error)
- func (inst *MediaDaoImpl) FindByPath(path string) (*entity.Media, error)
- func (inst *MediaDaoImpl) Insert(o *entity.Media) (*entity.Media, error)
- func (inst *MediaDaoImpl) ListAll() ([]*entity.Media, error)
- func (inst *MediaDaoImpl) ListByIDs(ids []dxo.MediaID) ([]*entity.Media, error)
- func (inst *MediaDaoImpl) Remove(id dxo.MediaID) error
- func (inst *MediaDaoImpl) Update(id dxo.MediaID, o1 *entity.Media) (*entity.Media, error)
- type MediaServiceImpl
- func (inst *MediaServiceImpl) ComputeMediaPath(ctx context.Context, me *dto.Media) (afs.Path, error)
- func (inst *MediaServiceImpl) Find(ctx context.Context, id dxo.MediaID, opt *service.MediaOptions) (*dto.Media, error)
- func (inst *MediaServiceImpl) FindByIDs(ctx context.Context, ids []dxo.MediaID, opt *service.MediaOptions) ([]*dto.Media, error)
- func (inst *MediaServiceImpl) FindByPath(ctx context.Context, path string, opt *service.MediaOptions) (*dto.Media, error)
- func (inst *MediaServiceImpl) ImportPresets(ctx context.Context) error
- func (inst *MediaServiceImpl) Insert(ctx context.Context, o *dto.Media, opt *service.MediaOptions) (*dto.Media, error)
- func (inst *MediaServiceImpl) ListAll(ctx context.Context, opt *service.MediaOptions) ([]*dto.Media, error)
- func (inst *MediaServiceImpl) PrepareForDownload(ctx context.Context, me *dto.Media) (*dto.Media, error)
- func (inst *MediaServiceImpl) Remove(ctx context.Context, id dxo.MediaID) error
- func (inst *MediaServiceImpl) Update(ctx context.Context, id dxo.MediaID, o *dto.Media, opt *service.MediaOptions) (*dto.Media, error)
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 ¶
func (inst *MediaController) Init(ec glass.EngineConnection) error
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) FindByPath ¶
func (inst *MediaDaoImpl) FindByPath(path string) (*entity.Media, error)
FindByPath ...
func (*MediaDaoImpl) ListAll ¶
func (inst *MediaDaoImpl) ListAll() ([]*entity.Media, error)
ListAll ...
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}"` 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 ...
Click to show internal directories.
Click to hide internal directories.