diff --git a/database/model/model.go b/database/model/model.go index 86ab0487..62cfac41 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -32,6 +32,7 @@ type Inbound struct { Up int64 `json:"up" form:"up"` Down int64 `json:"down" form:"down"` Total int64 `json:"total" form:"total"` + AllTime int64 `json:"allTime" form:"allTime" gorm:"default:0"` Remark string `json:"remark" form:"remark"` Enable bool `json:"enable" form:"enable"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` diff --git a/web/assets/js/model/dbinbound.js b/web/assets/js/model/dbinbound.js index 45301ddd..acb62ce4 100644 --- a/web/assets/js/model/dbinbound.js +++ b/web/assets/js/model/dbinbound.js @@ -6,6 +6,7 @@ class DBInbound { this.up = 0; this.down = 0; this.total = 0; + this.allTime = 0; this.remark = ""; this.enable = true; this.expiryTime = 0; diff --git a/web/html/component/aClientTable.html b/web/html/component/aClientTable.html index 359e6e74..53ec27a3 100644 --- a/web/html/component/aClientTable.html +++ b/web/html/component/aClientTable.html @@ -98,6 +98,10 @@ + +