|
@@ -0,0 +1,34 @@
|
|
|
+package entity
|
|
|
+
|
|
|
+import "time"
|
|
|
+
|
|
|
+//积分余额
|
|
|
+type Balance struct {
|
|
|
+ Id int64 `xorm:"pk autoincr id" form:"id" json:"id"`
|
|
|
+ UserId string `xorm:"userId" form:"userId" json:"userId"` //用户标识
|
|
|
+ CountPoints int `xorm:"countPoints" form:"countPoints" json:"countPoints"` //合计
|
|
|
+ AppId int `xorm:"appId" form:"appId" json:"appId"` //剑鱼标识
|
|
|
+}
|
|
|
+
|
|
|
+//积分流水
|
|
|
+type Flow struct {
|
|
|
+ Id int64 `xorm:"pk autoincr id" form:"id" json:"id"`
|
|
|
+ UserId string `xorm:"userId" form:"userId" json:"userId"` //用户标识
|
|
|
+ PointType int `xorm:"pointType" form:"pointType" json:"pointType"` //积分类型
|
|
|
+ BusinessTypeId int `xorm:"businessTypeId" form:"businessTypeId" json:"businessTypeId"` //业务单据标识
|
|
|
+ BusinessType string `xorm:"businessType" form:"businessType" json:"businessType"` //业务类型
|
|
|
+ Point int `xorm:"point" form:"point" json:"point"` //积分
|
|
|
+ TimeStamp time.Time `xorm:"timeStamp" time_format:"2006-01-02 15:04:05" json:"timeStamp"` //创建时间
|
|
|
+ EndDate time.Time `xorm:"endDate" time_format:"2006-01-02 15:04:05" json:"endDate"` //截止时间
|
|
|
+ AppId int `xorm:"appId" form:"appId" json:"appId"` //剑鱼标识
|
|
|
+}
|
|
|
+
|
|
|
+//积分结存
|
|
|
+type Solde struct {
|
|
|
+ Id int64 `xorm:"pk autoincr id" form:"id" json:"id"`
|
|
|
+ PerManEntPoints int `xorm:"perManEntPoints" form:"perManEntPoints" json:"perManEntPoints"` //永久积分
|
|
|
+ TimePoints int `xorm:"timePoints" form:"timePoints" json:"timePoints"` //时效积分
|
|
|
+ EndDate time.Time `xorm:"endDate" time_format:"2006-01-02 15:04:05" json:"endDate"` //有效期止
|
|
|
+ CountPoints int `xorm:"countPoints" form:"countPoints" json:"countPoints"` //合计
|
|
|
+ AppId int `xorm:"appId" form:"appId" json:"appId"` //剑鱼标识
|
|
|
+}
|