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

cn.fangxinqian.operator.sdk.seal.SealService Maven / Gradle / Ivy

package cn.fangxinqian.operator.sdk.seal;

import cn.fangxinqian.operator.sdk.constant.UrlConstant;
import cn.fangxinqian.operator.sdk.seal.dto.CompanySealDTO;
import cn.fangxinqian.operator.sdk.seal.dto.PersonalSealDTO;
import cn.fangxinqian.operator.sdk.seal.vo.CompanySealResultVO;
import cn.fangxinqian.operator.sdk.seal.vo.PersonalSealVO;
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 10:25 上午
 */
public class SealService {

    /**
     * 生成公司签章
     * @param sealDTO
     * @return
     * @throws IOException
     */
    public static CompanySealResultVO companySeal(CompanySealDTO sealDTO) throws IOException {
        String result = OkHttp.doPost(UrlConstant.SEAL_COMPANY, JSON.toJSONString(sealDTO));
        return JSONObject.parseObject(result,CompanySealResultVO.class);
    }

    /**
     * 生成个人签章
     * @param sealDTO
     * @return
     * @throws IOException
     */
    public static PersonalSealVO personalSeal(PersonalSealDTO sealDTO) throws IOException {
        String result = OkHttp.doPost(UrlConstant.SEAL_PERSONAL,JSON.toJSONString(sealDTO));
        return JSONObject.parseObject(result,PersonalSealVO.class);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy