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

com.gitee.easyopen.ApiDataDecoder Maven / Gradle / Ivy

Go to download

一个简单易用的接口开放平台,平台封装了常用的参数校验、结果返回等功能,开发者只需实现业务代码即可。https://gitee.com/durcframework/easyopen

There is a newer version: 1.16.20
Show newest version
package com.gitee.easyopen;

import com.gitee.easyopen.bean.Consts;
import org.springframework.util.StringUtils;

import java.net.URLDecoder;

/**
 * @author tanghc
 */
public class ApiDataDecoder implements DataDecoder {
    @Override
    public String decode(ApiParam param) throws Exception {
        // 业务参数data部分
        String data = param.fatchData();
        if(StringUtils.isEmpty(data)) {
            return Consts.EMPTY_JSON;
        }
        return URLDecoder.decode(data, Consts.UTF8);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy