From 5e19f35d76a97911c6e4007e383aff31eb74ea8b Mon Sep 17 00:00:00 2001 From: fabian4 Date: Tue, 24 Sep 2024 22:52:04 +0800 Subject: [PATCH] feat: add related cache for additional instance data. --- auth/policy/helper.go | 17 +++++++++++++++++ auth/policy/role.go | 17 +++++++++++++++++ store/mysql/scripts/delta/v1_18_1-v1_18_2.sql | 16 ++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/auth/policy/helper.go b/auth/policy/helper.go index e77f14de1..fc986bd3f 100644 --- a/auth/policy/helper.go +++ b/auth/policy/helper.go @@ -1,3 +1,20 @@ +/** + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * Unless required by applicable law or agreed to in writing, software distributed + * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + package policy import ( diff --git a/auth/policy/role.go b/auth/policy/role.go index 2417883ba..cc6d0fb91 100644 --- a/auth/policy/role.go +++ b/auth/policy/role.go @@ -1,3 +1,20 @@ +/** + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * Unless required by applicable law or agreed to in writing, software distributed + * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + package policy import ( diff --git a/store/mysql/scripts/delta/v1_18_1-v1_18_2.sql b/store/mysql/scripts/delta/v1_18_1-v1_18_2.sql index 49041073d..1535f73ed 100644 --- a/store/mysql/scripts/delta/v1_18_1-v1_18_2.sql +++ b/store/mysql/scripts/delta/v1_18_1-v1_18_2.sql @@ -1,3 +1,19 @@ +/** + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * Unless required by applicable law or agreed to in writing, software distributed + * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ /* 角色数据 */ CREATE TABLE `auth_role` (