RestaurantRawMaterials

package
v5.1.29 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRaw

func CreateRaw(args *ArgsCreateRaw) (id int64, err error)

CreateRaw 创建Raw

func DeleteRaw

func DeleteRaw(args *ArgsDeleteRaw) (err error)

DeleteRaw 删除Raw

func GetRawNameByID

func GetRawNameByID(id int64) (name string)

GetRawNameByID 获取菜品名称

func Init

func Init()

Init 初始化

func UpdateRaw

func UpdateRaw(args *ArgsUpdateRaw) (err error)

UpdateRaw 修改Raw

Types

type ArgsCreateRaw

type ArgsCreateRaw struct {
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
}

ArgsCreateRaw 创建Raw参数

type ArgsDeleteRaw

type ArgsDeleteRaw struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeleteRaw 删除Raw参数

type ArgsGetRawByID

type ArgsGetRawByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsGetRawByID 获取Raw数据包参数

type ArgsGetRawList

type ArgsGetRawList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetRawList 获取Raw列表参数

type ArgsUpdateRaw

type ArgsUpdateRaw struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
}

ArgsUpdateRaw 修改Raw参数

type FieldsRaw

type FieldsRaw 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"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
}

FieldsRaw 原材料

func GetRawByID

func GetRawByID(args *ArgsGetRawByID) (data FieldsRaw, err error)

GetRawByID 获取Raw数

func GetRawList

func GetRawList(args *ArgsGetRawList) (dataList []FieldsRaw, dataCount int64, err error)

GetRawList 获取Raw列表

Jump to

Keyboard shortcuts

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