用户与角色关联表

This commit is contained in:
TsMask
2023-08-29 16:14:01 +08:00
parent 8fed79c007
commit 5c84dd8090
2 changed files with 87 additions and 0 deletions

View File

@@ -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,
}
}