Esempio n. 1
0
 public wxDataController(TokenService token, ILog log, IDbConnection con, userCache uc)
 {
     this.token = token;
     this._db   = con;
     this._log  = log;
     this.usc   = uc;
 }
Esempio n. 2
0
 /// <summary>
 /// driver infomaction
 /// </summary>
 /// <param name="db"></param>
 public driverinfoController(IDbConnection db, userCache uc, RedisService redis, TokenService token, ILog log)
 {
     this.db    = db;
     this.redis = redis;
     this.token = token;
     this._uc   = uc;
     this._log  = log;
 }
Esempio n. 3
0
 /// <summary>
 /// driver infomaction
 /// </summary>
 /// <param name="db"></param>
 public ordersController(IDbConnection db, userCache uc, TokenService token)
 {
     this.db    = db;
     this.Uc    = uc;
     this.token = token;
     if (upt.AddMinutes(30) <= DateTime.Now)
     {
         this.db.Execute("update orders set state=3 where StartTime<CURRENT_TIMESTAMP");
         upt = DateTime.Now;
     }
 }
Esempio n. 4
0
 /// <summary>
 /// 用户信息
 /// </summary>
 public userinfoController(IDbConnection db, userCache uc)
 {
     this.db    = db;
     this.userc = uc;
 }
Esempio n. 5
0
 public DriverLocationController(IDbConnection db, userCache uc)
 {
     this.idb = db;
     this.uc  = uc;
 }