提交新功能 分销商 积分 会员体系

This commit is contained in:
xwxuan
2024-02-08 20:44:58 +08:00
parent 0e255d6c3a
commit 6f5e6e4662
928 changed files with 39318 additions and 1408 deletions

View File

@ -0,0 +1,46 @@
package co.yixiang.yshop.module.member.api.integralRule;
import lombok.Data;
import org.jetbrains.annotations.NotNull;
import java.math.BigDecimal;
/**
* @author pepis
* @apiNote
**/
@Data
public class IntegralRuleDTO {
/**
* 类型
*/
@NotNull
private String type;
/**
* 获取积分
*/
@NotNull
private Integer integral;
/**
* 拓展字段
*/
private String attribute1;
/**
* 消费金额
*/
private BigDecimal consumeAmount;
/**
* 操作用户
*/
private Long userId;
/**
* 是否开启
*/
private Boolean enable;
public IntegralRuleDTO() {
}
}

View File

@ -1,7 +1,7 @@
package co.yixiang.yshop.module.member.api.user;
import co.yixiang.yshop.module.member.api.user.dto.MemberUserRespDTO;
import co.yixiang.yshop.module.member.api.user.dto.WechatUserDto;
import co.yixiang.yshop.module.member.api.user.dto.WechatUserDTO;
import java.util.Collection;
import java.util.List;
@ -16,7 +16,7 @@ import static co.yixiang.yshop.framework.common.util.collection.CollectionUtils.
*/
public interface MemberUserApi {
void saveWechatMember(WechatUserDto wechatUserDto);
void saveWechatMember(WechatUserDTO wechatUserDto);
/**
* 获得会员用户信息

View File

@ -0,0 +1,9 @@
package co.yixiang.yshop.module.member.api.user;
import co.yixiang.yshop.module.member.api.user.dto.IncreaseNowMoneyDTO;
public interface MemberUserNowMoneyApi {
void increaseNowMoney(IncreaseNowMoneyDTO increaseNowMoneyDTO);
}

View File

@ -0,0 +1,30 @@
package co.yixiang.yshop.module.member.api.user.dto;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class IncreaseNowMoneyDTO {
/**
* 用户ID
*/
private Long id;
/**
* 关联ID
*/
private String link;
/**
* 金额
*/
private BigDecimal amount;
/**
* 备注
*/
private String mark;
}

View File

@ -31,4 +31,17 @@ public class MemberUserRespDTO {
*/
private String mobile;
/**
* 用户头像
*/
private String avatar;
/**
* 微信openId
*/
private String openId;
//小程序openid
private String routineOpenId;
}

View File

@ -12,13 +12,13 @@ import lombok.*;
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WechatUserDto {
public class WechatUserDTO {
private String openid;
private String openId;
private String unionId;
private String routineOpenid;
private String routineOpenId;
private String nickname;

View File

@ -24,12 +24,23 @@ public enum BillDetailEnum {
TYPE_6("system_add","系统添加"),
TYPE_7("system_sub","系统减少"),
TYPE_8("deduction","减去"),
TYPE_9("gain","奖励"),
TYPE_9("gain","购买商品奖励"),
TYPE_10("sign","签到"),
TYPE_11("upgrade","升级"),
TYPE_12("deduction","消费抵扣"),
TYPE_13("canal_order","取消订单"),
SIGN("sign", "签到"),
REGISTER("register", "注册"),
LOGIN("login", "登录"),
CONSUME("consume", "消费奖励"),
COMMENT("comment", "评论"),
SHARE_PRODUCTS("share_products", "分享商品"),
CATEGORY_1("now_money","金额"),
CATEGORY_2("integral","积分");
CATEGORY_2("integral","积分"),
CATEGORY_3("pay","支付"),;

View File

@ -26,4 +26,32 @@ public interface ErrorCodeConstants {
ErrorCode USER_ADDRESS_PARAM_NOT_EXISTS = new ErrorCode(1004004001, "用户收件地址参数错误");
ErrorCode USER_BILL_NOT_EXISTS = new ErrorCode(1004004001, "用户账单不存在");
// ========== 会员标签分组==========
ErrorCode USER_TAG_GROUP_NOT_EXISTS = new ErrorCode(1004005000, "会员标签分组不存在");
// ========== 会员标签==========
ErrorCode USER_TAG_NOT_EXISTS = new ErrorCode(1004006000, "会员标签不存在");
// ========== 用户标签中间 ==========
ErrorCode USER_TAG_REF_NOT_EXISTS = new ErrorCode(1004007000, "用户标签中间不存在");
// ========== 会员积分规则==========
ErrorCode INTEGRAL_RULE_NOT_EXISTS = new ErrorCode(1004008000, "会员积分规则不存在");
// ========== 签到记录 ==========
ErrorCode SIGN_IN_RECORD_NOT_EXISTS = new ErrorCode(1004009000, "签到记录不存在");
ErrorCode TODAY_SIGN_IN_RECORD_EXISTS = new ErrorCode(100409001, "今日已签到");
// ========== 会员等级配置 ==========
ErrorCode USER_LEVEL_CONFIG_NOT_EXISTS = new ErrorCode(1004011000, "会员等级配置不存在");
// ========== 会员等级权益配置==========
ErrorCode USER_LEVEL_EQUITY_NOT_EXISTS = new ErrorCode(1004012000, "会员等级权益配置不存在");
// ========== 会员成长任务配置 ==========
ErrorCode USER_LEVEL_GROWTH_VALUE_CONFIG_NOT_EXISTS = new ErrorCode(1004013000, "会员成长任务配置不存在");
// ========== 会员等级权益中间 ==========
ErrorCode USER_LEVEL_EQUITY_REF_NOT_EXISTS = new ErrorCode(1004014000, "会员等级权益中间不存在");
ErrorCode STORE_NOT_EXISTS = new ErrorCode(1004005000, "请选择门店");
// ========== 邀请日志 ==========
ErrorCode USER_INVITE_LOG_NOT_EXISTS = new ErrorCode(1004006000, "邀请日志不存在");
ErrorCode BURY_POINT_NOT_EXISTS = new ErrorCode(1004007000, "埋点不存在");
ErrorCode NOT_ENOUGH_INTEGRAL = new ErrorCode(1004008000, "积分余额不足");
}

View File

@ -0,0 +1,23 @@
package co.yixiang.yshop.module.member.enums;
import lombok.Getter;
/**
* @author pepis
* @apiNote 等级权益枚举
**/
@Getter
public enum LevelEquityEnum {
FREE_SHIPPING("free_shipping","全场包邮"),
DISCOUNT("discount","会员折扣"),
INTEGRAL("integral","会员积分"),
COUPON("coupon","会员专享券"),
;
private final String type;
private final String name;
LevelEquityEnum(String type, String name) {
this.type = type;
this.name = name;
}
}

View File

@ -0,0 +1,21 @@
package co.yixiang.yshop.module.member.enums;
import lombok.Getter;
/**
* @author pepis
* @apiNote 等级成长值枚举
**/
@Getter
public enum LevelGrowthValueEnum {
CONSUME("consume", "消费"),
INVITE("invite", "邀请"),
;
private final String type;
private final String name;
LevelGrowthValueEnum(String type, String name) {
this.type = type;
this.name = name;
}
}