feat: schedule rework
This commit is contained in:
@@ -19,14 +19,6 @@ func (s *Service) CreateSchedule(ctx context.Context, guildID, requesterID, invi
|
||||
return s.repo.CreateSchedule(ctx, guildID, requesterID, inviteeID, when, description)
|
||||
}
|
||||
|
||||
func (s *Service) AddMessage(ctx context.Context, scheduleID, messageID, channelID int64, isDM bool) error {
|
||||
return s.repo.AddMessage(ctx, scheduleID, messageID, channelID, isDM)
|
||||
}
|
||||
|
||||
func (s *Service) GetByMessageID(ctx context.Context, messageID int64) (*schedulerepo.Schedule, error) {
|
||||
return s.repo.GetByMessageID(ctx, messageID)
|
||||
}
|
||||
|
||||
func (s *Service) UpdateStatus(ctx context.Context, scheduleID int64, status schedulerepo.ScheduleStatus) error {
|
||||
return s.repo.UpdateStatus(ctx, scheduleID, status)
|
||||
}
|
||||
@@ -51,3 +43,14 @@ func (s *Service) Reschedule(ctx context.Context, id int64, when time.Time) erro
|
||||
return s.repo.Reschedule(ctx, id, when)
|
||||
}
|
||||
|
||||
func (s *Service) ProposeReschedule(ctx context.Context, scheduleID int64, newTime time.Time, proposedBy int64) error {
|
||||
return s.repo.ProposeReschedule(ctx, scheduleID, newTime, proposedBy)
|
||||
}
|
||||
|
||||
func (s *Service) AcceptReschedule(ctx context.Context, id int64) error {
|
||||
return s.repo.AcceptReschedule(ctx, id)
|
||||
}
|
||||
|
||||
func (s *Service) DeclineReschedule(ctx context.Context, id int64) error {
|
||||
return s.repo.DeclineReschedule(ctx, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user