调整xorm层级
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package dataobject
|
||||
|
||||
type SysUserRole struct {
|
||||
UserId int64 `xorm:"pk" json:"userId"` // 用户id
|
||||
RoleId int64 `xorm:"pk" json:"roleId"` // 角色id
|
||||
}
|
||||
|
||||
func (SysUserRole) TableName() string {
|
||||
return "sys_user_role"
|
||||
}
|
||||
Reference in New Issue
Block a user