| | |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.config.security.SecurityUtils; |
| | | import com.mzl.flower.dto.request.customer.CreateAddressDTO; |
| | | import com.mzl.flower.dto.request.customer.CreateFollowDTO; |
| | | import com.mzl.flower.dto.request.customer.UpdateAddressDTO; |
| | | import com.mzl.flower.dto.response.customer.FollowDTO; |
| | | import com.mzl.flower.dto.response.supplier.SupplierDTO; |
| | | import com.mzl.flower.entity.customer.Address; |
| | | import com.mzl.flower.service.customer.FollowService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @RequestMapping("/api/follow") |
| | |
| | | public ResponseEntity<ReturnDataDTO<Page<FollowDTO>>> myFollow(Page page) { |
| | | return returnData(R.SUCCESS.getCode(),followService.myFollow(page,SecurityUtils.getUserId())); |
| | | } |
| | | |
| | | @GetMapping("/fans/statis/{supplierId}") |
| | | @ApiOperation(value = "我的关注列表", notes = "我的关注列表") |
| | | public ResponseEntity<ReturnDataDTO<Integer>> myFansStatis(@NotNull(message = "supplierId不能为空") @PathVariable("supplierId") Long supplierId) { |
| | | return returnData(R.SUCCESS.getCode(),followService.getStatisFansCount(supplierId)); |
| | | } |
| | | |
| | | } |