You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
3.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common;
using Common.Extensions;
namespace Common.DJYModel
{
/// <summary>
///
/// </summary>
public class EnumUser
{
/// <summary>
/// 通用状态
/// </summary>
public enum Status
{
/// <summary>
///默认
/// </summary>
[EnumText("默认")]
Default = 0,
/// <summary>
/// 正常
/// </summary>
[EnumText("正常")]
On = 1,
/// <summary>
/// 冻结或删除状态
/// </summary>
[EnumText("冻结")]
Off = -1,
/// <summary>
/// 完成
/// </summary>
[EnumText("完成")]
Finish = 100
}
public enum WorkStatus
{
/// <summary>
///默认
/// </summary>
[EnumText("默认")]
Default = 0,
/// <summary>
/// 未处理
/// </summary>
[EnumText("未处理")]
On = 1,
/// <summary>
/// 处理中
/// </summary>
[EnumText("处理中")]
Working=2,
/// <summary>
/// 冻结或删除状态
/// </summary>
[EnumText("已删除")]
Off = -1,
/// <summary>
/// 已完成
/// </summary>
[EnumText("已完成")]
Finish = 100
,
/// <summary>
/// 已取消
/// </summary>
[EnumText("已取消")]
Chancel = 101
}
/// <summary>
/// 是否
/// </summary>
public enum IsYesNo
{
/// <summary>
/// 是
/// </summary>
[EnumText("是")]
Yes = 1,
/// <summary>
/// 否
/// </summary>
[EnumText("否")]
No = -1
}
/// <summary>
/// 用户角色类型
/// </summary>
public enum UserType
{ /// <summary>
/// 全部 一般用于初始值
/// </summary>
[EnumText("全部")]
All = 0,
/// <summary>
/// 管理员
/// </summary>
[EnumText("管理员")]
Admin = 1,
/// <summary>
/// 客户端
/// </summary>
[EnumText("客户端")]
User = 2,
}
/// <summary>
/// 目录类型 尽力与 usertype同步
/// </summary>
public enum MenuType
{/// <summary>
/// 全部的
/// </summary>
[EnumText("All")]
All = 0,
/// <summary>
/// 总管理后台
/// </summary>
[EnumText("后台")]
Admin = 1,
/// <summary>
/// 企业用户端pc
/// </summary>
[EnumText("用户端pc")]
User = 2
}
}
}