935090232@qq.com
2021-01-06 e3dae73ced9ac1180a35e303c3fc3ee89ab477aa
zq-erp/src/main/java/com/matrix/system/app/action/ApiCommonAction.java
@@ -4,6 +4,7 @@
import com.matrix.component.redis.RedisClient;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.tools.UUIDUtil;
import com.matrix.system.app.authority.AppAuthorityManager;
import com.matrix.system.app.dto.LoginDto;
import com.matrix.system.app.vo.UserInfoVo;
import com.matrix.system.common.authority.DefaultAuthorityManager;
@@ -19,10 +20,7 @@
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
 * @author wzy
@@ -40,7 +38,7 @@
    private SysShopInfoService sysShopInfoService;
    @Autowired
    private DefaultAuthorityManager authorityManager;
    private AppAuthorityManager authorityManager;
    @Autowired
    private RedisClient redisClient;
@@ -76,8 +74,10 @@
        userInfoVo.setPhoto(user.getSuPhoto());
        AjaxResult result = AjaxResult.buildSuccessInstance("登陆成功");
        authorityManager.initUserPower(result,user);
        result.putInMap("user", userInfoVo);
        result.putInMap("token", token);
        return result;
    }
}