新增:添加租户接口(去掉权限)
This commit is contained in:
@@ -71,6 +71,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/api/system/user-referee/getReferee/**",
|
"/api/system/user-referee/getReferee/**",
|
||||||
"/api/system/dict-data/page",
|
"/api/system/dict-data/page",
|
||||||
"/api/system/organization",
|
"/api/system/organization",
|
||||||
|
"/api/system/tenant/saveByPhone",
|
||||||
"/lvQ4EoivKJ.txt"
|
"/lvQ4EoivKJ.txt"
|
||||||
)
|
)
|
||||||
.permitAll()
|
.permitAll()
|
||||||
|
|||||||
@@ -187,4 +187,13 @@ public class TenantController extends BaseController {
|
|||||||
return success(menus);
|
return success(menus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("创建租户")
|
||||||
|
@PostMapping("/saveByPhone")
|
||||||
|
public ApiResult<?> saveByPhone(@RequestBody Tenant tenant) {
|
||||||
|
if (tenantService.save(tenant)) {
|
||||||
|
return success("添加成功",tenant);
|
||||||
|
}
|
||||||
|
return fail("添加失败");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user