Commit a59e74b5 by fanjiaxin

代码初始化

parent 627087e8
Pipeline #71448 passed with stages
in 1 minute 8 seconds
......@@ -19,7 +19,7 @@ import java.util.Collections;
public class WebConfig implements WebMvcConfigurer {
private final AuthInterceptor authInterceptor;
private static final String[] EXCLUDE_URLS = {"/open/**", "/i/health", "/user/login", "/product/page/list"};
private static final String[] EXCLUDE_URLS = {"/open/**", "/test/**", "/i/health", "/user/login", "/product/page/list"};
@Override
public void addInterceptors(InterceptorRegistry registry) {
......
......@@ -19,10 +19,6 @@ public class CommissionSharerBO implements Serializable {
*/
private String openId;
/**
* 推客ID
*/
private String sharerId;
/**
* 分佣比例
*/
private BigDecimal CommissionRatio;
......
......@@ -19,10 +19,6 @@ public class CommissionSharerProductBO implements Serializable {
*/
private String openId;
/**
* 推客ID
*/
private String sharerId;
/**
* 商品ID
*/
private Integer productId;
......
......@@ -8,7 +8,8 @@ package com.netease.yanxuan.wx.store.sharer.web.controller;
import com.netease.yanxuan.wx.store.sharer.common.core.Result;
import com.netease.yanxuan.wx.store.sharer.integration.handler.impl.WeChatAccessTokenRequest;
import com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatAccessTokenVO;
import com.netease.yanxuan.wx.store.sharer.integration.handler.impl.WeChatUserInfoRequest;
import com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatUserInfoVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -22,10 +23,11 @@ import org.springframework.web.bind.annotation.RestController;
@RequiredArgsConstructor
public class TestController {
private final WeChatAccessTokenRequest weChatAccessTokenRequest;
private final WeChatUserInfoRequest weChatUserInfoRequest;
@RequestMapping("/token")
public Result<WeChatAccessTokenVO> token() {
WeChatAccessTokenVO handle = weChatAccessTokenRequest.handle();
public Result<WeChatUserInfoVO> token() {
WeChatUserInfoVO handle = weChatUserInfoRequest.handle("0f11uE0w3hIUx43hre0w3NwgHb31uE0Z");
return Result.ok(handle);
......
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