import request from '@/utils/request'
import { URL } from '@/config'

/**
 * @name 商家端-公司信息
 * @returns {
 *  "company_phone": "",
 *  "organization_code_start": "2024-10-22 00:00:00",
 *  "contacts_deposit": 0,
 *  "bank_address": "",
 *  "legal_person_number": "",
 *  "organization_code_electronic": "",
 *  "company_address": "岛内价超市",
 *  "bank_licence_electronic": "",
 *  "company_invoice": "",
 *  "company_registered_capital": 0,
 *  "contacts_email": "",
 *  "company_taxnum": "",
 *  "contacts_fee": 0,
 *  "company_zipcode": "",
 *  "payment_type": 0,
 *  "contacts_position": "",
 *  "user_id": 10002,
 *  "company_name": "公司名称",
 *  "tax_registration_certificate": "",
 *  "company_area": "广西壮族自治区/贵港市/桂平市",
 *  "contacts_phone": "",
 *  "business_license_electronic": "",
 *  "bank_account_number": "",
 *  "company_website": "",
 *  "general_taxpayer": "",
 *  "contacts_name": "",
 *  "alipay_realname": "",
 *  "legal_person_electronic": "",
 *  "organization_code": "",
 *  "business_license_location": "",
 *  "organization_code_end": "2024-10-22 00:00:00",
 *  "tax_registration_certificate_electronic": "",
 *  "store_class_names": "",
 *  "bank_name": "",
 *  "establish_date": "2024-10-22 00:00:00",
 *  "business_licence_end": "2024-10-22 00:00:00",
 *  "company_other_files": "",
 *  "store_id": 1,
 *  "bank_code": "",
 *  "legal_person": "",
 *  "company_id": 1,
 *  "payment_voucher": "",
 *  "business_sphere": "",
 *  "bank_account_name": "",
 *  "store_class_commission": "",
 *  "alipay_account": "",
 *  "company_description": "",
 *  "payment_voucher_explain": "",
 *  "business_licence_start": "2024-10-22 00:00:00",
 *  "store_class_ids": "",
 *  "company_employee_count": 0,
 *  "business_id": "0"
}
 */
export function getcompany(params) {
  return request({
    url: URL.shop.store.company.get,
    method: 'get',
    params,
  })
}


export function editcompany(data) {
  return request({
    url: URL.shop.store.company.doEdit,
    method: 'post',
    data,
  })
}
