Skip to content

Commit 3839e42

Browse files
committed
Generated golang robot_1.0 for dingtalk.
1 parent efae2ae commit 3839e42

File tree

2 files changed

+182
-0
lines changed

2 files changed

+182
-0
lines changed

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-24 Version: v1.6.87
2+
- Generated golang robot_1.0 for dingtalk.
3+
14
2025-07-23 Version: v1.6.86
25
- Generated golang robot_1.0 for dingtalk.
36

robot_1_0/client.go

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2928,6 +2928,104 @@ func (s *UpdateInstalledRobotResponse) SetBody(v *UpdateInstalledRobotResponseBo
29282928
return s
29292929
}
29302930

2931+
type UpdateRobotStreamAwayAutoReplyTemplateHeaders struct {
2932+
CommonHeaders map[string]*string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
2933+
XAcsDingtalkAccessToken *string `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
2934+
}
2935+
2936+
func (s UpdateRobotStreamAwayAutoReplyTemplateHeaders) String() string {
2937+
return tea.Prettify(s)
2938+
}
2939+
2940+
func (s UpdateRobotStreamAwayAutoReplyTemplateHeaders) GoString() string {
2941+
return s.String()
2942+
}
2943+
2944+
func (s *UpdateRobotStreamAwayAutoReplyTemplateHeaders) SetCommonHeaders(v map[string]*string) *UpdateRobotStreamAwayAutoReplyTemplateHeaders {
2945+
s.CommonHeaders = v
2946+
return s
2947+
}
2948+
2949+
func (s *UpdateRobotStreamAwayAutoReplyTemplateHeaders) SetXAcsDingtalkAccessToken(v string) *UpdateRobotStreamAwayAutoReplyTemplateHeaders {
2950+
s.XAcsDingtalkAccessToken = &v
2951+
return s
2952+
}
2953+
2954+
type UpdateRobotStreamAwayAutoReplyTemplateRequest struct {
2955+
CardData *string `json:"cardData,omitempty" xml:"cardData,omitempty"`
2956+
CardTemplateId *string `json:"cardTemplateId,omitempty" xml:"cardTemplateId,omitempty"`
2957+
RobotCode *string `json:"robotCode,omitempty" xml:"robotCode,omitempty"`
2958+
}
2959+
2960+
func (s UpdateRobotStreamAwayAutoReplyTemplateRequest) String() string {
2961+
return tea.Prettify(s)
2962+
}
2963+
2964+
func (s UpdateRobotStreamAwayAutoReplyTemplateRequest) GoString() string {
2965+
return s.String()
2966+
}
2967+
2968+
func (s *UpdateRobotStreamAwayAutoReplyTemplateRequest) SetCardData(v string) *UpdateRobotStreamAwayAutoReplyTemplateRequest {
2969+
s.CardData = &v
2970+
return s
2971+
}
2972+
2973+
func (s *UpdateRobotStreamAwayAutoReplyTemplateRequest) SetCardTemplateId(v string) *UpdateRobotStreamAwayAutoReplyTemplateRequest {
2974+
s.CardTemplateId = &v
2975+
return s
2976+
}
2977+
2978+
func (s *UpdateRobotStreamAwayAutoReplyTemplateRequest) SetRobotCode(v string) *UpdateRobotStreamAwayAutoReplyTemplateRequest {
2979+
s.RobotCode = &v
2980+
return s
2981+
}
2982+
2983+
type UpdateRobotStreamAwayAutoReplyTemplateResponseBody struct {
2984+
Success *bool `json:"success,omitempty" xml:"success,omitempty"`
2985+
}
2986+
2987+
func (s UpdateRobotStreamAwayAutoReplyTemplateResponseBody) String() string {
2988+
return tea.Prettify(s)
2989+
}
2990+
2991+
func (s UpdateRobotStreamAwayAutoReplyTemplateResponseBody) GoString() string {
2992+
return s.String()
2993+
}
2994+
2995+
func (s *UpdateRobotStreamAwayAutoReplyTemplateResponseBody) SetSuccess(v bool) *UpdateRobotStreamAwayAutoReplyTemplateResponseBody {
2996+
s.Success = &v
2997+
return s
2998+
}
2999+
3000+
type UpdateRobotStreamAwayAutoReplyTemplateResponse struct {
3001+
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
3002+
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
3003+
Body *UpdateRobotStreamAwayAutoReplyTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
3004+
}
3005+
3006+
func (s UpdateRobotStreamAwayAutoReplyTemplateResponse) String() string {
3007+
return tea.Prettify(s)
3008+
}
3009+
3010+
func (s UpdateRobotStreamAwayAutoReplyTemplateResponse) GoString() string {
3011+
return s.String()
3012+
}
3013+
3014+
func (s *UpdateRobotStreamAwayAutoReplyTemplateResponse) SetHeaders(v map[string]*string) *UpdateRobotStreamAwayAutoReplyTemplateResponse {
3015+
s.Headers = v
3016+
return s
3017+
}
3018+
3019+
func (s *UpdateRobotStreamAwayAutoReplyTemplateResponse) SetStatusCode(v int32) *UpdateRobotStreamAwayAutoReplyTemplateResponse {
3020+
s.StatusCode = &v
3021+
return s
3022+
}
3023+
3024+
func (s *UpdateRobotStreamAwayAutoReplyTemplateResponse) SetBody(v *UpdateRobotStreamAwayAutoReplyTemplateResponseBody) *UpdateRobotStreamAwayAutoReplyTemplateResponse {
3025+
s.Body = v
3026+
return s
3027+
}
3028+
29313029
type Client struct {
29323030
openapi.Client
29333031
}
@@ -4839,3 +4937,84 @@ func (client *Client) UpdateInstalledRobot(request *UpdateInstalledRobotRequest)
48394937
_result = _body
48404938
return _result, _err
48414939
}
4940+
4941+
// Summary:
4942+
//
4943+
// 设置机器人STREAM模式下离线自动回复模版
4944+
//
4945+
// @param request - UpdateRobotStreamAwayAutoReplyTemplateRequest
4946+
//
4947+
// @param headers - UpdateRobotStreamAwayAutoReplyTemplateHeaders
4948+
//
4949+
// @param runtime - runtime options for this request RuntimeOptions
4950+
//
4951+
// @return UpdateRobotStreamAwayAutoReplyTemplateResponse
4952+
func (client *Client) UpdateRobotStreamAwayAutoReplyTemplateWithOptions(request *UpdateRobotStreamAwayAutoReplyTemplateRequest, headers *UpdateRobotStreamAwayAutoReplyTemplateHeaders, runtime *util.RuntimeOptions) (_result *UpdateRobotStreamAwayAutoReplyTemplateResponse, _err error) {
4953+
_err = util.ValidateModel(request)
4954+
if _err != nil {
4955+
return _result, _err
4956+
}
4957+
body := map[string]interface{}{}
4958+
if !tea.BoolValue(util.IsUnset(request.CardData)) {
4959+
body["cardData"] = request.CardData
4960+
}
4961+
4962+
if !tea.BoolValue(util.IsUnset(request.CardTemplateId)) {
4963+
body["cardTemplateId"] = request.CardTemplateId
4964+
}
4965+
4966+
if !tea.BoolValue(util.IsUnset(request.RobotCode)) {
4967+
body["robotCode"] = request.RobotCode
4968+
}
4969+
4970+
realHeaders := make(map[string]*string)
4971+
if !tea.BoolValue(util.IsUnset(headers.CommonHeaders)) {
4972+
realHeaders = headers.CommonHeaders
4973+
}
4974+
4975+
if !tea.BoolValue(util.IsUnset(headers.XAcsDingtalkAccessToken)) {
4976+
realHeaders["x-acs-dingtalk-access-token"] = util.ToJSONString(headers.XAcsDingtalkAccessToken)
4977+
}
4978+
4979+
req := &openapi.OpenApiRequest{
4980+
Headers: realHeaders,
4981+
Body: openapiutil.ParseToMap(body),
4982+
}
4983+
params := &openapi.Params{
4984+
Action: tea.String("UpdateRobotStreamAwayAutoReplyTemplate"),
4985+
Version: tea.String("robot_1.0"),
4986+
Protocol: tea.String("HTTP"),
4987+
Pathname: tea.String("/v1.0/robot/stream/away/template/update"),
4988+
Method: tea.String("POST"),
4989+
AuthType: tea.String("AK"),
4990+
Style: tea.String("ROA"),
4991+
ReqBodyType: tea.String("none"),
4992+
BodyType: tea.String("json"),
4993+
}
4994+
_result = &UpdateRobotStreamAwayAutoReplyTemplateResponse{}
4995+
_body, _err := client.Execute(params, req, runtime)
4996+
if _err != nil {
4997+
return _result, _err
4998+
}
4999+
_err = tea.Convert(_body, &_result)
5000+
return _result, _err
5001+
}
5002+
5003+
// Summary:
5004+
//
5005+
// 设置机器人STREAM模式下离线自动回复模版
5006+
//
5007+
// @param request - UpdateRobotStreamAwayAutoReplyTemplateRequest
5008+
//
5009+
// @return UpdateRobotStreamAwayAutoReplyTemplateResponse
5010+
func (client *Client) UpdateRobotStreamAwayAutoReplyTemplate(request *UpdateRobotStreamAwayAutoReplyTemplateRequest) (_result *UpdateRobotStreamAwayAutoReplyTemplateResponse, _err error) {
5011+
runtime := &util.RuntimeOptions{}
5012+
headers := &UpdateRobotStreamAwayAutoReplyTemplateHeaders{}
5013+
_result = &UpdateRobotStreamAwayAutoReplyTemplateResponse{}
5014+
_body, _err := client.UpdateRobotStreamAwayAutoReplyTemplateWithOptions(request, headers, runtime)
5015+
if _err != nil {
5016+
return _result, _err
5017+
}
5018+
_result = _body
5019+
return _result, _err
5020+
}

0 commit comments

Comments
 (0)