-
Notifications
You must be signed in to change notification settings - Fork 0
/
value_item.go
40 lines (34 loc) · 859 Bytes
/
value_item.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Copyright 2014 @ z3q.net.
* name :
* author : jarryliu
* date : 2013-12-08 10:47
* description :
* history :
*/
package sale
// 商品值
type ValueItem struct {
Id int `db:"id" auto:"yes" pk:"yes"`
CategoryId int `db:"category_id"`
Name string `db:"name"`
// 货号
GoodsNo string `db:"goods_no"`
SmallTitle string `db:"small_title"`
Image string `db:"img"`
//成本价
Cost float32 `db:"cost"`
//定价
Price float32 `db:"price"`
//参考销售价
SalePrice float32 `db:"sale_price"`
ApplySubs string `db:"apply_subs"`
//简单备注,如:(限时促销)
Remark string `db:"remark"`
Description string `db:"description"`
// 是否上架,1为上架
OnShelves int `db:"on_shelves"`
State int `db:"state"`
CreateTime int64 `db:"create_time"`
UpdateTime int64 `db:"update_time"`
}