package com.tzld.longarticle.recommend.server; import com.alibaba.fastjson.JSONObject; import com.tzld.longarticle.recommend.server.service.RecommendService; import com.tzld.longarticle.recommend.server.service.recall.RecallParam; import com.tzld.longarticle.recommend.server.service.recall.RecallResult; import com.tzld.longarticle.recommend.server.service.recall.RecallService; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import javax.annotation.Resource; @SpringBootTest(classes = RecommendTest.class) public class RecommendTest { @Resource private RecommendService recommendService; @Resource private RecallService recallService; @Test void recall() { RecallParam param = new RecallParam(); param.setAccountId("20231213123536190184852"); param.setPlanId("20240718181730864154902"); RecallResult recallResult = recallService.recall(param); System.out.println(JSONObject.toJSONString(recallResult)); } }