|
|
@@ -19,6 +19,7 @@ import com.cyksj.model.manage.dto.AdminInfo;
|
|
|
import com.cyksj.model.manage.entity.Admin;
|
|
|
import com.cyksj.service.mail.MailService;
|
|
|
import com.cyksj.service.mange.AdminService;
|
|
|
+import com.cyksj.web.util.StpUserUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
@@ -292,4 +293,12 @@ public class AdminController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 银河用户token信息
|
|
|
+ */
|
|
|
+ @GetMapping("/get/yh/user/token")
|
|
|
+ public Result<String> getYhUserToken(Long userId) {
|
|
|
+ StpUserUtil.login(userId);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(StpUserUtil.getTokenValue());
|
|
|
+ }
|
|
|
}
|