1
This commit is contained in:
18
iMES.Core/Enums/ActionPermissionOptions.cs
Normal file
18
iMES.Core/Enums/ActionPermissionOptions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum ActionPermissionOptions
|
||||
{
|
||||
Add = 0,
|
||||
Delete = 1,
|
||||
Update = 2,
|
||||
Search=3,
|
||||
Export=4,
|
||||
Audit,
|
||||
Upload,//上传文件
|
||||
Import //导入表数据Excel
|
||||
}
|
||||
}
|
||||
59
iMES.Core/Enums/ApiMessage.cs
Normal file
59
iMES.Core/Enums/ApiMessage.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public struct ApiMessage
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 参数有误
|
||||
/// </summary>
|
||||
public const string ParameterError = "请求参数不正确!";
|
||||
/// <summary>
|
||||
/// 没有配置好输入参数
|
||||
/// </summary>
|
||||
public const string NotInputEntity = "没有配置好输入参数!";
|
||||
/// <summary>
|
||||
/// token丢失
|
||||
/// </summary>
|
||||
public const string TokenLose = "token丢失!";
|
||||
|
||||
/// <summary>
|
||||
/// 版本号不能为空
|
||||
/// </summary>
|
||||
|
||||
public const string VersionEmpty = "版本号不能为空!";
|
||||
/// <summary>
|
||||
/// content不能为空
|
||||
/// </summary>
|
||||
|
||||
public const string ContentEmpty = "biz_content不能为空!";
|
||||
/// <summary>
|
||||
/// content不能为空
|
||||
/// </summary>
|
||||
public const string TokenError = "token不正确";
|
||||
|
||||
public const string AccountLocked = "帐号已被锁定!";
|
||||
|
||||
public const string PhoneNoInvalid = "输入的不是手机号";
|
||||
|
||||
|
||||
public const string PINTypeNotRange= "获取验证的类型不正确";
|
||||
public const string OperToBusy = "操作太频繁,请稍后再试";
|
||||
|
||||
public const string SendSTKError = "短信发送异常,请稍后再试";
|
||||
public const string SendSTKSuccess = "短信发送成功";
|
||||
public const string STKNotSend = "请先获取验证码";
|
||||
public const string AccountExists = "手机号已经被注册";
|
||||
|
||||
public const string AccountNotExists = "手机号没有注册";
|
||||
|
||||
public const string PINExpire = "验证码已过期,请重新获取";
|
||||
|
||||
public const string PINError = "验证码不正确";
|
||||
|
||||
public const string ParameterEmpty = "参数不能为空";
|
||||
}
|
||||
}
|
||||
14
iMES.Core/Enums/ApiStatutsCode.cs
Normal file
14
iMES.Core/Enums/ApiStatutsCode.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum ApiStatutsCode
|
||||
{
|
||||
False = 0,
|
||||
Ok = 1,
|
||||
TokenExpire = 2
|
||||
|
||||
}
|
||||
}
|
||||
22
iMES.Core/Enums/CPrefix.cs
Normal file
22
iMES.Core/Enums/CPrefix.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum CPrefix
|
||||
{
|
||||
Role = 0,
|
||||
//UserIDkey
|
||||
UID = 1,
|
||||
/// <summary>
|
||||
/// 头像KEY
|
||||
/// </summary>
|
||||
HDImg = 2,
|
||||
Token = 3,
|
||||
CityList
|
||||
|
||||
}
|
||||
}
|
||||
14
iMES.Core/Enums/DbCurrentType.cs
Normal file
14
iMES.Core/Enums/DbCurrentType.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum DbCurrentType
|
||||
{
|
||||
Default = 0,
|
||||
MySql = 1,
|
||||
MsSql = 2,//2020.08.08修改sqlserver拼写
|
||||
PgSql = 3
|
||||
}
|
||||
}
|
||||
19
iMES.Core/Enums/LinqExpressionType.cs
Normal file
19
iMES.Core/Enums/LinqExpressionType.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum LinqExpressionType
|
||||
{
|
||||
Equal=0,//=
|
||||
NotEqual=1,//!=
|
||||
GreaterThan,//>
|
||||
LessThan,//<
|
||||
ThanOrEqual,//>=
|
||||
LessThanOrEqual,//<=
|
||||
In,
|
||||
Contains,//Contains
|
||||
NotContains//NotContains
|
||||
}
|
||||
}
|
||||
54
iMES.Core/Enums/LoggerType.cs
Normal file
54
iMES.Core/Enums/LoggerType.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum LoggerType
|
||||
{
|
||||
System = 0,
|
||||
Info,
|
||||
Success,
|
||||
Error,
|
||||
Authorzie,
|
||||
Global,
|
||||
Login,
|
||||
Exception,
|
||||
ApiException,
|
||||
HandleError,
|
||||
OnActionExecuted,
|
||||
GetUserInfo,
|
||||
Edit,
|
||||
Search,
|
||||
Add,
|
||||
Del,
|
||||
AppHome,
|
||||
ApiLogin,
|
||||
ApiPINLogin,
|
||||
ApiRegister,
|
||||
ApiModifyPwd,
|
||||
ApiSendPIN,
|
||||
ApiAuthorize,
|
||||
Ask,
|
||||
JoinMeeting,
|
||||
JoinUs,
|
||||
EditUserInfo,
|
||||
Sell,
|
||||
Buy,
|
||||
ReportPrice,
|
||||
Reply,
|
||||
TechData,
|
||||
TechSecondData,
|
||||
DelPublicQuestion,
|
||||
DelexpertQuestion,
|
||||
CreateTokenError,
|
||||
IPhoneTest,
|
||||
SDKSuccess,
|
||||
SDKSendError,
|
||||
ExpertAuthority,
|
||||
ParEmpty,
|
||||
NoToken,
|
||||
ReplaceToeken,
|
||||
KafkaException
|
||||
}
|
||||
}
|
||||
12
iMES.Core/Enums/QueryOrderBy.cs
Normal file
12
iMES.Core/Enums/QueryOrderBy.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum QueryOrderBy
|
||||
{
|
||||
Desc=1,
|
||||
Asc=2
|
||||
}
|
||||
}
|
||||
31
iMES.Core/Enums/ResponseType.cs
Normal file
31
iMES.Core/Enums/ResponseType.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum ResponseType
|
||||
{
|
||||
ServerError = 1,
|
||||
LoginExpiration = 302,
|
||||
ParametersLack = 303,
|
||||
TokenExpiration,
|
||||
PINError,
|
||||
NoPermissions,
|
||||
NoRolePermissions,
|
||||
LoginError,
|
||||
AccountLocked,
|
||||
LoginSuccess,
|
||||
SaveSuccess,
|
||||
AuditSuccess,
|
||||
OperSuccess,
|
||||
RegisterSuccess,
|
||||
ModifyPwdSuccess,
|
||||
EidtSuccess,
|
||||
DelSuccess,
|
||||
NoKey,
|
||||
NoKeyDel,
|
||||
KeyError,
|
||||
Other
|
||||
}
|
||||
}
|
||||
14
iMES.Core/Enums/UserAgent.cs
Normal file
14
iMES.Core/Enums/UserAgent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace iMES.Core.Enums
|
||||
{
|
||||
public enum UserAgent
|
||||
{
|
||||
IOS = 0,
|
||||
Android = 1,
|
||||
Windows = 2,
|
||||
Linux
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user