feat:完善网站活动报名信息

This commit is contained in:
henry
2021-12-16 15:07:53 +08:00
parent d594725972
commit 8d82caac20
6 changed files with 77 additions and 0 deletions

17
app/event/activity.go Normal file
View 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{}
}