mirror of
https://codeberg.org/jsilveira/br.dev.jsilveira.coresync.git
synced 2026-06-11 18:05:06 +00:00
Finish ports in
This commit is contained in:
parent
245153c385
commit
065347b55f
21 changed files with 76 additions and 25 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface DisableWorkoutDayRestUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
|
||||
interface DisableWorkoutDayRestUserCase {
|
||||
WorkoutDay execute(UUID id)
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface DisableWorkoutPlanUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutPlan
|
||||
|
||||
interface DisableWorkoutPlanUserCase {
|
||||
WorkoutPlan execute(UUID id)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
|
||||
interface EnableWorkoutDayRestUserCase {
|
||||
WorkoutDay execute(UUID id)
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in;
|
||||
|
||||
public interface EnableWorkoutDayRestUserCase {
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface EnableWorkoutPlanUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutPlan
|
||||
|
||||
interface EnableWorkoutPlanUserCase {
|
||||
WorkoutPlan execute(UUID id)
|
||||
}
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateUserWorkoutSessionCompletedAtUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.UserWorkoutSession
|
||||
|
||||
import java.time.LocalDateTime
|
||||
|
||||
interface UpdateUserWorkoutSessionCompletedAtUserCase {
|
||||
UserWorkoutSession execute(UUID id, LocalDateTime completedAt)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
|
||||
interface UpdateWorkoutDayDurationUserCase {
|
||||
WorkoutDay execute(UUID id, Integer estimatedDurationInSeconds)
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in;
|
||||
|
||||
public interface UpdateWorkoutDayDurationUserCase {
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutDayNameUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
|
||||
interface UpdateWorkoutDayNameUserCase {
|
||||
WorkoutDay execute(UUID id, String name)
|
||||
}
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutDayUpdatedAtUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
|
||||
import java.time.LocalDateTime
|
||||
|
||||
interface UpdateWorkoutDayUpdatedAtUserCase {
|
||||
WorkoutDay execute(UUID id, LocalDateTime updatedAt)
|
||||
}
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutDayWeekDayUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WeekDay
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
|
||||
interface UpdateWorkoutDayWeekDayUserCase {
|
||||
WorkoutDay execute(UUID id, WeekDay weekDay)
|
||||
}
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutDayWorkoutExercisesUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutDayWorkoutExercisesUserCase {
|
||||
WorkoutDay execute(UUID id, List<WorkoutExercise> workoutExercises )
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutExerciseNameUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutExerciseNameUserCase {
|
||||
WorkoutExercise execute(UUID id, String name)
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutExerciseOrderUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutExerciseOrderUserCase {
|
||||
WorkoutExercise execute(UUID id, Integer order)
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutExerciseRepsUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutExerciseRepsUserCase {
|
||||
WorkoutExercise execute(UUID id, Integer reps)
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutExerciseRestTimeUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutExerciseRestTimeUserCase {
|
||||
WorkoutExercise execute(UUID id, Integer restTime)
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutExerciseSetsUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutExerciseSetsUserCase {
|
||||
WorkoutExercise execute(UUID id, Integer sets)
|
||||
}
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutExerciseUpdatedAtUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
import java.time.LocalDateTime
|
||||
|
||||
interface UpdateWorkoutExerciseUpdatedAtUserCase {
|
||||
WorkoutExercise execute(UUID id, LocalDateTime updatedAt)
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutPlanNameUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutExercise
|
||||
|
||||
interface UpdateWorkoutPlanNameUserCase {
|
||||
WorkoutExercise execute(UUID id, String name)
|
||||
}
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutPlanUpdateAtUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutPlan
|
||||
|
||||
import java.time.LocalDateTime
|
||||
|
||||
interface UpdateWorkoutPlanUpdateAtUserCase {
|
||||
WorkoutPlan execute(UUID id, LocalDateTime updateAt)
|
||||
}
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
package br.dev.jsilveira.coresync.application.port.in
|
||||
|
||||
interface UpdateWorkoutPlanWorkoutDaysUserCase {
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutDay
|
||||
import br.dev.jsilveira.coresync.domain.model.WorkoutPlan
|
||||
|
||||
interface UpdateWorkoutPlanWorkoutDaysUserCase {
|
||||
WorkoutPlan execute(UUID id, List<WorkoutDay> workoutDays)
|
||||
}
|
||||
Loading…
Reference in a new issue