1.修改appUser获取列表权限
2.修改企业获取列表权限
This commit is contained in:
@@ -45,7 +45,7 @@ public class CmsAppUserController extends BaseController
|
|||||||
* 查询APP用户列表
|
* 查询APP用户列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("查询APP用户列表")
|
@ApiOperation("查询APP用户列表")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:appUser:list')")
|
// @PreAuthorize("@ss.hasPermi('cms:appUser:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(AppUser appUser)
|
public TableDataInfo list(AppUser appUser)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -128,4 +128,14 @@ public class CompanyController extends BaseController
|
|||||||
List<Company> list = companyService.approvalList(company);
|
List<Company> list = companyService.approvalList(company);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询公司列表")
|
||||||
|
// @PreAuthorize("@ss.hasPermi('cms:company:list')")
|
||||||
|
@GetMapping("/listPage")
|
||||||
|
public TableDataInfo listPage(Company company)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<Company> list = companyService.selectCompanyList(company);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ public class SecurityConfig
|
|||||||
.authorizeHttpRequests((requests) -> {
|
.authorizeHttpRequests((requests) -> {
|
||||||
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
|
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
|
||||||
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
||||||
requests.antMatchers("/login", "/register", "/captchaImage","/app/login","/websocket/**","/speech-recognition","/speech-synthesis").permitAll()
|
requests.antMatchers("/login", "/register", "/captchaImage","/app/login","/websocket/**","/speech-recognition","/speech-synthesis","/cms/company/listPage","/cms/appUser/list").permitAll()
|
||||||
// 静态资源,可匿名访问
|
// 静态资源,可匿名访问
|
||||||
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
||||||
// 移动端公用查询,可匿名访问
|
// 移动端公用查询,可匿名访问
|
||||||
|
|||||||
Reference in New Issue
Block a user