/**
 * Copyright (C) 2015 coderyuan.com. All Rights Reserved.
 *
 * CoderyuanApiLib
 *
 * BaseApiClass.java created on 2015年6月24日
 *
 * @author yuanguozheng
 * @since 2015年6月24日
 * @version v1.0.0
 */
package com.coderyuan.api;

import com.coderyuan.models.ResultModel;

/**
 * @author yuanguozheng
 * 
 */
public abstract class BaseApiClass {

    protected boolean mAllowGet = true;
    protected BaseWebApiServlet mBase;

    public BaseApiClass(BaseWebApiServlet base) {
        mBase = base;
    }

    public BaseApiClass(BaseWebApiServlet base, boolean allowGet) {
        mBase = base;
        mAllowGet = allowGet;
    }

    public abstract ResultModel handleRequest();

    protected String getParam(String name) {
        return mBase.getParam(name);
    }
}

@@ -222,16 +222,56 @@
 n.api;%0A%0A
+import javax.servlet.http.HttpSession;%0A%0A
 import c
@@ -308,16 +308,29 @@
 l;%0A%0A/**%0A
+ * API%E5%9F%BA%E7%B1%BB%0A * %0A
  * @auth
@@ -345,20 +345,16 @@
 uozheng%0A
- * %0A
  */%0Apubl
@@ -810,11 +810,94 @@
 );%0A    %7D
+%0A%0A    protected HttpSession getSession() %7B%0A        return mBase.getSession();%0A    %7D
 %0A%7D%0A

Update ApiClass