package com.xhpc.general.controller;

import com.xhpc.common.core.web.controller.BaseController;
import com.xhpc.common.core.web.page.TableDataInfo;
import com.xhpc.general.service.IXhpcAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * program: ruoyi
 * User: HongYun
 * Date:2021-09-26 15
 */
@RestController
@RequestMapping(value = "/area")
public class XhpcAreaController extends BaseController {

    @Autowired
    private IXhpcAreaService iXhpcAreaService;


    @GetMapping(value = "/list")
    public TableDataInfo list (Integer code){

        startPage();
        return getDataTable(iXhpcAreaService.list(code));
    }

}
