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 customerCenterTj() { return returnData(R.SUCCESS.getCode(),customerCenterService.customerCenterTj(SecurityUtils.getUserId())); } @GetMapping("/invitereward") @ApiOperation(value = "邀请记录", notes = "邀请记录") public ResponseEntity customerReward() { return returnData(R.SUCCESS.getCode(),customerCenterService.customerReward()); } }