A股项目迁移

This commit is contained in:
dengli
2023-11-27 16:10:15 +08:00
parent b19c6ec31d
commit 53039f9055
259 changed files with 19419 additions and 0 deletions

View File

@@ -0,0 +1,167 @@
package cn.stock.market.exception;
/**
* @author xlfd
* @email xlfd@gmail.com
* @version 1.0
* @created Jul 14, 2021 1:35:00 PM
*/
public class Code {
//1. 系统级代码9开头
//2. 店铺代码100开头
//3. App用户端300开头
/**
* 未登录
*/
public static final Integer NO_LOGIN = 999;
/**
* 验证码错误
**/
public static final int SMS_CODE_ERROR = 996;
/**
* token已过期或无效
*/
public static final int TOKEN_ILLEGAL_EXCEPTION = 995;
/**
* 实体已存在
*/
public static final int ENTITY_EXIST_EXCEPTION = 994;
/**
* 实体没找到
**/
public static final int ENTITY_NOT_FOUND = 993;
public static final int FIELD_NULL = 997;
/**
* 无效非法的参数
*/
public static final int INVAILD_PARAM_EXCEPTION = 992;
/**
* 订单状态非法
*/
public static final int ORDER_INVAILD_STATUS_EXCEPTION = 991;
/**
* 鲸豆余额不足
**/
public static final int JD_NOTSUFFICIENTFUNDS = 970;
/**
* 系统提示
**/
public static final int SYS_TIP = 988;
/**
* 账号被锁定
**/
public static final int ACCOUNT_LOCK = 980;
/**
* 账号不存在
**/
public static final int ACCOUNT_NOT_FOUND = 981;
/**
* 密码错误
**/
public static final int PASSWORD_ERROR = 982;
/**
* 无权限
**/
public static final int NOT_PERMISSION = 990;
/**
* 库存不足
*/
public static final int STOCK_NOT_ENOUGH = 991;
/**
* 店铺已存在(一个营业执照一个店)
**/
public static final int STORE_EXIST = 101;
/**
* 店铺状态不正常
**/
public static final int STORE_STAUTS_NOT_NORMAL = 102;
/**
* 店铺未注册
**/
public static final int STORE_NOT_OPEN = 112;
/**
* 线下支付扫码异常
**/
public static final int OFFLINESTORERISK = 103;
/**
* 子账号过多
*/
public static final int SUB_ACCOUNT_TOO_MUCH = 104;
public static final int SUB_ACCOUNT_EXCEPTION = 105;
/***
* 店铺不存在
*/
public static final int STORE_NOT_EXIST = 106;
/**
* 没有传递地理位置信息
**/
public static final int NOT_LOCATION_PARAMTER = 300;
/**
* 购买上限
*/
public static final int BUY_LIMIT = 301;
/**
* 一级分类不能设置标签
*/
public static final int CATEGORY_L1_CAN_NOT_SET_TAG = 103;
/**
* 索引 700开始
*/
public static final int ES_INDEX_EXISTS = 700;
public static final int ES_EXCEPTION = 701;
/**
* 桌台存在未支付的订单
*/
public static final int STORE_ROOM_EXISTS_UNPAY_ORDER = 702;
/**
* 已经全额退款
*/
public static final int ALLREADY_REFUNDED_ALL = 710;
/***
* 钱包提现异常
*/
public static final int WITHDRAW_SERVER_EXCEPTION = 720;
/***
* 抢单异常
*/
public static final int ABNORMAL_RUSH_ORDERS = 730;
/***
* 学校园区异常
*/
public static final int SCHOOL_CAMPUS_IS_ABNORMAL = 740;
}

View File

@@ -0,0 +1,23 @@
package cn.stock.market.exception;
import com.ag.exception.CodeException;
/**
* @author xlfd
* @email xlfd@gmail.com
* @version 1.0
* @created Jul 14, 2021 1:34:51 PM
*/
public class SMSException extends CodeException {
/** 描述 */
private static final long serialVersionUID = 1L;
public SMSException() {
super(Code.SMS_CODE_ERROR, "验证码错误");
}
public SMSException(String msg) {
super(Code.SMS_CODE_ERROR, msg);
}
}