package com.bonus.zlpt.system.controller;

import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.domain.AjaxResult;
import com.bonus.zlpt.system.api.domain.BaseAddress;
import com.bonus.zlpt.system.service.BaseAddressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/baseAddress")
@Api(value = "企业地址管理",tags = {"企业地址模块"})
public class BaseAddressController extends BaseController {

    @Autowired
    private BaseAddressService baseAddressService;

    @ApiOperation("查询地址")
    @PostMapping("/selectAddress")
    public AjaxResult selectAddress(@RequestBody BaseAddress baseAddress){

       return success(baseAddressService.selectAddress(baseAddress));

    }



}
