Upgrade half or gorm.

This commit is contained in:
lishuang
2022-03-15 01:19:44 +08:00
parent 329751350d
commit 69412300b6
16 changed files with 154 additions and 102 deletions

View File

@ -1,6 +1,7 @@
package rest
import (
"fmt"
"math"
"time"
)
@ -31,7 +32,8 @@ type Base struct {
}
func (this *Base) TableName() string {
panic("you should overwrite TableName()")
panic(fmt.Sprintf("you should overwrite TableName() in %v", this))
return ""
}
//pager