|
@ -1,19 +1,34 @@
|
|
package com.yihu.jw.wechat.service;
|
|
package com.yihu.jw.wechat.service;
|
|
|
|
|
|
import com.yihu.jw.entity.base.wx.WxUrlConfigDO;
|
|
import com.yihu.jw.entity.base.wx.WxUrlConfigDO;
|
|
|
|
import com.yihu.jw.entity.base.wx.WxWechatDO;
|
|
|
|
import com.yihu.jw.restmodel.base.wx.WxContants;
|
|
import com.yihu.jw.restmodel.base.wx.WxWechatVO;
|
|
import com.yihu.jw.restmodel.base.wx.WxWechatVO;
|
|
|
|
import com.yihu.jw.wechat.dao.WechatDao;
|
|
import com.yihu.jw.wechat.dao.WxUrlConfigDao;
|
|
import com.yihu.jw.wechat.dao.WxUrlConfigDao;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Created by Trick on 2018/12/10.
|
|
* Created by Trick on 2018/12/10.
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
public class WxUrlConfigService {
|
|
public class WxUrlConfigService {
|
|
|
|
|
|
|
|
@Autowired
|
|
private WxUrlConfigDao wxUrlConfigDao;
|
|
private WxUrlConfigDao wxUrlConfigDao;
|
|
|
|
|
|
public WxUrlConfigDO getWxWechatConfig(String url){
|
|
|
|
return wxUrlConfigDao.findByUrl(url);
|
|
|
|
|
|
@Autowired
|
|
|
|
private WechatDao wechatDao;
|
|
|
|
|
|
|
|
public Map<String,Object> getWxWechatConfig(String url){
|
|
|
|
WxUrlConfigDO wxUrlConfigDO = wxUrlConfigDao.findByUrl(url);
|
|
|
|
|
|
|
|
WxWechatDO wxWechatDO = wechatDao.findById(wxUrlConfigDO.getWxId());
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|