// 品牌商模块

// 获取品牌商列表
export const getBrandList = {
  url: '/brand/manger/page',
  method: 'GET',
  dealReqData: ({ pageNum, pageSize, userKey, addTimeHead, addTimeTail }) => {
    return { pageNum, pageSize, userKey, addTimeHead, addTimeTail }
  }
}

// 获取所有品牌商
export const getAllBrand = {
  url: '/brand/common/list',
  method: 'GET'
}

// 新增品牌商
export const addBrand = {
  url: '/brand/manger/add',
  method: 'POST',
  dealReqData: ({ account, brandName, license, licenseNo, brandPrefix, linkMan, linkPhone }) => {
    return { account, brandName, license, licenseNo, brandPrefix, linkMan, linkPhone }
  }
}

// 修改品牌商信息
export const updateBrand = {
  url: '/brand/manger/update',
  method: 'PUT',
  dealReqData: ({ adminId, account, brandName, license, licenseNo, linkMan, linkPhone }) => {
    return { adminId, account, brandName, license, licenseNo, linkMan, linkPhone }
  }
}

// 删除品牌商
export const deleteBrand = {
  url: '/brand/manger/delete',
  method: 'DELETE',
  dealReqData: ({ brandId }) => {
    return { brandId }
  }
}

// 重置密码
export const resetBrandPwd = {
  url: '/brand/manger/resetPwd',
  method: 'POST',
  dealReqData: ({ brandId }) => {
    return { brandId }
  }
}
