feat: 修改包名

This commit is contained in:
周杰 2024-09-14 15:57:03 +08:00
parent b169659e02
commit 030343bc01
7 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
import (
"database/sql"

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
import (
"fmt"
@ -6,7 +6,7 @@ import (
"strings"
)
func NewTdMapping() *TdMapping {
func NewMapping() *TdMapping {
return &TdMapping{}
}

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
import (
"database/sql"
@ -49,7 +49,7 @@ func (s *TaosUser) TableName() string {
}
func TestBuilderInsert(t *testing.T) {
tdMapping := NewTdMapping()
tdMapping := NewMapping()
p := 1
data := []any{
&TaosDevice{
@ -113,7 +113,7 @@ func (u *User) SuperTableName() string {
}
func TestSimpleInsert(t *testing.T) {
tdMapping := NewTdMapping()
tdMapping := NewMapping()
data := []any{
&User{Name: "张三", Age: 18},
&User{Name: "李四", Age: 20},

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
import (
"fmt"

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
import (
"sync"

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
import (
"log"

View File

@ -1,4 +1,4 @@
package td_mapping
package tdmap
type TableRowMateria struct {
SuperTableName string