✨ 新增几大中心功能
This commit is contained in:
@@ -117,6 +117,38 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
|
||||
{Ptype: "p", V0: "888", V1: "/system/getSystemConfig", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/system/setSystemConfig", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/system/getServerInfo", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/dashboard/stats", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id/overview", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id", V2: "PATCH"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id/reset-password", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id/toggle-enable", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id/recharge", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-asset-transactions", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-asset-transactions/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders/:id/approve", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders/:id/reject", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders/:id/mark-paid", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-withdraw-orders/:id/mark-failed", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-risk-tags", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-risk-tags", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-risk-tags/:id", V2: "PUT"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-risk-tags/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id/risk-tags", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-users/:id/risk-tags", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-user-risk-tags/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-login-logs", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-invite-codes", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-invite-codes/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-invite-codes/:id/revoke", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-invite-codes/issue", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/admin/app-invite-codes/clear-unused", V2: "POST"},
|
||||
|
||||
{Ptype: "p", V0: "888", V1: "/mcp/status", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/mcp/start", V2: "POST"},
|
||||
@@ -176,6 +208,7 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
|
||||
{Ptype: "p", V0: "888", V1: "/sysParams/findSysParams", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/sysParams/getSysParamsList", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/sysParams/getSysParam", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/sysParams/getChangeLogList", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/attachmentCategory/getCategoryList", V2: "GET"},
|
||||
{Ptype: "p", V0: "888", V1: "/attachmentCategory/addCategory", V2: "POST"},
|
||||
{Ptype: "p", V0: "888", V1: "/attachmentCategory/deleteCategory", V2: "POST"},
|
||||
@@ -216,6 +249,39 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
|
||||
{Ptype: "p", V0: "8881", V1: "/system/getSystemConfig", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/system/setSystemConfig", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/user/getUserInfo", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/dashboard/stats", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id/overview", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id", V2: "PATCH"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id/reset-password", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id/toggle-enable", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id/recharge", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-asset-transactions", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-asset-transactions/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders/:id/approve", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders/:id/reject", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders/:id/mark-paid", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-withdraw-orders/:id/mark-failed", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-risk-tags", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-risk-tags", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-risk-tags/:id", V2: "PUT"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-risk-tags/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id/risk-tags", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-users/:id/risk-tags", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-user-risk-tags/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-login-logs", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-invite-codes", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-invite-codes/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-invite-codes/:id/revoke", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-invite-codes/issue", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/admin/app-invite-codes/clear-unused", V2: "POST"},
|
||||
{Ptype: "p", V0: "8881", V1: "/sysParams/getChangeLogList", V2: "GET"},
|
||||
|
||||
{Ptype: "p", V0: "9528", V1: "/user/admin_register", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/api/createApi", V2: "POST"},
|
||||
@@ -260,7 +326,42 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
|
||||
{Ptype: "p", V0: "9528", V1: "/mcp/tools", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/mcp/test", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/mcp/createTool", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/user/invite-code/generate", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/user/invite-code/current", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/user/getUserInfo", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/dashboard/stats", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id/overview", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id", V2: "PATCH"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id/reset-password", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id/toggle-enable", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id/recharge", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-asset-transactions", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-asset-transactions/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders/:id/approve", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders/:id/reject", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders/:id/mark-paid", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-withdraw-orders/:id/mark-failed", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-risk-tags", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-risk-tags", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-risk-tags/:id", V2: "PUT"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-risk-tags/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id/risk-tags", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-users/:id/risk-tags", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-user-risk-tags/:id", V2: "DELETE"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-login-logs", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-invite-codes", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-invite-codes/:id", V2: "GET"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-invite-codes/:id/revoke", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-invite-codes/issue", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/admin/app-invite-codes/clear-unused", V2: "POST"},
|
||||
{Ptype: "p", V0: "9528", V1: "/sysParams/getChangeLogList", V2: "GET"},
|
||||
}
|
||||
if err := db.Create(&entities).Error; err != nil {
|
||||
return ctx, errors.Wrap(err, "Casbin 表 ("+i.InitializerName()+") 数据初始化失败!")
|
||||
|
||||
Reference in New Issue
Block a user