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) }
type IMiddleware ¶
type IMiddleware interface { AccessUser(r *ghttp.Request) ResponseHandler(r *ghttp.Request) TraceID(r *ghttp.Request) }
func Middleware ¶
func Middleware() IMiddleware
Click to show internal directories.
Click to hide internal directories.