拆分think模块包
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.gxwebsoft.common.core.constants;
|
||||
|
||||
public class BalanceConstants {
|
||||
// 余额变动场景
|
||||
public static final Integer BALANCE_RECHARGE = 10; // 用户充值
|
||||
public static final Integer BALANCE_USE = 20; // 用户消费
|
||||
public static final Integer BALANCE_RE_LET = 21; // 续租
|
||||
public static final Integer BALANCE_ADMIN = 30; // 管理员操作
|
||||
public static final Integer BALANCE_REFUND = 40; // 订单退款
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.gxwebsoft.common.core.constants;
|
||||
|
||||
public class DomainConstants {
|
||||
public static final String ROOT_DOMAIN = "websoft.top"; // 根域名
|
||||
public static final String PREFIX = "https://"; // 域名前缀
|
||||
public static final String ADMIN_SUFFIX = ".".concat(ROOT_DOMAIN); // 后台管理域名拼接
|
||||
public static final String WEB_SUFFIX = ".wsdns.cn"; // 应用域名拼接
|
||||
public static final String DOMAIN = PREFIX.concat(ROOT_DOMAIN); // 完整域名
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.gxwebsoft.common.core.constants;
|
||||
|
||||
public class OrderConstants {
|
||||
// 支付方式
|
||||
public static final String PAY_METHOD_BALANCE = "10"; // 余额支付
|
||||
public static final String PAY_METHOD_WX = "20"; // 微信支付
|
||||
public static final String PAY_METHOD_ALIPAY = "30"; // 支付宝支付
|
||||
public static final String PAY_METHOD_OTHER = "40"; // 其他支付
|
||||
|
||||
// 付款状态
|
||||
public static final Integer PAY_STATUS_NO_PAY = 10; // 未付款
|
||||
public static final Integer PAY_STATUS_SUCCESS = 20; // 已付款
|
||||
|
||||
// 发货状态
|
||||
public static final Integer DELIVERY_STATUS_NO = 10; // 未发货
|
||||
public static final Integer DELIVERY_STATUS_YES = 20; // 已发货
|
||||
public static final Integer DELIVERY_STATUS_30 = 30; // 部分发货
|
||||
|
||||
// 收货状态
|
||||
public static final Integer RECEIPT_STATUS_NO = 10; // 未收货
|
||||
public static final Integer RECEIPT_STATUS_YES = 20; // 已收货
|
||||
public static final Integer RECEIPT_STATUS_RETURN = 30; // 已退货
|
||||
|
||||
// 订单状态
|
||||
public static final Integer ORDER_STATUS_DOING = 10; // 进行中
|
||||
public static final Integer ORDER_STATUS_CANCEL = 20; // 已取消
|
||||
public static final Integer ORDER_STATUS_TO_CANCEL = 21; // 待取消
|
||||
public static final Integer ORDER_STATUS_COMPLETED = 30; // 已完成
|
||||
|
||||
// 订单结算状态
|
||||
public static final Integer ORDER_SETTLED_YES = 1; // 已结算
|
||||
public static final Integer ORDER_SETTLED_NO = 0; // 未结算
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.gxwebsoft.common.core.constants;
|
||||
|
||||
public class PlatformConstants {
|
||||
public static final String MP_OFFICIAL = "MP-OFFICIAL"; // 微信公众号
|
||||
public static final String MP_WEIXIN = "MP-WEIXIN"; // 微信小程序
|
||||
public static final String MP_ALIPAY = "MP-ALIPAY"; // 支付宝小程序
|
||||
public static final String WEB = "WEB"; // web(同H5)
|
||||
public static final String H5 = "H5"; // H5(推荐使用 WEB)
|
||||
public static final String APP = "APP"; // App
|
||||
public static final String MP_BAIDU = "MP-BAIDU"; // 百度小程序
|
||||
public static final String MP_TOUTIAO = "MP-TOUTIAO"; // 百度小程序
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.gxwebsoft.common.core.constants;
|
||||
|
||||
public class ProfitConstants {
|
||||
// 收益类型
|
||||
public static final Integer PROFIT_TYPE10 = 10; // 推广收益
|
||||
public static final Integer PROFIT_TYPE20 = 20; // 团队收益
|
||||
public static final Integer PROFIT_TYPE30 = 30; // 门店收益
|
||||
public static final Integer PROFIT_TYPE40 = 30; // 区域收益
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.gxwebsoft.common.core.constants;
|
||||
|
||||
public class RedisConstants {
|
||||
// 短信验证码Key
|
||||
public static final String SMS_CODE_KEY = "sms";
|
||||
// 验证码过期时间
|
||||
public static final Long SMS_CODE_TTL = 5L;
|
||||
// 微信凭证access-token
|
||||
public static final String ACCESS_TOKEN_KEY = "access-token";
|
||||
// 空值防止击穿数据库
|
||||
public static final Long CACHE_NULL_TTL = 2L;
|
||||
// 商户信息
|
||||
public static final String MERCHANT_KEY = "merchant";
|
||||
// 添加商户定位点
|
||||
public static final String MERCHANT_GEO_KEY = "merchant-geo";
|
||||
|
||||
// token
|
||||
public static final String TOKEN_USER_ID = "cache:token:";
|
||||
// 排行榜
|
||||
public static final String USER_RANKING_BY_APPS = "userRankingByApps";
|
||||
// 搜索历史
|
||||
public static final String SEARCH_HISTORY = "searchHistory";
|
||||
// 租户系统设置信息
|
||||
public static final String TEN_ANT_SETTING_KEY = "setting";
|
||||
// 排行榜Key
|
||||
public static final String USER_RANKING_BY_APPS_5 = "cache5:userRankingByApps";
|
||||
|
||||
|
||||
|
||||
// 哗啦啦key
|
||||
public static final String getAllShop = "allShop";
|
||||
public static final String getBaseInfo = "baseInfo";
|
||||
public static final String getFoodClassCategory = "foodCategory";
|
||||
public static final String getOpenFood = "openFood";
|
||||
public static final String haulalaGeoKey = "cache10:hualala-geo";
|
||||
public static final String HLL_CART_KEY = "hll-cart"; // hll-cart[shopId]:[userId]
|
||||
public static final String HLL_CART_FOOD_KEY = "hll-cart-list"; // hll-cart-list[shopId]:[userId]
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user