37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Prism.Mvvm;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using DM_Weight.Models;
|
|
|
|
namespace DM_Weight.ViewModels
|
|
{
|
|
[Serializable]
|
|
public class PremissionViewModel: BindableBase
|
|
{
|
|
private int _id;
|
|
private string _premissionName;
|
|
private string _premissionPath;
|
|
private string _premissionImage;
|
|
private List<PremissionViewModel> _children = new List<PremissionViewModel>();
|
|
|
|
public int Id { get => _id; set => SetProperty(ref _id, value); }
|
|
public string PremissionName { get => _premissionName; set => SetProperty(ref _premissionName, value); }
|
|
/// <summary>
|
|
/// 菜单路径
|
|
/// <summary>
|
|
public string PremissionPath { get => _premissionPath; set => SetProperty(ref _premissionPath, value); }
|
|
/// <summary>
|
|
/// 图片source
|
|
///</summary>
|
|
public string PremissionImage { get => _premissionImage; set => SetProperty(ref _premissionImage, value); }
|
|
|
|
|
|
public List<PremissionViewModel> Children { get => _children; set => SetProperty(ref _children, value); }
|
|
}
|
|
}
|