用户端满减活动
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.czg.controller.user;
|
||||
|
||||
import com.czg.market.dto.MkDiscountActivityDTO;
|
||||
import com.czg.market.service.MkDiscountActivityService;
|
||||
import com.czg.resp.CzgResult;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 满减活动
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/user/discountActivity")
|
||||
public class UDiscountActivityController {
|
||||
@Resource
|
||||
private MkDiscountActivityService discountActivityService;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*/
|
||||
@GetMapping()
|
||||
public CzgResult<MkDiscountActivityDTO> getActivity(@RequestParam Long shopId) {
|
||||
MkDiscountActivityDTO data = discountActivityService.getActivityByShopId(shopId);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user