Comments (3)
写一个 MyEntityController 继承自 EntityController,里面重载OnActionExecuting设置地区,然后自己的控制器继承自 MyEntityController
from newlife.cube.
石头大佬威武
- public override void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext filterContext)
- {
- var user = ManageProvider.User;
- HttpContext.Items["userId"] = user.ID;
- base.OnActionExecuting(filterContext);
- }
from newlife.cube.
天有多高,心有多大,敢闯敢想!
from newlife.cube.
Related Issues (20)
- 增加配置开关启动时是否扫描菜单 HOT 1
- 支持增加外部验证服务
- 文件管理,支持查看目录大小
- 在集群部署时Cron作业被重复执行 HOT 1
- Cron作业增加开关是否写审计日志 HOT 1
- 角色与角色组无法保存
- 魔方OAuth设置,增加协议自适应,自动判断使用http还是https请求sso服务端,避免本地http请求https版本的sso
- 魔方,列表页支持配置新的分页方案,无需查询总行数,直接显示下一页,以支持海量数据列表显示。因为很多时候查询慢都在于SelectCount上面。
- 字段模型之间维护一个表间字段关联关系
- ReadonlyController页面也需要支持还原或者导入数据
- 用户上传头像后无法显示 HOT 1
- 文件上传需要校验后缀名(如头像上传)
- 图片上传提示上传成功但是没有返回图片地址 HOT 1
- 角色权限修改了之后返回的一直是空
- 魔方OAuth增加是否抓取头像的配置字段 HOT 1
- 列表页映射字段显示关联超链接时Title出现意外字符
- 分布式部署时需要把DataProtection密钥保存到Redis或者星尘 HOT 2
- OAuth登录失败时不要返回500
- 魔方Cron作业支持多个Cron表达式
- 新增角色,设置为禁用系统不可用,新增编辑用户时仍可以选择该角色 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newlife.cube.