service

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDemo

func RegisterDemo(i IDemo)

func RegisterMiddleware

func RegisterMiddleware(i IMiddleware)

Types

type IDemo

type IDemo interface {
	Create(ctx context.Context, in model.DemoCreateInput) (*model.DemoCreateOutput, error)
	Update(ctx context.Context, in model.DemoUpdateInput) error
	Get(ctx context.Context, fileda string) (*entity.Demo, error)
	List(ctx context.Context, in model.DemoListInput) (*model.DemoListOutput, error)
	Delete(ctx context.Context, id uint) error
	IDNotFound(ctx context.Context, id uint) (bool, error)
	FieldaNotFound(ctx context.Context, fielda string) (bool, error)
}

func Demo

func Demo() IDemo

type IMiddleware

type IMiddleware interface {
	AccessUser(r *ghttp.Request)
	ResponseHandler(r *ghttp.Request)
	TraceID(r *ghttp.Request)
}

func Middleware

func Middleware() IMiddleware

Jump to

Keyboard shortcuts

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