food

package
v0.0.0-...-66c88e8 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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)

Types

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"`
}

Jump to

Keyboard shortcuts

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