mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 20:00:54 +00:00
orm: add test for unexported struct field
This commit is contained in:
parent
55ad951bce
commit
2ed9b2bffd
@ -210,6 +210,8 @@ type User struct {
|
|||||||
Nums int
|
Nums int
|
||||||
Langs SliceStringField `orm:"size(100)"`
|
Langs SliceStringField `orm:"size(100)"`
|
||||||
Extra JsonField `orm:"type(text)"`
|
Extra JsonField `orm:"type(text)"`
|
||||||
|
unexport bool `orm:"-"`
|
||||||
|
unexport_ bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *User) TableIndex() [][]string {
|
func (u *User) TableIndex() [][]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user