聚推客api对接
This commit is contained in:
parent
fb029ec4de
commit
8ed264d90f
@ -51,7 +51,8 @@ func (a *jutuikeApiImpl) GenerateLink(ctx context.Context, req GenerateLinkReque
|
|||||||
Errorf("[jutuikeApiImpl][GenerateLink] response result error: %s", response.Msg)
|
Errorf("[jutuikeApiImpl][GenerateLink] response result error: %s", response.Msg)
|
||||||
return nil, errors.New(response.Msg)
|
return nil, errors.New(response.Msg)
|
||||||
}
|
}
|
||||||
return response.Data, nil
|
result := response.Data.(GenerateLinkData)
|
||||||
|
return &result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryOrderList 查询订单列表
|
// QueryOrderList 查询订单列表
|
||||||
@ -79,5 +80,6 @@ func (a *jutuikeApiImpl) QueryOrderList(ctx context.Context, req QueryOrderListR
|
|||||||
Errorf("[jutuikeApiImpl][QueryOrderList] response result error: %s", response.Msg)
|
Errorf("[jutuikeApiImpl][QueryOrderList] response result error: %s", response.Msg)
|
||||||
return nil, errors.New(response.Msg)
|
return nil, errors.New(response.Msg)
|
||||||
}
|
}
|
||||||
return response.Data, nil
|
result := response.Data.(QueryOrderListData)
|
||||||
|
return &result, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,9 +8,9 @@ type GenerateLinkRequest struct {
|
|||||||
|
|
||||||
// GenerateLinkResponse 生成推广链接响应
|
// GenerateLinkResponse 生成推广链接响应
|
||||||
type GenerateLinkResponse struct {
|
type GenerateLinkResponse struct {
|
||||||
Code int32 `json:"code"` // 错误码:0-错误,1-成功
|
Code int32 `json:"code"` // 错误码:0-错误,1-成功
|
||||||
Msg string `json:"msg"` // 错误消息
|
Msg string `json:"msg"` // 错误消息
|
||||||
Data *GenerateLinkData `json:"data"` // 数据结构
|
Data any `json:"data"` // 数据结构,注意如果错误码为0,则data返回的是[], 如果为1,返回的是GenerateLinkData
|
||||||
}
|
}
|
||||||
|
|
||||||
type GenerateLinkData struct {
|
type GenerateLinkData struct {
|
||||||
@ -43,9 +43,9 @@ type QueryOrderListRequest struct {
|
|||||||
|
|
||||||
// 查询订单列表响应
|
// 查询订单列表响应
|
||||||
type QueryOrderListResponse struct {
|
type QueryOrderListResponse struct {
|
||||||
Code int32 `json:"code"` // 错误码:0-错误,1-成功
|
Code int32 `json:"code"` // 错误码:0-错误,1-成功
|
||||||
Msg string `json:"msg"` // 错误消息
|
Msg string `json:"msg"` // 错误消息
|
||||||
Data *QueryOrderListData `json:"data"` // 数据结构
|
Data any `json:"data"` // 数据结构,注意如果错误码为0,则data返回的是[], 如果为1,QueryOrderListData
|
||||||
}
|
}
|
||||||
|
|
||||||
type QueryOrderListData struct {
|
type QueryOrderListData struct {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user