|
|
|
|
@ -21,6 +21,8 @@ import org.dromara.common.core.domain.model.SocialLoginBody;
|
|
|
|
|
import org.dromara.common.core.utils.*;
|
|
|
|
|
import org.dromara.common.encrypt.annotation.ApiEncrypt;
|
|
|
|
|
import org.dromara.common.json.utils.JsonUtils;
|
|
|
|
|
import org.dromara.common.ratelimiter.annotation.RateLimiter;
|
|
|
|
|
import org.dromara.common.ratelimiter.enums.LimitType;
|
|
|
|
|
import org.dromara.common.satoken.utils.LoginHelper;
|
|
|
|
|
import org.dromara.common.social.config.properties.SocialLoginConfigProperties;
|
|
|
|
|
import org.dromara.common.social.config.properties.SocialProperties;
|
|
|
|
|
@ -198,6 +200,7 @@ public class AuthController {
|
|
|
|
|
*
|
|
|
|
|
* @return 租户列表
|
|
|
|
|
*/
|
|
|
|
|
@RateLimiter(time = 60, count = 20, limitType = LimitType.IP)
|
|
|
|
|
@GetMapping("/tenant/list")
|
|
|
|
|
public R<LoginTenantVo> tenantList(HttpServletRequest request) throws Exception {
|
|
|
|
|
// 返回对象
|
|
|
|
|
|