优惠券

This commit is contained in:
admin
2024-07-05 22:54:24 +08:00
parent 59f8b17117
commit 73ec78d250
36 changed files with 1340 additions and 304 deletions

View File

@@ -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("");
}
}

View File

@@ -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;
/**

View File

@@ -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;
/**