logic

package
v0.0.0-...-29acfd5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, svcCtx *svc.ServiceContext, l logx.Logger, pageModel *model.Page) (*page.Page, error)

Types

type DeleteLogic

type DeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(in *page.DeleteReq) (*page.EmptyResp, error)

type GetLogic

type GetLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetLogic

func NewGetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetLogic

func (*GetLogic) Get

func (l *GetLogic) Get(in *page.GetReq) (*page.Page, error)

type InsertLogic

type InsertLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewInsertLogic

func NewInsertLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InsertLogic

func (*InsertLogic) Insert

func (l *InsertLogic) Insert(in *page.InsertReq) (*page.Page, error)

type ListLogic

type ListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListLogic

func NewListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListLogic

func (*ListLogic) List

func (l *ListLogic) List(in *page.ListReq) (*page.ListResp, error)

type PatchLogic

type PatchLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPatchLogic

func NewPatchLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PatchLogic

func (*PatchLogic) Patch

func (l *PatchLogic) Patch(in *page.PatchReq) (*page.Page, error)

type UpdateLogic

type UpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateLogic

func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic

func (*UpdateLogic) Update

func (l *UpdateLogic) Update(in *page.UpdateReq) (*page.Page, error)

Jump to

Keyboard shortcuts

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