contentservice

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLike added in v0.0.5

type AppLike interface {
	DB() app.DBClient
}

type ContentService

type ContentService struct {
	DB func() app.DBClient
}

func New added in v0.0.5

func New(app AppLike) *ContentService

func (*ContentService) Create

func (cs *ContentService) Create(c app.Context, _ *any) (*schema.Entity, error)

func (*ContentService) Delete

func (cs *ContentService) Delete(c app.Context, _ *any) (any, error)

func (*ContentService) Detail

func (cs *ContentService) Detail(c app.Context, _ *any) (*schema.Entity, error)

func (*ContentService) List

func (cs *ContentService) List(c app.Context, _ *any) (*app.Pagination, error)

func (*ContentService) Update

func (cs *ContentService) Update(c app.Context, _ *any) (*schema.Entity, error)

Jump to

Keyboard shortcuts

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