This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
The following commit(s) were added to refs/heads/dev by this push:
new de15a34 chore(wecom): add asf header
de15a34 is described below
commit de15a341cc3a8749d8e39b4cdda14603450f902e
Author: LinkinStars <[email protected]>
AuthorDate: Sun Feb 18 15:57:00 2024 +0800
chore(wecom): add asf header
---
search-algolia/algolia.go | 12 ++++++------
user-center-wecom/company.go | 19 +++++++++++++++++++
user-center-wecom/config.go | 19 +++++++++++++++++++
user-center-wecom/cron.go | 19 +++++++++++++++++++
user-center-wecom/handler.go | 19 +++++++++++++++++++
user-center-wecom/i18n/en_US.yaml | 17 +++++++++++++++++
user-center-wecom/i18n/translation.go | 19 +++++++++++++++++++
user-center-wecom/i18n/zh_CN.yaml | 17 +++++++++++++++++
user-center-wecom/notification.go | 19 +++++++++++++++++++
user-center-wecom/schema.go | 19 +++++++++++++++++++
user-center-wecom/user_config.go | 19 +++++++++++++++++++
user-center-wecom/wecom_user_center.go | 19 +++++++++++++++++++
12 files changed, 211 insertions(+), 6 deletions(-)
diff --git a/search-algolia/algolia.go b/search-algolia/algolia.go
index 49c2ce4..74cc454 100644
--- a/search-algolia/algolia.go
+++ b/search-algolia/algolia.go
@@ -76,10 +76,10 @@ func (s *SearchAlgolia) SearchContents(ctx context.Context,
cond *plugin.SearchB
var tagsIn []string
if len(tagGroup) > 0 {
for _, tagID := range tagGroup {
- tagsIn = append(tagsIn, "tags:" + tagID)
+ tagsIn = append(tagsIn, "tags:"+tagID)
}
}
- tagFilters = append(tagFilters, "(" +
strings.Join(tagsIn, " OR ") + ")")
+ tagFilters = append(tagFilters,
"("+strings.Join(tagsIn, " OR ")+")")
}
if len(tagFilters) > 0 {
filters += " AND " + strings.Join(tagFilters, " AND ")
@@ -132,10 +132,10 @@ func (s *SearchAlgolia) SearchQuestions(ctx
context.Context, cond *plugin.Search
var tagsIn []string
if len(tagGroup) > 0 {
for _, tagID := range tagGroup {
- tagsIn = append(tagsIn, "tags:" + tagID)
+ tagsIn = append(tagsIn, "tags:"+tagID)
}
}
- tagFilters = append(tagFilters, "(" +
strings.Join(tagsIn, " OR ") + ")")
+ tagFilters = append(tagFilters,
"("+strings.Join(tagsIn, " OR ")+")")
}
if len(tagFilters) > 0 {
filters += " AND " + strings.Join(tagFilters, " AND ")
@@ -195,10 +195,10 @@ func (s *SearchAlgolia) SearchAnswers(ctx
context.Context, cond *plugin.SearchBa
var tagsIn []string
if len(tagGroup) > 0 {
for _, tagID := range tagGroup {
- tagsIn = append(tagsIn, "tags:" + tagID)
+ tagsIn = append(tagsIn, "tags:"+tagID)
}
}
- tagFilters = append(tagFilters, "(" +
strings.Join(tagsIn, " OR ") + ")")
+ tagFilters = append(tagFilters,
"("+strings.Join(tagsIn, " OR ")+")")
}
if len(tagFilters) > 0 {
filters += " AND " + strings.Join(tagFilters, " AND ")
diff --git a/user-center-wecom/company.go b/user-center-wecom/company.go
index f953276..9995e1e 100644
--- a/user-center-wecom/company.go
+++ b/user-center-wecom/company.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (
diff --git a/user-center-wecom/config.go b/user-center-wecom/config.go
index 9c8364f..5126808 100644
--- a/user-center-wecom/config.go
+++ b/user-center-wecom/config.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (
diff --git a/user-center-wecom/cron.go b/user-center-wecom/cron.go
index fcb96b8..addac29 100644
--- a/user-center-wecom/cron.go
+++ b/user-center-wecom/cron.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (
diff --git a/user-center-wecom/handler.go b/user-center-wecom/handler.go
index 7828d66..8d5ed17 100644
--- a/user-center-wecom/handler.go
+++ b/user-center-wecom/handler.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (
diff --git a/user-center-wecom/i18n/en_US.yaml
b/user-center-wecom/i18n/en_US.yaml
index d05d9d6..3614171 100644
--- a/user-center-wecom/i18n/en_US.yaml
+++ b/user-center-wecom/i18n/en_US.yaml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
plugin:
wecom_user_center:
backend:
diff --git a/user-center-wecom/i18n/translation.go
b/user-center-wecom/i18n/translation.go
index c3547c1..e0daa35 100644
--- a/user-center-wecom/i18n/translation.go
+++ b/user-center-wecom/i18n/translation.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 i18n
const (
diff --git a/user-center-wecom/i18n/zh_CN.yaml
b/user-center-wecom/i18n/zh_CN.yaml
index 647d7e7..6f093e1 100644
--- a/user-center-wecom/i18n/zh_CN.yaml
+++ b/user-center-wecom/i18n/zh_CN.yaml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
plugin:
wecom_user_center:
backend:
diff --git a/user-center-wecom/notification.go
b/user-center-wecom/notification.go
index d105100..b4fb0fd 100644
--- a/user-center-wecom/notification.go
+++ b/user-center-wecom/notification.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (
diff --git a/user-center-wecom/schema.go b/user-center-wecom/schema.go
index 3944f03..a3c691b 100644
--- a/user-center-wecom/schema.go
+++ b/user-center-wecom/schema.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
type Department struct {
diff --git a/user-center-wecom/user_config.go b/user-center-wecom/user_config.go
index b33a0a4..06497c6 100644
--- a/user-center-wecom/user_config.go
+++ b/user-center-wecom/user_config.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (
diff --git a/user-center-wecom/wecom_user_center.go
b/user-center-wecom/wecom_user_center.go
index 93251e0..979db5c 100644
--- a/user-center-wecom/wecom_user_center.go
+++ b/user-center-wecom/wecom_user_center.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 wecom
import (