This commit is contained in:
meilin.huang
2020-09-01 10:34:11 +08:00
parent 104482ceff
commit 6f0d87c562
103 changed files with 19717 additions and 0 deletions

19
models/role.go Normal file
View File

@@ -0,0 +1,19 @@
package models
import (
"github.com/astaxie/beego/orm"
"mayfly-go/base"
)
type Role struct {
base.Model
Name string `orm:"column(name)" json:"username"`
//AccountId int64 `orm:"column(account_id)`
Account *Account `orm:"rel(fk);index"`
}
func init() {
orm.RegisterModelWithPrefix("t_", new(Role))
}