CardCode
This commit is contained in:
parent
eb9a1323e5
commit
8102c3ffcd
|
@ -122,6 +122,14 @@ func (o *Notify) Decode(appKey string) (*CardCode, error) {
|
|||
return car, err
|
||||
}
|
||||
|
||||
func (o *CardCode) Json() ([]byte, error) {
|
||||
b, err := json.Marshal(o)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b, nil
|
||||
}
|
||||
|
||||
func (o *OrderResp) GetCode() Code {
|
||||
return Code(o.Code)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue