package essapi import ( "fmt" "mtp2_if/logger" "mtp2_if/utils" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" essbasic "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/essbasic/v20210526" ) func DescribeFlowDetailInfo(flowIds []*string, proxyOrganizationOpenId string) (response *essbasic.DescribeFlowDetailInfoResponse, err error) { // 实例化一个请求对象,每个接口都会对应一个request对象 request := essbasic.NewDescribeFlowDetailInfoRequest() request.Agent = utils.SetAgent(proxyOrganizationOpenId) request.FlowIds = flowIds // 返回的resp是一个DescribeFlowDetailInfoResponse的实例,与请求对象对应 response, err = utils.TencentESSClient.DescribeFlowDetailInfo(request) if _, ok := err.(*errors.TencentCloudSDKError); ok { logger.GetLogger().Errorf("An API error has returned: %s", err) err = fmt.Errorf("电子签请求失败") return } return }