38 lines
905 B
C#
38 lines
905 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Cowain.Base.ViewModels
|
|
{
|
|
public partial class UserRoleMenuViewModel : ObservableValidator
|
|
{
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// 角色id
|
|
/// </summary>
|
|
[ObservableProperty]
|
|
private int _roleId;
|
|
|
|
/// <summary>
|
|
/// 菜单key
|
|
/// </summary>
|
|
[ObservableProperty]
|
|
private string? _menuKey;
|
|
|
|
/// <summary>
|
|
/// 菜单名称
|
|
/// </summary>
|
|
[ObservableProperty]
|
|
private string? _menuName;
|
|
/// <summary>
|
|
/// 菜单命令
|
|
/// </summary>
|
|
[ObservableProperty]
|
|
private ObservableCollection<string>? _menuActions;
|
|
}
|
|
}
|