package com.bonus.zlpt.company.controller;

import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
import com.bonus.zlpt.company.domain.BaseAddress;
import com.bonus.zlpt.company.service.BaseAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/baseAddress")
public class BaseAddressController extends BaseController {

    @Autowired
    private BaseAddressService baseAddressService;

    @PostMapping("/selectAddress")
    public AjaxResult selectAddress(@RequestBody BaseAddress baseAddress){

       return success(baseAddressService.selectAddress(baseAddress));

    }





}
