File tree 22 files changed +120
-59
lines changed
22 files changed +120
-59
lines changed Original file line number Diff line number Diff line change
1
+ name : License Checking
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ license :
13
+ name : License Checking
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@master
17
+ - name : Check License Lines
18
+ uses : kt3k/license_checker@v1.0.6
Original file line number Diff line number Diff line change
1
+ {
2
+ "**/*.go" :[
3
+ " /*" ,
4
+ " * Licensed to the AcmeStack under one or more contributor license" ,
5
+ " * agreements. See the NOTICE file distributed with this work for" ,
6
+ " * additional information regarding copyright ownership." ,
7
+ " * Licensed under the Apache License, Version 2.0 (the \" License\" );" ,
8
+ " * you may not use this file except in compliance with the License." ,
9
+ " * You may obtain a copy of the License at" ,
10
+ " *" ,
11
+ " * http://www.apache.org/licenses/LICENSE-2.0" ,
12
+ " *" ,
13
+ " * Unless required by applicable law or agreed to in writing, software" ,
14
+ " * distributed under the License is distributed on an \" AS IS\" BASIS," ,
15
+ " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." ,
16
+ " * See the License for the specific language governing permissions and" ,
17
+ " * limitations under the License." ,
18
+ " */"
19
+
20
+ ]
21
+ }
Original file line number Diff line number Diff line change
1
+ Copyright (c) 2013 - 2022, AcmeStack
2
+ All rights reserved.
3
+
4
+ This product includes software developed at
5
+ The AcmeStack (https://www.acmestack.org/).
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
@@ -23,7 +23,6 @@ import (
23
23
"github.com/acmestack/gobatis-plus/cmd/gobatis-plus/customargs"
24
24
"github.com/acmestack/gobatis-plus/pkg/generator"
25
25
"github.com/spf13/pflag"
26
- "k8s.io/klog/v2"
27
26
)
28
27
29
28
func main () {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
@@ -29,7 +29,6 @@ import (
29
29
"k8s.io/gengo/generator"
30
30
"k8s.io/gengo/namer"
31
31
"k8s.io/gengo/types"
32
- "k8s.io/klog/v2"
33
32
)
34
33
35
34
var (
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
@@ -19,12 +19,13 @@ package mapper
19
19
20
20
import (
21
21
"context"
22
- "github.com/acmestack/gobatis"
23
- "github.com/acmestack/gobatis-plus/pkg/constants"
24
22
"reflect"
25
23
"strconv"
26
24
"strings"
27
25
"time"
26
+
27
+ "github.com/acmestack/gobatis"
28
+ "github.com/acmestack/gobatis-plus/pkg/constants"
28
29
)
29
30
30
31
type BaseMapper [T any ] struct {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
1
18
package mapper
2
19
3
20
import (
4
21
"encoding/json"
5
22
"fmt"
23
+ "testing"
24
+
6
25
"github.com/acmestack/gobatis"
7
26
"github.com/acmestack/gobatis/datasource"
8
27
"github.com/acmestack/gobatis/factory"
9
28
_ "github.com/go-sql-driver/mysql"
10
- "testing"
11
29
)
12
30
13
31
func connect () factory.Factory {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, AcmeStack
3
- * All rights reserved.
4
- *
2
+ * Licensed to the AcmeStack under one or more contributor license
3
+ * agreements. See the NOTICE file distributed with this work for
4
+ * additional information regarding copyright ownership.
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
7
7
* You may obtain a copy of the License at
You can’t perform that action at this time.
0 commit comments