|
|
|
|
@ -25,6 +25,8 @@ import org.dromara.common.core.domain.model.LoginBody;
|
|
|
|
|
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;
|
|
|
|
|
@ -190,6 +192,7 @@ public class TokenController {
|
|
|
|
|
*
|
|
|
|
|
* @return 租户列表
|
|
|
|
|
*/
|
|
|
|
|
@RateLimiter(time = 60, count = 20, limitType = LimitType.IP)
|
|
|
|
|
@GetMapping("/tenant/list")
|
|
|
|
|
public R<LoginTenantVo> tenantList(HttpServletRequest request) throws Exception {
|
|
|
|
|
// 返回对象
|
|
|
|
|
|