diff --git a/doc/RBAC 权限.sql b/doc/RBAC 权限.sql index c5d308d..f7f173c 100644 --- a/doc/RBAC 权限.sql +++ b/doc/RBAC 权限.sql @@ -66,6 +66,8 @@ VALUES ('所有机票功能', '/air-ticket/all', 'air-ticket') INSERT INTO [dbo].[auth_resource] ([res_name] ,[res_pattern], [res_category]) VALUES ('管理产品', '/products/*', 'products') INSERT INTO [dbo].[auth_resource] ([res_name] ,[res_pattern], [res_category]) +VALUES ('新增产品', '/products/new', 'products') +INSERT INTO [dbo].[auth_resource] ([res_name] ,[res_pattern], [res_category]) VALUES ('审核信息', '/products/info/audit', 'products') INSERT INTO [dbo].[auth_resource] ([res_name] ,[res_pattern], [res_category]) VALUES ('录入信息', '/products/info/put', 'products') diff --git a/src/config.js b/src/config.js index 786bbfe..3583054 100644 --- a/src/config.js +++ b/src/config.js @@ -35,6 +35,7 @@ export const PERM_AIR_TICKET = '/air-ticket/all' // 价格管理 export const PERM_PRODUCTS_MANAGEMENT = '/products/*'; // 管理 +export const PERM_PRODUCTS_NEW = '/products/info/audit'; // 新增产品 export const PERM_PRODUCTS_INFO_AUDIT = '/products/info/audit'; // 信息.审核 export const PERM_PRODUCTS_INFO_PUT = '/products/info/put'; // 信息.录入 export const PERM_PRODUCTS_OFFER_AUDIT = '/products/offer/audit'; // 价格.审核