用户与角色关联表
This commit is contained in:
1 parent
8fed79c007
commit
5c84dd8090
2 files changed
+87
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package sysuserrole
|
||||
|
||||
// SysUserRole 用户和角色关联对象 sys_user_role
|
||||
type SysUserRole struct {
|
||||
UserID string `json:"userId"` // 用户ID
|
||||
RoleID string `json:"roleId"` // 角色ID
|
||||
}
|
||||
|
||||
// NewSysUserRole 创建用户和角色关联对象的构造函数
|
||||
func NewSysUserRole(userID string, roleID string) SysUserRole {
|
||||
return SysUserRole{
|
||||
UserID: userID,
|
||||
RoleID: roleID,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user