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.
 
 

399 lines
10 KiB

using System.ComponentModel;
namespace Znyc.CloudCar.Configuration
{
/// <summary>
/// 全局枚举
/// </summary>
public class GlobalEnumVars
{
#region 常用状态
public enum CommonEnum
{
[Description("封禁")]
Disable = 99,
[Description("有效")]
Normal = 10,
}
#endregion
#region 权限相关
/// <summary>
/// 状态码枚举
/// </summary>
public enum StatusCodes
{
/// <summary>
/// 操作失败
/// </summary>
[Description("操作失败")] Status0NotOk = 0,
/// <summary>
/// 操作成功
/// </summary>
[Description("操作成功")] Status1Ok = 1,
/// <summary>
/// 未登录(需要重新登录)
/// </summary>
[Description("未登录")] Status401Unauthorized = 401,
/// <summary>
/// 权限不足
/// </summary>
[Description("权限不足")] Status403Forbidden = 403,
/// <summary>
/// 资源不存在
/// </summary>
[Description("资源不存在")] Status404NotFound = 404,
/// <summary>
/// 系统内部错误(非业务代码里显式抛出的异常,例如由于数据不正确导致空指针异常、数据库异常等等)
/// </summary>
[Description("系统内部错误")] Status500InternalServerError = 500
}
#endregion
#region HangFire定时任务相关
public enum HangFireQueuesConfig
{
/// <summary>
/// 默认
/// </summary>
[Description("默认")]
@default = 1,
/// <summary>
/// 接口
/// </summary>
[Description("接口")]
apis = 2,
/// <summary>
/// 网站
/// </summary>
[Description("网站")]
web = 3,
/// <summary>
/// 循环时间
/// </summary>
[Description("循环时间")]
recurring = 4,
}
#endregion
#region redis缓存类型
public enum AccessTokenEnum
{
/// <summary>
/// 微信小程序
/// </summary>
WxOpenAccessToken = 1,
/// <summary>
/// 微信公众号
/// </summary>
WeiXinAccessToken = 2,
}
#endregion
#region 设备状态
public enum StateEnum
{
/// <summary>
/// 未通过
/// </summary>
[Description("未通过")] Fail = 0,
/// <summary>
/// 审核中
/// </summary>
[Description("审核中")] InReview = 10,
/// <summary>
/// 出售中
/// </summary>
[Description("出售中")] Selling = 20,
/// <summary>
/// 已成交
/// </summary>
[Description("已成交")] Traded = 30,
/// <summary>
/// 已下架
/// </summary>
[Description("已下架")] Shelved = 99,
/// <summary>
/// 撤销审核
/// </summary>
[Description("撤销审核")] Revocation = 50
}
#endregion
#region 图片类型
public enum PictureTypeEnum
{
/// <summary>
/// 设备照片
/// </summary>
[Description("设备照片")] Equipment = 10,
/// <summary>
/// 行驶证或身份证
/// </summary>
[Description("行驶证或身份证")] DriverLicense = 20,
}
#endregion
#region 云币类型
public enum CurrencyType
{
/// <summary>
/// 首次登陆
/// </summary>
[Description("首次登陆")] FirstLogin = 1,
/// <summary>
/// 邀新用户
/// </summary>
[Description("邀新用户")] NewUsers = 2,
/// <summary>
/// 每日分享
/// </summary>
[Description("每日分享")] DailyShare = 3,
/// <summary>
/// 关注公众号
/// </summary>
[Description("关注公众号")] FocusOn = 4,
/// <summary>
/// 购买优惠卡赠送
/// </summary>
[Description("购买优惠卡赠送")] PreferentialCard = 5,
/// <summary>
/// 发布设备信息
/// </summary>
[Description("发布设备信息")] Equipment = 6,
/// <summary>
/// 实名认证
/// </summary>
[Description("实名认证")] RealName = 7,
/// <summary>
/// 每日签到
/// </summary>
[Description("每日签到")] Signin = 8,
/// <summary>
/// 云币充值
/// </summary>
[Description("云币充值")] BuyCurrency = 9,
/// <summary>
/// 抽奖赚云币
/// </summary>
[Description("抽奖赚云币")] LuckyDraw = 10,
/// <summary>
/// 兑换奖品
/// </summary>
[Description("兑换奖品")] Conversion = 11,
/// <summary>
/// 拔打电话
/// </summary>
[Description("拔打电话")] CallPhone = 12,
/// <summary>
/// 设备信息置顶
/// </summary>
[Description("置顶设备")] TopEquipment = 13,
/// <summary>
/// 刷新设备信息
/// </summary>
[Description("刷新设备")] RefreshEquipment = 14,
/// <summary>
/// 置顶设备退还
/// </summary>
[Description("置顶设备退还")] ReturnTopEquipment = 15,
}
#endregion
#region 云币操作类型
public enum OperatingType
{
/// <summary>
/// 增加
/// </summary>
[Description("增加")] Add = 1,
/// <summary>
/// 减少
/// </summary>
[Description("减少")] Reduce = 2,
/// <summary>
/// 冻结
/// </summary>
[Description("冻结")] Freeze = 3
}
#endregion
#region 用户实名状态
public enum CertificationState
{
/// <summary>
/// 实名审核中
/// </summary>
[Description("实名审核中")] Review = 0,
/// <summary>
/// 实名通过
/// </summary>
[Description("实名通过")] Pass = 1,
/// <summary>
/// 实名失败
/// </summary>
[Description("实名失败")] Fail = 2,
/// <summary>
/// 未实名
/// </summary>
[Description("未实名")] None = 3
}
#endregion
#region 支付类型
public enum PaymentMethod
{
/// <summary>
/// 现金
/// </summary>
[Description("现金")] Cash = 1,
/// <summary>
/// 余额
/// </summary>
[Description("余额")] Balance = 2,
/// <summary>
/// 网银
/// </summary>
[Description("网银")] NetSilver = 3,
/// <summary>
/// 支付宝
/// </summary>
[Description("支付宝")] ZFB = 4,
/// <summary>
/// 微信
/// </summary>
[Description("微信")] WX = 5,
/// <summary>
/// 云币
/// </summary>
[Description("云币")] CloudCurrency = 6
}
#endregion
#region 订单状态
public enum OrderStatus
{
/// <summary>
/// 已取消
/// </summary>
[Description("已取消")] Cancel = 0,
/// <summary>
/// 未付款
/// </summary>
[Description("未付款")] NotPaying = 10,
/// <summary>
/// 已付款
/// </summary>
[Description("已付款")] Paying = 20,
/// <summary>
/// 已发货
/// </summary>
[Description("已发货")] Delivery = 40,
/// <summary>
/// 交易成功
/// </summary>
[Description("交易成功")] Success = 50,
/// <summary>
/// 交易关闭
/// </summary>
[Description("交易关闭")] Close = 60
}
#endregion
#region 支付状态
public enum PayStatus
{
/// <summary>
/// 已取消
/// </summary>
[Description("已取消")] Cancel = 0,
/// <summary>
/// 未成功
/// </summary>
[Description("未成功")] NotPaying = 10,
/// <summary>
/// 已成功
/// </summary>
[Description("已成功")] Paying = 20
}
#endregion
#region 订单类型
public enum OrderType
{
/// <summary>
/// 充值
/// </summary>
[Description("充值")] BuyCurrency = 1,
/// <summary>
/// 优惠卡
/// </summary>
[Description("优惠卡")] PreferentialCard = 2,
}
#endregion
#region 登陆日志来源平台
public enum PlatformType
{
/// <summary>
/// 云车二手
/// </summary>
[Description("人才招聘")] CloudCar = 1,
/// <summary>
/// 后台管理系统
/// </summary>
[Description("后台管理系统")] Management = 3
}
#endregion
}
}