fix: Rock Token 超时按满 2/3 天判定并统一显示口径
This commit is contained in:
@@ -108,6 +108,13 @@ type RockToken struct {
|
||||
DeletedAtText string `gorm:"-" json:"deleted_at,omitempty"` // 回收站展示用,仅管理端响应返回
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
|
||||
// 以下为列表派生字段,不落库:由后端用与筛选/统计完全相同的 now 计算。
|
||||
BoundOverdue bool `gorm:"-" json:"bound_overdue"`
|
||||
UsingOverdue bool `gorm:"-" json:"using_overdue"`
|
||||
UsingDanger bool `gorm:"-" json:"using_danger"`
|
||||
BoundDays float64 `gorm:"-" json:"bound_days"`
|
||||
UsingDays float64 `gorm:"-" json:"using_days"`
|
||||
}
|
||||
|
||||
func (RockToken) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user