package user import "eta/eta_mini_ht_api/models/user" func UserLoginFlow(userId int) (err error) { return user.InsertEventFlow(user.UserEventFlow{ UserID: userId, EventType: user.Login, }) } func UserLogoutFlow(userId int) (err error) { return user.InsertEventFlow(user.UserEventFlow{ UserID: userId, EventType: user.Logout, }) }