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.

112 lines
2.7 KiB

using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 基础用户输入参数
/// </summary>
public class BaseUserInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 密码
/// </summary>
public virtual string Password { get; set; }
/// <summary>
/// 用户类型
/// </summary>
public virtual Int16 Type { get; set; }
/// <summary>
/// 用户名
/// </summary>
public virtual string UserName { get; set; }
/// <summary>
/// 头像链接
/// </summary>
public virtual string AvatarUrl { get; set; }
/// <summary>
/// 用户状态
/// </summary>
public virtual Int16 Status { get; set; }
/// <summary>
/// 微信用户ID
/// </summary>
public virtual string OpenID { get; set; }
/// <summary>
/// 微信唯一ID
/// </summary>
public virtual string WxOfficialOpenId { get; set; }
/// <summary>
/// 开放平台ID
/// </summary>
public virtual string UnionId { get; set; }
}
public class AddBaseUserInput : BaseUserInput
{
/// <summary>
/// 租户Id
/// </summary>
[Required(ErrorMessage = "租户Id不能为空")]
public override long TenantId { get; set; }
/// <summary>
/// 用户类型
/// </summary>
[Required(ErrorMessage = "用户类型不能为空")]
public override Int16 Type { get; set; }
/// <summary>
/// 用户名
/// </summary>
[Required(ErrorMessage = "用户名不能为空")]
public override string UserName { get; set; }
/// <summary>
/// 用户状态
/// </summary>
[Required(ErrorMessage = "用户状态不能为空")]
public override Int16 Status { get; set; }
}
public class DeleteBaseUserInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateBaseUserInput : BaseUserInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeBaseUserInput : DeleteBaseUserInput
{
}
}