Skip to content

Commit

Permalink
Generated golang activity_1.0,aiInteraction_1.0,aiPaaS_1.0,algo_1.0,a…
Browse files Browse the repository at this point in the history
…litest_1.0,alitrip_1.0,amdp_1.0,apaas_1.0,appMarket_1.0,ats_1.0,attendance_1.0,badge_1.0,bayMax_1.0,baymax_2.0,bipaas_1.0,bizfinance_1.0,bizfinance_2.0,blackboard_1.0,calendar_1.0,calendar_2.0,carbon_1.0,card_1.0,checkIn_1.0,chengfeng_1.0,conference_1.0,connector_1.0,contact_1.0,content_1.0,contract_1.0,convFile_1.0,convStorage_1.0,coolApp_1.0,coolOps_1.0,credit_1.0,crm_1.0,crm_2.0,customerService_1.0,datacenter_1.0,delivery_1.0,devicemng_1.0,dingmi_1.0,dingPhone_1.0,dingsport_1.0,diot_1.0,doc_1.0,doc_2.0,dpaas_1.0,drive_1.0,drive_2.0,edu_1.0,esign_1.0,event_1.0,event_2.0,exclusive_1.0,finance_1.0,flashmeeting_1.0,flashmsg_1.0,gateway_1.0,groupBlackboard_1.0,h5package_1.0,hrbrain_1.0,hrm_1.0,im_1.0,im_2.0,impaas_1.0,industry_1.0,integration_1.0,liandanlu_1.0,link_1.0,live_1.0,liveActivities_1.0,mail_1.0,manufacturing_1.0,media_1.0,medical_1.0,microApp_1.0,miniapp_1.0,notable_1.0,oauth2_1.0,occupationauth_1.0,office_1.0,okr_1.0,orgCulture_1.0,ow_1.0,package_1.0,pedia_1.0,project_1.0,projectIntegration_1.0,rcsCall_1.0,report_1.0,resident_1.0,robot_1.0,rooms_1.0,search_1.0,serviceGroup_1.0,setting_1.0,smartDevice_1.0,snsStorage_1.0,storage_1.0,storage_2.0,swform_1.0,theone_1.0,todo_1.0,trade_1.0,trajectory_1.0,transcribe_1.0,trip_1.0,village_1.0,waterMark_1.0,watt_1.0,wiki_1.0,wiki_2.0,wms_1.0,workbench_1.0,workflow_1.0,workrecord_1.0,yida_1.0,yunShu_1.0,esign_1.1,esign_2.0,h3yun_1.0,jzcrm_1.0,soke_1.0 for dingtalk.
  • Loading branch information
sdk-team committed Apr 18, 2024
1 parent 5250ed9 commit 7ce8bea
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 24 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-04-18 Version: v1.6.68
- Generated golang activity_1.0,aiInteraction_1.0,aiPaaS_1.0,algo_1.0,alitest_1.0,alitrip_1.0,amdp_1.0,apaas_1.0,appMarket_1.0,ats_1.0,attendance_1.0,badge_1.0,bayMax_1.0,baymax_2.0,bipaas_1.0,bizfinance_1.0,bizfinance_2.0,blackboard_1.0,calendar_1.0,calendar_2.0,carbon_1.0,card_1.0,checkIn_1.0,chengfeng_1.0,conference_1.0,connector_1.0,contact_1.0,content_1.0,contract_1.0,convFile_1.0,convStorage_1.0,coolApp_1.0,coolOps_1.0,credit_1.0,crm_1.0,crm_2.0,customerService_1.0,datacenter_1.0,delivery_1.0,devicemng_1.0,dingmi_1.0,dingPhone_1.0,dingsport_1.0,diot_1.0,doc_1.0,doc_2.0,dpaas_1.0,drive_1.0,drive_2.0,edu_1.0,esign_1.0,event_1.0,event_2.0,exclusive_1.0,finance_1.0,flashmeeting_1.0,flashmsg_1.0,gateway_1.0,groupBlackboard_1.0,h5package_1.0,hrbrain_1.0,hrm_1.0,im_1.0,im_2.0,impaas_1.0,industry_1.0,integration_1.0,liandanlu_1.0,link_1.0,live_1.0,liveActivities_1.0,mail_1.0,manufacturing_1.0,media_1.0,medical_1.0,microApp_1.0,miniapp_1.0,notable_1.0,oauth2_1.0,occupationauth_1.0,office_1.0,okr_1.0,orgCulture_1.0,ow_1.0,package_1.0,pedia_1.0,project_1.0,projectIntegration_1.0,rcsCall_1.0,report_1.0,resident_1.0,robot_1.0,rooms_1.0,search_1.0,serviceGroup_1.0,setting_1.0,smartDevice_1.0,snsStorage_1.0,storage_1.0,storage_2.0,swform_1.0,theone_1.0,todo_1.0,trade_1.0,trajectory_1.0,transcribe_1.0,trip_1.0,village_1.0,waterMark_1.0,watt_1.0,wiki_1.0,wiki_2.0,wms_1.0,workbench_1.0,workflow_1.0,workrecord_1.0,yida_1.0,yunShu_1.0,esign_1.1,esign_2.0,h3yun_1.0,jzcrm_1.0,soke_1.0 for dingtalk.

2024-04-15 Version: v1.6.67
- Generated golang activity_1.0,aiInteraction_1.0,aiPaaS_1.0,algo_1.0,alitest_1.0,alitrip_1.0,amdp_1.0,apaas_1.0,appMarket_1.0,ats_1.0,attendance_1.0,badge_1.0,bayMax_1.0,baymax_2.0,bipaas_1.0,bizfinance_1.0,bizfinance_2.0,blackboard_1.0,calendar_1.0,calendar_2.0,carbon_1.0,card_1.0,checkIn_1.0,chengfeng_1.0,conference_1.0,connector_1.0,contact_1.0,content_1.0,contract_1.0,convFile_1.0,convStorage_1.0,coolApp_1.0,coolOps_1.0,credit_1.0,crm_1.0,crm_2.0,customerService_1.0,datacenter_1.0,delivery_1.0,devicemng_1.0,dingmi_1.0,dingPhone_1.0,dingsport_1.0,diot_1.0,doc_1.0,doc_2.0,dpaas_1.0,drive_1.0,drive_2.0,edu_1.0,esign_1.0,event_1.0,event_2.0,exclusive_1.0,finance_1.0,flashmeeting_1.0,flashmsg_1.0,gateway_1.0,groupBlackboard_1.0,h5package_1.0,hrbrain_1.0,hrm_1.0,im_1.0,im_2.0,impaas_1.0,industry_1.0,integration_1.0,liandanlu_1.0,link_1.0,live_1.0,liveActivities_1.0,mail_1.0,manufacturing_1.0,media_1.0,medical_1.0,microApp_1.0,miniapp_1.0,notable_1.0,oauth2_1.0,occupationauth_1.0,office_1.0,okr_1.0,orgCulture_1.0,ow_1.0,package_1.0,pedia_1.0,project_1.0,projectIntegration_1.0,rcsCall_1.0,report_1.0,resident_1.0,robot_1.0,rooms_1.0,search_1.0,serviceGroup_1.0,setting_1.0,smartDevice_1.0,snsStorage_1.0,storage_1.0,storage_2.0,swform_1.0,theone_1.0,todo_1.0,trade_1.0,trajectory_1.0,transcribe_1.0,trip_1.0,village_1.0,waterMark_1.0,watt_1.0,wiki_1.0,wiki_2.0,wms_1.0,workbench_1.0,workflow_1.0,workrecord_1.0,yida_1.0,yunShu_1.0,esign_1.1,esign_2.0,h3yun_1.0,jzcrm_1.0,soke_1.0 for dingtalk.

Expand Down
188 changes: 188 additions & 0 deletions ai_interaction_1_0/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,127 @@ func (s *ReplyResponse) SetBody(v *ReplyResponseBody) *ReplyResponse {
return s
}

type SendHeaders struct {
CommonHeaders map[string]*string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
XAcsDingtalkAccessToken *string `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
}

func (s SendHeaders) String() string {
return tea.Prettify(s)
}

func (s SendHeaders) GoString() string {
return s.String()
}

func (s *SendHeaders) SetCommonHeaders(v map[string]*string) *SendHeaders {
s.CommonHeaders = v
return s
}

func (s *SendHeaders) SetXAcsDingtalkAccessToken(v string) *SendHeaders {
s.XAcsDingtalkAccessToken = &v
return s
}

type SendRequest struct {
Content *string `json:"content,omitempty" xml:"content,omitempty"`
ContentType *string `json:"contentType,omitempty" xml:"contentType,omitempty"`
OpenConversationId *string `json:"openConversationId,omitempty" xml:"openConversationId,omitempty"`
UnionId *string `json:"unionId,omitempty" xml:"unionId,omitempty"`
}

func (s SendRequest) String() string {
return tea.Prettify(s)
}

func (s SendRequest) GoString() string {
return s.String()
}

func (s *SendRequest) SetContent(v string) *SendRequest {
s.Content = &v
return s
}

func (s *SendRequest) SetContentType(v string) *SendRequest {
s.ContentType = &v
return s
}

func (s *SendRequest) SetOpenConversationId(v string) *SendRequest {
s.OpenConversationId = &v
return s
}

func (s *SendRequest) SetUnionId(v string) *SendRequest {
s.UnionId = &v
return s
}

type SendResponseBody struct {
Result *SendResponseBodyResult `json:"result,omitempty" xml:"result,omitempty" type:"Struct"`
}

func (s SendResponseBody) String() string {
return tea.Prettify(s)
}

func (s SendResponseBody) GoString() string {
return s.String()
}

func (s *SendResponseBody) SetResult(v *SendResponseBodyResult) *SendResponseBody {
s.Result = v
return s
}

type SendResponseBodyResult struct {
Success *bool `json:"success,omitempty" xml:"success,omitempty"`
}

func (s SendResponseBodyResult) String() string {
return tea.Prettify(s)
}

func (s SendResponseBodyResult) GoString() string {
return s.String()
}

func (s *SendResponseBodyResult) SetSuccess(v bool) *SendResponseBodyResult {
s.Success = &v
return s
}

type SendResponse struct {
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Body *SendResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (s SendResponse) String() string {
return tea.Prettify(s)
}

func (s SendResponse) GoString() string {
return s.String()
}

func (s *SendResponse) SetHeaders(v map[string]*string) *SendResponse {
s.Headers = v
return s
}

func (s *SendResponse) SetStatusCode(v int32) *SendResponse {
s.StatusCode = &v
return s
}

func (s *SendResponse) SetBody(v *SendResponseBody) *SendResponse {
s.Body = v
return s
}

type UpdateHeaders struct {
CommonHeaders map[string]*string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
XAcsDingtalkAccessToken *string `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
Expand Down Expand Up @@ -681,6 +802,73 @@ func (client *Client) Reply(request *ReplyRequest) (_result *ReplyResponse, _err
return _result, _err
}

func (client *Client) SendWithOptions(request *SendRequest, headers *SendHeaders, runtime *util.RuntimeOptions) (_result *SendResponse, _err error) {
_err = util.ValidateModel(request)
if _err != nil {
return _result, _err
}
body := map[string]interface{}{}
if !tea.BoolValue(util.IsUnset(request.Content)) {
body["content"] = request.Content
}

if !tea.BoolValue(util.IsUnset(request.ContentType)) {
body["contentType"] = request.ContentType
}

if !tea.BoolValue(util.IsUnset(request.OpenConversationId)) {
body["openConversationId"] = request.OpenConversationId
}

if !tea.BoolValue(util.IsUnset(request.UnionId)) {
body["unionId"] = request.UnionId
}

realHeaders := make(map[string]*string)
if !tea.BoolValue(util.IsUnset(headers.CommonHeaders)) {
realHeaders = headers.CommonHeaders
}

if !tea.BoolValue(util.IsUnset(headers.XAcsDingtalkAccessToken)) {
realHeaders["x-acs-dingtalk-access-token"] = util.ToJSONString(headers.XAcsDingtalkAccessToken)
}

req := &openapi.OpenApiRequest{
Headers: realHeaders,
Body: openapiutil.ParseToMap(body),
}
params := &openapi.Params{
Action: tea.String("Send"),
Version: tea.String("aiInteraction_1.0"),
Protocol: tea.String("HTTP"),
Pathname: tea.String("/v1.0/aiInteraction/send"),
Method: tea.String("POST"),
AuthType: tea.String("AK"),
Style: tea.String("ROA"),
ReqBodyType: tea.String("none"),
BodyType: tea.String("json"),
}
_result = &SendResponse{}
_body, _err := client.Execute(params, req, runtime)
if _err != nil {
return _result, _err
}
_err = tea.Convert(_body, &_result)
return _result, _err
}

func (client *Client) Send(request *SendRequest) (_result *SendResponse, _err error) {
runtime := &util.RuntimeOptions{}
headers := &SendHeaders{}
_result = &SendResponse{}
_body, _err := client.SendWithOptions(request, headers, runtime)
if _err != nil {
return _result, _err
}
_result = _body
return _result, _err
}

func (client *Client) UpdateWithOptions(request *UpdateRequest, headers *UpdateHeaders, runtime *util.RuntimeOptions) (_result *UpdateResponse, _err error) {
_err = util.ValidateModel(request)
if _err != nil {
Expand Down
Loading

0 comments on commit 7ce8bea

Please sign in to comment.