ERPProductMall

package
v5.1.40 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Sort 分类
	Sort = ClassSort.Sort{
		SortTableName: "erp_product_mall_sort",
	}

	//OpenSub 订阅
	OpenSub = false
)

Functions

func CreateProductMall added in v5.1.28

func CreateProductMall(args *ArgsCreateProductMall) (id int64, err error)

CreateProductMall 创建模板

func DeleteProductMall added in v5.1.28

func DeleteProductMall(args *ArgsDeleteProductMall) (err error)

DeleteProductMall 删除模板

func Init added in v5.1.28

func Init()

func UpdateProductMall added in v5.1.28

func UpdateProductMall(args *ArgsUpdateProductMall) (err error)

UpdateProductMall 更新模板

Types

type ArgsCreateProductMall added in v5.1.28

type ArgsCreateProductMall struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//产品ID
	ProductID int64 `db:"product_id" json:"productID" check:"id"`
	//产品名称
	ProductName string `db:"product_name" json:"productName" check:"des" min:"1" max:"300"`
	//挂出价格
	Price int64 `db:"price" json:"price" check:"int64Than0"`
	//所属分类ID
	CategoryID int64 `db:"category_id" json:"categoryID" check:"id"`
}

ArgsCreateProductMall 创建模板参数

type ArgsDeleteProductMall added in v5.1.28

type ArgsDeleteProductMall struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeleteProductMall 删除模板参数

type ArgsGetProductMallList added in v5.1.28

type ArgsGetProductMallList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//产品ID
	ProductID int64 `db:"product_id" json:"productID" check:"id" empty:"true"`
	//所属分类ID
	CategoryID int64 `db:"category_id" json:"categoryID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetProductMallList 获取模板列表

type ArgsUpdateProductMall added in v5.1.28

type ArgsUpdateProductMall struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//产品ID
	ProductID int64 `db:"product_id" json:"productID" check:"id"`
	//产品名称
	ProductName string `db:"product_name" json:"productName" check:"des" min:"1" max:"300"`
	//挂出价格
	Price int64 `db:"price" json:"price" check:"int64Than0"`
	//所属分类ID
	CategoryID int64 `db:"category_id" json:"categoryID" check:"id"`
}

ArgsUpdateProductMall 更新模板参数

type FieldsProductMall

type FieldsProductMall struct {
	//ID
	ID int64 `db:"id" json:"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
	ProductID int64 `db:"product_id" json:"productID" check:"id"`
	//产品名称
	ProductName string `db:"product_name" json:"productName" check:"des" min:"1" max:"300"`
	//挂出价格
	Price int64 `db:"price" json:"price" check:"price"`
	//所属分类ID
	CategoryID int64 `db:"category_id" json:"categoryID" check:"id"`
}

FieldsProductMall 产品商城上架

func GetProductMall added in v5.1.28

func GetProductMall(id int64, orgID int64) (data FieldsProductMall)

GetProductMall 获取模板

func GetProductMallByProductID added in v5.1.28

func GetProductMallByProductID(productID int64) (data FieldsProductMall)

GetProductMallByProductID 通过ERP产品ID查询产品商品

func GetProductMallList added in v5.1.28

func GetProductMallList(args *ArgsGetProductMallList) (dataList []FieldsProductMall, dataCount int64, err error)

GetProductMallList 获取品牌列表

Jump to

Keyboard shortcuts

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