The database requirements have been added, as well as the service/repo architecture. A few small functions have been created, but the system is not complete by any means. More work is required to mark this task complete.
8 lines
328 B
Go
8 lines
328 B
Go
package domain
|
|
|
|
type EngagementRepository interface {
|
|
AddUserEngagement(userId int, message string, engagementType EngagementType) (Engagement, error)
|
|
AddUserEntityEngagement(userId, entityId int, message string, engagementType EngagementType) (Engagement, error)
|
|
GetUserEngagement(userId, limit int) ([]Engagement, error)
|
|
}
|