Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Service ¶
type Service interface { // 获取单个模板列表 Get(ctx context.Context, id int) (resp *types.Template, err error) // 创建模板 Post(ctx context.Context, req templateRequest) (err error) // 更新模板 Update(ctx context.Context, req templateRequest) (err error) // 删除模版 Delete(ctx context.Context, id int) (err error) // 模板列表 List(ctx context.Context, name string, page, limit int) (res map[string]interface{}, err error) }
func NewService ¶
func NewService(logger log.Logger, repository repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.