فهرست منبع

'增加学员开发api'

Althars123 4 سال پیش
والد
کامیت
c399bb32f9

+ 1 - 1
hzgzpt-admin/src/main/java/com/miaxis/app/controller/user/UserInfoController.java

@@ -56,7 +56,7 @@ public class UserInfoController extends BaseController{
     /**
      * 获取用户id获取详细信息
      */
-    @GetMapping(value = "ids/{id}")
+    @GetMapping(value = "/ids/{id}")
     @ApiOperation("获取用户信息详细信息")
     public Response<UserInfo> getInfo(
             @ApiParam(name = "id", value = "用户信息参数", required = true)

+ 1 - 1
hzgzpt-common/src/main/java/com/miaxis/common/constant/Constants.java

@@ -140,7 +140,7 @@ public class Constants
     /**
      * 开放api路径 前缀
      */
-    public static final String OPEN_PREFIX = "/open";
+    public static final String OPEN_PREFIX = "/open-api";
 
     /**
      * 学员权限路径

+ 1 - 1
hzgzpt-common/src/main/java/com/miaxis/common/core/domain/entity/UserInfo.java

@@ -26,7 +26,7 @@ public class UserInfo extends BaseBusinessEntity {
 
     /** $column.columnComment */
     @TableId(value = "id")
-    @ApiModelProperty(value = "$column.columnComment")
+    @ApiModelProperty(value = "用户id")
     private Long id;
 
     /** 姓名 */

+ 2 - 1
hzgzpt-framework/src/main/java/com/miaxis/framework/config/SecurityConfig.java

@@ -103,9 +103,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 // 过滤请求
                 .authorizeRequests()
                 // 对于app 开放页面,允许任意访问
-                .antMatchers("/open/**").permitAll()
+                .antMatchers("/**/open-api/**").permitAll()
                 // 对于登录login 验证码captchaImage 允许匿名访问
                 .antMatchers("/login", "/login/noCode","/captchaImage","/login/studentpassword","/login/studentMobileCode","/login/studentMobile").anonymous()
+                //.antMatchers("/student/open/**").permitAll()
                 .antMatchers("/student/**").hasRole("STUDENT")
                 .antMatchers(
                         HttpMethod.GET,