You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
527 B
Go

package mydb
import (
"time"
)
type UserOracle struct {
Id int64
Name string
Salt string
Age int
Passwd string `xorm:"varchar(200)"`
Created time.Time `xorm:"created"`
Updated time.Time `xorm:"updated"`
}
func init() {
//engine, err := xorm.NewEngine(driverName, dataSourceName)
//if err==nil{
// err1 := engine.Sync2(new(UserOracle))
// if err1==nil {
// fmt.Println("创建UserOracle表成功")
// }else{
// fmt.Println("创建UserOracle表失败")
// }
//}
}
func SaveUserOracle(user *UserOracle) {
}