文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.staff.like.list (模糊查询员工列表)

飞猪-菲住联盟迁移:模糊查询员工列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_list_staff_request ListStaffRequest 可选 请求参数
  • └ admin_flag
  • Number
  • 可选
  • 1
  • 管理员标识
  • └ app_id
  • Number
  • 可选
  • 1001
  • 应用id
  • └ business_id
  • Number
  • 可选
  • 1
  • 业务id
  • └ enterprise_business_id
  • Number
  • 可选
  • 2531920098100270
  • 企业业务id
  • └ enterprise_id
  • Number
  • 可选
  • 2531920098100270
  • 企业id
  • └ like_name
  • Boolean
  • 可选
  • true
  • 是否模糊查询
  • └ like_staff_name
  • String
  • 可选
  • 模糊查询员工姓名
  • └ operator_id
  • Number
  • 可选
  • 2626562048100523
  • 操作人id
  • └ request_source
  • Number
  • 可选
  • 1
  • 请求来源
  • └ sso_user_id
  • Number
  • 可选
  • 2626562048100523
  • 登录用户id
  • └ staff_id
  • Number
  • 可选
  • 2626562048100524
  • 员工id

响应参数

名称 类型 示例值 描述
result ListStaffNameLikeResponse 返回参数
  • └ fh_code
  • String
  • 0
  • 错误码
  • └ fh_msg
  • String
  • success
  • 错误信息
  • └ fh_success
  • Boolean
  • true
  • 是否成功
  • staff_list
  • Staff []
  • 员工列表
  • └ enterprise_id
  • Number
  • 2531920098100270
  • 企业id
  • └ extra
  • String
  • xxxx
  • 额外字段
  • └ gmt_create
  • Date
  • Mon Jun 07 16:41:02 CST 2021
  • 创建时间
  • └ staff_id
  • Number
  • 2626562048100524
  • 员工id
  • └ staff_name
  • String
  • 老李
  • 员工姓名
  • └ staff_separate_account
  • Number
  • 1
  • 分账开关
  • └ user_id
  • Number
  • 2626562048100523
  • 用户id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelStaffLikeListRequest req = new AlitripFuturehotelStaffLikeListRequest();
AlitripFuturehotelStaffLikeListRequest.ListStaffRequest obj1 = new AlitripFuturehotelStaffLikeListRequest.ListStaffRequest();
obj1.setAdminFlag(1L);
obj1.setAppId(1001L);
obj1.setBusinessId(1L);
obj1.setEnterpriseBusinessId(2531920098100270L);
obj1.setEnterpriseId(2531920098100270L);
obj1.setLikeName(true);
obj1.setLikeStaffName("李");
obj1.setOperatorId(2626562048100523L);
obj1.setRequestSource(1L);
obj1.setSsoUserId(2626562048100523L);
obj1.setStaffId(2626562048100524L);
req.setParamListStaffRequest(obj1);
AlitripFuturehotelStaffLikeListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_staff_like_list_response>
    <result>
        <fh_code>0</fh_code>
        <fh_msg>success</fh_msg>
        <fh_success>true</fh_success>
        <staff_list>
            <staff>
                <enterprise_id>2531920098100270</enterprise_id>
                <extra>xxxx</extra>
                <gmt_create>Mon Jun 07 16:41:02 CST 2021</gmt_create>
                <staff_id>2626562048100524</staff_id>
                <staff_name>老李</staff_name>
                <staff_separate_account>1</staff_separate_account>
                <user_id>2626562048100523</user_id>
            </staff>
        </staff_list>
    </result>
</alitrip_futurehotel_staff_like_list_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部