public wxDataController(TokenService token, ILog log, IDbConnection con, userCache uc) { this.token = token; this._db = con; this._log = log; this.usc = uc; }
/// <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; }
/// <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; } }
/// <summary> /// 用户信息 /// </summary> public userinfoController(IDbConnection db, userCache uc) { this.db = db; this.userc = uc; }
public DriverLocationController(IDbConnection db, userCache uc) { this.idb = db; this.uc = uc; }