template

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADLParser

type ADLParser interface {
	Version() model.ADLVer
	IsTypeAllowed(t model.ADLType) bool
	Validate([]byte, model.ADLType) bool
	Parse([]byte, model.ADLType) (*model.Template, error)
	ParseWithFill([]byte, model.ADLType) (*model.Template, error)
}

type Service

type Service struct {
	helper.Finder
	// contains filtered or unexported fields
}

func NewService

func NewService(docService *service.DefaultDocumentService) *Service

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, userID, systemID, templateID string) (*model.Template, error)

func (*Service) GetList

func (s *Service) GetList(ctx context.Context, userID, systemID string) ([]*model.Template, error)

func (*Service) IsExist

func (s *Service) IsExist(ctx context.Context, args ...string) (bool, error)

func (*Service) Parser

func (s *Service) Parser(version string) (ADLParser, error)

func (*Service) Store

func (s *Service) Store(ctx context.Context, userID, systemID, reqID string, tmpl *model.Template) error

Jump to

Keyboard shortcuts

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