记得上下班打卡 | git大法好,push需谨慎

Commit 0d6d6946 authored by jiangxiulong's avatar jiangxiulong

swagger 文档整理

parent b5d6d81c
...@@ -25,7 +25,7 @@ public class SweetWechatLoginController { ...@@ -25,7 +25,7 @@ public class SweetWechatLoginController {
private SweetWechatLoginServiceImpl sweetLoginService; private SweetWechatLoginServiceImpl sweetLoginService;
@GetMapping("userInfo") @GetMapping("userInfo")
@ApiOperation("code获取用户信息") @ApiOperation("小程序解密手机号")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true), @ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "encryptedData", value = "encryptedData", required = true), @ApiImplicitParam(type = "query", dataType = "String", name = "encryptedData", value = "encryptedData", required = true),
...@@ -41,7 +41,7 @@ public class SweetWechatLoginController { ...@@ -41,7 +41,7 @@ public class SweetWechatLoginController {
return sweetLoginService.userInfo(code, encryptedData, iv, type); return sweetLoginService.userInfo(code, encryptedData, iv, type);
} }
@ApiOperation(value = "微信小程序登录凭证校验 获取openid", notes = "这里仅用于获取OPENID使用") @ApiOperation(value = "小程序获取openid", notes = "这里仅用于获取OPENID使用")
@GetMapping(value = {"maOpenId"}) @GetMapping(value = {"maOpenId"})
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "jsCode", value = "微信jsCode", required = true), @ApiImplicitParam(type = "query", dataType = "String", name = "jsCode", value = "微信jsCode", required = true),
...@@ -51,7 +51,7 @@ public class SweetWechatLoginController { ...@@ -51,7 +51,7 @@ public class SweetWechatLoginController {
return sweetLoginService.wxaCode2Session(jsCode, type); return sweetLoginService.wxaCode2Session(jsCode, type);
} }
@ApiOperation(value = "微信公众号登录 获取openid", notes = "这里仅用于获取OPENID使用") @ApiOperation(value = "服务号获取openid", notes = "这里仅用于获取OPENID使用")
@GetMapping(value = {"mpOpenId"}) @GetMapping(value = {"mpOpenId"})
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true), @ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true),
...@@ -61,7 +61,7 @@ public class SweetWechatLoginController { ...@@ -61,7 +61,7 @@ public class SweetWechatLoginController {
return sweetLoginService.wxOauth2AccessToken(code, type); return sweetLoginService.wxOauth2AccessToken(code, type);
} }
@ApiOperation(value = "微信公众号登录 获取openId、unionId", notes = "本接口在scope参数为snsapi_base时不再提供unionID字段,只需将scope参数修改为snsapi_userinfo即可重新获得用户unionID") @ApiOperation(value = "服务号获取openId、unionId", notes = "本接口在scope参数为snsapi_base时不再提供unionID字段,只需将scope参数修改为snsapi_userinfo即可重新获得用户unionID")
@GetMapping(value = {"mpAccessTokenInfo"}) @GetMapping(value = {"mpAccessTokenInfo"})
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true), @ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true),
...@@ -71,7 +71,7 @@ public class SweetWechatLoginController { ...@@ -71,7 +71,7 @@ public class SweetWechatLoginController {
return sweetLoginService.mpWxOauth2AccessTokenInfo(code, type); return sweetLoginService.mpWxOauth2AccessTokenInfo(code, type);
} }
@ApiOperation(value = "微信公众号登录 获取用户基本信息", notes = "本接口在用户未关注公众号时,将不返回用户unionID信息,已关注的用户,开发者可使用“获取用户基本信息接口”获取unionID,未关注用户,开发者可使用“微信授权登录接口”并将scope参数设置为snsapi_userinfo,获取用户unionID") @ApiOperation(value = "微服务号获取用户基本信息", notes = "本接口在用户未关注公众号时,将不返回用户unionID信息,已关注的用户,开发者可使用“获取用户基本信息接口”获取unionID,未关注用户,开发者可使用“微信授权登录接口”并将scope参数设置为snsapi_userinfo,获取用户unionID")
@GetMapping(value = {"mpUserInfo"}) @GetMapping(value = {"mpUserInfo"})
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true), @ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true),
......
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