| | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | 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; |
| | |
| | | |
| | | /** |
| | | * 获取 APP 健康科普列表。 |
| | | * |
| | | * @param contentType 内容类型:1 健康知识、2 养生科普;不传则返回全部。 |
| | | */ |
| | | @GetMapping("/health-popularizations") |
| | | public ApiResponse<List<AppHealthPopularizationListItemVO>> list() { |
| | | return ApiResponse.ok(appHealthPopularizationService.list()); |
| | | public ApiResponse<List<AppHealthPopularizationListItemVO>> list( |
| | | @RequestParam(value = "contentType", required = false) Integer contentType) { |
| | | return ApiResponse.ok(appHealthPopularizationService.list(contentType)); |
| | | } |
| | | |
| | | /** |