print

package
v0.0.0-...-10721fb Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserPrintMoudle

func AddUserPrintMoudle(userMould *JccUserMould) (int64, error)

插入用户打印模板

func ExistUserMoudle

func ExistUserMoudle(companyId int) (int, error)

是否存在模板

func QueryUserMoudleId

func QueryUserMoudleId(companyId int) (int, error)

func QueryUserMould

func QueryUserMould(companyId int, db orm.Ormer) (*[]CheckUserMould, error)

func SelectMouldList

func SelectMouldList(ormer orm.Ormer) (info *[]JccCommonMould, err error)

查询列表

func UpdateUserMoudle

func UpdateUserMoudle(userMould *JccUserMould, db orm.Ormer) (int64, error)

Types

type CheckUserMould

type CheckUserMould struct {
	MouldId        int    `orm:"column(mould_id)" description:"模板id" json:"mould_id"`
	FieldOrder     string `orm:"column(field_order)" description:"字段顺序" json:"field_order"`
	Mould_weight   int    `orm:"column(mould_weight)" description:"模板宽度" json:"mould_weight"`
	Mould_height   int    `orm:"column(mould_height)" description:"模板宽度" json:"mould_height"`
	PrintList      int    `orm:"column(print_list)" description:"打印调试" json:"print_list"`
	TopMargin      int    `orm:"column(top_margin)" description:"上边距" json:"top_margin"`
	LeftMargin     int    `orm:"column(left_margin)" description:"左边距" json:"left_margin"`
	IsDisplayPrice int    `orm:"column(is_display_price)" description:"是否显示零售价" json:"is_display_price"`
}

type JccCommonMould

type JccCommonMould struct {
	Id          int    `orm:"column(id)" description:"ID" json:"id"`
	FieldOrder  string `orm:"column(field_order)" description:"字段顺序" json:"field_order"`
	MouldWeight int    `orm:"column(mould_weight)" description:"模板宽度" json:"mould_weight"`
	MouldHeight int    `orm:"column(mould_height)" description:"模板高度" json:"mould_height"`
	PrintList   int    `orm:"column(print_list)" description:"打印条数" json:"print_list"`
	CreatedAt   int    `orm:"column(created_at)" description:"创建时间" json:"created_at"`
	UpdatedAt   int    `orm:"column(updated_at)" description:"修改时间" json:"updated_at"`
	IsDefault   int    `orm:"column(is_default)" description:"是否是默认模板" json:"is_default"`
	IsDel       int    `orm:"column(is_del)" description:"是否删除" json:"is_del"`
}

func SelectMould

func SelectMould(ormer orm.Ormer, Id int) (info *JccCommonMould, err error)

查询一条

type JccUserMould

type JccUserMould struct {
	Id             int   `orm:"column(id);auto" description:"ID"`
	MouldId        int   `orm:"column(mould_id)" description:"模板id" json:"mould_id"`
	TopMargin      int   `orm:"column(top_margin)" description:"上边距" json:"top_margin"`
	CreatedAt      int64 `orm:"column(created_at)" description:"创建时间" json:"created_at"`
	LeftMargin     int   `orm:"column(left_margin)" description:"左边距" json:"left_margin"`
	IsDisplayPrice int   `orm:"column(is_display_price)" description:"是否显示零售价" json:"is_display_price"`
	CompanyId      int   `orm:"column(company_id)" description:"公司id" json:"num" json:"company_id"`
	UpdatedAt      int64 `orm:"column(updated_at)" description:"修改时间" json:"updated_at"`
	IsDefault      int   `orm:"column(is_default)" description:"修改时间" json:"is_default"`
}

Jump to

Keyboard shortcuts

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