Add something for install.

This commit is contained in:
zicla
2018-12-04 21:34:33 +08:00
parent 5611c5acb6
commit ea1bd27aa8
12 changed files with 133 additions and 12 deletions

View File

@ -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"`