diff --git a/utils/base64.go b/utils/base64.go index e5e34b4..4704a27 100644 --- a/utils/base64.go +++ b/utils/base64.go @@ -9,17 +9,17 @@ type Base64 struct { // Encode // 编码 -// @receiver q +// @receiver b // @return string -func (q Base64) Encode() string { - return base64.StdEncoding.EncodeToString(q.Content) +func (b Base64) Encode() string { + return base64.StdEncoding.EncodeToString(b.Content) } // Decode // 解码 -// @receiver q +// @receiver b // @return string -func (q Base64) Decode() string { - res, _ := base64.StdEncoding.DecodeString(string(q.Content)) +func (b Base64) Decode() string { + res, _ := base64.StdEncoding.DecodeString(string(b.Content)) return string(res) }