history

package
v0.0.0-...-cc18f3c Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoute

func RegisterRoute(s server.Server, c IController)

Types

type History

type History struct {
	Id          string `json:"id" db:"id"`
	Name        string `json:"name" db:"name"`
	Category    string `json:"category" db:"category"`
	CreatedAt   string `json:"created_at" db:"created_at"`
	Description string `json:"description" db:"description"`
	Image       string `json:"image" db:"image"`
}

type IController

type IController interface {
	GetUserHistory(ctx echo.Context) error
}

func NewController

func NewController(l *logrus.Logger, s IService) IController

type IRepository

type IRepository interface {
	GetAllHistory(ctx context.Context, param getAllParams) ([]History, error)
}

func NewRepository

func NewRepository(db *sqlx.DB, l *logrus.Logger) IRepository

type IService

type IService interface {
	GetAll(ctx context.Context, p getAllParams) ([]History, error)
}

func NewService

func NewService(r IRepository, l *logrus.Logger) IService

Jump to

Keyboard shortcuts

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