From 7e2521e47a1daa8d22115f27744bd435e1a73493 Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 17:56:55 +0800 Subject: [PATCH 1/7] add copyright header for parts of codes --- obs/db.go | 16 ++++++++++++++++ obs/huaweicloud/client.go | 16 ++++++++++++++++ obs/huaweicloud/config.go | 16 ++++++++++++++++ obs/obs.go | 16 ++++++++++++++++ pdf/corp-signing-pdf.go | 16 ++++++++++++++++ pdf/interface.go | 16 ++++++++++++++++ pdf/pdf-generator.go | 16 ++++++++++++++++ util/file-lock.go | 16 ++++++++++++++++ util/merge-signature.py | 15 +++++++++++++++ util/symmetric_encryption.go | 16 ++++++++++++++++ util/util.go | 16 ++++++++++++++++ worker/worker.go | 16 ++++++++++++++++ 12 files changed, 191 insertions(+) diff --git a/obs/db.go b/obs/db.go index 89decab..a5992b3 100644 --- a/obs/db.go +++ b/obs/db.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 obs import ( diff --git a/obs/huaweicloud/client.go b/obs/huaweicloud/client.go index 0d734a3..3c5d0b3 100644 --- a/obs/huaweicloud/client.go +++ b/obs/huaweicloud/client.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 huaweicloud import ( diff --git a/obs/huaweicloud/config.go b/obs/huaweicloud/config.go index 9c6530a..9fc0a26 100644 --- a/obs/huaweicloud/config.go +++ b/obs/huaweicloud/config.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 huaweicloud import ( diff --git a/obs/obs.go b/obs/obs.go index 13a5e08..2a1a887 100644 --- a/obs/obs.go +++ b/obs/obs.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 obs import ( diff --git a/pdf/corp-signing-pdf.go b/pdf/corp-signing-pdf.go index 36fc2c1..4c544ef 100644 --- a/pdf/corp-signing-pdf.go +++ b/pdf/corp-signing-pdf.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 pdf import ( diff --git a/pdf/interface.go b/pdf/interface.go index a19037a..7cc5b14 100644 --- a/pdf/interface.go +++ b/pdf/interface.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 pdf import ( diff --git a/pdf/pdf-generator.go b/pdf/pdf-generator.go index 8791ce0..41d9ced 100644 --- a/pdf/pdf-generator.go +++ b/pdf/pdf-generator.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 pdf import ( diff --git a/util/file-lock.go b/util/file-lock.go index 80d783d..271f967 100644 --- a/util/file-lock.go +++ b/util/file-lock.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 util import ( diff --git a/util/merge-signature.py b/util/merge-signature.py index 3fe9ac9..39cc7e8 100644 --- a/util/merge-signature.py +++ b/util/merge-signature.py @@ -1,3 +1,18 @@ +# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# 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. + + import sys from PyPDF2 import PdfFileReader diff --git a/util/symmetric_encryption.go b/util/symmetric_encryption.go index 18b4398..7d57dae 100644 --- a/util/symmetric_encryption.go +++ b/util/symmetric_encryption.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 util import ( diff --git a/util/util.go b/util/util.go index 2faa5b1..513e2a9 100644 --- a/util/util.go +++ b/util/util.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 util import ( diff --git a/worker/worker.go b/worker/worker.go index bf8c53b..fef8ea3 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 worker import ( From 04de3cb4f65f9403d39102fa74be8c770325fd4f Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 18:03:40 +0800 Subject: [PATCH 2/7] add copyright header for part 2 of codes --- code-platform-auth/auth.go | 16 ++++++++++++++++ code-platform-auth/config.go | 16 ++++++++++++++++ code-platform-auth/platforms/gitee.go | 16 ++++++++++++++++ code-platform-auth/platforms/github.go | 16 ++++++++++++++++ code-platform-auth/platforms/platform.go | 16 ++++++++++++++++ config/config.go | 16 ++++++++++++++++ email/config.go | 16 ++++++++++++++++ email/email.go | 16 ++++++++++++++++ email/gmail.go | 16 ++++++++++++++++ email/template.go | 16 ++++++++++++++++ oauth2/oauth2.go | 16 ++++++++++++++++ 11 files changed, 176 insertions(+) diff --git a/code-platform-auth/auth.go b/code-platform-auth/auth.go index 9f3b21a..e82955a 100644 --- a/code-platform-auth/auth.go +++ b/code-platform-auth/auth.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 oauth import ( diff --git a/code-platform-auth/config.go b/code-platform-auth/config.go index d7ae346..e373a32 100644 --- a/code-platform-auth/config.go +++ b/code-platform-auth/config.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 oauth import "github.com/opensourceways/app-cla-server/oauth2" diff --git a/code-platform-auth/platforms/gitee.go b/code-platform-auth/platforms/gitee.go index 5c6f37c..57442e7 100644 --- a/code-platform-auth/platforms/gitee.go +++ b/code-platform-auth/platforms/gitee.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 platforms import ( diff --git a/code-platform-auth/platforms/github.go b/code-platform-auth/platforms/github.go index 607263e..5ed243a 100644 --- a/code-platform-auth/platforms/github.go +++ b/code-platform-auth/platforms/github.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 platforms import ( diff --git a/code-platform-auth/platforms/platform.go b/code-platform-auth/platforms/platform.go index d4618d0..617f873 100644 --- a/code-platform-auth/platforms/platform.go +++ b/code-platform-auth/platforms/platform.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 platforms import ( diff --git a/config/config.go b/config/config.go index b182f7d..de74c51 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 config import ( diff --git a/email/config.go b/email/config.go index e9db967..7e62759 100644 --- a/email/config.go +++ b/email/config.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 email type emailConfigs struct { diff --git a/email/email.go b/email/email.go index 2318a78..dde800e 100644 --- a/email/email.go +++ b/email/email.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 email import ( diff --git a/email/gmail.go b/email/gmail.go index 6354090..603cee0 100644 --- a/email/gmail.go +++ b/email/gmail.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 email import ( diff --git a/email/template.go b/email/template.go index a50d201..2065262 100644 --- a/email/template.go +++ b/email/template.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 email import ( diff --git a/oauth2/oauth2.go b/oauth2/oauth2.go index 62223d0..c0b1c6a 100644 --- a/oauth2/oauth2.go +++ b/oauth2/oauth2.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 oauth2 import ( From 57e717e963f815031846e012f76ac0a200252b88 Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 18:05:42 +0800 Subject: [PATCH 3/7] add copyright header for part 3 of codes --- controllers/access-controller.go | 16 ++++++++++++++++ controllers/auth_on_code_platform.go | 16 ++++++++++++++++ controllers/auth_on_corp_manager.go | 16 ++++++++++++++++ controllers/base-controller.go | 16 ++++++++++++++++ controllers/cla.go | 16 ++++++++++++++++ controllers/corporation-manager.go | 16 ++++++++++++++++ controllers/corporation-pdf.go | 16 ++++++++++++++++ controllers/corporation-signing.go | 16 ++++++++++++++++ controllers/employee-manager.go | 16 ++++++++++++++++ controllers/employee-signing.go | 16 ++++++++++++++++ controllers/error.go | 16 ++++++++++++++++ controllers/individual-signing.go | 16 ++++++++++++++++ controllers/link.go | 16 ++++++++++++++++ controllers/org-email.go | 16 ++++++++++++++++ controllers/org-repo.go | 16 ++++++++++++++++ controllers/org-signature.go | 16 ++++++++++++++++ controllers/util.go | 16 ++++++++++++++++ controllers/verification_code.go | 16 ++++++++++++++++ 18 files changed, 288 insertions(+) diff --git a/controllers/access-controller.go b/controllers/access-controller.go index 57e27f9..031be21 100644 --- a/controllers/access-controller.go +++ b/controllers/access-controller.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/auth_on_code_platform.go b/controllers/auth_on_code_platform.go index f96c43c..93aa811 100644 --- a/controllers/auth_on_code_platform.go +++ b/controllers/auth_on_code_platform.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/auth_on_corp_manager.go b/controllers/auth_on_corp_manager.go index d74e910..d678f27 100644 --- a/controllers/auth_on_corp_manager.go +++ b/controllers/auth_on_corp_manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/base-controller.go b/controllers/base-controller.go index 0fbb678..8f7e76f 100644 --- a/controllers/base-controller.go +++ b/controllers/base-controller.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/cla.go b/controllers/cla.go index 3a9c5ca..9f79921 100644 --- a/controllers/cla.go +++ b/controllers/cla.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/corporation-manager.go b/controllers/corporation-manager.go index 443aa42..a282a96 100644 --- a/controllers/corporation-manager.go +++ b/controllers/corporation-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/corporation-pdf.go b/controllers/corporation-pdf.go index 0a9b831..b11e3b0 100644 --- a/controllers/corporation-pdf.go +++ b/controllers/corporation-pdf.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/corporation-signing.go b/controllers/corporation-signing.go index b43d022..fc90b3e 100644 --- a/controllers/corporation-signing.go +++ b/controllers/corporation-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/employee-manager.go b/controllers/employee-manager.go index 8ad2a49..4b42070 100644 --- a/controllers/employee-manager.go +++ b/controllers/employee-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/employee-signing.go b/controllers/employee-signing.go index 3e6291d..e4ffe29 100644 --- a/controllers/employee-signing.go +++ b/controllers/employee-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/error.go b/controllers/error.go index 8356d1b..b4cde52 100644 --- a/controllers/error.go +++ b/controllers/error.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import "github.com/opensourceways/app-cla-server/models" diff --git a/controllers/individual-signing.go b/controllers/individual-signing.go index f935447..559bb58 100644 --- a/controllers/individual-signing.go +++ b/controllers/individual-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/link.go b/controllers/link.go index 6c3e4a7..7ccfcd1 100644 --- a/controllers/link.go +++ b/controllers/link.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/org-email.go b/controllers/org-email.go index 71c5b4f..b129e89 100644 --- a/controllers/org-email.go +++ b/controllers/org-email.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/org-repo.go b/controllers/org-repo.go index 466a4ee..cdf4635 100644 --- a/controllers/org-repo.go +++ b/controllers/org-repo.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers type OrgRepoController struct { diff --git a/controllers/org-signature.go b/controllers/org-signature.go index dcfa48c..239aef0 100644 --- a/controllers/org-signature.go +++ b/controllers/org-signature.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/util.go b/controllers/util.go index b2456f5..5dc2b09 100644 --- a/controllers/util.go +++ b/controllers/util.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( diff --git a/controllers/verification_code.go b/controllers/verification_code.go index 7249ce7..5fbf754 100644 --- a/controllers/verification_code.go +++ b/controllers/verification_code.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 controllers import ( From b82e6c66953c9f109e151d163850a85a69f8220d Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 18:07:00 +0800 Subject: [PATCH 4/7] add copyright header for part 4 of codes --- dbmodels/cla.go | 16 ++++++++++++++++ dbmodels/corporation-manager.go | 16 ++++++++++++++++ dbmodels/corporation-signing.go | 16 ++++++++++++++++ dbmodels/db.go | 16 ++++++++++++++++ dbmodels/error.go | 16 ++++++++++++++++ dbmodels/individual-signing.go | 16 ++++++++++++++++ dbmodels/link.go | 16 ++++++++++++++++ dbmodels/org-email.go | 16 ++++++++++++++++ dbmodels/verification-code.go | 16 ++++++++++++++++ 9 files changed, 144 insertions(+) diff --git a/dbmodels/cla.go b/dbmodels/cla.go index 3d1994d..0bd4d7c 100644 --- a/dbmodels/cla.go +++ b/dbmodels/cla.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels const ( diff --git a/dbmodels/corporation-manager.go b/dbmodels/corporation-manager.go index b6f9c91..bd7bdc3 100644 --- a/dbmodels/corporation-manager.go +++ b/dbmodels/corporation-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels const ( diff --git a/dbmodels/corporation-signing.go b/dbmodels/corporation-signing.go index 814ffde..c211ca8 100644 --- a/dbmodels/corporation-signing.go +++ b/dbmodels/corporation-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels type TypeSigningInfo map[string]string diff --git a/dbmodels/db.go b/dbmodels/db.go index c000172..0d6e50b 100644 --- a/dbmodels/db.go +++ b/dbmodels/db.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels var db IDB diff --git a/dbmodels/error.go b/dbmodels/error.go index c73f8e4..0b8f5c7 100644 --- a/dbmodels/error.go +++ b/dbmodels/error.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels type DBErrCode string diff --git a/dbmodels/individual-signing.go b/dbmodels/individual-signing.go index 8dd8e41..1748ab8 100644 --- a/dbmodels/individual-signing.go +++ b/dbmodels/individual-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels type IndividualSigningBasicInfo struct { diff --git a/dbmodels/link.go b/dbmodels/link.go index 4bc17b2..5254a2c 100644 --- a/dbmodels/link.go +++ b/dbmodels/link.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels import ( diff --git a/dbmodels/org-email.go b/dbmodels/org-email.go index 2e2b43d..7e77cb5 100644 --- a/dbmodels/org-email.go +++ b/dbmodels/org-email.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels type OrgEmailCreateInfo struct { diff --git a/dbmodels/verification-code.go b/dbmodels/verification-code.go index 08c2cfd..61bf747 100644 --- a/dbmodels/verification-code.go +++ b/dbmodels/verification-code.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 dbmodels type VerificationCode struct { From c9862312c97dce873293ecfefd143034241d5b5c Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 18:07:52 +0800 Subject: [PATCH 5/7] add copyright header for part 5 of codes --- models/cla.go | 16 ++++++++++++++++ models/corporation-manager.go | 16 ++++++++++++++++ models/corporation-signing.go | 16 ++++++++++++++++ models/employee-manager.go | 16 ++++++++++++++++ models/employee-signing.go | 16 ++++++++++++++++ models/error.go | 16 ++++++++++++++++ models/individual-signing.go | 16 ++++++++++++++++ models/link.go | 16 ++++++++++++++++ models/org-email.go | 16 ++++++++++++++++ models/util.go | 16 ++++++++++++++++ models/verification_code.go | 16 ++++++++++++++++ 11 files changed, 176 insertions(+) diff --git a/models/cla.go b/models/cla.go index 6ec857d..9986801 100644 --- a/models/cla.go +++ b/models/cla.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/corporation-manager.go b/models/corporation-manager.go index ab947a0..7431aa4 100644 --- a/models/corporation-manager.go +++ b/models/corporation-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/corporation-signing.go b/models/corporation-signing.go index 9764ec3..7647d31 100644 --- a/models/corporation-signing.go +++ b/models/corporation-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/employee-manager.go b/models/employee-manager.go index 992dbf0..53706e7 100644 --- a/models/employee-manager.go +++ b/models/employee-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/employee-signing.go b/models/employee-signing.go index 33e1430..c32e8b8 100644 --- a/models/employee-signing.go +++ b/models/employee-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import "github.com/opensourceways/app-cla-server/dbmodels" diff --git a/models/error.go b/models/error.go index 6784952..5d542de 100644 --- a/models/error.go +++ b/models/error.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/individual-signing.go b/models/individual-signing.go index 2f6b399..c7c3352 100644 --- a/models/individual-signing.go +++ b/models/individual-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/link.go b/models/link.go index 38f0a41..841764f 100644 --- a/models/link.go +++ b/models/link.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/org-email.go b/models/org-email.go index b60e1b5..dadb93b 100644 --- a/models/org-email.go +++ b/models/org-email.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/util.go b/models/util.go index e95bcbf..7e372c8 100644 --- a/models/util.go +++ b/models/util.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( diff --git a/models/verification_code.go b/models/verification_code.go index 090d436..8058d5f 100644 --- a/models/verification_code.go +++ b/models/verification_code.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 models import ( From 44fe6109130cc2c1cf423ceb73d9799c48d32203 Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 18:08:23 +0800 Subject: [PATCH 6/7] add copyright header for part 6 of codes --- mongodb/cla-signing.go | 16 ++++++++++++++++ mongodb/cla.go | 16 ++++++++++++++++ mongodb/corporation-manager.go | 16 ++++++++++++++++ mongodb/corporation-pdf.go | 16 ++++++++++++++++ mongodb/corporation-signing-deleted.go | 16 ++++++++++++++++ mongodb/corporation-signing.go | 16 ++++++++++++++++ mongodb/db-ops.go | 16 ++++++++++++++++ mongodb/employee-manager.go | 16 ++++++++++++++++ mongodb/encryption.go | 16 ++++++++++++++++ mongodb/error.go | 16 ++++++++++++++++ mongodb/individual-signing.go | 16 ++++++++++++++++ mongodb/link.go | 16 ++++++++++++++++ mongodb/models.go | 16 ++++++++++++++++ mongodb/mongodb.go | 16 ++++++++++++++++ mongodb/org-email.go | 16 ++++++++++++++++ mongodb/util.go | 16 ++++++++++++++++ mongodb/verification-code.go | 16 ++++++++++++++++ 17 files changed, 272 insertions(+) diff --git a/mongodb/cla-signing.go b/mongodb/cla-signing.go index 27096fe..8da43a5 100644 --- a/mongodb/cla-signing.go +++ b/mongodb/cla-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/cla.go b/mongodb/cla.go index 9c8b4e4..b6025bf 100644 --- a/mongodb/cla.go +++ b/mongodb/cla.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/corporation-manager.go b/mongodb/corporation-manager.go index 975f202..1bf2117 100644 --- a/mongodb/corporation-manager.go +++ b/mongodb/corporation-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/corporation-pdf.go b/mongodb/corporation-pdf.go index 1d5ae6d..c554e41 100644 --- a/mongodb/corporation-pdf.go +++ b/mongodb/corporation-pdf.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/corporation-signing-deleted.go b/mongodb/corporation-signing-deleted.go index a39fe4e..d44fa34 100644 --- a/mongodb/corporation-signing-deleted.go +++ b/mongodb/corporation-signing-deleted.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/corporation-signing.go b/mongodb/corporation-signing.go index b5cd5bd..5c81a63 100644 --- a/mongodb/corporation-signing.go +++ b/mongodb/corporation-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/db-ops.go b/mongodb/db-ops.go index a47967e..018fb83 100644 --- a/mongodb/db-ops.go +++ b/mongodb/db-ops.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/employee-manager.go b/mongodb/employee-manager.go index 15eca43..4851654 100644 --- a/mongodb/employee-manager.go +++ b/mongodb/employee-manager.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/encryption.go b/mongodb/encryption.go index db150b7..73889a8 100644 --- a/mongodb/encryption.go +++ b/mongodb/encryption.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/error.go b/mongodb/error.go index 2c73452..c669fdb 100644 --- a/mongodb/error.go +++ b/mongodb/error.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/individual-signing.go b/mongodb/individual-signing.go index 7f88a67..4ac508b 100644 --- a/mongodb/individual-signing.go +++ b/mongodb/individual-signing.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/link.go b/mongodb/link.go index fa7c05a..4b6d697 100644 --- a/mongodb/link.go +++ b/mongodb/link.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/models.go b/mongodb/models.go index e44a2fe..2174054 100644 --- a/mongodb/models.go +++ b/mongodb/models.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import "fmt" diff --git a/mongodb/mongodb.go b/mongodb/mongodb.go index 71ceec7..0d118ff 100644 --- a/mongodb/mongodb.go +++ b/mongodb/mongodb.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/org-email.go b/mongodb/org-email.go index ed78a09..6628cee 100644 --- a/mongodb/org-email.go +++ b/mongodb/org-email.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/util.go b/mongodb/util.go index 760c148..0141f31 100644 --- a/mongodb/util.go +++ b/mongodb/util.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( diff --git a/mongodb/verification-code.go b/mongodb/verification-code.go index 81291ba..16950d8 100644 --- a/mongodb/verification-code.go +++ b/mongodb/verification-code.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 mongodb import ( From 1be0a4bf41adafee88dcf8186d90d55ce6f87d0f Mon Sep 17 00:00:00 2001 From: zengchen1024 Date: Sat, 29 May 2021 18:12:01 +0800 Subject: [PATCH 7/7] add copyright header for part 7 of codes --- main.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/main.go b/main.go index fa5dd0a..413aa23 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 main import (