重新初始化项目

This commit is contained in:
2023-04-27 15:56:12 +08:00
parent 10546eb629
commit d6e256ef9e
50 changed files with 1255 additions and 308 deletions

View File

@@ -1,14 +1,15 @@
package param
import "Lee-WineList/common/types"
type Wine struct {
types.BaseDbModel
Name string `gorm:"column:name;type:varchar(255);comment:酒名;NOT NULL" json:"name"`
ChineseName string `gorm:"column:chinese_name;type:varchar(255);comment:中文酒名;NOT NULL" json:"chinese_name"`
Ingredients string `json:"ingredients"`
Quote string `gorm:"column:quote;type:varchar(255);comment:引用;NOT NULL" json:"quote"`
CategoryId uint `gorm:"column:category_id;type:int(11) unsigned;comment:分类ID;NOT NULL" json:"category_id"`
Steps string `gorm:"column:steps;type:varchar(255);comment:步骤;NOT NULL" json:"steps"`
Context string `gorm:"column:context;type:varchar(255);comment:酒文;NOT NULL" json:"context"`
type GetWineList struct {
page
Category string `json:"category" form:"category"` // 分类
UserId int `json:"userId" form:"userId"` // 用户ID
}
type GetWineListByUser struct {
page
Category string `json:"category" form:"category"` // 分类
UserId int `json:"userId" form:"userId"` // 用户ID
}
type AddWine struct{}