From 53eb6c7b3146bf802228d9af6648f68b0fb4d8a4 Mon Sep 17 00:00:00 2001 From: 0xZensh Date: Sun, 19 Nov 2023 15:51:55 +0800 Subject: [PATCH] fix: fix RFP info --- go.mod | 2 +- go.sum | 3 +++ src/bll/common.go | 9 +++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 4dc867b..9d3a818 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/go-playground/validator/v10 v10.16.0 github.com/google/uuid v1.4.0 github.com/jaevor/go-nanoid v1.3.0 - github.com/klauspost/compress v1.17.2 + github.com/klauspost/compress v1.17.3 github.com/ldclabs/cose v1.1.2 github.com/pkoukk/tiktoken-go v0.1.6 github.com/pkoukk/tiktoken-go-loader v0.0.1 diff --git a/go.sum b/go.sum index 206fc72..f8967c3 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,6 @@ github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/aliyun/aliyun-oss-go-sdk v2.0.0/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible h1:so4m5rRA32Tc5GgKg/5gKUu0CRsYmVO3ThMP6T3CwLc= github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= @@ -41,6 +42,8 @@ github.com/jaevor/go-nanoid v1.3.0/go.mod h1:SI+jFaPuddYkqkVQoNGHs81navCtH388Tcr github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/klauspost/compress v1.17.2 h1:RlWWUY/Dr4fL8qk9YG7DTZ7PDgME2V4csBXA8L/ixi4= github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.3 h1:qkRjuerhUU1EmXLYGkSH6EZL+vPSxIrYjLNAK4slzwA= +github.com/klauspost/compress v1.17.3/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= github.com/ldclabs/cose v1.1.2 h1:kq8IkpCiTM2jcynmPbEUH4dPQ4tM8+qQewKMvuC/ljo= github.com/ldclabs/cose v1.1.2/go.mod h1:M52HratClumnAkI1icUIUljX4fWfZL7kF80hh6ijGrQ= github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= diff --git a/src/bll/common.go b/src/bll/common.go index b7e2e48..18178e4 100644 --- a/src/bll/common.go +++ b/src/bll/common.go @@ -224,10 +224,15 @@ type SubscriptionOutput struct { UpdatedAt int64 `json:"updated_at" cbor:"updated_at"` } +type RFPInfo struct { + ID util.ID `json:"id" cbor:"id"` + Price int64 `json:"price" cbor:"price"` +} + // Request for Payment type RFP struct { - Creation uint64 `json:"creation,omitempty" cbor:"creation,omitempty"` - Collection uint64 `json:"collection,omitempty" cbor:"collection,omitempty"` + Creation *RFPInfo `json:"creation,omitempty" cbor:"creation,omitempty"` + Collection *RFPInfo `json:"collection,omitempty" cbor:"collection,omitempty"` } type UpdateStatusInput struct {