Documentation ¶
Index ¶
- func CreateRecipe(args *ArgsCreateRecipe) (id int64, err error)
- func DeleteRecipe(args *ArgsDeleteRecipe) (err error)
- func GetRecipeNameByID(id int64) (name string)
- func Init()
- func UpdateRecipe(args *ArgsUpdateRecipe) (err error)
- type ArgsCreateRecipe
- type ArgsDeleteRecipe
- type ArgsGetRecipeByID
- type ArgsGetRecipeList
- type ArgsUpdateRecipe
- type FieldsRecipe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRecipe ¶
func CreateRecipe(args *ArgsCreateRecipe) (id int64, err error)
CreateRecipe 创建Recipe
Types ¶
type ArgsCreateRecipe ¶
type ArgsCreateRecipe struct { //菜品名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //门店ID StoreID int64 `db:"store_id" json:"storeID" check:"id"` // 建议售价 Price int64 `db:"price" json:"price" check:"int64Than0"` }
ArgsCreateRecipe 创建Recipe参数
type ArgsDeleteRecipe ¶
type ArgsDeleteRecipe struct { //ID ID int64 `db:"id" json:"id" check:"id"` }
ArgsDeleteRecipe 删除Recipe参数
type ArgsGetRecipeByID ¶
type ArgsGetRecipeByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //门店ID StoreID int64 `db:"store_id" json:"storeID" check:"id" empty:"true"` }
ArgsGetRecipeByID 获取Recipe数据包参数
type ArgsGetRecipeList ¶
type ArgsGetRecipeList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //门店ID StoreID int64 `db:"store_id" json:"storeID" check:"id" empty:"true"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetRecipeList 获取Recipe列表参数
type ArgsUpdateRecipe ¶
type ArgsUpdateRecipe struct { //ID ID int64 `db:"id" json:"id" check:"id"` //菜品名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //门店ID StoreID int64 `db:"store_id" json:"storeID" check:"id"` // 建议售价 Price int64 `db:"price" json:"price" check:"int64Than0"` }
ArgsUpdateRecipe 修改Recipe参数
type FieldsRecipe ¶
type FieldsRecipe struct { // ID ID int64 `db:"id" json:"id" check:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //更新时间 UpdateAt time.Time `db:"update_at" json:"updateAt"` //删除时间 DeleteAt time.Time `db:"delete_at" json:"deleteAt"` //菜品名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //门店ID StoreID int64 `db:"store_id" json:"storeID" check:"id"` // 建议售价 Price int64 `db:"price" json:"price" check:"int64Than0"` }
FieldsRecipe 菜品模块表结构
func GetRecipeByID ¶
func GetRecipeByID(args *ArgsGetRecipeByID) (data FieldsRecipe, err error)
GetRecipeByID 获取Recipe数
func GetRecipeList ¶
func GetRecipeList(args *ArgsGetRecipeList) (dataList []FieldsRecipe, dataCount int64, err error)
GetRecipeList 获取Recipe列表
Click to show internal directories.
Click to hide internal directories.