新增:添加租户接口(去掉权限)

This commit is contained in:
2025-01-20 20:13:41 +08:00
parent 486cea2c30
commit 5bf223d94f
2 changed files with 10 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/api/system/user-referee/getReferee/**",
"/api/system/dict-data/page",
"/api/system/organization",
"/api/system/tenant/saveByPhone",
"/lvQ4EoivKJ.txt"
)
.permitAll()

View File

@@ -187,4 +187,13 @@ public class TenantController extends BaseController {
return success(menus);
}
@ApiOperation("创建租户")
@PostMapping("/saveByPhone")
public ApiResult<?> saveByPhone(@RequestBody Tenant tenant) {
if (tenantService.save(tenant)) {
return success("添加成功",tenant);
}
return fail("添加失败");
}
}