合并请求路径(患者)
parent
ca6ab99830
commit
7bf693b9d6
|
@ -1,31 +0,0 @@
|
||||||
package doctor.controller;
|
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
|
||||||
import doctor.common.core.domain.R;
|
|
||||||
import doctor.domain.entity.Banners;
|
|
||||||
import doctor.service.BannersService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @BelongsProject: Medical_Treatment
|
|
||||||
* @BelongsPackage: doctor.controller
|
|
||||||
* @Author: jpz
|
|
||||||
* @CreateTime: 2024/1/10 15:54
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/share/v1")
|
|
||||||
|
|
||||||
public class BannersController {
|
|
||||||
@Autowired
|
|
||||||
private BannersService bannersService;
|
|
||||||
@GetMapping("/bannersShow")
|
|
||||||
public HealthR<List<Banners>> bannersShow(){
|
|
||||||
List<Banners> banners = bannersService.bannersShow();
|
|
||||||
return HealthR.ok(banners);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,30 +0,0 @@
|
||||||
package doctor.controller;
|
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
|
||||||
import doctor.common.core.domain.R;
|
|
||||||
import doctor.domain.entity.Department;
|
|
||||||
import doctor.service.DepartmentService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @BelongsProject: Medical_Treatment
|
|
||||||
* @BelongsPackage: doctor.controller
|
|
||||||
* @Author: jpz
|
|
||||||
* @CreateTime: 2024/1/10 16:49
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/share/knowledgeBase/v1")
|
|
||||||
public class DepartmentController {
|
|
||||||
@Autowired
|
|
||||||
private DepartmentService departmentService;
|
|
||||||
@GetMapping("/findDepartment")
|
|
||||||
public HealthR<List<Department>> findDepartment(){
|
|
||||||
List<Department> list=departmentService.findDepartment();
|
|
||||||
return HealthR.ok(list);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
package doctor.controller;
|
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
|
||||||
import doctor.common.core.domain.R;
|
|
||||||
import doctor.domain.entity.DiseaseCategory;
|
|
||||||
import doctor.service.DiseaseCategoryService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.xml.transform.Result;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @BelongsProject: Medical_Treatment
|
|
||||||
* @BelongsPackage: doctor.controller
|
|
||||||
* @Author: jpz
|
|
||||||
* @CreateTime: 2024/1/10 17:16
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/share/knowledgeBase/v1")
|
|
||||||
public class DiseaseCategoryController {
|
|
||||||
@Autowired
|
|
||||||
private DiseaseCategoryService diseaseCategoryService;
|
|
||||||
|
|
||||||
@GetMapping("/findDiseaseCategory")
|
|
||||||
public HealthR<List<DiseaseCategory>> findDiseaseCategory(@RequestParam Integer departmentId){
|
|
||||||
List<DiseaseCategory> list=diseaseCategoryService.findDiseaseCategory(departmentId);
|
|
||||||
return HealthR.ok(list);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,55 +0,0 @@
|
||||||
package doctor.controller;
|
|
||||||
|
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
|
||||||
import doctor.domain.entity.DiseaseKnowledge;
|
|
||||||
import doctor.domain.entity.DrugsCategory;
|
|
||||||
import doctor.service.DiseaseKnowledgeService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import static doctor.common.core.utils.PageUtils.startPage;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @BelongsProject: Medical_Treatment
|
|
||||||
* @BelongsPackage: doctor.controller
|
|
||||||
* @Author: jpz
|
|
||||||
* @CreateTime: 2024/1/10 20:56
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/share/knowledgeBase/v1")
|
|
||||||
public class DiseaseKnowledgeController {
|
|
||||||
@Autowired
|
|
||||||
private DiseaseKnowledgeService diseaseKnowledgeService;
|
|
||||||
//罕见病症详情
|
|
||||||
@GetMapping("/findDiseaseKnowledge")
|
|
||||||
public HealthR<List<DiseaseKnowledge>> findDiseaseKnowledge(@RequestParam Integer diseaseCategoryId){
|
|
||||||
return HealthR.ok(diseaseKnowledgeService.findDiseaseKnowledge(diseaseCategoryId));
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/findDrugsCategoryList")
|
|
||||||
public HealthR<List<DrugsCategory>> findDrugsCategoryList(){
|
|
||||||
return HealthR.ok(diseaseKnowledgeService.findDrugsCategoryList());
|
|
||||||
}
|
|
||||||
@GetMapping("/findDrugsKnowledgeList")
|
|
||||||
public HealthR<List<DrugsCategory>> findDrugsKnowledgeList(@RequestParam Integer drugsCategoryId,
|
|
||||||
@RequestParam(value = "page",defaultValue = "1") Integer page,
|
|
||||||
@RequestParam(value = "count",defaultValue = "5") Integer count){
|
|
||||||
|
|
||||||
startPage(page,count);
|
|
||||||
List<DrugsCategory> list=diseaseKnowledgeService.findDrugsKnowledgeList(drugsCategoryId);
|
|
||||||
return HealthR.ok(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,21 +1,58 @@
|
||||||
package doctor.controller;
|
package doctor.controller;
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
import doctor.domain.entity.DepartmentEntity;
|
import doctor.domain.entity.*;
|
||||||
|
import doctor.service.DepartmentService;
|
||||||
|
import doctor.service.DiseaseCategoryService;
|
||||||
|
import doctor.service.DiseaseKnowledgeService;
|
||||||
import doctor.service.HealthDepartmentService;
|
import doctor.service.HealthDepartmentService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.github.pagehelper.page.PageMethod.startPage;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/knowledgeBase/v1")
|
@RequestMapping("/knowledgeBase/v1")
|
||||||
public class HealthDepartmentController {
|
public class HealthDepartmentController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private HealthDepartmentService healthV1Service;
|
private HealthDepartmentService healthV1Service;
|
||||||
|
@Autowired
|
||||||
|
private DiseaseCategoryService diseaseCategoryService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DiseaseKnowledgeService diseaseKnowledgeService;
|
||||||
|
//罕见病症详情
|
||||||
|
@GetMapping("/findDiseaseKnowledge")
|
||||||
|
public HealthR<List<DiseaseKnowledge>> findDiseaseKnowledge(@RequestParam Integer diseaseCategoryId){
|
||||||
|
return HealthR.ok(diseaseKnowledgeService.findDiseaseKnowledge(diseaseCategoryId));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/findDrugsCategoryList")
|
||||||
|
public HealthR<List<DrugsCategory>> findDrugsCategoryList(){
|
||||||
|
return HealthR.ok(diseaseKnowledgeService.findDrugsCategoryList());
|
||||||
|
}
|
||||||
|
@GetMapping("/findDrugsKnowledgeList")
|
||||||
|
public HealthR<List<DrugsCategory>> findDrugsKnowledgeList(@RequestParam Integer drugsCategoryId,
|
||||||
|
@RequestParam(value = "page",defaultValue = "1") Integer page,
|
||||||
|
@RequestParam(value = "count",defaultValue = "5") Integer count){
|
||||||
|
|
||||||
|
startPage(page,count);
|
||||||
|
List<DrugsCategory> list=diseaseKnowledgeService.findDrugsKnowledgeList(drugsCategoryId);
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("/findDiseaseCategory")
|
||||||
|
public HealthR<List<DiseaseCategory>> findDiseaseCategory(@RequestParam Integer departmentId){
|
||||||
|
List<DiseaseCategory> list=diseaseCategoryService.findDiseaseCategory(departmentId);
|
||||||
|
return HealthR.ok(list);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/findDepartment")
|
@GetMapping("/findDepartment")
|
||||||
public HealthR<List<DepartmentEntity>> findDepartment(){
|
public HealthR<List<DepartmentEntity>> findDepartment(){
|
||||||
|
|
|
@ -2,7 +2,9 @@ package doctor.controller;
|
||||||
|
|
||||||
import doctor.common.core.domain.HealthR;
|
import doctor.common.core.domain.HealthR;
|
||||||
import doctor.domain.dto.ApplyJoinDto;
|
import doctor.domain.dto.ApplyJoinDto;
|
||||||
|
import doctor.domain.entity.Banners;
|
||||||
import doctor.domain.entity.DoctorJobTitleEntity;
|
import doctor.domain.entity.DoctorJobTitleEntity;
|
||||||
|
import doctor.service.BannersService;
|
||||||
import doctor.service.HealthJobTitleService;
|
import doctor.service.HealthJobTitleService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
@ -15,6 +17,14 @@ public class HealthJobTitleController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private HealthJobTitleService healthJobTitleService;
|
private HealthJobTitleService healthJobTitleService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BannersService bannersService;
|
||||||
|
@GetMapping("/bannersShow")
|
||||||
|
public HealthR<List<Banners>> bannersShow(){
|
||||||
|
List<Banners> banners = bannersService.bannersShow();
|
||||||
|
return HealthR.ok(banners);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/findJobTitleList")
|
@GetMapping("/findJobTitleList")
|
||||||
public HealthR<List<DoctorJobTitleEntity>> findJobTitleList() {
|
public HealthR<List<DoctorJobTitleEntity>> findJobTitleList() {
|
||||||
List<DoctorJobTitleEntity> doctorJobTitleEntities=healthJobTitleService.findJobTitleList();
|
List<DoctorJobTitleEntity> doctorJobTitleEntities=healthJobTitleService.findJobTitleList();
|
||||||
|
|
|
@ -21,7 +21,7 @@ import static com.github.pagehelper.page.PageMethod.startPage;
|
||||||
* @CreateTime: 2024/1/11 16:19
|
* @CreateTime: 2024/1/11 16:19
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/share/information/v1")
|
@RequestMapping("/information/v1")
|
||||||
public class InformationController {
|
public class InformationController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private InformationService informationService;
|
private InformationService informationService;
|
||||||
|
|
Loading…
Reference in New Issue