@@ -167,6 +167,136 @@ func (s *CreateApproveResponse) SetBody(v *CreateApproveResponseBody) *CreateApp
167167 return s
168168}
169169
170+ type CheckClosingAccountHeaders struct {
171+ CommonHeaders map [string ]* string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
172+ XAcsDingtalkAccessToken * string `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
173+ }
174+
175+ func (s CheckClosingAccountHeaders ) String () string {
176+ return tea .Prettify (s )
177+ }
178+
179+ func (s CheckClosingAccountHeaders ) GoString () string {
180+ return s .String ()
181+ }
182+
183+ func (s * CheckClosingAccountHeaders ) SetCommonHeaders (v map [string ]* string ) * CheckClosingAccountHeaders {
184+ s .CommonHeaders = v
185+ return s
186+ }
187+
188+ func (s * CheckClosingAccountHeaders ) SetXAcsDingtalkAccessToken (v string ) * CheckClosingAccountHeaders {
189+ s .XAcsDingtalkAccessToken = & v
190+ return s
191+ }
192+
193+ type CheckClosingAccountRequest struct {
194+ // 员工列表
195+ UserIds []* string `json:"userIds,omitempty" xml:"userIds,omitempty" type:"Repeated"`
196+ // 时间段
197+ UserTimeRange []* CheckClosingAccountRequestUserTimeRange `json:"userTimeRange,omitempty" xml:"userTimeRange,omitempty" type:"Repeated"`
198+ // 情景
199+ BizCode * string `json:"bizCode,omitempty" xml:"bizCode,omitempty"`
200+ }
201+
202+ func (s CheckClosingAccountRequest ) String () string {
203+ return tea .Prettify (s )
204+ }
205+
206+ func (s CheckClosingAccountRequest ) GoString () string {
207+ return s .String ()
208+ }
209+
210+ func (s * CheckClosingAccountRequest ) SetUserIds (v []* string ) * CheckClosingAccountRequest {
211+ s .UserIds = v
212+ return s
213+ }
214+
215+ func (s * CheckClosingAccountRequest ) SetUserTimeRange (v []* CheckClosingAccountRequestUserTimeRange ) * CheckClosingAccountRequest {
216+ s .UserTimeRange = v
217+ return s
218+ }
219+
220+ func (s * CheckClosingAccountRequest ) SetBizCode (v string ) * CheckClosingAccountRequest {
221+ s .BizCode = & v
222+ return s
223+ }
224+
225+ type CheckClosingAccountRequestUserTimeRange struct {
226+ StartTime * int64 `json:"startTime,omitempty" xml:"startTime,omitempty"`
227+ EndTime * int64 `json:"endTime,omitempty" xml:"endTime,omitempty"`
228+ }
229+
230+ func (s CheckClosingAccountRequestUserTimeRange ) String () string {
231+ return tea .Prettify (s )
232+ }
233+
234+ func (s CheckClosingAccountRequestUserTimeRange ) GoString () string {
235+ return s .String ()
236+ }
237+
238+ func (s * CheckClosingAccountRequestUserTimeRange ) SetStartTime (v int64 ) * CheckClosingAccountRequestUserTimeRange {
239+ s .StartTime = & v
240+ return s
241+ }
242+
243+ func (s * CheckClosingAccountRequestUserTimeRange ) SetEndTime (v int64 ) * CheckClosingAccountRequestUserTimeRange {
244+ s .EndTime = & v
245+ return s
246+ }
247+
248+ type CheckClosingAccountResponseBody struct {
249+ Mesage * string `json:"mesage,omitempty" xml:"mesage,omitempty"`
250+ Code * int64 `json:"code,omitempty" xml:"code,omitempty"`
251+ Success * bool `json:"success,omitempty" xml:"success,omitempty"`
252+ }
253+
254+ func (s CheckClosingAccountResponseBody ) String () string {
255+ return tea .Prettify (s )
256+ }
257+
258+ func (s CheckClosingAccountResponseBody ) GoString () string {
259+ return s .String ()
260+ }
261+
262+ func (s * CheckClosingAccountResponseBody ) SetMesage (v string ) * CheckClosingAccountResponseBody {
263+ s .Mesage = & v
264+ return s
265+ }
266+
267+ func (s * CheckClosingAccountResponseBody ) SetCode (v int64 ) * CheckClosingAccountResponseBody {
268+ s .Code = & v
269+ return s
270+ }
271+
272+ func (s * CheckClosingAccountResponseBody ) SetSuccess (v bool ) * CheckClosingAccountResponseBody {
273+ s .Success = & v
274+ return s
275+ }
276+
277+ type CheckClosingAccountResponse struct {
278+ Headers map [string ]* string `json:"headers,omitempty" xml:"headers,omitempty" require:"true"`
279+ Body * CheckClosingAccountResponseBody `json:"body,omitempty" xml:"body,omitempty" require:"true"`
280+ }
281+
282+ func (s CheckClosingAccountResponse ) String () string {
283+ return tea .Prettify (s )
284+ }
285+
286+ func (s CheckClosingAccountResponse ) GoString () string {
287+ return s .String ()
288+ }
289+
290+ func (s * CheckClosingAccountResponse ) SetHeaders (v map [string ]* string ) * CheckClosingAccountResponse {
291+ s .Headers = v
292+ return s
293+ }
294+
295+ func (s * CheckClosingAccountResponse ) SetBody (v * CheckClosingAccountResponseBody ) * CheckClosingAccountResponse {
296+ s .Body = v
297+ return s
298+ }
299+
170300type GetUserHolidaysHeaders struct {
171301 CommonHeaders map [string ]* string `json:"commonHeaders,omitempty" xml:"commonHeaders,omitempty"`
172302 XAcsDingtalkAccessToken * string `json:"x-acs-dingtalk-access-token,omitempty" xml:"x-acs-dingtalk-access-token,omitempty"`
@@ -524,6 +654,58 @@ func (client *Client) CreateApproveWithOptions(request *CreateApproveRequest, he
524654 return _result , _err
525655}
526656
657+ func (client * Client ) CheckClosingAccount (request * CheckClosingAccountRequest ) (_result * CheckClosingAccountResponse , _err error ) {
658+ runtime := & util.RuntimeOptions {}
659+ headers := & CheckClosingAccountHeaders {}
660+ _result = & CheckClosingAccountResponse {}
661+ _body , _err := client .CheckClosingAccountWithOptions (request , headers , runtime )
662+ if _err != nil {
663+ return _result , _err
664+ }
665+ _result = _body
666+ return _result , _err
667+ }
668+
669+ func (client * Client ) CheckClosingAccountWithOptions (request * CheckClosingAccountRequest , headers * CheckClosingAccountHeaders , runtime * util.RuntimeOptions ) (_result * CheckClosingAccountResponse , _err error ) {
670+ _err = util .ValidateModel (request )
671+ if _err != nil {
672+ return _result , _err
673+ }
674+ body := map [string ]interface {}{}
675+ if ! tea .BoolValue (util .IsUnset (request .UserIds )) {
676+ body ["userIds" ] = request .UserIds
677+ }
678+
679+ if ! tea .BoolValue (util .IsUnset (request .UserTimeRange )) {
680+ body ["userTimeRange" ] = request .UserTimeRange
681+ }
682+
683+ if ! tea .BoolValue (util .IsUnset (request .BizCode )) {
684+ body ["bizCode" ] = request .BizCode
685+ }
686+
687+ realHeaders := make (map [string ]* string )
688+ if ! tea .BoolValue (util .IsUnset (headers .CommonHeaders )) {
689+ realHeaders = headers .CommonHeaders
690+ }
691+
692+ if ! tea .BoolValue (util .IsUnset (headers .XAcsDingtalkAccessToken )) {
693+ realHeaders ["x-acs-dingtalk-access-token" ] = headers .XAcsDingtalkAccessToken
694+ }
695+
696+ req := & openapi.OpenApiRequest {
697+ Headers : realHeaders ,
698+ Body : openapiutil .ParseToMap (body ),
699+ }
700+ _result = & CheckClosingAccountResponse {}
701+ _body , _err := client .DoROARequest (tea .String ("CheckClosingAccount" ), tea .String ("attendance_1.0" ), tea .String ("HTTP" ), tea .String ("POST" ), tea .String ("AK" ), tea .String ("/v1.0/attendance/closingAccounts/status/query" ), tea .String ("json" ), req , runtime )
702+ if _err != nil {
703+ return _result , _err
704+ }
705+ _err = tea .Convert (_body , & _result )
706+ return _result , _err
707+ }
708+
527709func (client * Client ) GetUserHolidays (request * GetUserHolidaysRequest ) (_result * GetUserHolidaysResponse , _err error ) {
528710 runtime := & util.RuntimeOptions {}
529711 headers := & GetUserHolidaysHeaders {}
0 commit comments