Commit fffb8ad9 by fanjiaxin

推客短信发送调试

parent 80d9d0c8
Pipeline #75541 passed with stages
in 1 minute 7 seconds
......@@ -22,7 +22,7 @@ public class WebConfig implements WebMvcConfigurer {
private final UserInterceptor userInterceptor;
private static final String[] EXCLUDE_URLS = {"/i/health",
"/sharer/open/**", "/sharer/test/**", "/sharer/sms/sendSmsCode",
"/sharer/open/**", "/sharer/test/**",
"/sharer/user/login", "/sharer/product/page/list"};
@Override
......
......@@ -6,13 +6,15 @@
*/
package com.netease.yanxuan.wx.store.sharer.web.controller;
import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.RealNameAuthenticatedBO;
import com.netease.yanxuan.wx.store.sharer.biz.meta.model.bo.SmsCodeBO;
import com.netease.yanxuan.wx.store.sharer.biz.service.ICommissionOrderService;
import com.netease.yanxuan.wx.store.sharer.biz.service.ISmsService;
import com.netease.yanxuan.wx.store.sharer.biz.service.IUserService;
import com.netease.yanxuan.wx.store.sharer.common.core.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @author 刘运星 (liuyunxing01@corp.netease.com)
......@@ -22,9 +24,11 @@ import org.springframework.web.bind.annotation.RestController;
@RequiredArgsConstructor
public class TestController {
private final ICommissionOrderService iCommissionOrderService;
private final IUserService iUserService;
private final ISmsService iSmsService;
/**
* 登录
* 同步订单
*/
@GetMapping("/syncCommissionOrder")
public Result<Void> syncCommissionOrder(@RequestParam("startTime") Long startTime,
......@@ -32,4 +36,23 @@ public class TestController {
iCommissionOrderService.doCommissionOrderSync(startTime, endTime);
return Result.ok();
}
/**
* 发送短信验证码
*/
@PostMapping("/sendSmsCode")
public Result<Boolean> sendSmsCode(@Validated @RequestBody SmsCodeBO bo) {
iSmsService.sendSmsCode(bo);
return Result.ok(true);
}
/**
* 实名认证
*/
@PostMapping("/realNameAuthenticated")
public Result<Boolean> realNameAuthenticated(@Validated @RequestBody RealNameAuthenticatedBO bo) {
iUserService.realNameAuthenticated(bo);
return Result.ok(true);
}
}
\ No newline at end of file
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