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

top.wboost.common.system.code.resolver.impl.PromptAuthCodeResolver Maven / Gradle / Ivy

package top.wboost.common.system.code.resolver.impl;

import top.wboost.common.base.entity.ResultEntity;

/**
 * 提示权限解析
 * @author jwSun
 * @date 2017年5月16日 下午7:00:18
 */
public class PromptAuthCodeResolver extends AbstractOneCodeResolver {

    public PromptAuthCodeResolver(int code) {
        super(code);
    }

    @Override
    public ResultEntity resolve(ResultEntity resolveEntity) {
        String message = getMessageByCode(resolveEntity.getInfo().getCode(), resolveEntity.getPromptMessage());
        resolveEntity.getInfo().setMessage(message);
        return resolveEntity;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy