contenttypes

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentTypeController added in v0.1.1

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

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

ContentTypeController ContentType 控制器

func (*ContentTypeController) Init added in v0.1.1

Init 初始化

type ProjectTypeDaoImpl added in v0.1.1

type ProjectTypeDaoImpl struct {
	markup.Component `id:"ContentTypeDAO"`

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

ProjectTypeDaoImpl ...

func (*ProjectTypeDaoImpl) Find added in v0.1.1

Find ...

func (*ProjectTypeDaoImpl) FindByName added in v0.1.1

func (inst *ProjectTypeDaoImpl) FindByName(name dxo.ContentTypeName) (*entity.ContentType, error)

FindByName ...

func (*ProjectTypeDaoImpl) FindByURN added in v0.1.1

func (inst *ProjectTypeDaoImpl) FindByURN(urn dxo.ContentTypeURN) (*entity.ContentType, error)

FindByURN ...

func (*ProjectTypeDaoImpl) Insert added in v0.1.1

Insert ...

func (*ProjectTypeDaoImpl) ListAll added in v0.1.1

func (inst *ProjectTypeDaoImpl) ListAll() ([]*entity.ContentType, error)

ListAll ...

func (*ProjectTypeDaoImpl) ListByPattern added in v0.1.1

func (inst *ProjectTypeDaoImpl) ListByPattern(pattern string) ([]*entity.ContentType, error)

ListByPattern ...

func (*ProjectTypeDaoImpl) Remove added in v0.1.1

func (inst *ProjectTypeDaoImpl) Remove(id dxo.ContentTypeID) error

Remove ...

func (*ProjectTypeDaoImpl) Update added in v0.1.1

Update ....

type ProjectTypeImportController added in v0.1.1

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

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

ProjectTypeImportController ProjectTypeImport 控制器

func (*ProjectTypeImportController) Init added in v0.1.1

Init 初始化

type ProjectTypeImportServiceImpl added in v0.1.1

type ProjectTypeImportServiceImpl struct {
	markup.Component `id:"ProjectTypeImportService"`

	AC                 application.Context        `inject:"context"`
	ProjectTypeService service.ContentTypeService `inject:"#ContentTypeService"`
	PresetService      service.PresetService      `inject:"#PresetService"`
}

ProjectTypeImportServiceImpl ...

func (*ProjectTypeImportServiceImpl) ImportTypesFromPreset added in v0.1.1

func (inst *ProjectTypeImportServiceImpl) ImportTypesFromPreset(c context.Context) error

ImportTypesFromPreset ...

type ProjectTypeServiceImpl added in v0.1.1

type ProjectTypeServiceImpl struct {
	markup.Component `id:"ContentTypeService"`

	ProjectTypeDAO    dao.ContentTypeDAO        `inject:"#ContentTypeDAO"`
	FileSystemService service.FileSystemService `inject:"#FileSystemService"`
}

ProjectTypeServiceImpl ...

func (*ProjectTypeServiceImpl) Find added in v0.1.1

Find ...

func (*ProjectTypeServiceImpl) GetContentType added in v0.1.1

func (inst *ProjectTypeServiceImpl) GetContentType(ctx context.Context, name string) (string, error)

GetContentType 根据文件名(或路径)查询对应的mime类型

func (*ProjectTypeServiceImpl) Insert added in v0.1.1

Insert ...

func (*ProjectTypeServiceImpl) ListAll added in v0.1.1

func (inst *ProjectTypeServiceImpl) ListAll(ctx context.Context) ([]*dto.ContentType, error)

ListAll ...

func (*ProjectTypeServiceImpl) ListByPattern added in v0.1.1

func (inst *ProjectTypeServiceImpl) ListByPattern(ctx context.Context, pattern string) ([]*dto.ContentType, error)

ListByPattern ...

func (*ProjectTypeServiceImpl) LocateProject added in v0.1.1

func (inst *ProjectTypeServiceImpl) LocateProject(ctx context.Context, o *dto.Project, path string) error

LocateProject ...

func (*ProjectTypeServiceImpl) Remove added in v0.1.1

Remove ...

func (*ProjectTypeServiceImpl) Update added in v0.1.1

Update ...

Jump to

Keyboard shortcuts

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