Add something for install.
This commit is contained in:
@ -1,13 +1,18 @@
|
||||
package rest
|
||||
|
||||
import (
|
||||
"time"
|
||||
"reflect"
|
||||
"math"
|
||||
"reflect"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Time time.Time
|
||||
|
||||
type IBase interface {
|
||||
//返回其对应的数据库表名
|
||||
TableName() string
|
||||
}
|
||||
|
||||
type Base struct {
|
||||
Uuid string `gorm:"primary_key" json:"uuid"`
|
||||
Sort int64 `json:"sort"`
|
||||
@ -27,6 +32,10 @@ func (this *Base) Map() map[string]interface{} {
|
||||
return data
|
||||
}
|
||||
|
||||
func (Base) TableName() string {
|
||||
return TABLE_PREFIX + "base"
|
||||
}
|
||||
|
||||
//分页类
|
||||
type Pager struct {
|
||||
Page int `json:"page"`
|
||||
|
Reference in New Issue
Block a user