|
@@ -5,9 +5,11 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import thyyxxk.wxservice_server.config.auth.PassToken;
|
|
|
+import thyyxxk.wxservice_server.entity.PureCodeName;
|
|
|
import thyyxxk.wxservice_server.entity.ResultVo;
|
|
|
import thyyxxk.wxservice_server.entity.appointment.DoctorInfo;
|
|
|
import thyyxxk.wxservice_server.service.HomePageService;
|
|
|
+import thyyxxk.wxservice_server.utils.ResultVoUtil;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -35,4 +37,9 @@ public class HomePageController {
|
|
|
public ResultVo<String> refreshHomePageDoctors() {
|
|
|
return service.refreshHomePageDoctors();
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/getScrollNews")
|
|
|
+ public ResultVo<List<PureCodeName>> getScrollNews() {
|
|
|
+ return ResultVoUtil.success(service.getScrollNews());
|
|
|
+ }
|
|
|
}
|