com.fasc.open.api.v5_1.client.OrgClient Maven / Gradle / Ivy
The newest version!
package com.fasc.open.api.v5_1.client;
import com.fasc.open.api.bean.base.BaseRes;
import com.fasc.open.api.constants.OpenApiUrlConstants;
import com.fasc.open.api.exception.ApiException;
import com.fasc.open.api.v5_1.req.org.*;
import com.fasc.open.api.v5_1.res.org.*;
import java.util.List;
/**
* @author gongj
* @date 2022/7/12
*/
public class OrgClient {
private OpenApiClient openApiClient;
public OrgClient(OpenApiClient openApiClient) {
this.openApiClient = openApiClient;
}
/**部门相关接口*/
public BaseRes> getCorpDeptList(GetCorpDeptListReq req) throws ApiException {
return openApiClient.invokeApiList(req, OpenApiUrlConstants.CORP_DEPT_GET_LIST, CorpDeptInfo.class);
}
public BaseRes getCorpDeptDetail(GetCorpDeptDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_DEPT_GET_DETAIL, GetCorpDeptDetailRes.class);
}
public BaseRes createCorpDept(CreateCorpDeptReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_DEPT_CREATE, CreateCorpDeptRes.class);
}
public BaseRes modifyCorpDept(ModifyCorpDeptReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_DEPT_MODIFY, Void.class);
}
public BaseRes deleteCorpDept(DeleteCorpDeptReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_DEPT_DELETE, Void.class);
}
/** 企业成员相关接口 */
public BaseRes getMemberList(GetMemberListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_GET_LIST, GetMemberListRes.class);
}
public BaseRes getCorpMemberDetail(GetCorpMemberDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_GET_DETAIL, GetCorpMemberDetailRes.class);
}
public BaseRes getCorpMemberByOpenId(GetCorpMemberByOpenIdReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_GET_BY_OPEN_ID, GetCorpMemberByOpenIdRes.class);
}
public BaseRes> createCorpMember(CreateCorpMemberReq req) throws ApiException {
return openApiClient.invokeApiList(req, OpenApiUrlConstants.CORP_MEMBER_CREATE, SimpleEmployeeInfo.class);
}
public BaseRes> getCorpMemberActiveUrl(GetCorpMemberActiveUrlReq req) throws ApiException {
return openApiClient.invokeApiList(req, OpenApiUrlConstants.CORP_MEMBER_ACTIVE_URL, SimpleEmployeeInfo.class);
}
public BaseRes modifyCorpMember(ModifyCorpMemberReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_MODIFY, Void.class);
}
public BaseRes setCorpMemberDept(SetCorpMemberDeptReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_SET_DEPT, Void.class);
}
public BaseRes setCorpMemberStatus(SetCorpMemberStatusReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_SET_STATUS, Void.class);
}
public BaseRes deleteCorpMember(DeleteCorpMemberReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.CORP_MEMBER_DELETE, Void.class);
}
/** 企业管理链接 */
public BaseRes getCorpOrgManageUrl(GetCorpOrgManageUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.GET_ORG_MANAGER_URL, GetCorpOrgManageUrlRes.class);
}
/** 企业主体列表 */
public BaseRes> getCorpEntityList(GetEntityListReq req) throws ApiException {
return openApiClient.invokeApiList(req, OpenApiUrlConstants.GET_ORG_ENTITY_LIST, GetEntityListRes.class);
}
/** 获取成员企业管理链接 */
public BaseRes getCorpEntityManageUrl(GetCorpEntityManageUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.GET_ORG_ENTITY_MANAGE_URL, GetCorpEntityManageUrlRes.class);
}
/** 获取角色管理链接 */
public BaseRes getCorpRoleManageUrl(GetCorpRoleUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.GET_CORP_ROLE_MANAGE_URL, GetCorpRoleUrlRes.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy