status int8=>int64

This commit is contained in:
yanweidong 2025-03-12 17:01:46 +08:00
parent ce98b833ae
commit a4c6acf56d
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ type (
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index;" json:"deleted_at"`
Status int8 `gorm:"default:0;index;" json:"status"` // 状态默认为0-1禁止1为正常
Status int64 `gorm:"default:0;index;" json:"status"` // 状态默认为0-1禁止1为正常
}
// standard ID,Identity,Created,Updated,Deleted,Status definition.
@ -66,6 +66,6 @@ type (
// standard Status definition.
Std_Status struct {
Status int8 `gorm:"default:0;index;" json:"status"` // 状态默认为0-1禁止1为正常
Status int64 `gorm:"default:0;index;" json:"status"` // 状态默认为0-1禁止1为正常
}
)