mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-20 18:47:38 +08:00
🎨 移除多余TicketType,移到common模块进行共享使用
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package cn.binarywang.wx.miniapp.config.impl;
|
||||
|
||||
import cn.binarywang.wx.miniapp.constant.TicketType;
|
||||
import me.chanjar.weixin.common.enums.TicketType;
|
||||
import me.chanjar.weixin.common.redis.JedisWxRedisOps;
|
||||
import me.chanjar.weixin.common.redis.WxRedisOps;
|
||||
import redis.clients.jedis.JedisPool;
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package cn.binarywang.wx.miniapp.config.impl;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import redis.clients.jedis.Jedis;
|
||||
|
||||
/**
|
||||
@@ -9,13 +10,9 @@ import redis.clients.jedis.Jedis;
|
||||
* 需要引入依赖<a href="https://github.com/abelaska/jedis-lock">jedis-lock</a>,才能使用该类。
|
||||
* </pre>
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
public class WxMaRedisConnectionConfigImpl extends AbstractWxMaRedisConfig {
|
||||
|
||||
public WxMaRedisConnectionConfigImpl(Jedis jedis) {
|
||||
this.jedis = jedis;
|
||||
}
|
||||
|
||||
private Jedis jedis;
|
||||
private final Jedis jedis;
|
||||
|
||||
@Override
|
||||
protected Jedis getJedis() {
|
||||
|
@@ -1,30 +0,0 @@
|
||||
package cn.binarywang.wx.miniapp.constant;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* ticket类型枚举
|
||||
* Created by Binary Wang on 2018/11/18.
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
*/
|
||||
@Getter
|
||||
@RequiredArgsConstructor
|
||||
public enum TicketType {
|
||||
/**
|
||||
* jsapi
|
||||
*/
|
||||
JSAPI("jsapi"),
|
||||
/**
|
||||
* 微信卡券
|
||||
*/
|
||||
WX_CARD("wx_card");
|
||||
/**
|
||||
* type代码
|
||||
*/
|
||||
private final String code;
|
||||
|
||||
}
|
Reference in New Issue
Block a user