public interface ApprovalApi
| Modifier and Type | Method and Description |
|---|---|
GenericResponse<String> |
applyEvent(ApprovalApplyRequest request)
Deprecated.
使用未过时接口替代
|
GenericResponse<String> |
applyEvent(ProcessApplyRequest request)
提交审批申请
|
GenericResponse<String> |
createTemplate(ApprovalTempAddRequest template)
创建审批模板
|
GenericResponse<ApprovalDetail> |
getApprovalDetail(ApprovalSpNo spNo)
获取审批申请详情
sp_no
|
SpNoListResponse |
getApprovalInfo(SpNoListRequest request)
批量获取审批单号
|
GenericResponse<OpenApprovalData> |
getOpenApprovalData(ApprovalThirdNo thirdNo)
查询自建应用审批单当前状态
|
ApprovalTmpDetailResponse |
getTemplateDetail(TemplateId templateId)
获取审批模板详情
|
GenericResponse<List<VacationQuota>> |
getUserVacationQuota(UserId userId)
获取成员假期余额
|
WeComResponse |
setOneUserQuota(UserQuotaSettingRequest request)
修改成员假期余额
|
WeComResponse |
updateTemplate(ApprovalTempUpdateRequest template)
更新审批模板
|
@POST(value="oa/gettemplatedetail") ApprovalTmpDetailResponse getTemplateDetail(@Body TemplateId templateId) throws WeComException
templateId - the template idWeComException - the weComException@POST(value="oa/approval/create_template") GenericResponse<String> createTemplate(@Body ApprovalTempAddRequest template) throws WeComException
仅『审批』系统应用、自建应用和代开发自建应用可调用。
template - the templateWeComException - the weComException@POST(value="oa/approval/update_template") WeComResponse updateTemplate(@Body ApprovalTempUpdateRequest template) throws WeComException
可调用本接口更新审批模板。更新模板后,管理后台及审批应用内将更新原模板的内容,已配置的审批流程和规则不变。
template - the templateWeComException - the weComException@POST(value="oa/applyevent") @Deprecated GenericResponse<String> applyEvent(@Body ApprovalApplyRequest request) throws WeComException
暂不支持通过接口提交[打卡补卡][调班]模板审批单
request - the requestWeComException - the weComException@POST(value="oa/applyevent") GenericResponse<String> applyEvent(@Body ProcessApplyRequest request) throws WeComException
request - the requestWeComException - the we com exception@POST(value="oa/getapprovalinfo") SpNoListResponse getApprovalInfo(@Body SpNoListRequest request) throws WeComException
一次拉取调用最多拉取100个审批记录,可以通过多次拉取的方式来满足需求。
request - the requestWeComException - the weComException@POST(value="oa/getapprovaldetail") GenericResponse<ApprovalDetail> getApprovalDetail(@Body ApprovalSpNo spNo) throws WeComException
spNo - the sp noWeComException - the weComException@POST(value="corp/getopenapprovaldata") GenericResponse<OpenApprovalData> getOpenApprovalData(@Body ApprovalThirdNo thirdNo) throws WeComException
thirdNo - the third no thirdNoWeComException - the weComException@POST(value="oa/vacation/getuservacationquota") GenericResponse<List<VacationQuota>> getUserVacationQuota(@Body UserId userId) throws WeComException
数据来源为人事助手-假期管理
userId - the user idWeComException - the weComException@POST(value="oa/vacation/setoneuserquota") WeComResponse setOneUserQuota(@Body UserQuotaSettingRequest request) throws WeComException
request - the requestWeComException - the weComExceptionCopyright © 2025. All rights reserved.