EntmicroStaffRemote.java 10.7 KB
package cn.com.glsx.entmicro.remote;

import cn.com.glsx.entmicro.model.request.*;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.login.WechatDepositRequest;
import cn.com.glsx.entmicro.model.response.EntmicroFollowerStaffResponse;
import cn.com.glsx.entmicro.model.response.EntmicroStaffResponse;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

/**
 * @author Lichongyuan
 * @Description:
 * @date 2021/9/16 13:55
 */
@ApiService(value = "企微员工服务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "EntmicroStaffRemote", owner = "lichongyuan")
public interface EntmicroStaffRemote {


    /**
     * 新增员工
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("新增员工")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "新增员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("新增员工")
    RpcResponse<Boolean> saveEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 修改员工信息
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("修改员工信息")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "修改员工信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("修改员工信息")
    RpcResponse<Boolean> upateEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 删除员工信息
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("删除员工信息")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "删除员工信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("删除员工信息")
    RpcResponse<Boolean> deleteEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 查询外部联系人列表
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("查询外部联系人权限列表")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "查询外部联系人权限列表", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("查询外部联系人权限列表")
    RpcResponse<List<EntmicroStaffResponse>> listOutSideContactStaff(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 同步外部联系人权限企微员工
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("同步外部联系人权限企微员工")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "同步外部联系人权限企微员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("同步外部联系人权限企微员工")
    RpcResponse<Boolean> syncEntmicroIsOutsiderStaff(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 企微端登录
     *
     * @param phoneAuthorizeRequest
     * @return
     */
    @ApiMethod("企微端登录")
    @ApiParams({@ApiParam(name = "phoneAuthorizeRequest", notes = "企微端登录", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("企微端登录")
    RpcResponse<Boolean> entmicroLogin(PhoneAuthorizeRequest phoneAuthorizeRequest);

    /**
     * 查询跟进员工
     *
     * @param staffRequestDTO
     * @return
     */
    @ApiMethod("查询跟进员工")
    @ApiParams({@ApiParam(name = "staffRequestDTO", notes = "查询跟进员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("查询跟进员工")
    RpcResponse<List<EntmicroStaffResponse>> findFollowStaff(StaffRequestDTO staffRequestDTO);

    /**
     * 查询员工详情
     *
     * @param staffRequestDTO
     * @return
     */
    @ApiMethod("查询员工详情")
    @ApiParams({@ApiParam(name = "staffRequestDTO", notes = "查询员工详情", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("查询员工详情")
    RpcResponse<EntmicroStaffResponse> findStaffDetail(StaffRequestDTO staffRequestDTO);

    /**
     * 查询商户下面的跟进员工
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("查询商户下面的跟进员工")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "查询商户下面的跟进员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("查询商户下面的跟进员工")
    RpcResponse<List<EntmicroStaffResponse>> findlistEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 查询商户下面的群主列表
     *
     * @param lordCustomerGroupRequest
     * @return
     */
    @ApiMethod("查询商户下面的群主列表")
    @ApiParams({@ApiParam(name = "lordCustomerGroupRequest", notes = "查询商户下面的群主列表", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("查询商户下面的群主列表")
    RpcResponse<List<EntmicroStaffResponse>> findLordGroup(LordCustomerGroupRequest lordCustomerGroupRequest);

    /**
     * 查询商户下的所有员工
     *
     * @param entmicroStaffRequest
     * @return
     */
    @ApiMethod("查询商户下的所有员工")
    @ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "查询商户下的所有员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    @ApiResponse("员工信息")
    RpcResponse<List<EntmicroStaffResponse>> findStaffByMerchantId(EntmicroStaffRequest entmicroStaffRequest);

    /**
     * 根据员工id查询员工详情
     *
     * @param staffIds 员工id
     * @return
     */
    @ApiMethod("根据员工id查询员工详情")
    @ApiParams({@ApiParam(name = "staffIds", notes = "员工id集合", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
            @ApiParam(name = "staffName", notes = "员工名称", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)}
    )
    @ApiResponse("员工信息")
    RpcResponse<Map<Integer, EntmicroStaffResponse>> findStaffDetailByIds(List<Integer> staffIds, String staffName);

    /**
     * 根据员工userid查询员工详情
     *
     * @param userIds    员工id
     * @param merchantId 商户号
     * @return
     */
    @ApiMethod("根据员工id查询员工详情")
    @ApiParams({@ApiParam(name = "userIds", notes = "用户userid集合", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
            @ApiParam(name = "merchantId", notes = "商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
    })
    @ApiResponse("员工信息")
    RpcResponse<Map<String, EntmicroStaffResponse>> findStaffDetailByUserIds(List<String> userIds, Integer merchantId);

    /**
     * 业务类型查询员工
     *
     * @param businessTypeList
     * @return
     */
    @ApiMethod("根据业务类型查询员工查询员工")
    @ApiParams({@ApiParam(name = "businessTypeList", notes = "业务类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
            @ApiParam(name = "merchantId", notes = "商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
    })
    @ApiResponse("员工信息")
    RpcResponse<List<EntmicroStaffResponse>> getStaffByBusinessType(String businessTypeList, Integer merchantId);

    /**
     * 修改员工敏感信息
     *
     * @param updateStaffSensitiveInfoRequest
     * @return
     */
    @ApiMethod("修改员工敏感信息")
    @ApiParams(@ApiParam(name = "updateStaffSensitiveInfoRequest", notes = "基础类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
    @ApiResponse("修改员工敏感信息")
    RpcResponse<Boolean> updateStaffSensitiveInfo(UpdateStaffSensitiveInfoRequest updateStaffSensitiveInfoRequest);

    /**
     * 查询门店下面已经开启的员工
     *
     * @param merchantStartStaffRequest
     * @return
     */
    @ApiMethod("查询门店下面已经开启的员工")
    @ApiParams(@ApiParam(name = "merchantStartStaffRequest", notes = "基础类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
    @ApiResponse("查询门店下面已经开启的员工")
    RpcResponse<List<EntmicroStaffResponse>> findMerchantStartStaff(MerchantStartStaffRequest merchantStartStaffRequest);

    /**
     * 企微托管管理
     *
     * @param pagination 入参
     * @return
     */
    @ApiMethod("企微托管管理")
    @ApiParams(@ApiParam(name = "pagination", notes = "入参", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
    @ApiResponse("企微托管管理")
    RpcResponse<RpcPagination<EntmicroStaffResponse>> wechatDepositList(RpcPagination<WechatDepositRequest> pagination);

    /**
     * 手动同步单个员工
     *
     * @param
     * @return
     */
    @ApiMethod("手动同步单个员工")
    @ApiParams(@ApiParam(name = "商户号、员工userId", notes = "基础类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
    @ApiResponse("手动同步单个员工")
    RpcResponse<Boolean> syncSingleStaff(Integer merchantId, String userId);

    /**
     * 企微托管管理
     *
     * @param pagination 入参
     * @return
     */
    @ApiMethod("非SCRM企微托管管理")
    @ApiParams(@ApiParam(name = "pagination", notes = "入参", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
    @ApiResponse("非SCRM企微托管管理")
    RpcResponse<RpcPagination<EntmicroStaffResponse>> wechatDepositNotAccessList(RpcPagination<WechatDepositRequest> pagination);

    /**
     * 查询园区店员工并且注册了企微
     *
     * @param autMerchantNo 授权商户号
     * @param merchantNo    园区店商户号
     * @return
     */
    @ApiMethod("查询园区店员工并且注册了企微")
    @ApiParams(@ApiParam(name = "autMerchantNo", notes = "入参", dataType = ApiParam.DataTypeEnum.INTEGER, required = true))
    @ApiResponse("查询园区店员工并且注册了企微")
    RpcResponse<List<EntmicroStaffResponse>> findResidentEntmicroStaff(@NotNull Integer autMerchantNo, @NotNull Integer merchantNo);

    @ApiMethod("查询员工集合")
    @ApiParams(@ApiParam(name = "requestDTOList", notes = "员工信息", dataType = ApiParam.DataTypeEnum.LIST, required = true))
    @ApiResponse("查询员工集合")
    RpcResponse<List<EntmicroStaffResponse>> findStaffList(List<StaffRequestDTO> requestDTOList);

    @ApiMethod("上级商户查询员工集合")
    @ApiParams(@ApiParam(name = "requestDTOList", notes = "员工信息", dataType = ApiParam.DataTypeEnum.LIST, required = true))
    @ApiResponse("上级商户查询员工集合")
    RpcResponse<List<EntmicroStaffResponse>> findStaffListByTopMerchantId(EntmicroStaffRequest request);

}