import request from '@/sheep/request';

const MemberApi = {
  // 查询关联人员列表
  getRelationList: (houseId) => {
    return request({
      url: '/community/member-house/relation-list',
      method: 'GET',
      data: { houseId },
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
  // 解除绑定
  unbind: (id) => {
    return request({
      url: '/community/member-house/unbind',
      method: 'DELETE',
      data: { id },
      custom: {
        showLoading: true,
        auth: true,
      },
    });
  },
};

export default MemberApi;
