Initial_commit_SecMPS_v2
This commit is contained in:
21
api_sqlsugar/VolPro.Core/Enums/ActionPermissionOptions.cs
Normal file
21
api_sqlsugar/VolPro.Core/Enums/ActionPermissionOptions.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
[Flags]
|
||||
public enum ActionPermissionOptions
|
||||
{
|
||||
//注意添加的枚举值一定要是前面的值倍数,即x2
|
||||
Add = 1,
|
||||
Update = 2,
|
||||
Search = 4,
|
||||
Export = 8,
|
||||
Delete = 16,
|
||||
Audit = 32,
|
||||
Upload = 64,//上传文件
|
||||
Import = 128, //导入表数据Excel
|
||||
CancelAudit = 256//撤销审批
|
||||
}
|
||||
}
|
||||
59
api_sqlsugar/VolPro.Core/Enums/ApiMessage.cs
Normal file
59
api_sqlsugar/VolPro.Core/Enums/ApiMessage.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.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
api_sqlsugar/VolPro.Core/Enums/ApiStatutsCode.cs
Normal file
14
api_sqlsugar/VolPro.Core/Enums/ApiStatutsCode.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
public enum ApiStatutsCode
|
||||
{
|
||||
False = 0,
|
||||
Ok = 1,
|
||||
TokenExpire = 2
|
||||
|
||||
}
|
||||
}
|
||||
19
api_sqlsugar/VolPro.Core/Enums/AuthData.cs
Normal file
19
api_sqlsugar/VolPro.Core/Enums/AuthData.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
public enum AuthData
|
||||
{
|
||||
全部 = 1,
|
||||
本组织与本角色以及下数据 = 10,
|
||||
本组织及下数据 = 20,
|
||||
本组织数据 = 30,
|
||||
本角色以及下数据 = 40,
|
||||
本角色数据 = 50,
|
||||
仅自己数据 = 60
|
||||
}
|
||||
}
|
||||
22
api_sqlsugar/VolPro.Core/Enums/CPrefix.cs
Normal file
22
api_sqlsugar/VolPro.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 VolPro.Core.Enums
|
||||
{
|
||||
public enum CPrefix
|
||||
{
|
||||
Role = 0,
|
||||
//UserIDkey
|
||||
UID = 1,
|
||||
/// <summary>
|
||||
/// 头像KEY
|
||||
/// </summary>
|
||||
HDImg = 2,
|
||||
Token = 3,
|
||||
CityList
|
||||
|
||||
}
|
||||
}
|
||||
17
api_sqlsugar/VolPro.Core/Enums/DbCurrentType.cs
Normal file
17
api_sqlsugar/VolPro.Core/Enums/DbCurrentType.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
public enum DbCurrentType
|
||||
{
|
||||
Default = 0,
|
||||
MySql = 1,
|
||||
MsSql = 2,//2020.08.08修改sqlserver拼写
|
||||
PgSql = 3,
|
||||
Kdbndp,//人大金仓
|
||||
Oracle, //2022.12.26
|
||||
DM, //2024.02.27
|
||||
}
|
||||
}
|
||||
30
api_sqlsugar/VolPro.Core/Enums/LinqExpressionType.cs
Normal file
30
api_sqlsugar/VolPro.Core/Enums/LinqExpressionType.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
public enum LinqExpressionType
|
||||
{
|
||||
Equal = 0,//=
|
||||
NotEqual = 1,//!=
|
||||
GreaterThan,//>
|
||||
LessThan,//<
|
||||
ThanOrEqual,//>=
|
||||
LessThanOrEqual,//<=
|
||||
In,
|
||||
NotIn,
|
||||
Contains,//Contains
|
||||
Like,//Contains
|
||||
LikeStart,
|
||||
LikeEnd,
|
||||
NotLike,
|
||||
NotContains,//NotContains
|
||||
Null,
|
||||
NotNull,
|
||||
Empty,
|
||||
NotEmpty,
|
||||
NullOrEmpty,
|
||||
NotNullOrEmpty
|
||||
}
|
||||
}
|
||||
54
api_sqlsugar/VolPro.Core/Enums/LoggerType.cs
Normal file
54
api_sqlsugar/VolPro.Core/Enums/LoggerType.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.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
|
||||
}
|
||||
}
|
||||
29
api_sqlsugar/VolPro.Core/Enums/NotificationType.cs
Normal file
29
api_sqlsugar/VolPro.Core/Enums/NotificationType.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 通知类型
|
||||
/// </summary>
|
||||
public enum NotificationType
|
||||
{
|
||||
审批 = 1,
|
||||
通知 = 2,
|
||||
系统 = 3,
|
||||
抄送
|
||||
}
|
||||
/// <summary>
|
||||
/// 通知对象类型
|
||||
/// </summary>
|
||||
public enum NotificationTarget
|
||||
{
|
||||
用户 = 1,
|
||||
角色 = 2,
|
||||
部门 = 3,
|
||||
岗位 = 4
|
||||
}
|
||||
}
|
||||
12
api_sqlsugar/VolPro.Core/Enums/QueryOrderBy.cs
Normal file
12
api_sqlsugar/VolPro.Core/Enums/QueryOrderBy.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
public enum QueryOrderBy
|
||||
{
|
||||
Desc=1,
|
||||
Asc=2
|
||||
}
|
||||
}
|
||||
31
api_sqlsugar/VolPro.Core/Enums/ResponseType.cs
Normal file
31
api_sqlsugar/VolPro.Core/Enums/ResponseType.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.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
api_sqlsugar/VolPro.Core/Enums/UserAgent.cs
Normal file
14
api_sqlsugar/VolPro.Core/Enums/UserAgent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace VolPro.Core.Enums
|
||||
{
|
||||
public enum UserAgent
|
||||
{
|
||||
IOS = 0,
|
||||
Android = 1,
|
||||
Windows = 2,
|
||||
Linux
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user