mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-16 12:05:07 +08:00
code review:订单评论、订单积分的变更
This commit is contained in:
@ -58,6 +58,7 @@ public interface MemberUserApi {
|
||||
*/
|
||||
MemberUserRespDTO getUserByMobile(String mobile);
|
||||
|
||||
// TODO @疯狂:是不是新的类,MemberPointApi?
|
||||
/**
|
||||
* 增加用户积分
|
||||
*
|
||||
@ -67,4 +68,5 @@ public interface MemberUserApi {
|
||||
* @param bizId 业务编号
|
||||
*/
|
||||
void addPoint(Long userId, Integer point, Integer bizType, String bizId);
|
||||
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ public enum MemberPointBizTypeEnum implements IntArrayValuable {
|
||||
* 描述
|
||||
*/
|
||||
private final String description;
|
||||
// TODO @疯狂:改成 add 会好点。一个是属性我们尽量不要 isXXX;另外尽量正向思维,不取反;
|
||||
/**
|
||||
* 是否为扣减积分
|
||||
*/
|
||||
@ -42,7 +43,6 @@ public enum MemberPointBizTypeEnum implements IntArrayValuable {
|
||||
return new int[0];
|
||||
}
|
||||
|
||||
|
||||
public static MemberPointBizTypeEnum getByType(Integer type) {
|
||||
return EnumUtil.getBy(MemberPointBizTypeEnum.class,
|
||||
e -> Objects.equals(type, e.getType()));
|
||||
|
Reference in New Issue
Block a user