zhujie
2025-04-11 c6bb4daa335c7615610ca0f7e404ca7aa2825dce
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
package com.mzl.flower.web.customer;
 
import com.mzl.flower.base.BaseController;
import com.mzl.flower.base.R;
import com.mzl.flower.base.ReturnDataDTO;
import com.mzl.flower.config.security.SecurityUtils;
import com.mzl.flower.service.customer.CustomerCenterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
 
@RestController
@RequestMapping("/api/customer/center")
@Api(value = "用户端-个人中心", tags = "用户端-个人中心")
@Validated
@Slf4j
public class CustomerCenterController extends BaseController {
 
    private final CustomerCenterService customerCenterService;
 
    public CustomerCenterController(CustomerCenterService customerCenterService) {
        this.customerCenterService = customerCenterService;
    }
 
 
    @GetMapping("/tj")
    @ApiOperation(value = "我的收藏、关注店铺、浏览记录", notes = "我的收藏、关注店铺、浏览记录")
    public ResponseEntity<ReturnDataDTO> customerCenterTj() {
        return returnData(R.SUCCESS.getCode(),customerCenterService.customerCenterTj(SecurityUtils.getUserId()));
    }
 
    @GetMapping("/invitereward")
    @ApiOperation(value = "邀请记录", notes = "邀请记录")
    public ResponseEntity<ReturnDataDTO> customerReward() {
        return returnData(R.SUCCESS.getCode(),customerCenterService.customerReward());
    }
}