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

com.haoxuer.discover.user.controller.tenant.BaseTenantRestController Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.user.controller.tenant;

import com.haoxuer.discover.user.api.domain.request.BasePageRequest;
import com.haoxuer.discover.user.api.domain.request.BaseRequest;
import com.haoxuer.discover.user.data.entity.UserInfo;
import com.haoxuer.discover.user.shiro.utils.UserUtil;

public class BaseTenantRestController {


    protected void init(BaseRequest request) {
        UserInfo user = UserUtil.getCurrentUser();
        if (user != null) {
            request.setCreateUser(user.getId());
        }
    }

    protected void init(BasePageRequest request) {
        UserInfo user = UserUtil.getCurrentUser();
        if (user != null) {
            request.setCreateUser(user.getId());
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy