Skip to content

Commit

Permalink
chore(struct-adjust): adjust struct order
Browse files Browse the repository at this point in the history
  • Loading branch information
chongzhenghuang committed Jun 8, 2021
1 parent b4566db commit 1e24ed9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Golang SDK for TUPU visual recognition service (v1.6.1)
## Changelogs

#### v1.7.4
- image remove limited and performance optimization
- image remove limited and memory optimization
#### v1.7.3
- image api with function options
#### v1.7.2
Expand Down
2 changes: 1 addition & 1 deletion lib/controller/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const (

// Handler is a client-side helper to access TUPU recognition service
type Handler struct {
Client *http.Client
apiURL string
signer tuputools.Signer
verifier tuputools.Verifier
Expand All @@ -52,7 +53,6 @@ type Handler struct {
// Timeout is the request Header: Timeout
Timeout string
// Client is the *http.Client object
Client *http.Client
}

// NewHandlerWithURL is also an initializer for a Handler
Expand Down
4 changes: 2 additions & 2 deletions lib/model/dataInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (

// DataInfo is a wrapper for storing url, path or binary content of the data
type DataInfo struct {
// Buf is the binary data of the file
Buf *bytes.Buffer
// FileType Identifies this file type for request parameters
FileType string
// RemoteInfo is the remote address of the file
Expand All @@ -16,8 +18,6 @@ type DataInfo struct {
Path string
// FileName is the rename of the file by caller user
FileName string
// Buf is the binary data of the file
Buf *bytes.Buffer
// OtherMsg is the other accompanying message
OtherMsg map[string]string
}
Expand Down
2 changes: 1 addition & 1 deletion lib/model/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

// Result is a wrapper for service result parsed from response
type Result struct {
Code int
Timestamp int64
Nonce string
Code int
Message string
Tasks map[string]interface{}
Others map[string]interface{}
Expand Down
2 changes: 1 addition & 1 deletion recognition/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

// Result is a wrapper for service result parsed from response
type Result struct {
Code int
Timestamp int64
Nonce string
Code int
Message string
Tasks map[string]interface{}
Others map[string]interface{}
Expand Down
2 changes: 1 addition & 1 deletion recognition/speech/speechsync/speechSyncHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const (

// SyncHandler is a client-side helper to access TUPU speech recognition service
type SyncHandler struct {
hdler *tupucontrol.Handler
syncPool sync.Pool
hdler *tupucontrol.Handler
}

// NewSyncHandler is an initializer for a SpeechHandler
Expand Down

0 comments on commit 1e24ed9

Please sign in to comment.