anchor.diff:    //把这个post过来的数据有返回给客户端
     return new shelf.Response.ok('${userName}'    );
   }
  +  Future<shelf.Response> forteaid(shelf.Request request) async {
  +      //从数据库获取数据
  +      String userName1 = await getDataFromDb1();
  +
  +      //把这个post过来的数据有返回给客户端
  +      return new shelf.Response.ok(
  +          ' ${userName1}'
  +      );
  +    }
   
   /*Future<shelf.Response> _echoRequest(shelf.Request request) async {
     //接受post过来的数据
  
positive.code:    // myRouter.get('/login', forlogin);
      //myRouter.get('/no_login', forno_login);
      myRouter.get('/student/{stuid_x}', forstuid);
     // myRouter.get('/teacher/{teaid_x}', forteaid);
      //myRouter.get('/teacher/{teaid_x}/student/{stuid_m}', forteasearch);
  
  
  
negative.code:     data[index] = stu;
      i++;
    });
    Future<String> getDataFromDb1() async {
        var results = await pool.query('select teaname,teaid from tealogin');
        int i = 0;
        results.forEach((row) {
          //列出所有用户名
          String index1 = "teaname" + i.toString();
          value1["teaname"]=row.teaname;
          value1["teaid"]=row.teaid;
          data1[index] = JSON.encode(value1);
          i++;
        });
        String jsonData = JSON.encode(data1);
        return jsonData;
      }
  
  
  
  