Administrator
2025-04-23 2f67dbf8e585cbff4ed5737c08d0b0061e8b4d50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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();
    }
}