Skip to content

Commit

Permalink
fea: Trans 不需要指针
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed Mar 16, 2023
1 parent 493aa91 commit 18bb6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/services/database/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (j JSON) Equals(j1 JSON) bool {
return bytes.Equal([]byte(j), []byte(j1))
}

func (j *JSON) Trans(v interface{}) error {
func (j JSON) Trans(v interface{}) error {
b, _ := j.Value()
err := json.Unmarshal([]byte(b.(string)), &v)
return err
Expand Down

0 comments on commit 18bb6a3

Please sign in to comment.