Skip to content

Commit e90e3dc

Browse files
committed
feat(v0.4.6): v0.4.6
1 parent 63ed326 commit e90e3dc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

idip/signer/signer.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111

1212
// Header represents the signing headers used in requests
1313
type Header struct {
14-
AppId string `json:"idip-sign-appid"`
15-
Time string `json:"idip-sign-time"`
16-
Rnd string `json:"idip-sign-rnd"`
17-
Sign string `json:"idip-sign"`
18-
Version string `json:"idip-sign-version"`
14+
AppId string `json:"cbb-sign-appid"`
15+
Time string `json:"cbb-sign-time"`
16+
Rnd string `json:"cbb-sign-rnd"`
17+
Sign string `json:"cbb-sign"`
18+
Version string `json:"cbb-sign-version"`
1919
}
2020

2121
// ISigner defines the interface for signing operations
@@ -78,11 +78,11 @@ func (s Signer) GenSignedHeader(body, tag string, version string) Header {
7878
// Header2Map converts a Header struct to a map[string]string
7979
func (h Header) Header2Map() map[string]string {
8080
return map[string]string{
81-
"idip-sign-appid": h.AppId,
82-
"idip-sign-time": h.Time,
83-
"idip-sign-rnd": h.Rnd,
84-
"idip-sign": h.Sign,
85-
"idip-sign-version": h.Version,
81+
"cbb-sign-appid": h.AppId,
82+
"cbb-sign-time": h.Time,
83+
"cbb-sign-rnd": h.Rnd,
84+
"cbb-sign": h.Sign,
85+
"cbb-sign-version": h.Version,
8686
}
8787
}
8888

0 commit comments

Comments
 (0)