36 lines
1.2 KiB
Go
36 lines
1.2 KiB
Go
![]() |
package model
|
|||
|
|
|||
|
// ActivityApply 活动申请数据模型
|
|||
|
type ActivityApply struct {
|
|||
|
Model
|
|||
|
Local
|
|||
|
MUid uint64 `gorm:"column:m_uid;type:int;default:0;comment:用户manage_uuid" json:"-"`
|
|||
|
Mode ActivityInstanceMode `gorm:"column:mode;type:tinyint(1);default:1;comment:活动模式" json:"mode"`
|
|||
|
ActivityInstanceBasic
|
|||
|
Content string `gorm:"column:title;type:text;default:null;comment:活动详情" json:"content"`
|
|||
|
MaxNumber int `gorm:"column:max_number;type:int(6);default:0;comment:报名限制人数,0不做限制" json:"max_number"`
|
|||
|
Status ActivityApplyStatus `gorm:"column:status;type:tinyint(1);default:0;comment:审核状态" json:"status"`
|
|||
|
ModelDeleted
|
|||
|
ModelAt
|
|||
|
}
|
|||
|
|
|||
|
// ActivityApplyStatus 审核状态
|
|||
|
type ActivityApplyStatus int
|
|||
|
|
|||
|
const (
|
|||
|
// ActivityApplyStatusForRevoke 撤销
|
|||
|
ActivityApplyStatusForRevoke ActivityApplyStatus = iota - 1
|
|||
|
// ActivityApplyStatusForExamining 审核中
|
|||
|
ActivityApplyStatusForExamining
|
|||
|
// ActivityApplyStatusForPass 审核通过
|
|||
|
ActivityApplyStatusForPass
|
|||
|
)
|
|||
|
|
|||
|
func (m *ActivityApply) TableName() string {
|
|||
|
return "activity_apply"
|
|||
|
}
|
|||
|
|
|||
|
func NewActivityApply() *ActivityApply {
|
|||
|
return &ActivityApply{}
|
|||
|
}
|