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.
28 lines
663 B
28 lines
663 B
package modeluis
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type SysRole struct {
|
|
Id int64 `xorm:"pk autoincr BIGINT(20)"`
|
|
Xid string `xorm:"not null pk VARCHAR(64)"`
|
|
Title string `xorm:"VARCHAR(100)"`
|
|
Perms string `xorm:"TEXT"`
|
|
Times time.Time `xorm:"TIMESTAMP"`
|
|
Timeds string
|
|
Permls string
|
|
}
|
|
type SysURole struct {
|
|
Id int64 `xorm:"pk autoincr BIGINT(20)"`
|
|
Xid string `xorm:"not null pk VARCHAR(64)"`
|
|
Title string `xorm:"VARCHAR(100)"`
|
|
Perms string `xorm:"TEXT" json:"-"`
|
|
Times time.Time `xorm:"TIMESTAMP"`
|
|
Had bool `xorm:"-"`
|
|
Permls string `xorm:"-"`
|
|
}
|
|
|
|
func (SysURole) TableName() string {
|
|
return "sys_role"
|
|
}
|