feat: 修改包名

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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