nobleLog.go 545 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
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
package noble_m

import (
	"git.hilo.cn/hilo-common/resource/mysql"
	"gorm.io/gorm"
	"time"
)

const (
	SRC_APP        = 1 // APP
	SRC_OPERATION  = 2 // 管理后台发放
	SRC_H5         = 3 // H5页面
	SRC_ACTIVITY   = 4 // 活动奖励
	RECHARGE_FIRST = 5 //首次充值
)

type UserNobleLog struct {
	mysql.Entity
	SenderId   uint64
	ReceiverId uint64
	Level      uint16
	Money      uint32
	SrcType    uint16
	OldEndTime time.Time
	NewEndTime time.Time
}

func (ubl *UserNobleLog) Create(db *gorm.DB) error {
	return db.Create(ubl).Error
}