Documentation
¶
Index ¶
- type ContentTypeController
- type ProjectTypeDaoImpl
- func (inst *ProjectTypeDaoImpl) Find(id dxo.ContentTypeID) (*entity.ContentType, error)
- func (inst *ProjectTypeDaoImpl) FindByName(name dxo.ContentTypeName) (*entity.ContentType, error)
- func (inst *ProjectTypeDaoImpl) FindByURN(urn dxo.ContentTypeURN) (*entity.ContentType, error)
- func (inst *ProjectTypeDaoImpl) Insert(o *entity.ContentType) (*entity.ContentType, error)
- func (inst *ProjectTypeDaoImpl) ListAll() ([]*entity.ContentType, error)
- func (inst *ProjectTypeDaoImpl) ListByPattern(pattern string) ([]*entity.ContentType, error)
- func (inst *ProjectTypeDaoImpl) Remove(id dxo.ContentTypeID) error
- func (inst *ProjectTypeDaoImpl) Update(id dxo.ContentTypeID, o1 *entity.ContentType) (*entity.ContentType, error)
- type ProjectTypeImportController
- type ProjectTypeImportServiceImpl
- type ProjectTypeServiceImpl
- func (inst *ProjectTypeServiceImpl) Find(ctx context.Context, id dxo.ContentTypeID) (*dto.ContentType, error)
- func (inst *ProjectTypeServiceImpl) GetContentType(ctx context.Context, name string) (string, error)
- func (inst *ProjectTypeServiceImpl) Insert(ctx context.Context, o1 *dto.ContentType) (*dto.ContentType, error)
- func (inst *ProjectTypeServiceImpl) ListAll(ctx context.Context) ([]*dto.ContentType, error)
- func (inst *ProjectTypeServiceImpl) ListByPattern(ctx context.Context, pattern string) ([]*dto.ContentType, error)
- func (inst *ProjectTypeServiceImpl) LocateProject(ctx context.Context, o *dto.Project, path string) error
- func (inst *ProjectTypeServiceImpl) Remove(ctx context.Context, id dxo.ContentTypeID) error
- func (inst *ProjectTypeServiceImpl) Update(ctx context.Context, id dxo.ContentTypeID, o1 *dto.ContentType) (*dto.ContentType, error)
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
func (inst *ContentTypeController) Init(ec glass.EngineConnection) error
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
func (inst *ProjectTypeDaoImpl) Find(id dxo.ContentTypeID) (*entity.ContentType, error)
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
func (inst *ProjectTypeDaoImpl) Insert(o *entity.ContentType) (*entity.ContentType, error)
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
func (inst *ProjectTypeDaoImpl) Update(id dxo.ContentTypeID, o1 *entity.ContentType) (*entity.ContentType, error)
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
func (inst *ProjectTypeImportController) Init(ec glass.EngineConnection) error
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"`
// contains filtered or unexported fields
}
ProjectTypeServiceImpl ...
func (*ProjectTypeServiceImpl) Find ¶ added in v0.1.1
func (inst *ProjectTypeServiceImpl) Find(ctx context.Context, id dxo.ContentTypeID) (*dto.ContentType, error)
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
func (inst *ProjectTypeServiceImpl) Insert(ctx context.Context, o1 *dto.ContentType) (*dto.ContentType, error)
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
func (inst *ProjectTypeServiceImpl) Remove(ctx context.Context, id dxo.ContentTypeID) error
Remove ...
func (*ProjectTypeServiceImpl) Update ¶ added in v0.1.1
func (inst *ProjectTypeServiceImpl) Update(ctx context.Context, id dxo.ContentTypeID, o1 *dto.ContentType) (*dto.ContentType, error)
Update ...
Click to show internal directories.
Click to hide internal directories.