Skip to content

Commit 493b50f

Browse files
committed
Add StatusDiffConfig
1 parent aab046c commit 493b50f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

status_config.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
package diff
22

3+
type StatusDiffConfig struct {
4+
Status *StatusConfig `mapstructure:"status" json:"status" gorm:"column:status" bson:"status" dynamodbav:"status" firestore:"status"`
5+
Config *DiffConfig `mapstructure:"config" json:"config" gorm:"column:config" bson:"config" dynamodbav:"config" firestore:"config"`
6+
}
7+
38
type StatusConfig struct {
4-
NotFound int `mapstructure:"not_found" json:"notFound" gorm:"column:notfound" bson:"notFound" dynamodbav:"notFound" firestore:"notFound"`
5-
Success int `mapstructure:"success" json:"success" gorm:"column:success" bson:"success" dynamodbav:"success" firestore:"success"`
6-
VersionError int `mapstructure:"version_error" json:"versionError" gorm:"column:versionerror" bson:"versionError" dynamodbav:"versionError" firestore:"versionError"`
7-
Error int `mapstructure:"error" json:"error" gorm:"column:error" bson:"error" dynamodbav:"error" firestore:"error"`
9+
NotFound int `mapstructure:"not_found" json:"notFound" gorm:"column:notfound" bson:"notFound" dynamodbav:"notFound" firestore:"notFound"`
10+
Success int `mapstructure:"success" json:"success" gorm:"column:success" bson:"success" dynamodbav:"success" firestore:"success"`
11+
VersionError int `mapstructure:"version_error" json:"versionError" gorm:"column:versionerror" bson:"versionError" dynamodbav:"versionError" firestore:"versionError"`
12+
Error int `mapstructure:"error" json:"error" gorm:"column:error" bson:"error" dynamodbav:"error" firestore:"error"`
813
}
914

1015
func InitializeStatus(status *StatusConfig) StatusConfig {

0 commit comments

Comments
 (0)