Skip to content

Commit

Permalink
无关紧要的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zgwit committed Jul 5, 2024
1 parent 5d76167 commit 8283f3c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/condition/and.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package condition

import "github.com/god-jason/bucket/pkg/exception"

type And struct {
Compares []*Compare `json:"compares,omitempty"`
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/condition/condition.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package condition

import "github.com/god-jason/bucket/pkg/exception"

// Condition 条件,外OR,内And
// 比如: (a>1 && b<2)||(c==2 && d<5)
type Condition struct {
Expand Down
2 changes: 2 additions & 0 deletions pkg/condition/or.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package condition

import "github.com/god-jason/bucket/pkg/exception"

type Or struct {
Compares []*Compare `json:"compares,omitempty"`
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/vconn/vconn.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package vconn

import (
"errors"
"io"
"net"
"time"
Expand All @@ -26,7 +27,7 @@ func (c *VConn) Close() error {
e1 := c.PipeWriter.Close()
e2 := c.PipeReader.Close()
if e1 != nil && e2 != nil {
return exception.Join(e1, e2)
return errors.Join(e1, e2)
//return errors.New(e1.Error() + " and " + e2.Error())
}
if e1 != nil {
Expand Down
3 changes: 2 additions & 1 deletion web/export/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"github.com/gin-gonic/gin"
"github.com/god-jason/bucket/db"
"go.mongodb.org/mongo-driver/bson/primitive"
"io"
)

Expand All @@ -29,7 +30,7 @@ func ApiImport(table string) gin.HandlerFunc {
return
}

var idss []any
var idss []primitive.ObjectID
//数据解析
for _, file := range reader.File {
if file.FileInfo().IsDir() {
Expand Down

0 comments on commit 8283f3c

Please sign in to comment.