You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
499 B
17 lines
499 B
package modeluis
|
|
|
|
import "time"
|
|
|
|
type TreePermssion struct {
|
|
Id int64 `xorm:"pk autoincr BIGINT(20)"`
|
|
Xid string `xorm:"not null pk VARCHAR(64)"`
|
|
Parent string `xorm:"VARCHAR(64)"`
|
|
Title string `xorm:"VARCHAR(100)"`
|
|
Value string `xorm:"VARCHAR(100)"`
|
|
Times time.Time `xorm:"default CURRENT_TIMESTAMP TIMESTAMP"`
|
|
Childs []*TreePermssion `xorm:"extends"`
|
|
}
|
|
|
|
func (TreePermssion) TableName() string {
|
|
return "sys_permssion"
|
|
}
|