| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.dtos.vaccines.*; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngVaccinesEnrollRecordService; |
| | | import com.panzhihua.service_community.service.ComMngVaccinesInoculationRecordService; |
| | | import com.panzhihua.service_community.service.ComMngVaccinesService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | |
| | | |
| | | /** |
| | | * 小程序-查询疫苗分类列表 |
| | | * @return 疫苗分类列表 |
| | | * |
| | | * @return 疫苗分类列表 |
| | | */ |
| | | @PostMapping("/app/list") |
| | | public R getVaccinesListByApp() { |
| | |
| | | |
| | | /** |
| | | * 小程序-疫苗类型对应家庭成员接种列表 |
| | | * @return 疫苗类型对应家庭成员接种列表 |
| | | * |
| | | * @return 疫苗类型对应家庭成员接种列表 |
| | | */ |
| | | @PostMapping("/app/user/list") |
| | | public R getVaccinesUserListByApp(@RequestBody VaccinesEnrollUserByAppDTO enrollUserByAppDTO) { |
| | |
| | | |
| | | /** |
| | | * 用户疫苗报名 |
| | | * @param enrollByAppDTO 请求参数 |
| | | * @return 报名结果 |
| | | * |
| | | * @param enrollByAppDTO |
| | | * 请求参数 |
| | | * @return 报名结果 |
| | | */ |
| | | @PostMapping("/app/enroll") |
| | | public R VaccinesEnrollByApp(@RequestBody VaccinesEnrollByAppDTO enrollByAppDTO){ |
| | | public R VaccinesEnrollByApp(@RequestBody VaccinesEnrollByAppDTO enrollByAppDTO) { |
| | | return comMngVaccinesEnrollRecordService.VaccinesEnrollByApp(enrollByAppDTO); |
| | | } |
| | | |
| | | /** |
| | | * 小程序-查询用户家庭成员接种记录 |
| | | * @param userId 用户id |
| | | * @return 用户家庭成员接种记录 |
| | | * |
| | | * @param userId |
| | | * 用户id |
| | | * @return 用户家庭成员接种记录 |
| | | */ |
| | | @PostMapping("/app/user/inoculation/list") |
| | | public R getVaccinesUserInoculationListByApp(@RequestParam("userId") Long userId) { |
| | |
| | | |
| | | /** |
| | | * 后台管理-查询疫苗分类列表 |
| | | * @param vaccinesByAdminDTO 请求参数 |
| | | * @return 疫苗分类列表 |
| | | * |
| | | * @param vaccinesByAdminDTO |
| | | * 请求参数 |
| | | * @return 疫苗分类列表 |
| | | */ |
| | | @PostMapping("/admin/list") |
| | | public R getVaccinesListByAdmin(@RequestBody VaccinesByAdminDTO vaccinesByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 修改疫苗分类信息 |
| | | * @param vaccinesByAdminDTO 请求参数 |
| | | * @return 修改结果 |
| | | * |
| | | * @param vaccinesByAdminDTO |
| | | * 请求参数 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping("/admin/edit") |
| | | public R editVaccinesByAdmin(@RequestBody VaccinesByAdminDTO vaccinesByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 新增疫苗分类信息 |
| | | * @param vaccinesByAdminDTO 请求参数 |
| | | * @return 新增结果 |
| | | * |
| | | * @param vaccinesByAdminDTO |
| | | * 请求参数 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/admin/add") |
| | | public R addVaccinesByAdmin(@RequestBody VaccinesByAdminDTO vaccinesByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 查询疫苗登记列表 |
| | | * @param vaccinesByAdminDTO 请求参数 |
| | | * @return 登记列表 |
| | | * |
| | | * @param vaccinesByAdminDTO |
| | | * 请求参数 |
| | | * @return 登记列表 |
| | | */ |
| | | @PostMapping("/admin/enroll/list") |
| | | public R getVaccinesEnrollListByAdmin(@RequestBody VaccinesEnrollByAdminDTO vaccinesByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 删除疫苗分类信息 |
| | | * @param id 疫苗分类id |
| | | * @return 删除结果 |
| | | * |
| | | * @param id |
| | | * 疫苗分类id |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/admin/enroll/delete") |
| | | public R deleteVaccinesByAdmin(@RequestParam("id") Long id) { |
| | |
| | | |
| | | /** |
| | | * 根据条件导出疫苗登记记录 |
| | | * @param vaccinesByAdminDTO 请求参数 |
| | | * @return 导出登记列表 |
| | | * |
| | | * @param vaccinesByAdminDTO |
| | | * 请求参数 |
| | | * @return 导出登记列表 |
| | | */ |
| | | @PostMapping("/admin/enroll/export") |
| | | public R exportVaccinesEnrollListByAdmin(@RequestBody VaccinesEnrollByAdminDTO vaccinesByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 查询接种记录列表 |
| | | * @param inoculationByAdminDTO 请求参数 |
| | | * @return 接种记录列表 |
| | | * |
| | | * @param inoculationByAdminDTO |
| | | * 请求参数 |
| | | * @return 接种记录列表 |
| | | */ |
| | | @PostMapping("/admin/inoculation/list") |
| | | public R getVaccinesInoculationListByAdmin(@RequestBody VaccinesInoculationByAdminDTO inoculationByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 接种记录信息导出 |
| | | * @param inoculationByAdminDTO 请求参数 |
| | | * @return 导出结果 |
| | | * |
| | | * @param inoculationByAdminDTO |
| | | * 请求参数 |
| | | * @return 导出结果 |
| | | */ |
| | | @PostMapping("/admin/inoculation/export") |
| | | public R exportVaccinesInoculationListByAdmin(@RequestBody VaccinesInoculationByAdminDTO inoculationByAdminDTO) { |
| | |
| | | |
| | | /** |
| | | * 疫苗分类列表 |
| | | * @return 疫苗分类列表 |
| | | * |
| | | * @return 疫苗分类列表 |
| | | */ |
| | | @PostMapping("/admin/enroll/type/list") |
| | | public R getEnrollTypeListByAdmin() { |