| package cc.mrbird.febs.mall.controller.activity; | 
|   | 
| import cc.mrbird.febs.common.entity.FebsResponse; | 
| import cc.mrbird.febs.mall.service.HappyActivityCategoryService; | 
| import cc.mrbird.febs.mall.vo.activity.ApiCategoryInfoVo; | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiOperation; | 
| import io.swagger.annotations.ApiResponse; | 
| import io.swagger.annotations.ApiResponses; | 
| import lombok.RequiredArgsConstructor; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.validation.annotation.Validated; | 
| import org.springframework.web.bind.annotation.GetMapping; | 
| import org.springframework.web.bind.annotation.RequestMapping; | 
| import org.springframework.web.bind.annotation.RestController; | 
|   | 
| @Slf4j | 
| @Validated | 
| @RestController | 
| @RequiredArgsConstructor | 
| @RequestMapping(value = "/api/happyCategory") | 
| @Api(value = "ApiHappyActivityCategoryController", tags = "365活动分类") | 
| public class ApiHappyActivityCategoryController { | 
|   | 
|     private final HappyActivityCategoryService happyActivityCategoryService; | 
|   | 
|     @ApiOperation(value = "全部分类", notes = "全部分类") | 
|     @ApiResponses({ | 
|             @ApiResponse(code = 200, message = "success", response = ApiCategoryInfoVo.class) | 
|     }) | 
|     @GetMapping(value = "/allCategory") | 
|     public FebsResponse allCategory() { | 
|   | 
|         return happyActivityCategoryService.allCategory(); | 
|     } | 
|   | 
|     @ApiOperation(value = "首页分类", notes = "首页分类") | 
|     @ApiResponses({ | 
|             @ApiResponse(code = 200, message = "success", response = ApiCategoryInfoVo.class) | 
|     }) | 
|     @GetMapping(value = "/indexCategory") | 
|     public FebsResponse indexCategory() { | 
|   | 
|         return happyActivityCategoryService.indexCategory(); | 
|     } | 
| } |