27 lines
695 B
Go
27 lines
695 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
elmmodels "git.rosy.net.cn/jx-callback/legacy/elm/models"
|
|
jdmodels "git.rosy.net.cn/jx-callback/legacy/jd/models"
|
|
"github.com/astaxie/beego/orm"
|
|
)
|
|
|
|
type BlackClient struct {
|
|
ID int `orm:"column(id)"`
|
|
Mobile string `orm:"size(16);unique"`
|
|
Name string `orm:"size(8)"`
|
|
Note string `orm:"size(256)"`
|
|
CreatedAt time.Time `orm:"auto_now_add;type(datetime);null"`
|
|
UpdatedAt time.Time `orm:"auto_now;type(datetime);null"`
|
|
}
|
|
|
|
func RegisterModels() {
|
|
// register model
|
|
orm.RegisterModel(new(jdmodels.Jdorder))
|
|
orm.RegisterModel(new(elmmodels.ELMOrder))
|
|
orm.RegisterModel(new(Config))
|
|
orm.RegisterModel(new(BlackClient))
|
|
}
|