Search in sources :

Example 1 with AccountConfigResult

use of com.liumapp.digitalsign.test.ca.tianwei.user.AccountConfigResult in project spring-cloud-digital-sign by SpringForAll.

the class RaService method synchroTemplate.

/**
 * 获取证书模板
 *
 * @Title: synchroTemplate
 * @Description: TODO(获取证书模板)
 * @return JSONObject
 * @throws JSONException
 */
public JSONObject synchroTemplate() throws JSONException {
    JSONObject ret = new JSONObject();
    try {
        UserAPIServicePortTypeProxy proxy = axisUtil.getProxyNow();
        AccountConfigResult result = proxy.synchroTemplate(ACCOUNT_HASH);
        ret.put("code", "0");
        ret.put("msg", "");
        ret.put("result", result);
    } catch (Exception e) {
        ret.put("code", "20010101");
        ret.put("msg", errorCode.getErrorCode().get(20010101) + ":" + e.getMessage());
        return ret;
    }
    return ret;
}
Also used : JSONObject(org.json.JSONObject) UserAPIServicePortTypeProxy(com.liumapp.digitalsign.test.ca.tianwei.proxy.UserAPIServicePortTypeProxy) AccountConfigResult(com.liumapp.digitalsign.test.ca.tianwei.user.AccountConfigResult) JSONException(org.json.JSONException)

Aggregations

UserAPIServicePortTypeProxy (com.liumapp.digitalsign.test.ca.tianwei.proxy.UserAPIServicePortTypeProxy)1 AccountConfigResult (com.liumapp.digitalsign.test.ca.tianwei.user.AccountConfigResult)1 JSONException (org.json.JSONException)1 JSONObject (org.json.JSONObject)1