Skip to content

Commit

Permalink
Merge pull request #426 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
fix(work): oa with uri
  • Loading branch information
Matrix-X authored Jan 3, 2024
2 parents ca8f06d + 367cbc5 commit 30fa513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/work/oa/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (comp *Client) GetCorpConfig(ctx context.Context) (*response.ResponseCorpVa

result := &response.ResponseCorpVacationGetConfig{}

_, err := comp.BaseClient.HttpGet(ctx, "cgi-bin/corp/vacation/getcorpconf", nil, nil, result)
_, err := comp.BaseClient.HttpGet(ctx, "cgi-bin/oa/vacation/getcorpconf", nil, nil, result)

return result, err

Expand All @@ -263,7 +263,7 @@ func (comp *Client) GetUserVacationQuota(ctx context.Context, userID string) (*r

result := &response.ResponseCorpVacationGetQuota{}

_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/corp/vacation/getuservacationquota", &object.HashMap{
_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/oa/vacation/getuservacationquota", &object.HashMap{
"userid": userID,
}, nil, nil, result)

Expand All @@ -277,7 +277,7 @@ func (comp *Client) SetOneUserQuota(ctx context.Context, data *object.HashMap) (

result := &response2.ResponseWork{}

_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/corp/vacation/setoneuserquota", data, nil, nil, result)
_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/oa/vacation/setoneuserquota", data, nil, nil, result)

return result, err

Expand Down

0 comments on commit 30fa513

Please sign in to comment.