Documentation ¶
Index ¶
- type CompareTemplateReply
- type CompareTemplateRequest
- type PageTemplateRequest
- type ParseTemplateReply
- type ParseTemplateRequest
- type PreviewTemplateReply
- type PreviewTemplateRequest
- type Repo
- type Template
- type UseCase
- func (t *UseCase) AddTemplate(ctx kratosx.Context, template *Template) (uint32, error)
- func (t *UseCase) Compare(ctx kratosx.Context, req *CompareTemplateRequest) ([]*CompareTemplateReply, error)
- func (t *UseCase) CompareTemplate(ctx kratosx.Context, req *CompareTemplateRequest) ([]*CompareTemplateReply, error)
- func (t *UseCase) CurrentTemplate(ctx kratosx.Context, srvId uint32) (*Template, error)
- func (t *UseCase) DeleteUpdateTemplate(ctx kratosx.Context, id uint32) error
- func (t *UseCase) GetTemplate(ctx kratosx.Context, id uint32) (*Template, error)
- func (t *UseCase) PageTemplate(ctx kratosx.Context, req *PageTemplateRequest) ([]*Template, uint32, error)
- func (t *UseCase) ParseTemplate(ctx kratosx.Context, req *ParseTemplateRequest) (*ParseTemplateReply, error)
- func (t *UseCase) PreviewTemplate(ctx kratosx.Context, req *PreviewTemplateRequest) (*PreviewTemplateReply, error)
- func (t *UseCase) SwitchTemplate(ctx kratosx.Context, srvId, tpId uint32) error
- func (t *UseCase) UpdateTemplate(ctx kratosx.Context, template *Template) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareTemplateReply ¶
type CompareTemplateRequest ¶
type PageTemplateRequest ¶
type ParseTemplateReply ¶
type ParseTemplateRequest ¶
type PreviewTemplateReply ¶
type PreviewTemplateRequest ¶
type Repo ¶
type Repo interface { GetTemplate(ctx kratosx.Context, id uint32) (*Template, error) GetTemplateByVersion(ctx kratosx.Context, version string) (*Template, error) CurrentTemplate(ctx kratosx.Context, srvId uint32) (*Template, error) PageTemplate(ctx kratosx.Context, options *PageTemplateRequest) ([]*Template, uint32, error) AddTemplate(ctx kratosx.Context, c *Template) (uint32, error) UpdateTemplate(ctx kratosx.Context, c *Template) error UseTemplate(ctx kratosx.Context, srvId, tpId uint32) error DeleteTemplate(ctx kratosx.Context, uint322 uint32) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func NewUseCase ¶
func (*UseCase) AddTemplate ¶
AddTemplate 添加模板信息
func (*UseCase) Compare ¶
func (t *UseCase) Compare(ctx kratosx.Context, req *CompareTemplateRequest) ([]*CompareTemplateReply, error)
Compare 对比变更细节
func (*UseCase) CompareTemplate ¶
func (t *UseCase) CompareTemplate(ctx kratosx.Context, req *CompareTemplateRequest) ([]*CompareTemplateReply, error)
CompareTemplate 对比变更细节
func (*UseCase) CurrentTemplate ¶
CurrentTemplate 获取当前版本的配置信息
func (*UseCase) DeleteUpdateTemplate ¶
DeleteUpdateTemplate 删除模板信息
func (*UseCase) GetTemplate ¶
GetTemplate 获取指定模板信息
func (*UseCase) PageTemplate ¶
func (t *UseCase) PageTemplate(ctx kratosx.Context, req *PageTemplateRequest) ([]*Template, uint32, error)
PageTemplate 获取分页模板信息
func (*UseCase) ParseTemplate ¶
func (t *UseCase) ParseTemplate(ctx kratosx.Context, req *ParseTemplateRequest) (*ParseTemplateReply, error)
ParseTemplate 使用指定版本配置
func (*UseCase) PreviewTemplate ¶
func (t *UseCase) PreviewTemplate(ctx kratosx.Context, req *PreviewTemplateRequest) (*PreviewTemplateReply, error)
PreviewTemplate 使用指定版本配置
func (*UseCase) SwitchTemplate ¶
SwitchTemplate 切换指定版本信息
Click to show internal directories.
Click to hide internal directories.