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 }