添加项目文件。
This commit is contained in:
15
HT.Cloud.Code/Model/ApiToken.cs
Normal file
15
HT.Cloud.Code/Model/ApiToken.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace HT.Cloud.Code.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 这个是移动端Api用的
|
||||
/// </summary>
|
||||
public class BaseApiToken
|
||||
{
|
||||
[NotMapped]
|
||||
[Description("WebApi没有Cookie和Session,所以需要传入Token来标识用户身份,请加在Url后面")]
|
||||
public string Token { get; set; }
|
||||
}
|
||||
}
|
7
HT.Cloud.Code/Model/AppLogEntity.cs
Normal file
7
HT.Cloud.Code/Model/AppLogEntity.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace HT.Cloud.Code.Model
|
||||
{
|
||||
public class AppLogEntity
|
||||
{
|
||||
public string FileName { get; set; }
|
||||
}
|
||||
}
|
41
HT.Cloud.Code/Model/DbLogType.cs
Normal file
41
HT.Cloud.Code/Model/DbLogType.cs
Normal file
@ -0,0 +1,41 @@
|
||||
/*******************************************************************************
|
||||
* Copyright © 2020 HT.Cloud.Framework 版权所有
|
||||
* Author: HT.Cloud
|
||||
* Description: WaterCloud快速开发平台
|
||||
* Website:
|
||||
*********************************************************************************/
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace HT.Cloud.Code
|
||||
{
|
||||
public enum DbLogType
|
||||
{
|
||||
[Description("其他")]
|
||||
Other = 0,
|
||||
|
||||
[Description("登录")]
|
||||
Login = 1,
|
||||
|
||||
[Description("退出")]
|
||||
Exit = 2,
|
||||
|
||||
[Description("访问")]
|
||||
Visit = 3,
|
||||
|
||||
[Description("新增")]
|
||||
Create = 4,
|
||||
|
||||
[Description("删除")]
|
||||
Delete = 5,
|
||||
|
||||
[Description("修改")]
|
||||
Update = 6,
|
||||
|
||||
[Description("提交")]
|
||||
Submit = 7,
|
||||
|
||||
[Description("异常")]
|
||||
Exception = 8,
|
||||
}
|
||||
}
|
18
HT.Cloud.Code/Model/Define.cs
Normal file
18
HT.Cloud.Code/Model/Define.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace HT.Cloud.Code
|
||||
{
|
||||
public static class Define
|
||||
{
|
||||
public const string PROVIDER_COOKIE = "Cookie";
|
||||
public const string PROVIDER_SESSION = "Session";
|
||||
public const string PROVIDER_WEBAPI = "WebApi";
|
||||
|
||||
public const string CACHEPROVIDER_REDIS = "Redis";
|
||||
public const string CACHEPROVIDER_MEMORY = "Memory";
|
||||
|
||||
public const string DATAPRIVILEGE_LOGINUSER = "{loginUser}"; //数据权限配置中,当前登录用户的key
|
||||
public const string DATAPRIVILEGE_LOGINROLE = "{loginRole}"; //数据权限配置中,当前登录用户角色的key
|
||||
public const string DATAPRIVILEGE_LOGINORG = "{loginOrg}"; //数据权限配置中,当前登录用户部门的key
|
||||
public const string SQL_MORE = "MoreSql";//多库
|
||||
public const string SQL_TENANT = "TenantSql";//多租户
|
||||
}
|
||||
}
|
22
HT.Cloud.Code/Model/Filter.cs
Normal file
22
HT.Cloud.Code/Model/Filter.cs
Normal file
@ -0,0 +1,22 @@
|
||||
namespace HT.Cloud.Code
|
||||
{
|
||||
public class Filter
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
public string Contrast { get; set; }
|
||||
|
||||
public string Text { get; set; }
|
||||
}
|
||||
|
||||
public class FilterList
|
||||
{
|
||||
/// <summary>
|
||||
/// and
|
||||
/// </summary>
|
||||
public string Operation { get; set; }
|
||||
|
||||
public string Filters { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
9
HT.Cloud.Code/Model/KeyValue.cs
Normal file
9
HT.Cloud.Code/Model/KeyValue.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace HT.Cloud.Code
|
||||
{
|
||||
public class KeyValue
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
31
HT.Cloud.Code/Model/PrintEntity.cs
Normal file
31
HT.Cloud.Code/Model/PrintEntity.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HT.Cloud.Code.Model
|
||||
{
|
||||
public class PrintEntity
|
||||
{
|
||||
public string cmd { get; set; } = "print";
|
||||
public string requestId { get; set; }
|
||||
public PrintDetail data { get; set; }
|
||||
}
|
||||
public class PrintDetail
|
||||
{
|
||||
public PrintInitInfo printIniInfo { get; set; }
|
||||
public object data { get; set; }
|
||||
}
|
||||
public class PrintInitInfo
|
||||
{
|
||||
public string filePath { get; set; }
|
||||
public string realName { get; set; }
|
||||
public int? printType { get; set; } = 1;
|
||||
public string printName { get; set; } = "";
|
||||
public bool landscape { get; set; } = true;
|
||||
public string paperSize { get; set; }
|
||||
public string duplex { get; set; }
|
||||
public bool? isBatch { get; set; } = false;
|
||||
}
|
||||
}
|
118
HT.Cloud.Code/Model/SystemConfig.cs
Normal file
118
HT.Cloud.Code/Model/SystemConfig.cs
Normal file
@ -0,0 +1,118 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HT.Cloud.Code.Model
|
||||
{
|
||||
public class SystemConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否是Demo模式
|
||||
/// </summary>
|
||||
public bool Demo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是调试模式
|
||||
/// </summary>
|
||||
public bool Debug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许一个用户在多个电脑同时登录
|
||||
/// </summary>
|
||||
public bool LoginMultiple { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许跨域的站点
|
||||
/// </summary>
|
||||
public string AllowCorsSite { get; set; }
|
||||
|
||||
public string DBProvider { get; set; }
|
||||
public string DBConnectionString { get; set; }
|
||||
public int DBCommandTimeout { get; set; }
|
||||
|
||||
public string CacheProvider { get; set; }
|
||||
public string RedisConnectionString { get; set; }
|
||||
public string TokenName { get; set; }
|
||||
|
||||
//缓存过期时间
|
||||
public int LoginExpire { get; set; }
|
||||
|
||||
public string HomePage { get; set; }
|
||||
public bool? LocalLAN { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库模式
|
||||
/// </summary>
|
||||
public string SqlMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 项目前缀
|
||||
/// </summary>
|
||||
public string ProjectPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否重置密码
|
||||
/// </summary>
|
||||
public bool? ReviseSystem { get; set; }
|
||||
|
||||
public int? LoginErrorCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 多数据库组
|
||||
/// </summary>
|
||||
public List<DBConfig> SqlConfig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否集群
|
||||
/// </summary>
|
||||
public bool? IsCluster { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否删除定时调度任务
|
||||
/// </summary>
|
||||
public bool? NeedClear { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主程序数据库编号
|
||||
/// </summary>
|
||||
public string MainDbNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启定时任务
|
||||
/// </summary>
|
||||
public bool? OpenQuartz { get; set; }
|
||||
|
||||
public DocumentSettings DocumentSettings { get; set; }
|
||||
public MqConfig RabbitMq { get; set; }
|
||||
}
|
||||
|
||||
public class DocumentSettings
|
||||
{
|
||||
public string DocumentTitle { get; set; }
|
||||
public List<GroupOpenApiInfo> GroupOpenApiInfos { get; set; }
|
||||
}
|
||||
|
||||
public class GroupOpenApiInfo
|
||||
{
|
||||
public string Group { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Version { get; set; }
|
||||
}
|
||||
|
||||
public class DBConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库序号
|
||||
/// </summary>
|
||||
public string DBNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库类型
|
||||
/// </summary>
|
||||
public string DBProvider { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库连接
|
||||
/// </summary>
|
||||
public string DBConnectionString { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user