├── _config.yml
├── class.png
├── level.png
├── class_ext.png
├── inter_new.png
├── SuperGMS.RpcProxyTools
├── 说明.txt
├── InterfaceBodyTemplate.txt
├── ClassBodyTemplate.txt
└── SuperGMS.RpcProxyTools.csproj
├── SuperGMS.HttpProxy
├── Config
│ ├── sqlmap.config
│ ├── DataBase.config
│ ├── database.pre.config
│ ├── database.prod.config
│ └── database.test.config
├── Dockerfile
├── config.pre.json
├── config.prod.json
├── config.test_a.json
├── config.test_b.json
├── config.json
├── Program.cs
└── Startup.cs
├── SuperGMS.WebSocketService
├── config
│ ├── sqlmap.config
│ ├── database.config
│ ├── database.pre.config
│ ├── database.prod.config
│ ├── database.test_a.config
│ └── database.test_b.config
├── config.json
├── config.pre.json
├── config.prod.json
├── config.test_a.json
├── config.test_b.json
├── SendMessageToUser.cs
├── SuperGMS.WebSocketService.csproj
└── Program.cs
├── SuperGMS
├── Rpc
│ ├── 1.Grpc
│ │ └── Protos
│ │ │ ├── readme.txt
│ │ │ └── GrantGrpc.proto
│ ├── 0.Thrift
│ │ └── Server
│ │ │ ├── ThriftService.cs
│ │ │ ├── Thrift.Thrift
│ │ │ └── ThriftRpcServer.cs
│ ├── AssemblyTools
│ │ ├── InterfaceBodyTemplate.txt
│ │ ├── ClassBodyTemplate.txt
│ │ └── ClassTemplate.txt
│ ├── ServerStatus.cs
│ ├── Manage
│ │ └── AppServerInfo.cs
│ ├── SuperGMSServer.cs
│ ├── TaskWorker
│ │ └── TaskWorker.cs
│ ├── 2.Server
│ │ ├── UnRegisterMethodAttribute.cs
│ │ └── InitlizeMethodAttribute.cs
│ ├── ConfigTemplate.cs
│ ├── Nullables.cs
│ ├── ISuperGMSRpcClient.cs
│ ├── ISuperGMSRpcServer.cs
│ ├── ServerType.cs
│ └── ClientItem.cs
├── Properties
│ ├── launchSettings.json
│ └── PublishProfiles
│ │ └── FolderProfile.pubxml
├── DB
│ ├── EFEx
│ │ ├── DynamicSearch
│ │ │ ├── Model
│ │ │ │ ├── QueryMethod.cs
│ │ │ │ ├── QueryModel.cs
│ │ │ │ └── PageResult.cs
│ │ │ ├── TypeUtil.cs
│ │ │ └── PageInfo.cs
│ │ ├── MyDbContext
│ │ │ ├── ISqlSugarDbContext.cs
│ │ │ ├── IDbContext.cs
│ │ │ ├── IEFDbContext.cs
│ │ │ ├── IDapperDbContext.cs
│ │ │ ├── SqlSugarDBContext.cs
│ │ │ └── DapperDBContext.cs
│ │ ├── MyDbFactory
│ │ │ ├── MySql.cs
│ │ │ ├── SqlPara.cs
│ │ │ ├── PostgreSql.cs
│ │ │ ├── SqlServer.cs
│ │ │ ├── Oracle.cs
│ │ │ └── DBConnection.cs
│ │ ├── IContextOptionFactory.cs
│ │ ├── CrudRepository
│ │ │ └── DapperCrudRepository.cs
│ │ ├── DbOptionBulider
│ │ │ ├── PostgresqlDBContextOptionBuilder.cs
│ │ │ ├── SqlServerDBContextOptionBuilder.cs
│ │ │ ├── OracleDBContextOptionBuilder.cs
│ │ │ └── MySqlDBContextOptionBuilder.cs
│ │ ├── DBType.cs
│ │ └── DBInfo.cs
│ ├── AttributeEx
│ │ └── ViewOraModelAttribute.cs
│ └── MapperEx
│ │ └── AutoMapperTool.cs
├── AttributeEx
│ ├── NotImportAttribute.cs
│ ├── ErrorCodeAttribute.cs
│ ├── ImportCommentAttribute.cs
│ ├── UdfModelAttribute.cs
│ ├── OraModelAttribute.cs
│ ├── OpenApiAttribute.cs
│ ├── CodeDescAttribute.cs
│ └── StatusCodeExtension.cs
├── SqlMap.config
├── Extensions
│ ├── Enum
│ │ └── HashKeyType.cs
│ └── RpcContextExtensions.cs
├── UserSession
│ └── UserLoginInfo
│ │ ├── Role.cs
│ │ ├── Rolefunction.cs
│ │ ├── FunctionInfo.cs
│ │ ├── SysDbInfo.cs
│ │ ├── SystemInfo.cs
│ │ ├── Menu.cs
│ │ └── TenantInfo.cs
├── Router
│ ├── IUri.cs
│ ├── TTIDUri.cs
│ ├── UserUri.cs
│ └── RouterType.cs
├── Config
│ ├── DataBase
│ │ ├── Master.cs
│ │ ├── DataBaseInfo.cs
│ │ ├── Slave.cs
│ │ ├── SqlMap.cs
│ │ ├── DbIpPort.cs
│ │ ├── DataBase.cs
│ │ └── DbModelContext.cs
│ ├── HttpProxy
│ │ ├── HttpProxyItem.cs
│ │ └── HttpProxy.cs
│ ├── ConstKeyValue
│ │ ├── ConstItem.cs
│ │ └── ConstKeyValue.cs
│ ├── FileServer
│ │ ├── FileServerItem.cs
│ │ ├── FileServer.cs
│ │ └── FileServerManager.cs
│ ├── Redis
│ │ ├── RedisNode.cs
│ │ └── RedisItem.cs
│ ├── ZKConfigSetting.cs
│ ├── LogConfig
│ │ ├── LogConfig.cs
│ │ └── Filter.cs
│ ├── RemoteJsonFile
│ │ └── RemoteJsonFileConfigurationSource.cs
│ ├── RabbitMQ
│ │ ├── HostItem.cs
│ │ └── RabbitMQ.cs
│ ├── ServerConfig.cs
│ ├── ConfigCenter.cs
│ ├── RpcService.cs
│ └── RpcClient
│ │ └── RpcClients.cs
├── Tools
│ ├── ExtentionTool.cs
│ ├── C.cs
│ ├── FileHelper.cs
│ ├── WebClientEx.cs
│ └── EncryptionTools.cs
├── FileEx
│ ├── IUdfButtonJob.cs
│ └── ISftpClient.cs
├── Protocol
│ ├── RpcProtocol
│ │ ├── ClientTypeParser.cs
│ │ ├── ClientType.cs
│ │ ├── ArgsEx.cs
│ │ ├── BasicArgs.cs
│ │ └── Result.cs
│ ├── ApiProtocol
│ │ ├── ApiArgs.cs
│ │ └── ApiResult.cs
│ └── MQProtocol
│ │ └── MQProtocol.cs
├── DataBase.config
├── SuperGMSHost.cs
├── Cache
│ ├── CacheDefault.cs
│ └── ResourceCache.cs
├── Zookeeper
│ ├── BaseWatcher.cs
│ ├── NullWatcher.cs
│ ├── ZKConnectionWatcher.cs
│ ├── ServiceRouterWatcher.cs
│ └── ConfigWatcher.cs
├── ApiHelper
│ ├── FieldDescInfo.cs
│ ├── ServiceInfo.cs
│ ├── Xml
│ │ └── XmlCommentsFileCollection.cs
│ └── BaseGetApiHelp.cs
├── ExceptionEx
│ ├── FrameworkException.cs
│ └── BusinessException.cs
├── MQ
│ ├── RabbitMQ
│ │ ├── Config
│ │ │ ├── ExchangeType.cs
│ │ │ ├── Exchange.cs
│ │ │ ├── VirtualHost.cs
│ │ │ └── MQueue.cs
│ │ └── MQConnection.cs
│ └── ConstManager.cs
├── 说明.txt
├── Log
│ ├── LogFactory.cs
│ └── LogBase.cs
└── Redis
│ └── RedisServer.cs
├── SuperGMS.Extend
├── ImportExport
│ ├── ImportResultDto.cs
│ ├── ImportParamDto.cs
│ └── ExportParamDto.cs
├── FileServer
│ ├── FileOperateAction.cs
│ ├── CheckFileRightResult.cs
│ ├── FileUploadInfo.cs
│ ├── DownFileInfo.cs
│ └── FileCheckInfo.cs
├── Tools
│ ├── SysResourceDto.cs
│ └── EntityHumpHelper.cs
├── SuperGMS.Extend.csproj
├── Extensions
│ ├── TaskExCallBackResult.cs
│ ├── TaskExArgs.cs
│ └── TaskExResult.cs
├── BaseAppExtend
│ └── EditFormFieldHelper
│ │ ├── ValidateType.cs
│ │ ├── EditFormAttribute.cs
│ │ ├── ControlType.cs
│ │ └── EditFormApiArgs.cs
├── Print
│ └── PrintParamDto.cs
├── BackGroundMessage
│ ├── SetBackGroudMessageArgs.cs
│ └── BackGroundMessageProcessArgs.cs
└── MicroServiceAssembly.cs
└── README.md
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-architect
--------------------------------------------------------------------------------
/class.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/class.png
--------------------------------------------------------------------------------
/level.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/level.png
--------------------------------------------------------------------------------
/class_ext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/class_ext.png
--------------------------------------------------------------------------------
/inter_new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/inter_new.png
--------------------------------------------------------------------------------
/SuperGMS.RpcProxyTools/说明.txt:
--------------------------------------------------------------------------------
1 | 如果出现无法加载的提示,需要检查,工具的SuperGMS的版本跟要生成代理微服务的引用是同一个版本,否则会失败
2 |
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/Config/sqlmap.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config/sqlmap.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/Config/DataBase.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/Config/database.pre.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config/database.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/Config/database.prod.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/Config/database.test.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config/database.pre.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config/database.prod.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config/database.test_a.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config/database.test_b.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/1.Grpc/Protos/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/SuperGMS/Rpc/1.Grpc/Protos/readme.txt
--------------------------------------------------------------------------------
/SuperGMS/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "SuperGMS": {
4 | "commandName": "Project"
5 | }
6 | }
7 | }
--------------------------------------------------------------------------------
/SuperGMS/Rpc/0.Thrift/Server/ThriftService.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/SuperGMS/Rpc/0.Thrift/Server/ThriftService.cs
--------------------------------------------------------------------------------
/SuperGMS.RpcProxyTools/InterfaceBodyTemplate.txt:
--------------------------------------------------------------------------------
1 | #return_type# #clazz_name#(#args_type# valueArgs,out StatusCode code,RpcContext context);
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/ImportExport/ImportResultDto.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.ImportExport
2 | {
3 | public class ImportResultDto
4 | {
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/DynamicSearch/Model/QueryMethod.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/SuperGMS/DB/EFEx/DynamicSearch/Model/QueryMethod.cs
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/DynamicSearch/Model/QueryModel.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgonggithub/SuperGMS/HEAD/SuperGMS/DB/EFEx/DynamicSearch/Model/QueryModel.cs
--------------------------------------------------------------------------------
/SuperGMS/Rpc/AssemblyTools/InterfaceBodyTemplate.txt:
--------------------------------------------------------------------------------
1 | #return_type# #clazz_name#(#args_type# valueArgs,out StatusCode code,RpcContext context);
2 |
3 |
4 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/0.Thrift/Server/Thrift.Thrift:
--------------------------------------------------------------------------------
1 | namespace csharp SuperGMS.GrantRpc.Thrift.IGrantRpc
2 |
3 | service GrantService{
4 | string Send(1:string my_args)
5 | }
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
2 |
3 | WORKDIR /publish_dir
4 | COPY . /publish_dir/
5 | ENTRYPOINT ["dotnet", "SuperGMS.HttpProxy.dll"]
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://localhost/config.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/config.pre.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://xxx.com/config/config.pre.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/config.prod.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://xxx.com/config/config.prod.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config.pre.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://xxx.com/config/config.pre.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config.prod.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://xxx.com/config/config.prod.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/config.test_a.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://192.168.1.201/config/config.test_a.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/config.test_b.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 4,
5 | "Ip": "192.168.100.172:8848",
6 | "SessionTimeout": 5000
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config.test_a.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://192.168.100.201/config/config.test_a.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/config.test_b.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://192.168.100.201/config/config.test_b.json"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/NotImportAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.AttributeEx
4 | {
5 | ///
6 | /// 非导入属性标签
7 | ///
8 | public class NotImportAttribute : Attribute
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/SuperGMS/SqlMap.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | select a,b,c from xxx where a=xx
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/ErrorCodeAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.AttributeEx
4 | {
5 | ///
6 | /// 系统错误码定义属性,协助帮助子系统抓取各个微服务定义的错误码
7 | ///
8 | public class ErrorCodeAttribute : Attribute
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/SuperGMS.RpcProxyTools/ClassBodyTemplate.txt:
--------------------------------------------------------------------------------
1 | public #return_type# #clazz_name#(#args_type# valueArgs,out StatusCode code,RpcContext context)
2 | {
3 | return RpcClientManager.Send<#args_type#,#return_type#>(serviceName, "#clazz_name#",valueArgs, context, out code);
4 | }
5 |
6 |
7 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/AssemblyTools/ClassBodyTemplate.txt:
--------------------------------------------------------------------------------
1 | public #return_type# #clazz_name#(#args_type# valueArgs,out StatusCode code,RpcContext context)
2 | {
3 | return GrantRpcClientManager.Send<#args_type#,#return_type#>(serviceName, "#clazz_name#",valueArgs, context, out code);
4 | }
5 |
6 |
7 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/FileServer/FileOperateAction.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.FileServer
2 | {
3 | ///
4 | /// 文件操作动作
5 | ///
6 | public enum FileOperateAction
7 | {
8 | FileUpload = 1,
9 | FileDownload,
10 | FileDelete,
11 | DirCreate,
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/1.Grpc/Protos/GrantGrpc.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | option csharp_namespace = "SuperGMS.Rpc.Grpc.Server";
4 |
5 | package GrpcService;
6 |
7 | service GrpcService{
8 | rpc Send(GRpcRequest) returns (GrpcResponse);
9 | }
10 |
11 | message GRpcRequest
12 | {
13 | string my_args=1;
14 | }
15 |
16 | message GrpcResponse
17 | {
18 | string my_result=1;
19 | }
--------------------------------------------------------------------------------
/SuperGMS/Extensions/Enum/HashKeyType.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extensions.Enum
2 | {
3 | ///
4 | /// Hash Key 枚举
5 | ///
6 | public enum HashKeyType
7 | {
8 | ///
9 | /// 默认资源
10 | ///
11 | LocalResource,
12 |
13 | ///
14 | /// 租户级别
15 | ///
16 | TtResource,
17 | }
18 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/DynamicSearch/Model/PageResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace SuperGMS.DB.EFEx.DynamicSearch.Model
6 | {
7 | ///
8 | /// rpc返回接口的泛型对象, 继承此对象
9 | ///
10 | public class PageResult
11 | {
12 | public PageInfo Page { set; get; }
13 | public List ListValue { set; get; }
14 | }
15 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbContext/ISqlSugarDbContext.cs:
--------------------------------------------------------------------------------
1 | using SqlSugar;
2 | using SuperGMS.DB.EFEx.CrudRepository;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | namespace SuperGMS.DB.EFEx.MyDbContext
10 | {
11 | public interface ISqlSugarDbContext : IDbContext
12 | {
13 | ISqlSugarClient GetRepository();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/ServerStatus.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Rpc
2 | {
3 | public enum ServerStatus
4 | {
5 | ///
6 | /// 运行
7 | ///
8 | Running=1,
9 | ///
10 | /// 不存在,要么没安装,要么已卸载
11 | ///
12 | NotExist=2,
13 | ///
14 | /// 异常停止
15 | ///
16 | ErrorStop=3,
17 |
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/SuperGMS/UserSession/UserLoginInfo/Role.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.UserSession
2 | {
3 | ///
4 | /// 角色功能权限
5 | ///
6 | public class Role
7 | {
8 | ///
9 | /// 角色Id
10 | ///
11 | public int RoleId { get; set; }
12 | ///
13 | /// 角色名称
14 | ///
15 | public string RoleName { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/FileServer/CheckFileRightResult.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.FileServer
2 | {
3 | ///
4 | /// 检查结果
5 | ///
6 | public class CheckFileRightResult
7 | {
8 | ///
9 | /// 结果
10 | ///
11 | public bool Result { get; set; }
12 |
13 | ///
14 | /// 结果消息
15 | ///
16 | public string Message { get; set; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/Tools/SysResourceDto.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.Tools
2 | {
3 | ///
4 | /// 系统资源文件,兼顾其他系统
5 | ///
6 | public class SysResourceDto
7 | {
8 | ///
9 | /// 资源key,子系统同语种内唯一
10 | ///
11 | public string ResourceKey { get; set; }
12 |
13 | ///
14 | /// 键值
15 | ///
16 | public string ViewText { get; set; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/FileServer/FileUploadInfo.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.FileServer
2 | {
3 | ///
4 | /// 文件上传信息
5 | ///
6 | public class FileUploadInfo
7 | {
8 | ///
9 | /// Gets or sets 远程服务器名称
10 | ///
11 | public string FileName { get; set; }
12 |
13 | ///
14 | /// Gets or sets 上传业务Guid
15 | ///
16 | public string Guid { get; set; }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/Manage/AppServerInfo.cs:
--------------------------------------------------------------------------------
1 | /*using System;
2 |
3 | namespace SuperGMS.Rpc
4 | {
5 | public class AppServerInfo
6 | {
7 | public GrantServerConfig Config { get; set; }
8 |
9 | public ServerStatus Status { get; set; }
10 | ///
11 | /// 占用内存cpu的情况
12 | ///
13 | //public computerInfo info { get; set; }
14 |
15 | public long Memory { get; set; }
16 |
17 | public TimeSpan Cputime { get; set; }
18 | }
19 | }
20 | */
--------------------------------------------------------------------------------
/SuperGMS/Router/IUri.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Router
5 | 文件名:IUri
6 | 创建者:grant (巩建春 e-mail : nnn987@126.com ; QQ:406333743; Tel:+86 15619212255)
7 | CLR版本:4.0.30319.42000
8 | 时间:2017/4/19 16:26:37
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | namespace SuperGMS.Router
15 | {
16 | public interface IUri
17 | {
18 | IUri Parse(string uri);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SuperGMS.HttpProxy/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "ServerConfig": {
3 | "ConfigCenter": {
4 | "ConfigType": 3,
5 | "Ip": "http://localhost/config.json"
6 | }
7 | }
8 | }
9 | //{
10 | // "ServerConfig": {
11 | // "ConfigCenter": {
12 | // "ConfigType": 4,
13 | // "Ip": "http://192.168.1.172:8848",
14 | // "SessionTimeout": 5000
15 | // }
16 | // }
17 | //}
18 |
19 | //{
20 | // "ServerConfig": {
21 | // "ConfigCenter": {
22 | // "ConfigType": 2,
23 | // "Ip": "192.168.1.172:2181",
24 | // "SessionTimeout": 10000
25 | // }
26 | // }
27 | //}
--------------------------------------------------------------------------------
/SuperGMS/Config/DataBase/Master.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Config.Models.DataBase
5 | 文件名: Master
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/22 11:41:15
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// Master
17 | ///
18 | internal class Master : DbIpPort
19 | {
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/SuperGMS/Config/DataBase/DataBaseInfo.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Config
5 | 文件名: DataBaseInfo
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/19 16:07:16
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// DataBaseInfo
17 | ///
18 | public class DataBaseInfo
19 | {
20 |
21 | }
22 | }
--------------------------------------------------------------------------------
/SuperGMS/Tools/ExtentionTool.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Tools
2 | {
3 | ///
4 | /// 扩展类
5 | ///
6 | public static class ExtentionTool
7 | {
8 | ///
9 | /// Copy 方法, 解决引用类型无法复制问题
10 | ///
11 | /// 类型
12 | /// 对象
13 | /// 新对象
14 | public static T GrantCopy(this T obj)
15 | {
16 | return JsonEx.JsonConvert.DeserializeObject(JsonEx.JsonConvert.JsonSerializer(obj));
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/SuperGMS.Extend/SuperGMS.Extend.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net8.0
5 | 12
6 | 6.2.1
7 | gongjianchun
8 | SuperGMS
9 |
10 |
11 | true
12 | SuperGMS
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/ImportExport/ImportParamDto.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.ImportExport
2 | {
3 | ///
4 | /// 导入参数
5 | ///
6 | public class ImportParamDto
7 | {
8 | ///
9 | /// Gets or sets 远程服务器名称
10 | ///
11 | public string FileName { get; set; }
12 |
13 | ///
14 | /// Gets or sets 上传业务Guid
15 | ///
16 | public string Guid { get; set; }
17 |
18 | ///
19 | /// 保留字段
20 | ///
21 | public string Reserve { get; set; }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/SuperGMS/DB/AttributeEx/ViewOraModelAttribute.cs:
--------------------------------------------------------------------------------
1 | //
2 | // 文件:OraModelAttribute.cs
3 | // 作者:Grant
4 | // 最后更新日期:2014-8-20
5 | using System;
6 |
7 | namespace SuperGMS.DB.AttributeEx
8 | {
9 | public class ViewOraModelAttribute : Attribute
10 | {
11 | ///
12 | /// 原始对象
13 | ///
14 | public Type OraModel { get; set; }
15 |
16 |
17 | ///
18 | /// 记录原始Model
19 | ///
20 | ///
21 | public ViewOraModelAttribute(Type oraModel)
22 | {
23 | OraModel = oraModel;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/ImportCommentAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.AttributeEx
4 | {
5 | ///
6 | /// 导入模板中的说明内容,此内容会生成到导入模板的第一行中
7 | ///
8 | public class ImportCommentAttribute : Attribute
9 | {
10 | ///
11 | /// 默认构造函数,需要传递导入列的说明
12 | ///
13 | /// 导入列的说明, 会根据字符串获取多语言
14 | public ImportCommentAttribute(string comment)
15 | {
16 | Commont = comment;
17 | }
18 |
19 | ///
20 | /// 备注内容
21 | ///
22 | public string Commont { get; set; }
23 | }
24 | }
--------------------------------------------------------------------------------
/SuperGMS/Rpc/SuperGMSServer.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Thrift.Server
5 | 文件名:GrantServer
6 | 创建者:grant (巩建春 e-mail : nnn987@126.com ; QQ:406333743; Tel:+86 15619212255)
7 | CLR版本:4.0.30319.42000
8 | 时间:2017/4/19 14:50:44
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Rpc
14 | {
15 | public class SuperGMSServer
16 | {
17 | public SuperGMSBaseServer Server { get; set; }
18 |
19 | public SuperGMSServerConfig Config { get; set; }
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/SuperGMS/FileEx/IUdfButtonJob.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace SuperGMS.FileEx
4 | {
5 | ///
6 | /// 自定义按钮接口
7 | /// 当自定义按钮是以Job形式运行,则会通过接口实例化一个Job对象并调用Excute方法
8 | /// 需要将主键数组传入进来
9 | ///
10 | public interface IUdfButtonJob
11 | {
12 | ///
13 | /// 执行方法
14 | ///
15 | ///
16 | /// 关于对象的泛型主键集合
17 | ///
18 | ///
19 | /// 自定义按钮ID
20 | ///
21 | ///
22 | ///
23 | string Excute(List listObject, string buttonId);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/SuperGMS/Protocol/RpcProtocol/ClientTypeParser.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.Protocol.RpcProtocol
4 | {
5 | ///
6 | /// 客户端转换类
7 | ///
8 | public class ClientTypeParser
9 | {
10 | ///
11 | /// 转换客户端类型为枚举
12 | ///
13 | /// 客户端类型字符串
14 | /// 枚举
15 | public static ClientType Parser(string clientType)
16 | {
17 | if (!Enum.TryParse(clientType,true, out var ct))
18 | {
19 | ct = ClientType.Unkunwn;
20 | }
21 |
22 | return ct;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/SuperGMS.Extend/Extensions/TaskExCallBackResult.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Extend.Extensions
5 | 文件名: TaskExCallBackResult
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/11 19:07:24
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Extend.Extensions
14 | {
15 | ///
16 | /// TaskExCallBackResult
17 | ///
18 | public class TaskExCallBackResult
19 | {
20 | public object SetCallBackData { get; set; }
21 | }
22 | }
--------------------------------------------------------------------------------
/SuperGMS/Config/DataBase/Slave.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Config.Models.DataBase
5 | 文件名: Slave
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/22 11:42:10
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// Slave
17 | ///
18 | internal class Slave : DbIpPort
19 | {
20 | ///
21 | /// Gets or sets 索引
22 | ///
23 | public int Pool { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/SuperGMS/Router/TTIDUri.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Router
5 | 文件名: TTIDUri
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/11/20 13:38:59
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 |
15 | namespace SuperGMS.Router
16 | {
17 | ///
18 | /// TTIDUri
19 | ///
20 | public class TTIDUri : IUri
21 | {
22 | public IUri Parse(string uri)
23 | {
24 | throw new NotImplementedException();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SuperGMS/Router/UserUri.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Router
5 | 文件名: UserUri
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/11/20 13:38:32
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 |
15 | namespace SuperGMS.Router
16 | {
17 | ///
18 | /// UserUri
19 | ///
20 | public class UserUri : IUri
21 | {
22 | public IUri Parse(string uri)
23 | {
24 | throw new NotImplementedException();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SuperGMS/Config/HttpProxy/HttpProxyItem.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Config
5 | 文件名: HttpProxyItem
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/19 16:20:10
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// HttpProxyItem
17 | ///
18 | public class HttpProxyItem
19 | {
20 | ///
21 | ///
22 | ///
23 | public string Name { get; set; }
24 | }
25 | }
--------------------------------------------------------------------------------
/SuperGMS/Properties/PublishProfiles/FolderProfile.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | FileSystem
9 | Release
10 | netcoreapp2.0
11 | bin\Release\PublishOutput
12 |
13 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/TaskWorker/TaskWorker.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Rpc.TaskWorker
2 | {
3 | ///
4 | /// 长轮询的一个Base服务
5 | ///
6 | public class TaskWorker : SuperGMSBaseServer
7 | {
8 | private SuperGMSServerConfig server;
9 |
10 | ///
11 | ///
12 | ///
13 | protected override void Dispose()
14 | {
15 | }
16 |
17 | ///
18 | /// 定时任务的服务不需要注册,直接通过InitlizeMethodAttribute属性初始化
19 | ///
20 | ///
21 | protected override void ServerRegister(SuperGMSServerConfig server, string[] args)
22 | {
23 | this.server = server;
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/SuperGMS/Rpc/2.Server/UnRegisterMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.GrantRpc.Server
5 | 文件名: UnRegisterMethodAttribute
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/9/28 16:52:06
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | using System;
15 |
16 | namespace SuperGMS.Rpc.Server
17 | {
18 | ///
19 | /// 标记为当前属性的方法,将在服务卸载,停止时调用,来执行清理工作
20 | ///
21 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
22 | public class UnRegisterMethodAttribute : Attribute
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/SuperGMS.Extend/BaseAppExtend/EditFormFieldHelper/ValidateType.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Extend.BaseAppExtend.EditFormFieldHelper
5 | 文件名: ValidateType
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/1/24 13:56:19
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 | using System.Collections.Generic;
15 | using System.Text;
16 |
17 | namespace SuperGMS.Extend.BaseAppExtend.EditFormFieldHelper
18 | {
19 | ///
20 | /// ValidateType 验证类型
21 | ///
22 | public enum ValidateType : int
23 | {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/ConfigTemplate.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Rpc
5 | 文件名: ConfigTemplate
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/3/14 10:41:12
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Rpc
14 | {
15 | ///
16 | /// ConfigTemplate
17 | ///
18 | public class ConfigTemplate
19 | {
20 | public const string RPC_CLIENT= "< Client ServerName=\"{0}\" RouterType=\"random\"> ";
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/SuperGMS/DataBase.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 一个NetCore的微服务框架,当前版本支持Net6 (3.1版本见分支NetCore3.1)
2 |
3 | #一、逻辑结构图
4 |
5 | 
6 |
7 | #二、拓扑结构图
8 |
9 | 
10 |
11 | #三、类库结构图
12 | (一)、基础类库
13 |
14 | 
15 |
16 | (二)、扩展类库
17 |
18 | 
19 |
20 | ## -----注意:有时候由于某些情况,可能图片无法正常展示,如果看不到图片,可以尝试下载源码项目中的图片到本地查看----
21 |
22 | 说明: 为了支持开源和犒劳作者的辛苦付出,你可以向作者捐赠,一表对作者辛苦劳动的尊重(微信捐赠二维码见下图)
23 |
24 | 
25 |
26 |
27 | 作者: grant (巩建春)
28 | email: nnn987@126.com
29 | QQ: 406333743
30 |
31 |
32 | 欢迎交流!
33 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/Print/PrintParamDto.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Extend.Print
2 | {
3 | ///
4 | /// 打印参数
5 | ///
6 | public class PrintParamDto
7 | {
8 | /// 打印模板文件guid
9 | public string TemplateGuid { get; set; }
10 |
11 | ///
12 | /// 系统id
13 | ///
14 | public string SysId { get; set; }
15 |
16 | ///
17 | /// 模块名称,迷失时验证用,或显示用
18 | ///
19 | public string ModelName { get; set; }
20 |
21 | ///
22 | /// 业务id集合
23 | ///
24 | public string[] Ids { get; set; }
25 |
26 | ///
27 | /// 保留字段
28 | ///
29 | public string Reserve { get; set; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SuperGMS/Config/ConstKeyValue/ConstItem.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Config
5 | 文件名: ConstItem
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/19 16:10:28
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// ConstItem
17 | ///
18 |
19 | public class ConstItem
20 | {
21 | ///
22 | ///
23 | ///
24 | public string Key { get; set; }
25 | ///
26 | ///
27 | ///
28 | public string Value { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/SuperGMS/Rpc/2.Server/InitlizeMethodAttribute.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.GrantRpc.Server
5 | 文件名:InitlizeMethodAttribute
6 | 创建者:grant (巩建春 e-mail : nnn987@126.com ; QQ:406333743; Tel:+86 15619212255)
7 | CLR版本:4.0.30319.42000
8 | 时间:2017/4/19 17:59:56
9 |
10 | 功能描述:用于标记一个需要在系统加载时初始化的类和方法
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | using System;
15 |
16 | namespace SuperGMS.Rpc.Server
17 | {
18 | ///
19 | /// 微服务启动中需要初始化的方法标签, 此标签必须同时标记类 和 方法才生效
20 | ///
21 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
22 | public class InitlizeMethodAttribute : Attribute
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/SuperGMS/Config/FileServer/FileServerItem.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Config
5 | 文件名: FileServerItem
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/19 16:23:33
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// FileServerItem
17 | ///
18 | public class FileServerItem
19 | {
20 | ///
21 | ///
22 | ///
23 | public int Pool { get; set; }
24 |
25 | ///
26 | ///
27 | ///
28 | public string Url { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/SuperGMS/Config/DataBase/SqlMap.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Config
5 | 文件名: SqlMap
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/19 16:08:02
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | namespace SuperGMS.Config
14 | {
15 | ///
16 | /// SqlMap
17 | ///
18 | internal class SqlMap
19 | {
20 | ///
21 | ///
22 | ///
23 | //public grantOmsDBContext grantOmsDBContext { get; set; }
24 | ///
25 | ///
26 | ///
27 | //public string grantUUIDDBContext { get; set; }
28 | }
29 | }
--------------------------------------------------------------------------------
/SuperGMS/Config/DataBase/DbIpPort.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Config.Models.DataBase
5 | 文件名: DbIpPort
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/22 11:49:09
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | namespace SuperGMS.Config
15 | {
16 | ///
17 | /// DbIpPort
18 | ///
19 | internal class DbIpPort
20 | {
21 | ///
22 | /// Gets or sets 数据库Ip
23 | ///
24 | public string Ip { get; set; }
25 |
26 | ///
27 | /// Gets or sets 数据库Port
28 | ///
29 | public int Port { get; set; }
30 | }
31 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbContext/IDbContext.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbContext
5 | 文件名: IGrantDbContext
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/3 0:38:27
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 | using System.Collections.Generic;
15 | using System.Text;
16 |
17 | namespace SuperGMS.DB.EFEx
18 | {
19 | ///
20 | /// IGrantDbContext
21 | ///
22 | public interface IDbContext : IDisposable
23 | {
24 | ///
25 | /// 获取数据库信息
26 | ///
27 | ///
28 | DbInfo DbInfo { get; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/UdfModelAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.AttributeEx
4 | {
5 | ///
6 | /// 指定参数模型约束符合 udf模型定义的约束
7 | ///
8 | public class UdfModelAttribute : Attribute
9 | {
10 | ///
11 | /// 指定dto的自定义模型 遵守的原型
12 | ///
13 | ///
14 | ///
15 | public UdfModelAttribute(string sysId, string modelName)
16 | {
17 | this.SysId = sysId;
18 | this.ModelName = modelName;
19 | }
20 |
21 | ///
22 | /// sysId
23 | ///
24 | public string SysId { get; set; }
25 | ///
26 | /// 模型名称
27 | ///
28 | public string ModelName { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/SuperGMS/SuperGMSHost.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS
5 | 文件名: GrantHost
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/11/22 18:46:19
9 |
10 | 功能描述:
11 | dev
12 | dev
13 | ----------------------------------------------------------------*/
14 |
15 | namespace SuperGMS
16 | {
17 | ///
18 | /// GrantHost,这个主要是提供一个通用的Host程序,在HttpProxy引用的时候
19 | ///
20 | //class GrantHost
21 | //{
22 | // static void Main(string[] args)
23 | // {
24 | // Console.WriteLine("app start!");
25 | // ServerProxy.Register();
26 | // Console.WriteLine("start ok");
27 | // System.Threading.Thread.Sleep(int.MaxValue);
28 | // }
29 | //}
30 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbFactory/MySql.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbFactory
5 | 文件名: MySql
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/31 21:37:39
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 |
15 | namespace SuperGMS.DB.EFEx.GrantDbFactory
16 | {
17 | ///
18 | /// MySql
19 | ///
20 | public class MySql : DbBase
21 | {
22 | ///
23 | /// Gets mysql的参数前缀
24 | ///
25 | protected override string Prefix
26 | {
27 | get { return "@"; }
28 | }
29 |
30 | public MySql(DbInfo dbInfo)
31 | : base(dbInfo)
32 | {
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/SuperGMS.Extend/FileServer/DownFileInfo.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) PlaceholderCompany. All rights reserved.
3 | //
4 | namespace SuperGMS.Extend.FileServer
5 | {
6 | ///
7 | /// 下载文件参数
8 | ///
9 | public class DownFileInfo
10 | {
11 | ///
12 | /// Gets or sets 远程文件路径
13 | ///
14 | public string File { get; set; }
15 |
16 | ///
17 | /// Gets or sets 文件原始名称
18 | ///
19 | public string FileName { get; set; }
20 |
21 | ///
22 | /// Gets or sets 错误引导页面
23 | ///
24 | public string ErrUri { get; set; }
25 |
26 | ///
27 | /// Gets or sets token
28 | ///
29 | public string Token { get; set; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SuperGMS/Rpc/Nullables.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Utility
5 | 文件名:Class1
6 | 创建者:grant (巩建春 e-mail : nnn987@126.com ; QQ:406333743; Tel:+86 15619212255)
7 | CLR版本:4.0.30319.42000
8 | 时间:2017/4/19 16:33:11
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 |
15 | namespace SuperGMS.Rpc
16 | {
17 | ///
18 | /// 系统可空类型
19 | ///
20 | [Serializable]
21 | public class Nullables
22 | {
23 | private static Nullables nullValue;
24 |
25 | public static Nullables NullValue
26 | {
27 | get
28 | {
29 | nullValue = new Nullables();
30 | return nullValue;
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/SuperGMS/Tools/C.cs:
--------------------------------------------------------------------------------
1 | using SuperGMS.Cache;
2 |
3 | namespace SuperGMS.Tools
4 | {
5 | ///
6 | /// 简写类, 调用资源文件
7 | ///
8 | public static class C
9 | {
10 | ///
11 | /// 方便用户直接使用C.R() 来获取资源文件,更少的参数,可以采用 RpcContext.R("key")
12 | ///
13 | /// 资源key
14 | /// 语言种类
15 | /// 资源文字
16 | public static string R(string resourceName, string lang)
17 | {
18 | string field = CacheTools.GetPublicResourceKey(lang);
19 | var res = ResourceCache.Instance.GetHash(field, resourceName);
20 | return string.IsNullOrEmpty(res) ? resourceName : res; // 没有取到资源文件把key原样返回;
21 | // return ResourceCache.Instance.GetHash(resourceName, $"LocalResource.{subSystem}.{lang}");
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/IContextOptionFactory.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx
5 | 文件名: IContextOptionFactory
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/2 19:53:33
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 | using System.Collections.Generic;
15 | using System.Text;
16 | using Microsoft.EntityFrameworkCore;
17 |
18 | namespace SuperGMS.DB.EFEx
19 | {
20 | ///
21 | /// IContextOptionFactory
22 | ///
23 | public interface IContextOptionBuilderFactory
24 | {
25 | DbContextOptionsBuilder CreateOptionsBuilder(string connectionString)
26 | where T : DbContext;
27 |
28 | string GetConnectionString(DbInfo dbInfo);
29 |
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/OraModelAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.AttributeEx
4 | {
5 | ///
6 | /// 原始模型,用来获取数据长度,自动构建验证框架,QtFrom控件使用
7 | /// 另外自定义列表和编辑时也会用oraModel匹配自定义属性
8 | ///
9 | ///
10 | public class OraModelAttribute : Attribute
11 | {
12 | ///
13 | /// 记录原始Model,用来获取MaxLength
14 | ///
15 | /// 原始模型
16 | /// dbcontext
17 | public OraModelAttribute(Type oraModel, Type dbContext)
18 | {
19 | OraModel = oraModel;
20 | DbContext = dbContext;
21 | }
22 |
23 | ///
24 | /// 原始对象
25 | ///
26 | public Type OraModel { get; set; }
27 |
28 | ///
29 | /// 数据库
30 | ///
31 | public Type DbContext { get; set; }
32 | }
33 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbContext/IEFDbContext.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbContext
5 | 文件名: IGrantEFDbContext
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/31 16:55:31
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Linq.Expressions;
18 | using System.Text;
19 | using SuperGMS.DB.EFEx.DynamicSearch;
20 |
21 | namespace SuperGMS.DB.EFEx.GrantDbContext
22 | {
23 | ///
24 | /// IGrantEFDbContext
25 | ///
26 | public interface IEFDbContext : IDbContext
27 | {
28 | ICrudRepository GetRepository()
29 | where TEntity : class;
30 | void Commit();
31 | }
32 | }
--------------------------------------------------------------------------------
/SuperGMS/Cache/CacheDefault.cs:
--------------------------------------------------------------------------------
1 | namespace SuperGMS.Cache
2 | {
3 | ///
4 | /// DefaultCache
5 | ///
6 | public class DefaultCache
7 | {
8 | private static ICache _instance;
9 |
10 | ///
11 | /// 操作redis的实例
12 | ///
13 | public static ICache Instance
14 | {
15 | get { return _instance; }
16 | }
17 |
18 | //[InitlizeMethod]
19 | internal static void Initlize()
20 | {
21 | _instance = new RedisCache();
22 | }
23 |
24 | ///
25 | /// 单元测试时, Mock 缓存时,使用,手动初始化
26 | ///
27 | /// Mock 的缓存
28 | internal static void Initlize(ICache cache)
29 | {
30 | if (_instance == null && cache != null)
31 | {
32 | _instance = cache;
33 | }
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbContext/IDapperDbContext.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbContext
5 | 文件名: IGrantDapperDbContext
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/31 16:56:49
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 | using System.Collections.Generic;
15 | using System.Text;
16 | using SuperGMS.DB.EFEx.CrudRepository;
17 |
18 | namespace SuperGMS.DB.EFEx.GrantDbContext
19 | {
20 | ///
21 | /// IGrantDapperDbContext
22 | ///
23 | public interface IDapperDbContext : IDbContext
24 | {
25 | ///
26 | /// GetRepository()
27 | ///
28 | /// ISqlRepository
29 | ISqlRepository GetRepository();
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbFactory/SqlPara.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbFactory
5 | 文件名: SqlPara
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/11/12 17:42:59
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using Dapper;
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Data.Common;
17 | using System.Text;
18 |
19 | namespace SuperGMS.DB.EFEx.GrantDbFactory
20 | {
21 | ///
22 | /// SqlPara
23 | ///
24 | public class SqlPara
25 | {
26 | public string sql { get; set; }
27 |
28 | public DynamicParameters parameters { get; set; }
29 |
30 | public object param { get; set; }
31 |
32 | public DbTransaction dbTransaction { get; set; }
33 |
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/SuperGMS.RpcProxyTools/SuperGMS.RpcProxyTools.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Always
17 |
18 |
19 | Always
20 |
21 |
22 | Always
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/SuperGMS/Config/Redis/RedisNode.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Config
5 | 文件名: NodeItem
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/19 16:14:22
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System.Collections.Generic;
14 |
15 | namespace SuperGMS.Config
16 | {
17 | ///
18 | /// NodeItem
19 | ///
20 | public class RedisNode
21 | {
22 | ///
23 | ///
24 | ///
25 | public string NodeName { get; set; }
26 |
27 | ///
28 | ///
29 | ///
30 | public bool IsMasterSlave { get; set; }
31 |
32 | ///
33 | ///
34 | ///
35 | public List Items { get; set; }
36 | }
37 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbFactory/PostgreSql.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbFactory
5 | 文件名:PostgreSql.cs
6 | 创建者:grant (巩建春 e-mail : nnn987@126.com ; QQ:406333743; Tel:+86 15619212255)
7 | CLR版本:4.0.30319.42000
8 | 时间:2019/9/11 15:25:29
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 | using System.Collections.Generic;
15 | using System.Text;
16 |
17 | namespace SuperGMS.DB.EFEx.GrantDbFactory
18 | {
19 | ///
20 | ///
21 | ///
22 | ///
23 | public class PostgreSql : DbBase
24 | {
25 | public PostgreSql(DbInfo dbInfo) : base(dbInfo)
26 | {
27 | }
28 | ///
29 | /// 参数前缀
30 | ///
31 | protected override string Prefix => ":";
32 | }
33 | }
--------------------------------------------------------------------------------
/SuperGMS/Zookeeper/BaseWatcher.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称: SuperGMS.Zookeeper
5 | 文件名: BaseWatcher
6 | 创建者: grant(巩建春) nnn987@126.com
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/4/18 11:25:52
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using org.apache.zookeeper;
14 |
15 | namespace SuperGMS.Zookeeper
16 | {
17 | public delegate void WatcherCallBack(string path,Watcher watcher,string state);
18 |
19 | ///
20 | /// BaseWatcher
21 | ///
22 | public abstract class BaseWatcher : Watcher
23 | {
24 | public event WatcherCallBack OnChange;
25 |
26 | public void CallBack(string path, Watcher watcher, string state)
27 | {
28 | if (OnChange != null)
29 | {
30 | OnChange(path,watcher,state);
31 | }
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/SuperGMS/Zookeeper/NullWatcher.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Zookeeper
5 | 文件名: NullWatcher
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2018/3/9 15:43:55
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using org.apache.zookeeper;
14 |
15 | using System.Threading.Tasks;
16 |
17 | namespace SuperGMS.Zookeeper
18 | {
19 | ///
20 | /// NullWatcher
21 | ///
22 | public class NullWatcher : Watcher
23 | {
24 | internal static readonly Task CompletedTask = Task.FromResult(1);
25 | public static readonly NullWatcher Instance = new NullWatcher();
26 |
27 | private NullWatcher()
28 | {
29 | }
30 |
31 | ///
32 | public override Task process(WatchedEvent @event)
33 | {
34 | return CompletedTask;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/SuperGMS.Extend/ImportExport/ExportParamDto.cs:
--------------------------------------------------------------------------------
1 | using SuperGMS.DB.EFEx.DynamicSearch;
2 |
3 | namespace SuperGMS.Extend.ImportExport
4 | {
5 | ///
6 | /// 导出参数
7 | ///
8 | public class ExportParamDto
9 | {
10 | /// 导出模板文件guid
11 | public string TemplateGuid { get; set; }
12 |
13 | ///
14 | /// 系统id
15 | ///
16 | public string SysId { get; set; }
17 |
18 | ///
19 | /// 模块名称,迷失时验证用,或显示用
20 | ///
21 | public string ModelName { get; set; }
22 |
23 | /// 搜索过滤参数
24 | public SearchParameters SearchParameters { get; set; }
25 |
26 | /// 从第几页开始
27 | public int FromPage { get; set; }
28 |
29 | /// 到第几页结束
30 | public int ToPage { get; set; }
31 |
32 | ///
33 | /// 保留字段
34 | ///
35 | public string Reserve { get; set; }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/OpenApiAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace SuperGMS.AttributeEx
5 | {
6 | ///
7 | /// 指定api为开放的供第三方调用Api
8 | ///
9 | public class OpenApiAttribute : Attribute
10 | {
11 | ///
12 | /// 初始化api为开放api
13 | ///
14 | ///
15 | /// api描述的资源Key
16 | public OpenApiAttribute(string keyDesc = "", string[] ttid = null)
17 | {
18 | this.Ttids = new List();
19 | if (ttid != null)
20 | {
21 | this.Ttids.AddRange(ttid);
22 | }
23 |
24 | this.ApiDesc = keyDesc;
25 | }
26 |
27 | ///
28 | /// 允许查看的ttid
29 | ///
30 | public List Ttids { get; set; }
31 |
32 | ///
33 | /// api描述资源Key
34 | ///
35 | public string ApiDesc { get; set; }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/SuperGMS/Config/ZKConfigSetting.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.Config
5 | 文件名: ZookeeperConfigSetting
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/11/13 18:10:27
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 | using System;
14 | using System.Xml.Linq;
15 |
16 | namespace SuperGMS.Config
17 | {
18 | ///
19 | /// ZKConfigSetting
20 | ///
21 | public class ZKConfigSetting
22 | {
23 | ///
24 | /// LoadConfig
25 | ///
26 | /// appName
27 | /// ip
28 | /// port
29 | /// xml
30 | public XElement LoadConfig(string appName, string ip, int port)
31 | {
32 | throw new NotImplementedException();
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbFactory/SqlServer.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbFactory
5 | 文件名: SqlServer
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/31 23:04:48
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Data;
17 | using System.Data.Common;
18 | using System.Text;
19 | using SuperGMS.DB.EFEx.CrudRepository;
20 | using SuperGMS.DB.EFEx.DynamicSearch;
21 |
22 | namespace SuperGMS.DB.EFEx.GrantDbFactory
23 | {
24 | ///
25 | /// SqlServer
26 | ///
27 | public class SqlServer : DbBase
28 | {
29 | public SqlServer(DbInfo dbInfo)
30 | : base(dbInfo)
31 | {
32 | }
33 |
34 | protected override string Prefix
35 | {
36 | get { return "@"; }
37 | }
38 |
39 | }
40 | }
--------------------------------------------------------------------------------
/SuperGMS/AttributeEx/CodeDescAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SuperGMS.AttributeEx
4 | {
5 | ///
6 | /// 错误代码描述属性
7 | ///
8 | public class CodeDescAttribute : Attribute
9 | {
10 | ///
11 | /// Initializes a new instance of the class.
12 | /// 默认构造函数,提供接口函数名称 和 错误描述信息
13 | /// 用于ErrorCode标记的枚举类的枚举属性上,辅助生成帮助文档
14 | ///
15 | /// 接口函数名称
16 | /// 错误描述信息
17 | public CodeDescAttribute(string desc, params string[] interfaceName)
18 | {
19 | InterfaceName = interfaceName;
20 | Description = desc;
21 | }
22 |
23 | ///
24 | /// Gets or sets 代码引用的接口
25 | ///
26 | public string[] InterfaceName { get; set; }
27 |
28 | ///
29 | /// Gets or sets 错误代码内容
30 | ///
31 | public string Description { get; set; }
32 | }
33 | }
--------------------------------------------------------------------------------
/SuperGMS/DB/EFEx/MyDbFactory/Oracle.cs:
--------------------------------------------------------------------------------
1 | /*----------------------------------------------------------------
2 | Copyright (C) 2018 SuperGMS (Grant 巩建春) 本软件的所有源码都可以免费的进行学习交流,切勿用于商业用途
3 |
4 | 项目名称:SuperGMS.DB.EFEx.GrantDbFactory
5 | 文件名: Oracle
6 | 创建者: grant(巩建春)
7 | CLR版本: 4.0.30319.42000
8 | 时间: 2017/12/31 23:02:52
9 |
10 | 功能描述:
11 |
12 | ----------------------------------------------------------------*/
13 |
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Data;
17 | using System.Data.Common;
18 | using System.Text;
19 | using Dapper;
20 | using SuperGMS.Config;
21 | using SuperGMS.DB.EFEx.CrudRepository;
22 | using SuperGMS.DB.EFEx.DynamicSearch;
23 |
24 | namespace SuperGMS.DB.EFEx.GrantDbFactory
25 | {
26 | ///
27 | /// Oracle
28 | ///
29 | public class Oracle : DbBase
30 | {
31 | public Oracle(DbInfo dbInfo)
32 | : base(dbInfo)
33 | {
34 | }
35 |
36 | protected override string Prefix
37 | {
38 | get { return ":"; }
39 | }
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/SuperGMS/ApiHelper/FieldDescInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace SuperGMS.ApiHelper
4 | {
5 | public class FieldDescInfo
6 | {
7 | public string FieldName { get; set; }
8 | public string ControlType { get; set; }
9 | public string GroupName { get; set; }
10 | public int IsHidden { get; set; }
11 | public string DefaultValue { get; set; }
12 | public int ReadOnly { get; set; }
13 | public int EditReadOnly { get; set; }
14 | public int CanHidden { get; set; }
15 | public int IsRequired { get; set; }
16 |
17 | public string ValidateRule { get; set; }
18 | public int MaxLength { get; set; }
19 | public decimal NumberMax { get; set; }
20 | public decimal NumberMin { get; set; }
21 | public int IsDigits { get; set; }
22 | public int DecimalDigits { get; set; }
23 | public string DateFormat { get; set; }
24 | public string DateDefaultTime { get; set; }
25 |
26 | public Dictionary DicSource { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/SuperGMS.WebSocketService/SendMessageToUser.cs:
--------------------------------------------------------------------------------
1 | using SuperGMS.Protocol.MQProtocol;
2 | using SuperGMS.Protocol.RpcProtocol;
3 | using SuperGMS.Rpc;
4 | using SuperGMS.Rpc.Server;
5 | using SuperGMS.WebSocketEx;
6 |
7 | namespace WebSocketService
8 | {
9 | ///
10 | /// 给指定的WebSocket客户端发送消息
11 | ///
12 | public class SendMessageToUser : RpcBaseServer, Nullables>
13 | {
14 | protected override Nullables Process(EventMsg