CityController.java
571 字节
package com.teplot.air.controller;
import com.air.model.City;
import com.teplot.air.common.AbsController;
import com.teplot.common.BaseController;
import com.teplot.common.Response;
/**
* Depiction:
* <p>
* Modify:
* <p>
* Author: Kevin Lynn
* <p>
* Create Date:2017年4月7日 下午3:31:30
*
*/
public class CityController extends AbsController {
public void search() {
Response ret = new Response(CODE_SUCCESS);
ret.setMsg(BaseController.MSG_SUCCESS);
String code = getPara("code");
ret.setData(City.dao.search(code));
renderJson(ret);
}
}