parent
fedc957502
commit
363c1663f4
@ -0,0 +1,37 @@ |
||||
package com.cjy.back.ybsjCommodityManage.controller; |
||||
|
||||
import com.cjy.back.ybsjCommodityManage.entity.CommodityOpenUrlStatistics; |
||||
import com.cjy.back.ybsjCommodityManage.service.CommodityInfoService; |
||||
import com.cjy.util.ServerResponse; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import javax.servlet.http.HttpServletRequest; |
||||
|
||||
/** |
||||
* @author liangjiawei |
||||
* @createDate 2023/8/29 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/mobile/commodityOpenUrlStatistics") |
||||
public class AppletsCommodityOpenUrlStatisticsController { |
||||
@Autowired |
||||
CommodityInfoService commodityInfoService; |
||||
|
||||
/** |
||||
* 统计数据添加 |
||||
* |
||||
* @param request |
||||
* @param commodityId |
||||
* @return |
||||
*/ |
||||
@RequestMapping("add") |
||||
public ServerResponse addCommodityOpenUrlStatistics(HttpServletRequest request, String commodityId) { |
||||
|
||||
CommodityOpenUrlStatistics commodityOpenUrlStatistics = new CommodityOpenUrlStatistics(); |
||||
commodityOpenUrlStatistics.setCommodityId(commodityId); |
||||
return commodityInfoService.addCommodityOpenUrlStatistics(commodityOpenUrlStatistics); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue