消息推送体

This commit is contained in:
wangw 2025-10-15 17:06:29 +08:00
parent 66ecbeb7df
commit d6ca529ca4
3 changed files with 37 additions and 2 deletions

View File

@ -52,6 +52,19 @@ public class SmsPushEventDTO implements Serializable {
*/
@NotNull(message = "发送范围不能为空", groups = InsertGroup.class)
private Long userType;
/**
* 预计人数
*/
@NotNull(message = "预计人数不能为空", groups = InsertGroup.class)
private Long estimateNum;
/**
* 实际人数
*/
private Long actualNum;
/**
* 成功人数
*/
private Long successNum;
/**
* 指定用户时 使用
@ -68,6 +81,12 @@ public class SmsPushEventDTO implements Serializable {
*/
@NotBlank(message = "发送内容不能为空", groups = InsertGroup.class)
private String content;
/**
* 发送参数json
* {"店铺名称":"火锅店","时间":"2025-02-17"}
*/
@NotBlank(message = "发送参数json不能为空", groups = InsertGroup.class)
private String json;
/**
* 赠送券信息[{"id":"268700","num":12,"title":"邀新10元优惠券"}]

View File

@ -49,6 +49,18 @@ public class SmsPushEvent implements Serializable {
* 1 全部用户 2范围用户 3 指定用户 指定暂定一个用户
*/
private Long userType;
/**
* 预计人数
*/
private Long estimateNum;
/**
* 实际人数
*/
private Long actualNum;
/**
* 成功人数
*/
private Long successNum;
/**
* 指定用户时 使用
@ -64,6 +76,11 @@ public class SmsPushEvent implements Serializable {
* 发送内容
*/
private String content;
/**
* 发送参数json
* {"店铺名称":"火锅店","时间":"2025-02-17"}
*/
private String json;
/**
* 赠送券信息[{"id":"268700","num":12,"title":"邀新10元优惠券"}]

View File

@ -1,11 +1,10 @@
package com.czg.market.service;
import com.czg.BaseQueryParam;
import com.czg.market.dto.ShopCouponDTO;
import com.czg.market.dto.SmsPushEventDTO;
import com.czg.market.entity.SmsPushEvent;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.czg.market.entity.SmsPushEvent;
/**
* 营销推送发送记录 服务层