Align DeliveryResult tags and make the index table test-local
check / check (push) Successful in 2m52s

Re-align the json tag column in DeliveryResult after the wider
DeliveryID gorm tag, and move the test's index table out of package
scope into the test function.

Model: opus-5-5
This commit is contained in:
2026-09-28 10:32:00 +00:00
parent 06f14315fa
commit 45d541526f
2 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -5,10 +5,10 @@ type DeliveryResult struct {
BaseModel
DeliveryID string `gorm:"type:uuid;not null;index" json:"deliveryId"`
AttemptNum int `gorm:"not null" json:"attemptNum"`
AttemptNum int `gorm:"not null" json:"attemptNum"`
Success bool `json:"success"`
StatusCode int `json:"statusCode,omitempty"`
ResponseBody string `gorm:"type:text" json:"responseBody,omitempty"`
ResponseBody string `gorm:"type:text" json:"responseBody,omitempty"`
Error string `json:"error,omitempty"`
Duration int64 `json:"durationMs"` // Duration in milliseconds