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.
15 lines
303 B
Go
15 lines
303 B
Go
|
9 months ago
|
package models
|
||
|
|
|
||
|
|
type Account struct {
|
||
|
|
Id int `form:"-"`
|
||
|
|
Username string `form:"username"`
|
||
|
|
Password string `form:"password"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// func init() {
|
||
|
|
// // 需要在init中注册定义的model
|
||
|
|
// orm.RegisterModel(new(Account))
|
||
|
|
// // create table
|
||
|
|
// orm.RunSyncdb("default", false, true)
|
||
|
|
// }
|