client

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This file is auto-generated, don't edit it. Thanks. *

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	CityCode     *string `json:"cityCode,omitempty" xml:"cityCode,omitempty"`
	Detail       *string `json:"detail,omitempty" xml:"detail,omitempty"`
	DistrictCode *string `json:"districtCode,omitempty" xml:"districtCode,omitempty"`
	ProvinceCode *string `json:"provinceCode,omitempty" xml:"provinceCode,omitempty"`
}

func (Address) GoString

func (s Address) GoString() string

func (*Address) SetCityCode

func (s *Address) SetCityCode(v string) *Address

func (*Address) SetDetail

func (s *Address) SetDetail(v string) *Address

func (*Address) SetDistrictCode

func (s *Address) SetDistrictCode(v string) *Address

func (*Address) SetProvinceCode

func (s *Address) SetProvinceCode(v string) *Address

func (Address) String

func (s Address) String() string

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) CreateSourcingProject

func (client *Client) CreateSourcingProject(request *CreateSourcingProjectRequest) (_result *CreateSourcingProjectResponse, _err error)

func (*Client) CreateSourcingProjectWithOptions

func (client *Client) CreateSourcingProjectWithOptions(tmpReq *CreateSourcingProjectRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *CreateSourcingProjectResponse, _err error)

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) UpdateSourcingProject

func (client *Client) UpdateSourcingProject(request *UpdateSourcingProjectRequest) (_result *UpdateSourcingProjectResponse, _err error)

func (*Client) UpdateSourcingProjectWithOptions

func (client *Client) UpdateSourcingProjectWithOptions(request *UpdateSourcingProjectRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *UpdateSourcingProjectResponse, _err error)

type Company

type Company struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
	Uscc *string `json:"uscc,omitempty" xml:"uscc,omitempty"`
}

func (Company) GoString

func (s Company) GoString() string

func (*Company) SetName

func (s *Company) SetName(v string) *Company

func (*Company) SetUscc

func (s *Company) SetUscc(v string) *Company

func (Company) String

func (s Company) String() string

type Contact

type Contact struct {
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	Name  *string `json:"name,omitempty" xml:"name,omitempty"`
	Phone *string `json:"phone,omitempty" xml:"phone,omitempty"`
}

func (Contact) GoString

func (s Contact) GoString() string

func (*Contact) SetEmail

func (s *Contact) SetEmail(v string) *Contact

func (*Contact) SetName

func (s *Contact) SetName(v string) *Contact

func (*Contact) SetPhone

func (s *Contact) SetPhone(v string) *Contact

func (Contact) String

func (s Contact) String() string

type CreateSourcingProjectRequest

type CreateSourcingProjectRequest struct {
	Address    *CreateSourcingProjectRequestAddress    `json:"Address,omitempty" xml:"Address,omitempty" type:"Struct"`
	BizId      *string                                 `json:"BizId,omitempty" xml:"BizId,omitempty"`
	BizNo      *string                                 `json:"BizNo,omitempty" xml:"BizNo,omitempty"`
	BizType    *string                                 `json:"BizType,omitempty" xml:"BizType,omitempty"`
	Company    *CreateSourcingProjectRequestCompany    `json:"Company,omitempty" xml:"Company,omitempty" type:"Struct"`
	Contact    *CreateSourcingProjectRequestContact    `json:"Contact,omitempty" xml:"Contact,omitempty" type:"Struct"`
	CreateTime *string                                 `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	ExpireTime *string                                 `json:"ExpireTime,omitempty" xml:"ExpireTime,omitempty"`
	ExtendInfo map[string]*string                      `json:"ExtendInfo,omitempty" xml:"ExtendInfo,omitempty"`
	SourceUrl  *string                                 `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
	SubBizType *string                                 `json:"SubBizType,omitempty" xml:"SubBizType,omitempty"`
	Subjects   []*CreateSourcingProjectRequestSubjects `json:"Subjects,omitempty" xml:"Subjects,omitempty" type:"Repeated"`
	Title      *string                                 `json:"Title,omitempty" xml:"Title,omitempty"`
}

func (CreateSourcingProjectRequest) GoString

func (s CreateSourcingProjectRequest) GoString() string

func (*CreateSourcingProjectRequest) SetAddress

func (*CreateSourcingProjectRequest) SetBizId

func (*CreateSourcingProjectRequest) SetBizNo

func (*CreateSourcingProjectRequest) SetBizType

func (*CreateSourcingProjectRequest) SetCompany

func (*CreateSourcingProjectRequest) SetContact

func (*CreateSourcingProjectRequest) SetCreateTime

func (*CreateSourcingProjectRequest) SetExpireTime

func (*CreateSourcingProjectRequest) SetExtendInfo

func (*CreateSourcingProjectRequest) SetSourceUrl

func (*CreateSourcingProjectRequest) SetSubBizType

func (*CreateSourcingProjectRequest) SetSubjects

func (*CreateSourcingProjectRequest) SetTitle

func (CreateSourcingProjectRequest) String

type CreateSourcingProjectRequestAddress

type CreateSourcingProjectRequestAddress struct {
	CityCode     *string `json:"CityCode,omitempty" xml:"CityCode,omitempty"`
	Detail       *string `json:"Detail,omitempty" xml:"Detail,omitempty"`
	DistrictCode *string `json:"DistrictCode,omitempty" xml:"DistrictCode,omitempty"`
	ProvinceCode *string `json:"ProvinceCode,omitempty" xml:"ProvinceCode,omitempty"`
}

func (CreateSourcingProjectRequestAddress) GoString

func (*CreateSourcingProjectRequestAddress) SetCityCode

func (*CreateSourcingProjectRequestAddress) SetDetail

func (*CreateSourcingProjectRequestAddress) SetDistrictCode

func (*CreateSourcingProjectRequestAddress) SetProvinceCode

func (CreateSourcingProjectRequestAddress) String

type CreateSourcingProjectRequestCompany

type CreateSourcingProjectRequestCompany struct {
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	Uscc *string `json:"Uscc,omitempty" xml:"Uscc,omitempty"`
}

func (CreateSourcingProjectRequestCompany) GoString

func (*CreateSourcingProjectRequestCompany) SetName

func (*CreateSourcingProjectRequestCompany) SetUscc

func (CreateSourcingProjectRequestCompany) String

type CreateSourcingProjectRequestContact

type CreateSourcingProjectRequestContact struct {
	Email *string `json:"Email,omitempty" xml:"Email,omitempty"`
	Name  *string `json:"Name,omitempty" xml:"Name,omitempty"`
	Phone *string `json:"Phone,omitempty" xml:"Phone,omitempty"`
}

func (CreateSourcingProjectRequestContact) GoString

func (*CreateSourcingProjectRequestContact) SetEmail

func (*CreateSourcingProjectRequestContact) SetName

func (*CreateSourcingProjectRequestContact) SetPhone

func (CreateSourcingProjectRequestContact) String

type CreateSourcingProjectRequestSubjects

type CreateSourcingProjectRequestSubjects struct {
	Address    *CreateSourcingProjectRequestSubjectsAddress `json:"Address,omitempty" xml:"Address,omitempty" type:"Struct"`
	Code       *string                                      `json:"Code,omitempty" xml:"Code,omitempty"`
	ExtendInfo map[string]*string                           `json:"ExtendInfo,omitempty" xml:"ExtendInfo,omitempty"`
	Name       *string                                      `json:"Name,omitempty" xml:"Name,omitempty"`
	Quantity   *float64                                     `json:"Quantity,omitempty" xml:"Quantity,omitempty"`
	Spec       *string                                      `json:"Spec,omitempty" xml:"Spec,omitempty"`
	Unit       *string                                      `json:"Unit,omitempty" xml:"Unit,omitempty"`
}

func (CreateSourcingProjectRequestSubjects) GoString

func (*CreateSourcingProjectRequestSubjects) SetCode

func (*CreateSourcingProjectRequestSubjects) SetExtendInfo

func (*CreateSourcingProjectRequestSubjects) SetName

func (*CreateSourcingProjectRequestSubjects) SetQuantity

func (*CreateSourcingProjectRequestSubjects) SetSpec

func (*CreateSourcingProjectRequestSubjects) SetUnit

func (CreateSourcingProjectRequestSubjects) String

type CreateSourcingProjectRequestSubjectsAddress

type CreateSourcingProjectRequestSubjectsAddress struct {
	CityCode     *string `json:"CityCode,omitempty" xml:"CityCode,omitempty"`
	Detail       *string `json:"Detail,omitempty" xml:"Detail,omitempty"`
	DistrictCode *string `json:"DistrictCode,omitempty" xml:"DistrictCode,omitempty"`
	ProvinceCode *string `json:"ProvinceCode,omitempty" xml:"ProvinceCode,omitempty"`
}

func (CreateSourcingProjectRequestSubjectsAddress) GoString

func (*CreateSourcingProjectRequestSubjectsAddress) SetCityCode

func (*CreateSourcingProjectRequestSubjectsAddress) SetDetail

func (*CreateSourcingProjectRequestSubjectsAddress) SetDistrictCode

func (*CreateSourcingProjectRequestSubjectsAddress) SetProvinceCode

func (CreateSourcingProjectRequestSubjectsAddress) String

type CreateSourcingProjectResponse

type CreateSourcingProjectResponse struct {
	Headers    map[string]*string                 `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                             `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *CreateSourcingProjectResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (CreateSourcingProjectResponse) GoString

func (*CreateSourcingProjectResponse) SetBody

func (*CreateSourcingProjectResponse) SetHeaders

func (*CreateSourcingProjectResponse) SetStatusCode

func (CreateSourcingProjectResponse) String

type CreateSourcingProjectResponseBody

type CreateSourcingProjectResponseBody struct {
	Code      *string `json:"Code,omitempty" xml:"Code,omitempty"`
	Data      *string `json:"Data,omitempty" xml:"Data,omitempty"`
	Message   *string `json:"Message,omitempty" xml:"Message,omitempty"`
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	Success   *bool   `json:"Success,omitempty" xml:"Success,omitempty"`
}

func (CreateSourcingProjectResponseBody) GoString

func (*CreateSourcingProjectResponseBody) SetCode

func (*CreateSourcingProjectResponseBody) SetData

func (*CreateSourcingProjectResponseBody) SetMessage

func (*CreateSourcingProjectResponseBody) SetRequestId

func (*CreateSourcingProjectResponseBody) SetSuccess

func (CreateSourcingProjectResponseBody) String

type CreateSourcingProjectShrinkRequest

type CreateSourcingProjectShrinkRequest struct {
	AddressShrink    *string `json:"Address,omitempty" xml:"Address,omitempty"`
	BizId            *string `json:"BizId,omitempty" xml:"BizId,omitempty"`
	BizNo            *string `json:"BizNo,omitempty" xml:"BizNo,omitempty"`
	BizType          *string `json:"BizType,omitempty" xml:"BizType,omitempty"`
	CompanyShrink    *string `json:"Company,omitempty" xml:"Company,omitempty"`
	ContactShrink    *string `json:"Contact,omitempty" xml:"Contact,omitempty"`
	CreateTime       *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	ExpireTime       *string `json:"ExpireTime,omitempty" xml:"ExpireTime,omitempty"`
	ExtendInfoShrink *string `json:"ExtendInfo,omitempty" xml:"ExtendInfo,omitempty"`
	SourceUrl        *string `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
	SubBizType       *string `json:"SubBizType,omitempty" xml:"SubBizType,omitempty"`
	SubjectsShrink   *string `json:"Subjects,omitempty" xml:"Subjects,omitempty"`
	Title            *string `json:"Title,omitempty" xml:"Title,omitempty"`
}

func (CreateSourcingProjectShrinkRequest) GoString

func (*CreateSourcingProjectShrinkRequest) SetAddressShrink

func (*CreateSourcingProjectShrinkRequest) SetBizId

func (*CreateSourcingProjectShrinkRequest) SetBizNo

func (*CreateSourcingProjectShrinkRequest) SetBizType

func (*CreateSourcingProjectShrinkRequest) SetCompanyShrink

func (*CreateSourcingProjectShrinkRequest) SetContactShrink

func (*CreateSourcingProjectShrinkRequest) SetCreateTime

func (*CreateSourcingProjectShrinkRequest) SetExpireTime

func (*CreateSourcingProjectShrinkRequest) SetExtendInfoShrink

func (*CreateSourcingProjectShrinkRequest) SetSourceUrl

func (*CreateSourcingProjectShrinkRequest) SetSubBizType

func (*CreateSourcingProjectShrinkRequest) SetSubjectsShrink

func (*CreateSourcingProjectShrinkRequest) SetTitle

func (CreateSourcingProjectShrinkRequest) String

type ExtendInfo

type ExtendInfo struct {
	DepositAmount *float64 `json:"depositAmount,omitempty" xml:"depositAmount,omitempty"`
	Desc          *string  `json:"desc,omitempty" xml:"desc,omitempty"`
}

func (ExtendInfo) GoString

func (s ExtendInfo) GoString() string

func (*ExtendInfo) SetDepositAmount

func (s *ExtendInfo) SetDepositAmount(v float64) *ExtendInfo

func (*ExtendInfo) SetDesc

func (s *ExtendInfo) SetDesc(v string) *ExtendInfo

func (ExtendInfo) String

func (s ExtendInfo) String() string

type SubjectExtendInfo

type SubjectExtendInfo struct {
	DeliveryDesc *string `json:"deliveryDesc,omitempty" xml:"deliveryDesc,omitempty"`
	Desc         *string `json:"desc,omitempty" xml:"desc,omitempty"`
}

func (SubjectExtendInfo) GoString

func (s SubjectExtendInfo) GoString() string

func (*SubjectExtendInfo) SetDeliveryDesc

func (s *SubjectExtendInfo) SetDeliveryDesc(v string) *SubjectExtendInfo

func (*SubjectExtendInfo) SetDesc

func (SubjectExtendInfo) String

func (s SubjectExtendInfo) String() string

type UpdateSourcingProjectRequest

type UpdateSourcingProjectRequest struct {
	BizId      *string `json:"BizId,omitempty" xml:"BizId,omitempty"`
	Status     *string `json:"Status,omitempty" xml:"Status,omitempty"`
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (UpdateSourcingProjectRequest) GoString

func (s UpdateSourcingProjectRequest) GoString() string

func (*UpdateSourcingProjectRequest) SetBizId

func (*UpdateSourcingProjectRequest) SetStatus

func (*UpdateSourcingProjectRequest) SetUpdateTime

func (UpdateSourcingProjectRequest) String

type UpdateSourcingProjectResponse

type UpdateSourcingProjectResponse struct {
	Headers    map[string]*string                 `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
	StatusCode *int32                             `json:"statusCode,omitempty" xml:"statusCode,omitempty" require:"true"`
	Body       *UpdateSourcingProjectResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
}

func (UpdateSourcingProjectResponse) GoString

func (*UpdateSourcingProjectResponse) SetBody

func (*UpdateSourcingProjectResponse) SetHeaders

func (*UpdateSourcingProjectResponse) SetStatusCode

func (UpdateSourcingProjectResponse) String

type UpdateSourcingProjectResponseBody

type UpdateSourcingProjectResponseBody struct {
	Code      *string `json:"Code,omitempty" xml:"Code,omitempty"`
	Data      *string `json:"Data,omitempty" xml:"Data,omitempty"`
	Message   *string `json:"Message,omitempty" xml:"Message,omitempty"`
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	Success   *bool   `json:"Success,omitempty" xml:"Success,omitempty"`
}

func (UpdateSourcingProjectResponseBody) GoString

func (*UpdateSourcingProjectResponseBody) SetCode

func (*UpdateSourcingProjectResponseBody) SetData

func (*UpdateSourcingProjectResponseBody) SetMessage

func (*UpdateSourcingProjectResponseBody) SetRequestId

func (*UpdateSourcingProjectResponseBody) SetSuccess

func (UpdateSourcingProjectResponseBody) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL