API组建fix

This commit is contained in:
kuang.yife 2024-03-11 22:58:56 +08:00
parent c2fdab2b93
commit 4b2888d06d
4 changed files with 6 additions and 7 deletions

View File

@ -22,14 +22,13 @@ public class PlayletUserAppController {
@ResponseBody
@PostMapping(value = "/loginByOpenid")
@ApiOperation(value = "小程序通过openid登录系统", httpMethod = "post")
@ApiOperation(value = "小程序通过openid登录系统", httpMethod = "POST")
public Result<PlayletUser> loginByOpenid(@RequestParam(value = "openid") String openid){
try {
return Result.success(playletUserAppService.getByOpenId(openid));
}catch (Exception e){
return Result.error(e.getMessage());
}
}
}

View File

@ -23,7 +23,7 @@ public class OssFileController {
@ResponseBody
@PostMapping(value = "/upload")
@ApiOperation(value = "文件上传接口,返回文件的url地址")
@ApiOperation(value = "文件上传接口,返回文件的url地址", httpMethod = "POST")
public Result<String> upload(@RequestPart @RequestParam("file") MultipartFile multipartFile) {
try {
return Result.success(ossService.upload(multipartFile));

View File

@ -22,8 +22,8 @@ public class SmsController {
private final SmsService smsService;
@ApiOperation(value = "发送短信验证码", httpMethod = "post")
@GetMapping("/sendSmsCode")
@ApiOperation(value = "发送短信验证码", httpMethod = "POST")
@PostMapping("/sendSmsCode")
@ResponseBody
public Result<String> sendSmsCode(@RequestParam(value = "phone") String phone){
try {

View File

@ -22,8 +22,8 @@ public class WxController {
private final WxService wxService;
@ApiOperation(value = "获取openId", httpMethod = "post")
@GetMapping("/getOpenidByCode")
@ApiOperation(value = "获取openId", httpMethod = "POST")
@PostMapping("/getOpenidByCode")
@ResponseBody
public Result<String> getOpenidByCode(@RequestParam(value = "code") String code){
return Result.success(wxService.getOpenidByCode(code));