Giter Site home page Giter Site logo

91270 / meiam.system Goto Github PK

View Code? Open in Web Editor NEW
726.0 726.0 172.0 1.9 MB

.NET 7 / .NET 5 WebAPI + Vue 2.0 + RBAC 企业级前后端分离权限框架

Home Page: http://www.592.la

License: Apache License 2.0

C# 48.45% JavaScript 6.62% HTML 0.05% Vue 31.10% TSQL 12.19% SCSS 1.60%
aop autofac cors csredis dbfirst filter mapster middleware net7 netcore nlog quartz rabbitmq redis service sqlsugar swagger token vue webapi

meiam.system's People

Contributors

91270 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meiam.system's Issues

关于全局日志

全局日志里面有记录Cookie, 但这个项目的运行逻辑,会清理过期session数据,所以无法追踪历史数据。

关于MapsterMapper

我在Startup中添加了
services.AddScoped<IMapper, ServiceMapper>();后导致项目无法启动是什么原因

大佬,项目跑起来,接口时间特别长

大佬,项目跑起来了,后台接口时间特别长,获取验证码用了一分钟
游览器上看,验证码的数据瞬间出来,但是还一直转圈,要等一分钟左右才停,F12查看 content download 时间都在这里消耗了

新增加菜单点击无反应

前置环境:本地配置,直接下载安装导入mysql数据库并修改appsettings.json相关参数配置如demo改为false。
运行9999登录后各菜单及功能均可用。

1、依照company新增一个菜单功能。操作如下
(1)mysql数据库新增加一个表定义gateway--- 参照base_company 正常,
(2)参照company在Meiam.System.Interfaces项目下各自相同的目录内分别新增IBaseGatewayService.cs,BaseGatewayService.cs、Base_Gateway.cs、GatewayDto.cs,
(3)在DbContext.cs增加一行public DbSet<Base_Gateway> BaseGatewayDb => new DbSet<Base_Gateway>(Db);
(4)在Meiam.System.Hostd增加Controllers\Basic\GatewayController.cs
以上编译正常无告警

2、Meiam.System.Web项目内
(1)src\views\basic下仿照company\index.js新增加一个gateway\index.js。替换company相同参数,列名按实际gateway表字段定义修改。
(2)src\api\basic下新增gateway.js,内容复制自company.js并替换内部company为gateway。
npm run dev 正常无告警,

3、登录系统
(1)在菜单管理中仿照“公司定义”新增“网关定义”菜单
(2) 权限定义增加“网关定义”共4项PRIV_GATEWAY_VIEW、PRIV_GATEWAY_CREATE、PRIV_GATEWAY_UPDATE、PRIV_GATEWAY_DELETE
(3)在”角色权限“选择系统管理员角度对新增加的”网关定义“项内4项”增加“、”删除”、”修”改、”浏览”选中并保存

4、重新启动Hostd项目,结束重新运行npm run dev
新增加的”网关定义“菜单已可见,但点击无反应,其它菜单功能正常。
点击 ”网关定义“从WEBAPI端看似乎web端没有发请求到webAPI端(Hostd),不知哪里出了问题?

quartz实例化会增加一个日志debug

日志内容:TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.

在StartpUp调用Task服务实例化的时候,用到了 Meiam.System.Tasks.TaskSchedulerServer 类

        /// <summary>
        /// 开启计划任务
        /// </summary>
        /// <returns></returns>
        private Task<IScheduler> GetTaskSchedulerAsync()
        {
            if (_scheduler != null)
            {
                return _scheduler;
            }

            NameValueCollection collection = new NameValueCollection
            {
                {
                    "quartz.serializer.type",
                    "binary"
                }
            };

            StdSchedulerFactory factory = new StdSchedulerFactory(collection);
            return _scheduler = factory.GetScheduler();  //这边创建的时候会进行debug日志写入
        }

quartz的源码也存在该报错的具体内容,quartz源码

        /// <summary>
        /// Initializes the thread pool for use
        /// </summary>
        /// <remarks>
        /// Note that after invoking this method, neither
        /// </remarks>
        public virtual void Initialize()
        {
            // Checking for null allows users to specify their own scheduler prior to initialization.
            // If this is undesirable, the scheduler should be set here unconditionally.
            if (Scheduler == null)
            {
                Scheduler = GetDefaultScheduler();
            }

            // Initialize the concurrency semaphore with the proper initial count
            concurrencySemaphore = new SemaphoreSlim(MaxConcurrency);
            isInitialized = true;

            log.Debug($"TaskSchedulingThreadPool configured with max concurrency of {MaxConcurrency} and TaskScheduler {Scheduler.GetType().Name}.");
        }

请教大佬如何解决这个日志报错

头像上传之后显示不出来

头像上传的本地路径是
"AvatarUpload": {
"AvatarDirectory": "D://wwwroot/avatars",
"AvatarUrl": "/"
},
本地能保存成功,但是系统加载不出来

关于多系统设置

字典定义中,预置了"SYSTEM_MENU_SYSTEM",那后续该如何使用?
大致看了一下,好像只有"菜单管理"功能可以根据对应系统进行区分设置。
其他涉及到权限管控的地方,似乎并没有做区分。
我尝试在预设的"微信小程序"系统下添加了菜单,但是在权限定义以及其他权限管理的地方并不能看到相应菜单信息。
另外,该Admin设计中,新增页面的浏览权限,必须要认为在"权限定义"中维护才行吗?这样似乎有些繁琐。

Cores

出现跨域问题怎么解决?This

很棒的项目

代码很工整,没有冗余,架构思路也容易理解,很适合我这样的小白新手。期待以后保持更新,没有联系方式,特意开个issue鼓励一下。

接口请求一直失败

前端后台都已经编译完成,登录之后一直显示接口请求失败。
后台后没有收到请求,断点没有进入
1607049844(1)
但是前端又显示请求成功:
1
4

vs2019(16.8.4) 启动运行时报错

2>------ 已启动生成: 项目: Meiam.System.Hostd, 配置: Debug Any CPU ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1662,5): error MSB4062: 未能从程序集 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll 加载任务“NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask”。程序集“NuGet.Build.Tasks, Version=5.8.1.7021, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中的类型“NuGet.Build.Tasks.RestoreTask”的方法“get_BuildEngine”没有实现。 请确认 声明正确,该程序集及其所有依赖项都可用,并且该任务包含实现 Microsoft.Build.Framework.ITask 的公共类。

关于RedisCache类的问题

public void Remove<V>(string key) { RedisServer.Cache.Del(key.Remove(0, 6)); }

为什么需要Remove(0,6)? 是不是写错了

新手小白怎么部署这个项目?

配置的sqlite数据库

然后一直提示:
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: Sys_TasksQz'.
这个数据库表是怎么建立 的呀?什么时间建立 ?从哪里建立 ,我看说明文档没写。。

发布部署失败

web api 和 前端都已经发布到IIS里面,可是两个站点都打不开,直接报404错误
web api 发布到本机IIS下的9014端口,
http://127.0.0.1:9014/
然后访问显示 404,
图片

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.