com.fasc.open.api.v5_1.client.TemplateClient Maven / Gradle / Ivy
The newest version!
package com.fasc.open.api.v5_1.client;
import com.fasc.open.api.bean.base.BaseRes;
import com.fasc.open.api.v5_1.req.CopyCreateDocTemplateReq;
import com.fasc.open.api.v5_1.req.template.*;
import com.fasc.open.api.v5_1.res.template.*;
import com.fasc.open.api.constants.OpenApiUrlConstants;
import com.fasc.open.api.exception.ApiException;
import java.util.List;
/**
* @author Fadada
* 2021/9/8 16:09:38
*/
public class TemplateClient {
private OpenApiClient openApiClient;
public TemplateClient(OpenApiClient openApiClient) {
this.openApiClient = openApiClient;
}
public BaseRes getDocTemplateList(GetDocTemplateListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DOC_TEMPLATE_GET_LIST, DocTemplateListRes.class);
}
public BaseRes getDocTemplateDetail(DocTemplateDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DOC_TEMPLATE_GET_DETAIL, DocTemplateDetailRes.class);
}
public BaseRes createDocTemplate(CreateDocTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DOC_TEMPLATE_CREATE, CreateDocTemplateRes.class);
}
public BaseRes copyCreateDocTemplate(CopyCreateDocTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DOC_TEMPLATE_COPY_CREATE, CopyCreateDocTemplateRes.class);
}
public BaseRes getSignTemplateList(GetSignTemplateListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_GET_LIST, SignTemplateListRes.class);
}
public BaseRes getSignTemplateDetail(SignTemplateDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_GET_DETAIL, SignTemplateDetailRes.class);
}
public BaseRes getTemplateCreateUrl(GetTemplateCreateUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_GET_CREATE_URL, GetTemplateCreateUrlRes.class);
}
public BaseRes getTemplateEditUrl(GetTemplateEditUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_GET_EDIT_URL, GetTemplateEditUrlRes.class);
}
public BaseRes getTemplatePreviewUrl(GetTemplatePreviewUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_GET_PREVIEW_URL, GetTemplatePreviewUrlRes.class);
}
public BaseRes getTemplateManageUrl(GetTemplateManageUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_GET_MANAGE_URL, GetTemplateManageUrlRes.class);
}
public BaseRes getAppDocTemplates(GetAppDocTemplateListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_DOC_TEMPLATE_GET_LIST, AppDocTemplatePageListRes.class);
}
public BaseRes getDocTemplateDetail(GetAppDocTemplateDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_DOC_TEMPLATE_GET_DETAIL, AppDocTemplateDetailRes.class);
}
public BaseRes getAppSignTemplates(GetAppSignTemplateListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_SIGN_TEMPLATE_GET_LIST, AppSignTemplatePageListRes.class);
}
public BaseRes getAppSignTemplateDetail(GetAppSignTemplateDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_SIGN_TEMPLATE_GET_DETAIL, AppSignTemplateDetailRes.class);
}
public BaseRes getAppTemplateCreateUrl(GetAppTemplateCreateUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_TEMPLATE_CREATE_GET_URL, GetAppTemplateCreateUrlRes.class);
}
public BaseRes getAppTemplateEditUrl(GetAppTemplateEditUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_TEMPLATE_EDIT_GET_URL, GetAppTemplateEditUrlRes.class);
}
public BaseRes getAppTemplatePreviewUrl(GetAppTemplatePreviewUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_TEMPLATE_PREVIEW_GET_URL, GetAppTemplatePreviewUrlRes.class);
}
public BaseRes createAppField(CreateAppFieldReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_FIELD_CREATE, Void.class);
}
public BaseRes modifyAppField(ModifyAppFieldReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_FIELD_MODIFY, Void.class);
}
public BaseRes setAppFieldStatus(SetAppFieldStatusReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_FIELD_SET_STATUS, Void.class);
}
public BaseRes> getAppFieldList(GetAppFieldListReq req) throws ApiException {
return openApiClient.invokeApiList(req, OpenApiUrlConstants.APP_FIELD_GET_LIST, GetAppFieldListRes.class);
}
/**启用/停用应用文档模板 **/
public BaseRes setAppTemplateSetStatus(SetTemplateStatusReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_DOC_TEMPLATE_SET_STATUS, Void.class);
}
/**删除应用文档模板 **/
public BaseRes deleteAppTemplate(DeleteAppTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_DOC_TEMPLATE_DELETE, Void.class);
}
/**启用/停用应用签署任务模板 **/
public BaseRes setAppSignTemplateStatus(SetAppSignTemplateStatusReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_DOC_SIGN_TEMPLATE_SET_STATUS, Void.class);
}
/**删除应用文档模板 **/
public BaseRes deleteSignAppTemplate(DeleteSignAppTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.APP_DOC_SIGN_TEMPLATE_DELETE, Void.class);
}
/**启用/停用文档模板**/
public BaseRes setDocTemplateStatus(SetDocTemplateStatusReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SET_DOC_TEMPLATE_STATUS, Void.class);
}
/**删除文档模板**/
public BaseRes deleteDocTemplate(DeleteDocTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DELETE_DOC_TEMPLATE, Void.class);
}
/**启用/停用签署模板**/
public BaseRes setSignTemplateStatus(SetSignTemplateStatusReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SET_SIGN_TEMPLATE_STATUS, Void.class);
}
/**签署模板删除**/
public BaseRes deleteSignTemplate(DeleteSignTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DELETE_SIGN_TEMPLATE, Void.class);
}
/**创建企业业务控件**/
public BaseRes createCorpField(CreateCorpFieldReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_FIELD_CREATE, CreateCorpFieldRes.class);
}
/**删除企业业务控件**/
public BaseRes deleteCorpField(DeleteCorpFieldReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_FIELD_DELETE, Void.class);
}
/**获取企业业务控件列表**/
public BaseRes> getCorpFieldList(GetCorpFieldListReq req) throws ApiException {
return openApiClient.invokeApiList(req, OpenApiUrlConstants.CORP_FIELD_GET_LIST, GetCorpFieldListRes.class);
}
/**填写文件模板生成文件**/
public BaseRes docTemplateFillValues(DocTemplateFillValuesReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.DOC_TEMPLATE_FILL_VALUES, DocTemplateFillValuesRes.class);
}
/**复制签署任务模板**/
public BaseRes copyCreateSignTemplate(CopyCreateSignTemplateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.SIGN_TEMPLATE_COPY_CREATE, CopyCreateSignTemplateRes.class);
}
/**获取海外签模板创建和编辑链接接口**/
public BaseRes getSesTemplateUrl(GetSesTemplateUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.GET_SES_TEMPLATE_URL, GetTemplateEditUrlRes.class);
}
/**获取海外签签署模板列表**/
public BaseRes getSesSignTemplateList(GetSesSignTemplateListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.GET_SES_SIGN_TEMPLATE_LIST, SignTemplateListRes.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy