123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using Base;
- using Infrastructure;
- using Model;
- using SqlSugar.IOC;
- using Util;
- namespace SqlSugar
- {
- public enum DataPermiEnum
- {
- None = 0,
-
-
-
- All = 1,
-
-
-
- SELF = 5,
-
-
-
- DEPT = 3,
-
-
-
- CUSTOM = 2,
-
-
-
- DEPT_CHILD = 4
- }
-
-
-
- public class DataPermi
- {
-
-
-
-
- public static void FilterData(int configId)
- {
-
- var user = JwtUtil.GetLoginUser(App.HttpContext);
- if (user == null) return;
-
-
- var db = DbScoped.SugarScope.GetConnectionScope(configId);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- }
|