package com.customization.hrm.dept.impl;

import com.alibaba.fastjson.JSON;
import com.wbi.util.ParamUtil;
import com.wbi.util.StringUtil;
import com.weaverboot.frame.ioc.anno.classAnno.WeaIocReplaceComponent;
import com.weaverboot.frame.ioc.anno.methodAnno.WeaReplaceAfter;
import com.weaverboot.frame.ioc.anno.methodAnno.WeaReplaceBefore;
import com.weaverboot.frame.ioc.handler.replace.weaReplaceParam.impl.WeaAfterReplaceParam;
import com.weaverboot.frame.ioc.handler.replace.weaReplaceParam.impl.WeaBeforeReplaceParam;
import weaver.conn.RecordSet;
import weaver.general.BaseBean;
import weaver.general.Util;
import weaver.hrm.HrmUserVarify;
import weaver.hrm.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;

@WeaIocReplaceComponent
public class Proxy {
    @WeaReplaceBefore(
            value = "api/workflow/reqform/updateReqInfo",
            order = 1,
            description = "qwer"
    )
    public void before(WeaBeforeReplaceParam weaBeforeReplaceParam) {
        HttpServletRequest request = weaBeforeReplaceParam.getRequest();
        HttpServletResponse response = weaBeforeReplaceParam.getResponse();
        Map paramMap = ParamUtil.request2Map(request);
        User user = HrmUserVarify.getUser(request, response);
    }

}
