update .gitignore
This commit is contained in:
27
app/common/model/activity_join.go
Normal file
27
app/common/model/activity_join.go
Normal file
@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
type ActivityJoin struct {
|
||||
Model
|
||||
MUid uint64 `gorm:"column:m_uid;type:int;default:0;comment:用户manage_uuid" json:"-"`
|
||||
ActivityID uint64 `gorm:"column:activity_id;type:int(11);default:0;comment:活动ID" json:"activity_id"`
|
||||
Status ActivityJoinStatus `gorm:"column:status;type:tinyint(1);default:1;comment:报名状态(-1:取消,1:报名成功)" json:"status"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
type ActivityJoinStatus int
|
||||
|
||||
const (
|
||||
// ActivityJoinStatusForCancel 报名取消
|
||||
ActivityJoinStatusForCancel ActivityJoinStatus = iota - 1
|
||||
// ActivityJoinStatusForSuccess 报名成功
|
||||
ActivityJoinStatusForSuccess ActivityJoinStatus = iota
|
||||
)
|
||||
|
||||
func (m *ActivityJoin) TableName() string {
|
||||
return "activity_join"
|
||||
}
|
||||
|
||||
func NewActivityJoin() *ActivityJoin {
|
||||
return &ActivityJoin{}
|
||||
}
|
Reference in New Issue
Block a user