()
| 103 | |
| 104 | // 构建所有服务的 system_role |
| 105 | function systemRoleFactory(): IMapping { |
| 106 | let systems_role: IMapping = {}; |
| 107 | Object.keys(services).forEach(key => systems_role[key] = defaultOption.system_role); |
| 108 | return systems_role; |
| 109 | } |
| 110 | |
| 111 | // 构建所有服务的 user_role |
| 112 | function userRoleFactory(): IMapping { |