Initial_commit_SecMPS_v2

This commit is contained in:
2026-05-15 23:22:48 +08:00
commit 23ea4fe05f
13830 changed files with 298675 additions and 0 deletions

View 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//撤销审批
}
}

View 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 = "参数不能为空";
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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
}
}