1.供应商角色是PROXY\_SUPPLIER,租赁账户角色编码是PROXY\_ACCOUNT,帮我实现供应商角色和租赁账户后台首页
2\. 给出供应商角色和租赁账户所有权限配置接口的插入sql。
This commit is contained in:
1 parent
fcff9fa48d
commit
dcffc60d80
6 files changed
+146
-2
No files matched your search
@@ -76,7 +76,7 @@ public class RentalController {
|
||||
}
|
||||
|
||||
@PostMapping("/register/{resource}")
|
||||
@PreAuthorize("@ss.hasPermi('rent:portal:register')")
|
||||
@PreAuthorize("@ss.hasPermi('rent:portal:register') or @ss.hasPermi('rent:' + #resource + ':create')")
|
||||
public AjaxResult register(
|
||||
@PathVariable String resource, @RequestBody Map<String, Object> body) {
|
||||
return AjaxResult.success(provisioning.create(resource, body, user()));
|
||||
@@ -155,7 +155,7 @@ public class RentalController {
|
||||
}
|
||||
|
||||
@PostMapping("/account/open")
|
||||
@PreAuthorize("@ss.hasPermi('rent:portal:register')")
|
||||
@PreAuthorize("@ss.hasPermi('rent:portal:register') or @ss.hasPermi('rent:account:open')")
|
||||
public AjaxResult account(@RequestBody Map<String, Object> body) {
|
||||
return AjaxResult.success(funds.account(user(), input(body, "network", 16)));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user