You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.5 KiB
29 lines
1.5 KiB
9 months ago
|
package model
|
||
|
|
||
|
import "pure/global"
|
||
|
|
||
|
// 平台任务奖励
|
||
|
type SysMissionReward struct {
|
||
|
global.MG_MODEL
|
||
|
Title string `json:"title" gorm:"size:255"` //标题
|
||
|
Type int `json:"type" gorm:"tinyint(1) comment:奖励类型 1.视频上传 2.信息完善 3.商家任务"` //奖励类型 1.视频上传 2.信息完善 3.商家任务
|
||
|
RelationId string `gorm:"size:64" json:"relationId"` //关联项目id
|
||
|
Bonus float64 `json:"bonus" gorm:"type:decimal(10,2)"` //奖励金额
|
||
|
Status int `gorm:"type:int(1)" json:"status"` //状态 1待发放 2已发放 3已领取
|
||
|
AchieveNum int64 `gorm:"type:int(11)" json:"achieve_num"` //已完成任务次数
|
||
|
CreateBy string `gorm:"size:64" json:"create_by"` //创建人
|
||
|
UpdateBy string `gorm:"size:64" json:"update_by"` //更新人
|
||
|
AuditBy string `gorm:"size:64" json:"audit_by"` //审核人
|
||
|
}
|
||
|
|
||
|
type SysMissionBonus struct {
|
||
|
Total int64 `json:"total"` //奖励次数
|
||
|
Bonus float64 `json:"bonus"` //奖金
|
||
|
Type int `json:"type"` //奖励类型 1.视频上传 2.信息完善 3.商家任务
|
||
|
AchieveNum int64 `json:"achieve_num"` //已完成任务次数
|
||
|
}
|
||
|
|
||
|
func (SysMissionReward) TableName() string {
|
||
|
return "sys_mission_reward"
|
||
|
}
|