feat:完善网站活动报名信息
This commit is contained in:
17
app/event/activity.go
Normal file
17
app/event/activity.go
Normal file
@ -0,0 +1,17 @@
|
||||
package event
|
||||
|
||||
import "SciencesServer/app/common/model"
|
||||
|
||||
type ActivityJoin struct{}
|
||||
|
||||
func (*ActivityJoin) Handle(arg ...interface{}) {
|
||||
_ = model.Create(&model.ActivityJoin{
|
||||
IdentityUID: arg[0].(uint64),
|
||||
ActivityID: arg[1].(uint64),
|
||||
Status: model.ActivityJoinStatusForSuccess,
|
||||
})
|
||||
}
|
||||
|
||||
func NewActivityJoin() *ActivityJoin {
|
||||
return &ActivityJoin{}
|
||||
}
|
Reference in New Issue
Block a user