HuanMengProject/HuanMeng.DotNetCore/Base/ResonseCode.cs
2024-06-11 18:19:18 +08:00

50 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace HuanMeng.DotNetCore.Base
{
/// <summary>
/// 响应编码参考,实际的项目使用可以自行定义
/// 基本规则:
/// 成功大于等于0
/// 失败小于0
/// </summary>
public enum ResonseCode
{
/// <summary>
/// Sign签名错误
/// </summary>
SignError = -999,
/// <summary>
/// jwt用户签名错误
/// </summary>
TwtError = -998,
/// <summary>
/// 用户验证失败
/// </summary>
Unauthorized = 401,
/// <summary>
/// 正在处理中
/// </summary>
Processing = 102,
/// <summary>
/// 通用错误
/// </summary>
Error = -1,
/// <summary>
/// 参数错误
/// </summary>
ParamError = -2,
/// <summary>
/// 没找到数据记录
/// </summary>
NotFoundRecord = -3,
/// <summary>
/// 成功
/// </summary>
Success = 0,
}
}