initial commit
This commit is contained in:
16
internal/domain/package.go
Normal file
16
internal/domain/package.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package domain
|
||||
|
||||
import "context"
|
||||
|
||||
// PackageStatus represents the status of a package
|
||||
type PackageStatus struct {
|
||||
PackageID string `json:"packageid"`
|
||||
Status string `json:"status"`
|
||||
Location string `json:"location,omitempty"`
|
||||
}
|
||||
|
||||
// PackageClient defines the interface for package operations
|
||||
type PackageClient interface {
|
||||
Check(ctx context.Context, packageID string) (*PackageStatus, error)
|
||||
Redirect(ctx context.Context, packageID, destination, code string) (string, error)
|
||||
}
|
||||
Reference in New Issue
Block a user