import request from '@/utils/request'

// 查询实名认证列表
export function listRealName(query) {
  return request({
    url: '/ss/realName/list',
    method: 'get',
    params: query
  })
}

// 查询实名认证详细
export function getRealName(id) {
  return request({
    url: '/ss/realName/' + id,
    method: 'get'
  })
}

// 新增实名认证
export function addRealName(data) {
  return request({
    url: '/ss/realName',
    method: 'post',
    data: data
  })
}

// 修改实名认证
export function updateRealName(data) {
  return request({
    url: '/ss/realName',
    method: 'put',
    data: data
  })
}

// 删除实名认证
export function delRealName(id) {
  return request({
    url: '/ss/realName/' + id,
    method: 'delete'
  })
}
