API组建fix
This commit is contained in:
parent
c2fdab2b93
commit
4b2888d06d
|
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue