提交 11dba52d authored 作者: 000516's avatar 000516 提交者: Coding

1、添加统一状态编码StatusType;2、添加返回异常编码

1、添加统一状态编码StatusType;2、添加返回异常编码
package com.wangxiaolu.promotion.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author : liqiulin
* @date : 2024-08-05 15
* @describe :
*/
@AllArgsConstructor
@Getter
public enum StatusType {
/**
* 有效
*/
VALID(1),
INVALID(0),
;
private Integer type;
}
......@@ -70,6 +70,8 @@ public enum RCode implements StatusCode {
NOT_TGCJ_PHOTO_ERROR(4018, "推广成交照片数量过少"),
NOT_POS_PHOTO_ERROR(4019, "POS机凭证照片未上传"),
NOT_MARKET_CELL_ERROR(4020, "商品出售记录未添加"),
ACTIVITY_DATA_NOT_HAVE_ERROR(4021, "售卖记录不存在"),
CLOCK_DATA_NOT_HAVE_ERROR(4022, "打卡记录不存在"),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论