style: reformatted all files
This commit is contained in:
@@ -8,4 +8,4 @@ var (
|
||||
ErrDuplicateResult = errors.New("duplicate result")
|
||||
ErrCompetitionNotFound = errors.New("competition not found")
|
||||
ErrUserNotFound = errors.New("user not found")
|
||||
)
|
||||
)
|
||||
|
||||
@@ -29,7 +29,18 @@ type Result struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func NewResult(id uuid.UUID, competitionID uuid.UUID, userID uuid.UUID, score float64, rank *int, status ResultStatus, submissionID *uuid.UUID, metadata map[string]interface{}, createdAt time.Time, updatedAt time.Time) *Result {
|
||||
func NewResult(
|
||||
id uuid.UUID,
|
||||
competitionID uuid.UUID,
|
||||
userID uuid.UUID,
|
||||
score float64,
|
||||
rank *int,
|
||||
status ResultStatus,
|
||||
submissionID *uuid.UUID,
|
||||
metadata map[string]interface{},
|
||||
createdAt time.Time,
|
||||
updatedAt time.Time,
|
||||
) *Result {
|
||||
return &Result{
|
||||
ID: id,
|
||||
CompetitionID: competitionID,
|
||||
@@ -42,4 +53,4 @@ func NewResult(id uuid.UUID, competitionID uuid.UUID, userID uuid.UUID, score fl
|
||||
CreatedAt: createdAt,
|
||||
UpdatedAt: updatedAt,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user