Skip to content

Commit

Permalink
models: add ShardName for something internal
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Dec 16, 2024
1 parent c3d677a commit e5a0ccc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions internal/incoming/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import (
)

type ACHFile struct {
FileID string `json:"id"`
ShardKey string `json:"shardKey"`
File *ach.File `json:"file"`
FileID string `json:"id"`
ShardKey string `json:"shardKey"`
ShardName string `json:"shardName"`
File *ach.File `json:"file"`
}

func (f ACHFile) Validate() error {
Expand All @@ -43,12 +44,14 @@ func (f ACHFile) Validate() error {
}

type CancelACHFile struct {
FileID string `json:"id"`
ShardKey string `json:"shardKey"`
FileID string `json:"id"`
ShardKey string `json:"shardKey"`
ShardName string `json:"shardName"`
}

type FileCancellationResponse struct {
FileID string `json:"id"`
ShardKey string `json:"shardKey"`
ShardName string `json:"shardName"`
Successful bool `json:"successful"`
}
1 change: 1 addition & 0 deletions pkg/models/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ type FileCancellationResponse incoming.FileCancellationResponse
type FileUploaded struct {
FileID string `json:"fileID"`
ShardKey string `json:"shardKey"`
ShardName string `json:"shardName"`
Filename string `json:"filename"`
UploadedAt time.Time `json:"uploadedAt"`
}

0 comments on commit e5a0ccc

Please sign in to comment.