Documentation
¶
Index ¶
- type ImpIntentTemplateEntityCache
- type IntentTemplateController
- type IntentTemplateDaoImpl
- func (inst *IntentTemplateDaoImpl) Find(id dxo.IntentTemplateID) (*entity.IntentTemplate, error)
- func (inst *IntentTemplateDaoImpl) Insert(o *entity.IntentTemplate) (*entity.IntentTemplate, error)
- func (inst *IntentTemplateDaoImpl) ListAll() ([]*entity.IntentTemplate, error)
- func (inst *IntentTemplateDaoImpl) ListBySelector(sel *entity.IntentTemplate) ([]*entity.IntentTemplate, error)
- func (inst *IntentTemplateDaoImpl) Remove(id dxo.IntentTemplateID) error
- func (inst *IntentTemplateDaoImpl) Update(id dxo.IntentTemplateID, o *entity.IntentTemplate) (*entity.IntentTemplate, error)
- type IntentTemplateServiceImpl
- func (inst *IntentTemplateServiceImpl) Find(ctx context.Context, id dxo.IntentTemplateID) (*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) ImportPreset(ctx context.Context) error
- func (inst *IntentTemplateServiceImpl) Insert(ctx context.Context, o1 *dto.IntentTemplate) (*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) ListAll(ctx context.Context) ([]*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) ListBySelector(ctx context.Context, sel *dto.IntentTemplate) ([]*dto.IntentTemplate, error)
- func (inst *IntentTemplateServiceImpl) ListMacroProperties(ctx context.Context) (map[string]string, error)
- func (inst *IntentTemplateServiceImpl) Remove(ctx context.Context, id dxo.IntentTemplateID) error
- func (inst *IntentTemplateServiceImpl) Update(ctx context.Context, id dxo.IntentTemplateID, o1 *dto.IntentTemplate) (*dto.IntentTemplate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImpIntentTemplateEntityCache ¶ added in v0.1.2
type ImpIntentTemplateEntityCache struct {
markup.Component `id:"IntentTemplateEntityCache"`
DAO dao.IntentTemplateDAO `inject:"#IntentTemplateDAO"`
}
ImpIntentTemplateEntityCache ...
func (*ImpIntentTemplateEntityCache) ListTemplates ¶ added in v0.1.2
func (inst *ImpIntentTemplateEntityCache) ListTemplates() ([]*entity.IntentTemplate, error)
ListTemplates ...
type IntentTemplateController ¶
type IntentTemplateController struct {
markup.RestController `class:"rest-controller"`
IntentTemplateService service.IntentTemplateService `inject:"#IntentTemplateService"`
Responder glass.MainResponder `inject:"#glass-main-responder"`
}
IntentTemplateController IntentTemplate 控制器
func (*IntentTemplateController) Init ¶
func (inst *IntentTemplateController) Init(ec glass.EngineConnection) error
Init 初始化
type IntentTemplateDaoImpl ¶
type IntentTemplateDaoImpl struct {
markup.Component `id:"IntentTemplateDAO"`
Agent dbagent.GormDBAgent `inject:"#GormDBAgent"`
TrashService service.TrashService `inject:"#TrashService"`
UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"`
}
IntentTemplateDaoImpl ...
func (*IntentTemplateDaoImpl) Find ¶
func (inst *IntentTemplateDaoImpl) Find(id dxo.IntentTemplateID) (*entity.IntentTemplate, error)
Find ...
func (*IntentTemplateDaoImpl) Insert ¶
func (inst *IntentTemplateDaoImpl) Insert(o *entity.IntentTemplate) (*entity.IntentTemplate, error)
Insert ...
func (*IntentTemplateDaoImpl) ListAll ¶
func (inst *IntentTemplateDaoImpl) ListAll() ([]*entity.IntentTemplate, error)
ListAll ...
func (*IntentTemplateDaoImpl) ListBySelector ¶ added in v0.1.1
func (inst *IntentTemplateDaoImpl) ListBySelector(sel *entity.IntentTemplate) ([]*entity.IntentTemplate, error)
ListBySelector ...
func (*IntentTemplateDaoImpl) Remove ¶
func (inst *IntentTemplateDaoImpl) Remove(id dxo.IntentTemplateID) error
Remove ...
func (*IntentTemplateDaoImpl) Update ¶
func (inst *IntentTemplateDaoImpl) Update(id dxo.IntentTemplateID, o *entity.IntentTemplate) (*entity.IntentTemplate, error)
Update ...
type IntentTemplateServiceImpl ¶
type IntentTemplateServiceImpl struct {
markup.Component `id:"IntentTemplateService"`
AC application.Context `inject:"context"`
IntentTempDAO dao.IntentTemplateDAO `inject:"#IntentTemplateDAO"`
IntentFilterManager intents.FilterManager `inject:"#wpm-intent-filter-manager"`
PresetService service.PresetService `inject:"#PresetService"`
TemplateCache service.IntentTemplateEntityCache `inject:"#IntentTemplateEntityCache"`
}
IntentTemplateServiceImpl ...
func (*IntentTemplateServiceImpl) Find ¶
func (inst *IntentTemplateServiceImpl) Find(ctx context.Context, id dxo.IntentTemplateID) (*dto.IntentTemplate, error)
Find ...
func (*IntentTemplateServiceImpl) ImportPreset ¶
func (inst *IntentTemplateServiceImpl) ImportPreset(ctx context.Context) error
ImportPreset ...
func (*IntentTemplateServiceImpl) Insert ¶
func (inst *IntentTemplateServiceImpl) Insert(ctx context.Context, o1 *dto.IntentTemplate) (*dto.IntentTemplate, error)
Insert ...
func (*IntentTemplateServiceImpl) ListAll ¶
func (inst *IntentTemplateServiceImpl) ListAll(ctx context.Context) ([]*dto.IntentTemplate, error)
ListAll ...
func (*IntentTemplateServiceImpl) ListBySelector ¶ added in v0.1.1
func (inst *IntentTemplateServiceImpl) ListBySelector(ctx context.Context, sel *dto.IntentTemplate) ([]*dto.IntentTemplate, error)
ListBySelector ...
func (*IntentTemplateServiceImpl) ListMacroProperties ¶
func (inst *IntentTemplateServiceImpl) ListMacroProperties(ctx context.Context) (map[string]string, error)
ListMacroProperties ...
func (*IntentTemplateServiceImpl) Remove ¶
func (inst *IntentTemplateServiceImpl) Remove(ctx context.Context, id dxo.IntentTemplateID) error
Remove ...
func (*IntentTemplateServiceImpl) Update ¶
func (inst *IntentTemplateServiceImpl) Update(ctx context.Context, id dxo.IntentTemplateID, o1 *dto.IntentTemplate) (*dto.IntentTemplate, error)
Update ...
Click to show internal directories.
Click to hide internal directories.