24 lines
597 B
C#
24 lines
597 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Syc.Basic.Web.WMS.Dtos.Role
|
|
{
|
|
public class UpdateRoleMenusInput: Input
|
|
{
|
|
[Required(ErrorMessage = "角色编号必填!")]
|
|
public string code { get; set; }
|
|
|
|
public int[] menuIds { get; set; }
|
|
|
|
public override void Verification(List<string> errorMsg)
|
|
{
|
|
if (menuIds is null || !menuIds.Any())
|
|
errorMsg.Add("菜单项必填!");
|
|
}
|
|
}
|
|
}
|