Back to godoc.org

Package food

v0.0.0-...-66c88e8
Latest Go to latest

The highest tagged major version is .

Published: Jun 15, 2019 | License: MIT | Module: github.com/TateYdq/DietRegimen

Index

func CancelCollected

func CancelCollected(c *gin.Context)

func CommentFood

func CommentFood(c *gin.Context)

func GetComment

func GetComment(c *gin.Context)

func GetFoodCategory

func GetFoodCategory(c *gin.Context)

func GetFoodDetails

func GetFoodDetails(c *gin.Context)

func IsCollected

func IsCollected(c *gin.Context)

func KeySearch

func KeySearch(keyword string) (foodList []database.FoodInfo, err error)

func KindIDAndKeySearch

func KindIDAndKeySearch(keyword string, kindID int) (foodList []database.FoodInfo, err error)

func KindIDSearch

func KindIDSearch(kindiD int) (foodList []database.FoodInfo, err error)

func SearchFood

func SearchFood(c *gin.Context)

type CommentFoodRequest

type CommentFoodRequest struct {
	FoodID  int    `json:"food_id"`
	Content string `json:"content"`
}

type FoodComment

type FoodComment struct {
	ID         int    `json:"id"`
	FoodID     int    `json:"food_id"`
	UserID     int    `json:"user_id"`
	UserName   string `json:"user_name"`
	Comment    string `json:"comment"`
	RecordTime string `json:"record_time"`
}

type FoodCommentResponse

type FoodCommentResponse struct {
	ID            int    `json:"id"`
	FoodID        int    `json:"food_id"`
	UserID        int    `json:"user_id"`
	UserName      string `json:"user_name"`
	Comment       string `json:"comment"`
	RecordTime    string `json:"record_time"`
	UserImagePath string `json:"user_image_path"`
}

type FoodKind

type FoodKind struct {
	KindID    int    `json:"kind_id"`
	KindName  string `json:"kind_name"`
	KindInfo  string `json:"kind_info"`
	PhotoPath string `json:"photo_path"`
	ViewCount int    `json:"view_count"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier