All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.fangxinqian.operator.sdk.sign.SignService Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package cn.fangxinqian.operator.sdk.sign;

import cn.fangxinqian.operator.sdk.sign.vo.SignResultVO;
import cn.fangxinqian.operator.sdk.constant.UrlConstant;
import cn.fangxinqian.operator.sdk.sign.dto.SignDTO;
import cn.fangxinqian.operator.sdk.utils.OkHttp;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.io.IOException;

/**
 * @Author NieZhiLiang
 * @Email [email protected]
 * @GitHub https://github.com/niezhiliang
 * @Date 2019-10-09 8:39 上午
 */
public class SignService {

    /**
     * 签署的方法 1.0版本
     * @param signDTO
     * @return
     * @throws IOException
     */
    public static SignResultVO doSign_1(SignDTO signDTO) throws IOException {
        String result = OkHttp.doPost(UrlConstant.SIGN_ONLINE, JSON.toJSONString(signDTO));
        return JSONObject.parseObject(result, SignResultVO.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy