优化测试问题

This commit is contained in:
fanzongzhe
2024-01-15 16:45:40 +08:00
parent 443d617756
commit 4de8d67936
5 changed files with 51 additions and 0 deletions

View File

@@ -136,4 +136,9 @@ public interface MessageFeign {
@ApiOperation("消息推送测试")
@PostMapping("/pushTest")
ResultBean pushTest(@RequestParam("userSid") String userSid);
@ApiOperation("发送短信通知")
@PostMapping("/pushSms")
ResultBean pushSms(@RequestBody PushSmsDto dto);
}

View File

@@ -115,4 +115,11 @@ public class MessageFeignFallback implements MessageFeign {
public ResultBean pushTest(String userSid) {
return null;
}
@Override
public ResultBean pushSms(PushSmsDto dto) {
return null;
}
}

View File

@@ -0,0 +1,17 @@
package com.yxt.messagecenter.api.message;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author Fan
* @description
* @date 2024/1/15 15:47
*/
@Data
public class PushSmsDto {
@ApiModelProperty("手机号")
private String mobile;
@ApiModelProperty("短信内容")
private String msg;
}