public BacsicsController(WeixiaoSysContext db, IMapper mapper, IOptions <RSASettings> setting) { rsa = new RSAHelper(RSAType.RSA2, Encoding.UTF8, setting.Value.PrivateKey, setting.Value.PublicKey, setting.Value.AppKey, setting.Value.SplitStr); // res = new RsaResponseDto(); result = new ResponseDto(); result.data = null; if (_db == null) { lock (this) { if (_db == null) { _db = db; } } } if (_mapper == null) { lock (this) { if (_mapper == null) { _mapper = mapper; } } } //if (_user==null) //{ // lock (this) // { // var auth = Request.HttpContext.AuthenticateAsync(); // var userData = auth.Result.Principal.Claims.FirstOrDefault(x => x.Type.Equals(ClaimTypes.UserData)).Value; // _user = JsonSerializer.Deserialize<EmployeeDto>(userData); // } //} }
public PowerService(WeixiaoSysContext context) { db = context; }
/// <summary> /// /// </summary> /// <param name="db"></param> /// <param name="mapper"></param> /// <param name="_jwtSettingsAccesser"></param> /// <param name="setting"></param> /// <returns></returns> public UserController(WeixiaoSysContext db, IMapper mapper, IOptions <JwtSettings> _jwtSettingsAccesser, IOptions <RSASettings> setting) : base(db, mapper, setting) { _jwtSettings = _jwtSettingsAccesser.Value; bll = new EmpService(db); }
public CompanyService(WeixiaoSysContext context) { db = context; }
public DepService(WeixiaoSysContext context) { db = context; }
public OperationService(WeixiaoSysContext context) { db = context; }
public MenuService(WeixiaoSysContext context) { db = new WeixiaoSysContext(); }
public RoleController(WeixiaoSysContext db, IMapper mapper, IOptions <RSASettings> setting) : base(db, mapper, setting) { bll = new RoleService(db); }
public EmpGroupService(WeixiaoSysContext context) { db = context; }
public UploadController(WeixiaoSysContext db, IMapper mapper, IOptions <RSASettings> setting) : base(db, mapper, setting) { }
public RoleService(WeixiaoSysContext context) { db = context; }
public AreaService(WeixiaoSysContext context) { db = new WeixiaoSysContext(); }
public PositionService(WeixiaoSysContext context) { db = context; }
// private readonly DepService bll; public FlowController(WeixiaoSysContext db, IMapper mapper, IOptions <RSASettings> setting) : base(db, mapper, setting) { // bll = new DepService(db); }