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.

22 lines
1.2 KiB

9 months ago
package model
import "pure-admin/global"
// 平台任务奖励
type SysMissionReward struct {
global.MG_MODEL
Title string `json:"title" gorm:"size:255"` //组件id
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"` //审核人
}
func (SysMissionReward) TableName() string {
return "sys_mission_reward"
}