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

kim.sesame.framework.web.controller.AbstractWebController Maven / Gradle / Ivy

There is a newer version: 1.21
Show newest version
package kim.sesame.framework.web.controller;


import kim.sesame.framework.utils.StringUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Web controller基类
 *
 * @author johnny
 * date :  2017/10/23 20:13
 **/
public class AbstractWebController extends AbstractController {

    public Map layuiUpload(String src) {
        return layuiUpload(src, null);
    }

    public Map layuiUpload(String src, String name) {
        Map map = new HashMap<>();
        map.put("src", src);
        if (StringUtil.isNotEmpty(name)) {
            map.put("name", name);
        }
        Map res = new HashMap<>();
        res.put("code", 0);
        res.put("msg", "");
        res.put("data", map);
        return res;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy