|
|
|
@ -82,3 +82,20 @@ func (s *supply) Info(ctx context.Context, userServiceId uint) (reply ReplySuppl
|
|
|
|
|
err = xClient.Call(ctx, "Info", userServiceId, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReplyProof struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
ChannelId uint `json:"channelId"` // 用户Id
|
|
|
|
|
AppKey string `json:"appKey"`
|
|
|
|
|
AppSecret string `json:"appSecret"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetProof @Title 获取凭证
|
|
|
|
|
func (s *supply) GetProof(ctx context.Context, userServiceId uint) (reply ReplyProof, err error) {
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(ctx, "GetProof", userServiceId, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|