postserviceiface

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostService

type PostService interface {
	CreateTemplate(ctx context.Context, template *template.Template) (int64, error)
	UpdateTemplate(ctx context.Context, template *template.Template) error
	GetTemplateById(ctx context.Context, id int64) (*template.Template, error)
	ListTemplate(ctx context.Context, pageRequest *api.PaginationRequest, searchFields ...*api.SearchField) ([]*template.Template, error)
	RemoveTemplate(ctx context.Context, id int64) error
	SendWithTemplate(ctx context.Context, sendType api.PostType, template *template.Template, to, title string, data map[string]string) error
	Send(ctx context.Context, sendType api.PostType, to, title, content string) error
}

Jump to

Keyboard shortcuts

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