valueobject

package
v0.0.0-...-33ecd2b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : goods
  • author : jarryliu
  • date : -- :
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goods

type Goods struct {
	Item_Id    int    `db:"gs_goods.item_id"`
	CategoryId int    `db:"gs_item.category_id"`
	Name       string `db:"gs_item.name"`
	// 货号
	GoodsNo string `db:"gs_item.goods_no"`
	Image   string `db:"gs_item.img"`

	//定价
	Price float32 `db:"gs_item.price"`

	//销售价
	SalePrice float32 `db:"gs_item.sale_price"`

	// 促销价
	PromPrice float32 `db:"-"`

	GoodsId   int `db:"gs_goods.id"`
	SkuId     int `db:"gs_goods.sku_id"`
	IsPresent int `db:"gs_goods.is_present"`

	// 促销标志
	PromotionFlag int `db:"gs_goods.prom_flag"`

	// 库存
	StockNum int `db:"gs_goods.stock_num"`

	// 已售件数
	SaleNum int `db:"gs_goods.sale_num"`
}

完整的商品信息

type MemberLevel

type MemberLevel struct {
	Id int `db:"id" auto:"yes" pk:"yes"`

	PartnerId int `db:"partner_id"`

	// 等级值(1,2,4,8,16)
	Value int `db:"value" `

	Name       string `db:"name"`
	RequireExp int    `db:"require_exp"`
	Enabled    int    `db:"enabled"`
}

Jump to

Keyboard shortcuts

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