|
@@ -13,6 +13,8 @@ import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
|
import com.zhongzheng.modules.activity.vo.ActivityGoodsPriceVo;
|
|
|
+import com.zhongzheng.modules.alisms.bo.SmsAddBo;
|
|
|
+import com.zhongzheng.modules.alisms.service.IAliSmsService;
|
|
|
import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseTopicGoodsQueryBo;
|
|
@@ -95,6 +97,8 @@ public class CommonController extends BaseController {
|
|
|
|
|
|
private final IUserService iUserService;
|
|
|
|
|
|
+ private final IAliSmsService iSmsService;
|
|
|
+
|
|
|
@PostMapping("/returnStream")
|
|
|
public AjaxResult returnStream(MultipartFile file, HttpServletResponse response) throws IOException {
|
|
|
ServletOutputStream out = null;
|
|
@@ -400,4 +404,11 @@ public class CommonController extends BaseController {
|
|
|
UserLiveAccountLoginVo vo = iUserService.liveUnifyLoginRefresh(bo);
|
|
|
return AjaxResult.success(vo);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("获取登录短信")
|
|
|
+ @PostMapping("/live/sms")
|
|
|
+ public AjaxResult liveSms(@RequestBody SmsAddBo bo) {
|
|
|
+ iSmsService.sendLiveSms(bo.getTel());
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
}
|