优惠券
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.starry.admin.modules.weichat.controller;
|
||||
|
||||
import com.starry.admin.common.aspect.CustomUserLogin;
|
||||
import com.starry.admin.modules.shop.service.IPlayCouponDetailsService;
|
||||
import com.starry.common.result.R;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @author admin
|
||||
* @since 2024/7/4 11:33
|
||||
**/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/wx/coupon/")
|
||||
public class WxCouponController {
|
||||
|
||||
|
||||
@Resource
|
||||
IPlayCouponDetailsService couponDetailsService;
|
||||
|
||||
/**
|
||||
* 顾客查询本人优惠券列表
|
||||
*/
|
||||
@CustomUserLogin
|
||||
@GetMapping("/custom/queryAll")
|
||||
public R queryAll() {
|
||||
// couponDetailsService.selectByPage()
|
||||
// List<PlayCustomLevelInfoEntity> list = levelInfoService.selectAll();
|
||||
// List<PlayCustomLevelInfoReturnVo> result = new ArrayList<>();
|
||||
// for (PlayCustomLevelInfoEntity entity : list) {
|
||||
// PlayCustomLevelInfoReturnVo vo = new PlayCustomLevelInfoReturnVo();
|
||||
// BeanUtils.copyProperties(entity, vo);
|
||||
// result.add(vo);
|
||||
// }
|
||||
return R.ok("");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -30,7 +30,7 @@ public class PlayOrderEvaluateAddVo {
|
||||
* 匿名评价(0:匿名,1:非匿名)
|
||||
*/
|
||||
@NotBlank(message = "是否匿名不能为空")
|
||||
@Pattern(regexp = "[01]", message = "匿名评价只能位0或1")
|
||||
@Pattern(regexp = "[01]", message = "匿名评价只能为0或1")
|
||||
private String anonymous;
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ public class PlayClerkAddArticleVo {
|
||||
* 动态附件类型(0:图片;1:视频;3:录音)
|
||||
*/
|
||||
@NotBlank(message = "动态附件类型不能为空")
|
||||
@Pattern(regexp = "[012]", message = "动态附件类型只能位0或1")
|
||||
@Pattern(regexp = "[012]", message = "动态附件类型只能为0或1")
|
||||
private String annexType;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user