You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
550 B
28 lines
550 B
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Wood.Entity
|
|
{
|
|
public class BaseIdParam
|
|
{
|
|
/// <summary>
|
|
/// 主键id
|
|
/// </summary>
|
|
[Required(ErrorMessage = "id不能为空")]
|
|
public virtual long Id { get; set; } = 0;
|
|
}
|
|
|
|
public class BaseIdListParam
|
|
{
|
|
/// <summary>
|
|
/// 主键id 列表
|
|
/// </summary>
|
|
public virtual List<long> Ids { get; set; } = new List<long>();
|
|
}
|
|
|
|
public class BaseStatusParam : BaseIdParam
|
|
{
|
|
public int Status { get; set; } = 0;
|
|
}
|
|
}
|
|
|