Commit 52fa15b7 authored by qinxunjia's avatar qinxunjia

增加一些逻辑结构

parent a0bc7a79
...@@ -10,9 +10,9 @@ import org.springframework.web.bind.annotation.*; ...@@ -10,9 +10,9 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("/test") @RequestMapping("/test")
public class BizController { public class DmHubApi {
private static final Logger log = LoggerFactory.getLogger(BizController.class); private static final Logger log = LoggerFactory.getLogger(DmHubApi.class);
@Autowired @Autowired
......
...@@ -4,7 +4,7 @@ package com.jz.sms.chuanglan.service.impl; ...@@ -4,7 +4,7 @@ package com.jz.sms.chuanglan.service.impl;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.jz.sms.api.BizController; import com.jz.sms.api.DmHubApi;
import com.jz.sms.chuanglan.dto.*; import com.jz.sms.chuanglan.dto.*;
import com.jz.sms.chuanglan.service.ChuangLanSmsService; import com.jz.sms.chuanglan.service.ChuangLanSmsService;
import com.jz.sms.chuanglan.utils.ChuangLanSmsUtil; import com.jz.sms.chuanglan.utils.ChuangLanSmsUtil;
...@@ -30,7 +30,7 @@ import java.util.regex.Pattern; ...@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
@Service @Service
public class ChuangLanSmsServiceImpl implements ChuangLanSmsService { public class ChuangLanSmsServiceImpl implements ChuangLanSmsService {
private static final Logger log = LoggerFactory.getLogger(BizController.class); private static final Logger log = LoggerFactory.getLogger(DmHubApi.class);
private static final String SUCCESS = "success"; private static final String SUCCESS = "success";
private static final String ERROR = "error"; private static final String ERROR = "error";
private static final String CODE = "code"; private static final String CODE = "code";
......
package com.jz.sms.dmHub.service;
import java.util.Map;
public interface DmHubService {
/**
* 获取DM hub token,用户请求DM hub接口
*
* @param accInfo
* @return token信息
*/
String getToken(Map<String, Object> accInfo);
/**
* 回执报告给DM hub
*
* @param reportInfo
* @return
*/
Map<String, Object> smsReport(Map<String, Object> reportInfo);
}
package com.jz.sms.dmHub.service.impl;
import com.jz.sms.dmHub.service.DmHubService;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* Dm hub系统交互业务层
*/
@Service
public class DmHubServiceImpl implements DmHubService {
@Override
public String getToken(Map<String, Object> accInfo) {
return null;
}
@Override
public Map<String,Object> smsReport(Map<String, Object> accInfo) {
return null;
}
}
...@@ -2,7 +2,6 @@ package com.jz.sms.util; ...@@ -2,7 +2,6 @@ package com.jz.sms.util;
import com.baomidou.mybatisplus.toolkit.MapUtils; import com.baomidou.mybatisplus.toolkit.MapUtils;
import com.jz.sms.api.BizController;
import okhttp3.*; import okhttp3.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment