feat:优化项目信息

This commit is contained in:
henry
2022-02-10 11:36:47 +08:00
parent 1b5026edce
commit 412aaaf1af
6 changed files with 17 additions and 9 deletions

View File

@ -1,16 +1,23 @@
package event
import "SciencesServer/app/common/model"
import (
"SciencesServer/app/common/model"
"SciencesServer/serve/logger"
)
type ActivityJoin struct{}
// Handle 活动参与
func (*ActivityJoin) Handle(arg ...interface{}) {
_ = model.Create(&model.ActivityJoin{
err := model.Create(&model.ActivityJoin{
ActivityID: arg[0].(uint64),
UID: arg[1].(uint64),
Identity: arg[2].(int),
Status: model.ActivityJoinStatusForSuccess,
})
if err != nil {
logger.ErrorF("Event 用户【%v - %v】加入活动错误%v", err, arg[1], arg[2])
}
}
func NewActivityJoin() *ActivityJoin {