RestaurantWeeklyRecipeMarge

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditWeeklyRecipe

func AuditWeeklyRecipe(args *ArgsAuditWeeklyRecipe) (err error)

AuditWeeklyRecipe 审核每周菜谱上报

func CreateWeeklyRecipe

func CreateWeeklyRecipe(args *ArgsCreateWeeklyRecipe) (id int64, err error)

CreateWeeklyRecipe 创建WeeklyRecipe

func DeleteWeeklyRecipe

func DeleteWeeklyRecipe(args *ArgsDeleteWeeklyRecipe) (err error)

DeleteWeeklyRecipe 删除WeeklyRecipe

func GetWeeklyRecipeNameByID

func GetWeeklyRecipeNameByID(id int64) (name string)

GetWeeklyRecipeNameByID 获取菜品名称

func Init

func Init()

Init 初始化

func UpdateWeeklyRecipe

func UpdateWeeklyRecipe(args *ArgsUpdateWeeklyRecipe) (err error)

UpdateWeeklyRecipe 修改WeeklyRecipe

Types

type ArgsAuditWeeklyRecipe

type ArgsAuditWeeklyRecipe struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//当前组织ID
	// 用于验证数据是否属于当前组织
	RawOrgID int64 `db:"raw_org_id" json:"rawOrgID" check:"id" empty:"true"`
	//审核状态
	// 0 未审核; 1 审核通过; 2 审核不通过
	AuditStatus int `db:"audit_status" json:"auditStatus" check:"intThan0" empty:"true"`
	//审核人ID
	AuditOrgBindID int64 `db:"audit_org_bind_id" json:"auditOrgBindID" check:"id" empty:"true"`
	//审核用户ID
	// 与组织ID二选一,如果组织成员ID为空,则使用用户ID;如果组织ID不为空,则使用组织成员ID+用户ID
	AuditUserID int64 `db:"audit_user_id" json:"auditUserID" check:"id" empty:"true"`
	//审核人姓名
	AuditUserName string `db:"audit_user_name" json:"auditUserName" check:"des" min:"1" max:"300" empty:"true"`
}

ArgsAuditWeeklyRecipe 审核每周菜谱上报参数

type ArgsCreateWeeklyRecipe

type ArgsCreateWeeklyRecipe struct {
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//门店ID
	StoreID int64 `db:"store_id" json:"storeID" check:"id"`
	//提交组织成员ID
	SubmitOrgBindID int64 `db:"submit_org_bind_id" json:"submitOrgBindID" check:"id" empty:"true"`
	//提交用户ID
	// 与组织ID二选一,如果组织成员ID为空,则使用用户ID;如果组织ID不为空,则使用组织成员ID+用户ID
	SubmitUserID int64 `db:"submit_user_id" json:"submitUserID" check:"id" empty:"true"`
	//提交人姓名
	SubmitUserName string `db:"submit_user_name" json:"submitUserName" check:"des" min:"1" max:"300" empty:"true"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"`
	//备注
	Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"1000" empty:"true"`
	//数据包
	RawData FieldsWeeklyRecipeHeaders `db:"raw_data" json:"rawData"`
}

ArgsCreateWeeklyRecipe 创建WeeklyRecipe参数

type ArgsDeleteWeeklyRecipe

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

ArgsDeleteWeeklyRecipe 删除WeeklyRecipe参数

type ArgsGetWeeklyRecipeByID

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

ArgsGetWeeklyRecipeByID 获取WeeklyRecipe数据包参数

type ArgsGetWeeklyRecipeList

type ArgsGetWeeklyRecipeList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//分公司ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//分公司ID组
	OrgIDs []int64 `db:"org_ids" json:"orgIDs" check:"ids" empty:"true"`
	//门店ID
	StoreID int64 `db:"store_id" json:"storeID" check:"id" empty:"true"`
	//门店ID列
	StoreIDs []int64 `db:"store_ids" json:"storeIDs" check:"ids" empty:"true"`
	//提交组织成员ID
	SubmitOrgBindID int64 `db:"submit_org_bind_id" json:"submitOrgBindID" check:"id" empty:"true"`
	//提交用户ID
	// 与组织ID二选一,如果组织成员ID为空,则使用用户ID;如果组织ID不为空,则使用组织成员ID+用户ID
	SubmitUserID int64 `db:"submit_user_id" json:"submitUserID" check:"id" empty:"true"`
	//审核状态
	// 0 未审核; 1 审核通过; 2 审核不通过
	AuditStatus int `db:"audit_status" json:"auditStatus" check:"intThan0" empty:"true"`
	//审核人ID
	AuditOrgBindID int64 `db:"audit_org_bind_id" json:"auditOrgBindID" check:"id" empty:"true"`
	//审核用户ID
	// 与组织ID二选一,如果组织成员ID为空,则使用用户ID;如果组织ID不为空,则使用组织成员ID+用户ID
	AuditUserID int64 `db:"audit_user_id" json:"auditUserID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetWeeklyRecipeList 获取WeeklyRecipe列表参数

type ArgsUpdateWeeklyRecipe

type ArgsUpdateWeeklyRecipe 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"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"`
	//备注
	Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"1000" empty:"true"`
	//数据包
	RawData FieldsWeeklyRecipeHeaders `db:"raw_data" json:"rawData"`
}

ArgsUpdateWeeklyRecipe 修改WeeklyRecipe参数

type FieldsWeeklyRecipe

type FieldsWeeklyRecipe 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"`
	//门店ID
	StoreID int64 `db:"store_id" json:"storeID" check:"id"`
	//提交组织成员ID
	SubmitOrgBindID int64 `db:"submit_org_bind_id" json:"submitOrgBindID" check:"id" empty:"true"`
	//提交用户ID
	// 与组织ID二选一,如果组织成员ID为空,则使用用户ID;如果组织ID不为空,则使用组织成员ID+用户ID
	SubmitUserID int64 `db:"submit_user_id" json:"submitUserID" check:"id" empty:"true"`
	//提交人姓名
	SubmitUserName string `db:"submit_user_name" json:"submitUserName" check:"des" min:"1" max:"300" empty:"true"`
	//审核时间
	AuditAt time.Time `db:"audit_at" json:"auditAt"`
	//审核状态
	// 0 未审核; 1 审核通过; 2 审核不通过
	AuditStatus int `db:"audit_status" json:"auditStatus" check:"intThan0" empty:"true"`
	//审核人ID
	AuditOrgBindID int64 `db:"audit_org_bind_id" json:"auditOrgBindID" check:"id" empty:"true"`
	//审核用户ID
	// 与组织ID二选一,如果组织成员ID为空,则使用用户ID;如果组织ID不为空,则使用组织成员ID+用户ID
	AuditUserID int64 `db:"audit_user_id" json:"auditUserID" check:"id" empty:"true"`
	//审核人姓名
	AuditUserName string `db:"audit_user_name" json:"auditUserName" check:"des" min:"1" max:"300" empty:"true"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"`
	//备注
	Remark string `db:"remark" json:"remark" check:"des" min:"1" max:"1000" empty:"true"`
	//数据包
	RawData FieldsWeeklyRecipeHeaders `db:"raw_data" json:"rawData"`
}

FieldsWeeklyRecipe 每周提交菜谱表头

func GetWeeklyRecipeByID

func GetWeeklyRecipeByID(args *ArgsGetWeeklyRecipeByID) (data FieldsWeeklyRecipe, err error)

GetWeeklyRecipeByID 获取WeeklyRecipe数

func GetWeeklyRecipeList

func GetWeeklyRecipeList(args *ArgsGetWeeklyRecipeList) (dataList []FieldsWeeklyRecipe, dataCount int64, err error)

GetWeeklyRecipeList 获取WeeklyRecipe列表

type FieldsWeeklyRecipeHeader added in v5.1.8

type FieldsWeeklyRecipeHeader struct {
	// 用餐日期
	// 例如:2021-01-01
	DiningDate string `db:"dining_date" json:"diningDate"`
	//早餐
	Breakfast FieldsWeeklyRecipeItemList `json:"breakfast"`
	//中餐
	Lunch FieldsWeeklyRecipeItemList `json:"lunch"`
	//晚餐
	Dinner FieldsWeeklyRecipeItemList `json:"dinner"`
}

func (*FieldsWeeklyRecipeHeader) Scan added in v5.1.8

func (t *FieldsWeeklyRecipeHeader) Scan(value interface{}) error

func (FieldsWeeklyRecipeHeader) Value added in v5.1.8

Value sql底层处理器

type FieldsWeeklyRecipeHeaders added in v5.1.8

type FieldsWeeklyRecipeHeaders []FieldsWeeklyRecipeHeader

func (*FieldsWeeklyRecipeHeaders) Scan added in v5.1.8

func (t *FieldsWeeklyRecipeHeaders) Scan(value interface{}) error

func (FieldsWeeklyRecipeHeaders) Value added in v5.1.8

Value sql底层处理器

type FieldsWeeklyRecipeItem

type FieldsWeeklyRecipeItem struct {
	//菜品ID
	RecipeID int64 `db:"recipe_id" json:"recipeID" check:"id"`
	//菜品名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true"`
	//售价
	Price int64 `db:"price" json:"price" check:"int64Than0"`
	//数量
	Count int `db:"count" json:"count" check:"intThan0"`
	//单位
	Unit string `db:"unit" json:"unit" check:"des" min:"1" max:"300" empty:"true"`
}

func (*FieldsWeeklyRecipeItem) Scan added in v5.1.8

func (t *FieldsWeeklyRecipeItem) Scan(value interface{}) error

func (FieldsWeeklyRecipeItem) Value added in v5.1.8

Value sql底层处理器

type FieldsWeeklyRecipeItemList added in v5.1.8

type FieldsWeeklyRecipeItemList []FieldsWeeklyRecipeItem

func (*FieldsWeeklyRecipeItemList) Scan added in v5.1.8

func (t *FieldsWeeklyRecipeItemList) Scan(value interface{}) error

func (FieldsWeeklyRecipeItemList) Value added in v5.1.8

Value sql底层处理器

Jump to

Keyboard shortcuts

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