Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewActivityService ¶
func NewActivityService(repo repository.Repository) *activityServiceImpl
Types ¶
type ActivityResponse ¶
type ActivityResponse struct {
ID uint
Type model.ActivityType
Time time.Time
RoomCreated *RoomCreatedDetail
PaymentCreated *PaymentCreatedDetail
PaymentAmountChanged *PaymentChangedDetail
PaymentPaidChanged *PaymentChangedDetail
RollCallCreated *RollCallCreatedDetail
QuestionCreated *QuestionCreatedDetail
}
type ActivityService ¶
type ActivityService interface {
GetActivities(
ctx context.Context,
campID uint,
userID string,
) ([]ActivityResponse, error)
RecordRoomCreated(
ctx context.Context,
repo repository.Repository,
room model.Room,
) error
RecordPaymentCreated(
ctx context.Context,
repo repository.Repository,
payment model.Payment,
) error
RecordPaymentAmountChanged(
ctx context.Context,
repo repository.Repository,
payment model.Payment,
) error
RecordPaymentPaidChanged(
ctx context.Context,
repo repository.Repository,
payment model.Payment,
) error
RecordRollCallCreated(
ctx context.Context,
repo repository.Repository,
rollCall model.RollCall,
) error
RecordQuestionCreated(
ctx context.Context,
repo repository.Repository,
questionGroup model.QuestionGroup,
) error
}
type PaymentChangedDetail ¶
type PaymentChangedDetail struct {
Amount int
}
type PaymentCreatedDetail ¶
type PaymentCreatedDetail struct {
Amount int
}
type QuestionCreatedDetail ¶
type RollCallCreatedDetail ¶
type RoomCreatedDetail ¶
type RoomCreatedDetail struct{}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mockactivity is a generated GoMock package.
|
Package mockactivity is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.