Skip to content

Commit

Permalink
fix: fix RFP info
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Nov 19, 2023
1 parent c2ee1bc commit 53eb6c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down Expand Up @@ -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=
Expand Down
9 changes: 7 additions & 2 deletions src/bll/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 53eb6c7

Please sign in to comment.