Browse Source

chore: downgrade go version to 1.25

main
ywlmac 2 months ago
parent
commit
2516baec6e
  1. 1
      certificate_flow.go
  2. 2
      go.mod
  3. 15
      pkg/zxchainsdk/error.go

1
certificate_flow.go

@ -372,6 +372,7 @@ func UploadCertificatePNGToCOS(ctx context.Context, pngBytes []byte, defaultObje
_, err = client.Object.Put(ctx, objectKey, bytes.NewReader(pngBytes), &cos.ObjectPutOptions{ _, err = client.Object.Put(ctx, objectKey, bytes.NewReader(pngBytes), &cos.ObjectPutOptions{
ObjectPutHeaderOptions: &cos.ObjectPutHeaderOptions{ ObjectPutHeaderOptions: &cos.ObjectPutHeaderOptions{
ContentType: "image/png", ContentType: "image/png",
ContentLength: len(pngBytes),
CacheControl: "public, max-age=31536000, immutable", CacheControl: "public, max-age=31536000, immutable",
}, },
}) })

2
go.mod

@ -1,6 +1,6 @@
module git.yuanzoo.cn/zhangzhengqiang/popi-zxl module git.yuanzoo.cn/zhangzhengqiang/popi-zxl
go 1.26 go 1.25.0
require ( require (
github.com/fogleman/gg v1.3.0 github.com/fogleman/gg v1.3.0

15
pkg/zxchainsdk/error.go

@ -0,0 +1,15 @@
package zxchainsdk
import "errors"
var (
ErrMissingBizID = errors.New("missing biz_id")
ErrMissingContent = errors.New("missing content")
ErrMissingEvID = errors.New("missing ev_id")
ErrMissingHash = errors.New("missing hash")
ErrMissingScene = errors.New("missing scene")
ErrMissingKVFields = errors.New("missing kv fields")
ErrMissingFileName = errors.New("missing file_name")
ErrMissingQueryKey = errors.New("missing ev_id, hash or tx_id")
ErrEmptyAttestation = errors.New("empty attestation request")
)
Loading…
Cancel
Save