docs(ShopController): 添加微信和企业微信相关接口的注释
为微信端授权登录、企业微信推送消息跳转、企业微信聊天界面跳转等接口添加详细注释,明确各接口的功能和使用场景
This commit is contained in:
parent
b4d4e658dd
commit
fe5a19157a
|
@ -67,6 +67,12 @@ public class ShopController {
|
|||
return ResponseDTO.ok(new ShopGoodsResponse(goodsWithCabinetList, categoryList, "0"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 微信端商店入口,用于微信端授权登录
|
||||
* 参数中包含token为汇邦云登录
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/wechatAuth")
|
||||
public RedirectView wechatAuthRedirect(HttpServletRequest request) {
|
||||
/*java.util.StringJoiner joiner = new java.util.StringJoiner("&");
|
||||
|
@ -104,6 +110,11 @@ public class ShopController {
|
|||
return new RedirectView(authUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业微信推送消息点击商品图片后跳转的地址
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/qy/wechatAuth")
|
||||
public RedirectView qyWechatAuthRedirect(HttpServletRequest request) {
|
||||
/*java.util.StringJoiner joiner = new java.util.StringJoiner("&");
|
||||
|
@ -123,6 +134,11 @@ public class ShopController {
|
|||
return new RedirectView(authUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业微信推送消息点击商品图片后跳转的地址
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/approvalRedirect")
|
||||
public RedirectView approvalRedirect(HttpServletRequest request) {
|
||||
UriComponentsBuilder builder = UriComponentsBuilder
|
||||
|
@ -139,7 +155,11 @@ public class ShopController {
|
|||
return new RedirectView(builder.build().encode().toUriString());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 企业微信聊天界面点击进入主页后跳转的地址
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/qy/wechatAuth/home")
|
||||
public RedirectView qyWechatAuthHomeRedirect(HttpServletRequest request) {
|
||||
String userAgent = request.getHeader("User-Agent");
|
||||
|
@ -157,6 +177,12 @@ public class ShopController {
|
|||
return new RedirectView(authUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业微信聊天界面点击进入主页后跳转的地址
|
||||
* 移动端
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/homeRedirect")
|
||||
public RedirectView homeRedirect(HttpServletRequest request) {
|
||||
UriComponentsBuilder builder = UriComponentsBuilder
|
||||
|
@ -173,6 +199,12 @@ public class ShopController {
|
|||
return new RedirectView(builder.build().encode().toUriString());
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业微信聊天界面点击进入主页后跳转的地址
|
||||
* PC端
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/adminRedirect")
|
||||
public RedirectView adminRedirect(HttpServletRequest request) {
|
||||
UriComponentsBuilder builder = UriComponentsBuilder
|
||||
|
|
Loading…
Reference in New Issue