You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.dsideal.FengHuang.Zjb.Controller;
|
|
|
|
|
|
|
|
import com.dsideal.FengHuang.Interceptor.IsNumericInterface;
|
|
|
|
import com.dsideal.FengHuang.Util.CommonUtil;
|
|
|
|
import com.dsideal.FengHuang.Zjb.Model.ZjbModel;
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
|
import com.jfinal.ext.interceptor.POST;
|
|
|
|
|
|
|
|
public class ZjbController extends Controller {
|
|
|
|
ZjbModel zm = new ZjbModel();
|
|
|
|
|
|
|
|
@Before({POST.class})
|
|
|
|
@IsNumericInterface({"module_id", "page"})
|
|
|
|
public void saveModulePage(int module_id, int page, String json) {
|
|
|
|
zm.saveModulePage(module_id, page, json);
|
|
|
|
renderJson(CommonUtil.returnMessageJson(true, "保存成功!"));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Before({GET.class})
|
|
|
|
@IsNumericInterface({"module_id", "page"})
|
|
|
|
public void getModulePage(int module_id, int page) {
|
|
|
|
String json = zm.getModulePage(module_id, page);
|
|
|
|
renderJson(json);
|
|
|
|
}
|
|
|
|
}
|