user

package
v0.0.0-...-5d3e565 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUserBFPReq

type GetUserBFPReq struct {
	UserID int   `json:"user_id" query:"user_id" validate:"required"`
	From   int64 `json:"from" query:"from" validate:"required"`
	To     int64 `json:"to" query:"to" validate:"required"`
}

type GetUserBFPResp

type GetUserBFPResp struct {
	DataPoints []*ent.BFPDataPoint
}

type GetUserMealReq

type GetUserMealReq struct {
	UserID int   `json:"user_id" query:"user_id" validate:"required"`
	From   int64 `json:"from" query:"from" validate:"required"`
	To     int64 `json:"to" query:"to" validate:"required"`
}

type GetUserMealResp

type GetUserMealResp struct {
	Meals []*ent.Meal `json:"meals"`
}

type GetUserReq

type GetUserReq struct {
	UserName string `json:"user_name" query:"user_name" validate:"required"`
}

type GetUserResponse

type GetUserResponse struct {
	User         *ent.User          `json:"user"`
	Achievements []*ent.Achievement `json:"achievements"`
}

type Handler

type Handler interface {
	GetUser(c echo.Context) error
	GetUserBFPByInterval(c echo.Context) error
	GetUserMeal(c echo.Context) error
}

func NewUserHandler

func NewUserHandler(store store.Client) Handler

Jump to

Keyboard shortcuts

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